Materials name persist when running depletion simulation#3738
Conversation
|
Thanks for the improvements @GuySten I also notice that when a user makes a material and sets density units to g/cm³ the returned materials come in units of sum regardless of the inital input density. I would be keen to try to keep the density units consistent with the original material. Naturally I could do this on a separate PR but it is somewhat releated to this and I'm keen to hear if it would be a popular change? |
|
I think preserving density units should be in a separate PR. Separately I do not think that it is very useful compared to the usefulness of preserving material names. |
|
@paulromano if you have time to take a peak does this PR look ok to merge? |
Refactor material name extraction and cleanup.
paulromano
left a comment
There was a problem hiding this comment.
I do see a few things that need changes here so putting a placeholder review for now. Sorry to hold this up but will really try to get to it this week.
paulromano
left a comment
There was a problem hiding this comment.
All good now; thanks @shimwell!
Description
When running a depletion simulation and then loading up the materials from a depletion_results.h5 file the material names are lost.
This makes depletion with DAGMC workflows a bit tricky as one typically knows the material name and not the ID in DAGMC workflows (this stems from material tags in the DAGMC file).
Anyway it would be super useful for me if we can preserve the material name when writing the depletion_results.h5 file so that I can easily find materials once again.
I have added tests but also manually tested with this script
I have also tried to keep this PR to the bare minimum and not cram in extra fixes or deviations from the objective.
Fixes # (issue)
Checklist