-
Notifications
You must be signed in to change notification settings - Fork 536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Determine nuclides correctly for DAGMC models in d1s.get_radionuclides #3335
Conversation
@SteSeg Can you describe what the error is that you run into in this situation? Even if a radionuclide were present in the original material composition, the only way for it to make a contribution to the decay photon flux is if it is produced by a neutron reaction in which case it will get added during |
It was an error that came up when calling either the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SteSeg For now, I'd prefer not to add new methods to Model
. I think we need an overall better strategy for dealing with DAGMC and CSG models consistently and adding more methods just adds more technical debt. I've made a change on your branch taking advantage of the _materials_by_id
property and this should fix the problem with DAMC models for now.
@SteSeg if you do need to get DAGMC cells and their materials, I'd have a look at the |
Description
While trying to run a
d1s
simulation on a DAGMC model @eepeterson and I noticed that themodel.geometry.get_all_nuclides()
method used inget_radionuclides()
ofd1s.py
does not return any nuclide list in the case of aDAGMCUniverse
model. We figured it would be useful to addget_all_materials()
andget_all_nuclides()
directly in theopenmc.Model
class that can get such info in bothcsg
andagmc
geometries.If such methods should not be in the Model class, a quick workaround, directly in
d1s.py
, that would work would be:Also, it seems that as it is now, the
get_radionuclides()
method does not take into account the naturally occurring radioactive nuclides, which causes an error in a d1s run ifmodel.materials
have such nuclides. So we added the capability of including naturally occurring radionuclides with:Checklist