openmc.deplete.ReactionRates
- class openmc.deplete.ReactionRates(local_mats, nuclides, reactions, from_results=False)[source]
Reaction rates resulting from a transport operator call
This class is a subclass of
numpy.ndarraywith a few custom attributes that make it easy to determine what index corresponds to a given material, nuclide, and reaction rate.- Parameters:
- Variables:
index_mat (dict of str to int) – A dictionary mapping material ID as string to index.
index_nuc (dict of str to int) – A dictionary mapping nuclide name as string to index.
index_rx (dict of str to int) – A dictionary mapping reaction name as string to index.
n_mat (int) – Number of materials.
n_nuc (int) – Number of nucs.
n_react (int) – Number of reactions.