openmc.deplete.get_microxs_and_flux¶
- openmc.deplete.get_microxs_and_flux(model: Model, domains, nuclides: collections.abc.Iterable[str] | None = None, reactions: collections.abc.Iterable[str] | None = None, energies: collections.abc.Iterable[float] | str | None = None, chain_file: str | os.PathLike | None = None, run_kwargs=None) tuple[list[numpy.ndarray], list[openmc.deplete.microxs.MicroXS]] [source]¶
Generate a microscopic cross sections and flux from a Model
New in version 0.14.0.
- Parameters
model (openmc.Model) – OpenMC model object. Must contain geometry, materials, and settings.
domains (list of openmc.Material or openmc.Cell or openmc.Universe, or openmc.MeshBase) – Domains in which to tally reaction rates.
nuclides (list of str) – Nuclides to get cross sections for. If not specified, all burnable nuclides from the depletion chain file are used.
reactions (list of str) – Reactions to get cross sections for. If not specified, all neutron reactions listed in the depletion chain file are used.
energies (iterable of float or str) – Energy group boundaries in [eV] or the name of the group structure
chain_file (str, optional) – Path to the depletion chain XML file that will be used in depletion simulation. Used to determine cross sections for materials not present in the inital composition. Defaults to
openmc.config['chain_file']
.run_kwargs (dict, optional) – Keyword arguments passed to
openmc.Model.run()
- Returns
list of numpy.ndarray – Flux in each group in [n-cm/src] for each domain
list of MicroXS – Cross section data in [b] for each domain