openmc.data.ResonanceCovarianceRange¶
- class openmc.data.ResonanceCovarianceRange(energy_min, energy_max)[source]¶
Resonace covariance range. Base class for different formalisms.
- Parameters
- Variables
energy_min (float) – Minimum energy of the resolved resonance range in eV
energy_max (float) – Maximum energy of the resolved resonance range in eV
parameters (pandas.DataFrame) – Resonance parameters
covariance (numpy.array) – The covariance matrix contained within the ENDF evaluation
lcomp (int) – Flag indicating format of the covariance matrix within the ENDF file
file2res (openmc.data.ResonanceRange object) – Corresponding resonance range with File 2 data.
mpar (int) – Number of parameters in covariance matrix for each individual resonance
formalism (str) – String descriptor of formalism
- sample(n_samples)[source]¶
Sample resonance parameters based on the covariances provided within an ENDF evaluation.
- Parameters
n_samples (int) – The number of samples to produce
- Returns
samples – List of samples size n_samples
- Return type
list of openmc.data.ResonanceCovarianceRange objects
- subset(parameter_str, bounds)[source]¶
Produce a subset of resonance parameters and the corresponding covariance matrix to an IncidentNeutron object.
- Parameters
parameter_str (str) – parameter to be discriminated (i.e. ‘energy’, ‘captureWidth’, ‘fissionWidthA’…)
bounds (np.array) – [low numerical bound, high numerical bound]
- Returns
res_cov_range – ResonanceCovarianceRange object that contains a subset of the covariance matrix (upper triangular) as well as a subset parameters within self.file2params
- Return type