openmc.data.ProbabilityTables¶
- class openmc.data.ProbabilityTables(energy, table, interpolation, inelastic_flag=- 1, absorption_flag=- 1, multiply_smooth=False)[source]¶
Unresolved resonance region probability tables.
- Parameters
energy (Iterable of float) – Energies in eV at which probability tables exist
table (numpy.ndarray) – Probability tables for each energy. This array is of shape (N, 6, M) where N is the number of energies and M is the number of bands. The second dimension indicates whether the value is for the cumulative probability (0), total (1), elastic (2), fission (3), \((n,\gamma)\) (4), or heating number (5).
interpolation ({2, 5}) – Interpolation scheme between tables
inelastic_flag (int) – A value less than zero indicates that the inelastic cross section is zero within the unresolved energy range. A value greater than zero indicates the MT number for a reaction whose cross section is to be used in the unresolved range.
absorption_flag (int) – A value less than zero indicates that the “other absorption” cross section is zero within the unresolved energy range. A value greater than zero indicates the MT number for a reaction whose cross section is to be used in the unresolved range.
multiply_smooth (bool) – Indicate whether probability table values are cross sections (False) or whether they must be multiply by the corresponding “smooth” cross sections (True).
- Variables
energy (Iterable of float) – Energies in eV at which probability tables exist
table (numpy.ndarray) – Probability tables for each energy. This array is of shape (N, 6, M) where N is the number of energies and M is the number of bands. The second dimension indicates whether the value is for the cumulative probability (0), total (1), elastic (2), fission (3), \((n,\gamma)\) (4), or heating number (5).
interpolation ({2, 5}) – Interpolation scheme between tables
inelastic_flag (int) – A value less than zero indicates that the inelastic cross section is zero within the unresolved energy range. A value greater than zero indicates the MT number for a reaction whose cross section is to be used in the unresolved range.
absorption_flag (int) – A value less than zero indicates that the “other absorption” cross section is zero within the unresolved energy range. A value greater than zero indicates the MT number for a reaction whose cross section is to be used in the unresolved range.
multiply_smooth (bool) – Indicate whether probability table values are cross sections (False) or whether they must be multiply by the corresponding “smooth” cross sections (True).
- classmethod from_ace(ace)[source]¶
Generate probability tables from an ACE table
- Parameters
ace (openmc.data.ace.Table) – ACE table to read from
- Returns
Unresolved resonance region probability tables
- Return type