mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Determine nuclides correctly for DAGMC models in d1s.get_radionuclides (#3335)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
parent
e360cb467e
commit
9bfce4ee1c
1 changed files with 4 additions and 2 deletions
|
|
@ -33,8 +33,10 @@ def get_radionuclides(model: openmc.Model, chain_file: str | None = None) -> lis
|
|||
List of nuclide names
|
||||
|
||||
"""
|
||||
# Determine what nuclides appear in model
|
||||
model_nuclides = set(model.geometry.get_all_nuclides())
|
||||
|
||||
# Determine what nuclides appear in the model
|
||||
model_nuclides = {nuc for mat in model._materials_by_id.values()
|
||||
for nuc in mat.get_nuclides()}
|
||||
|
||||
# Load chain file
|
||||
if chain_file is None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue