Refactoring moltres_xs to be able to use mgxs.Library() functionality. #340
Refactoring moltres_xs to be able to use mgxs.Library() functionality. #340Jeremyb8707bigbrain wants to merge 11 commits intoarfc:develfrom
Conversation
… tallies. Includes a built in .json dump file that can be removed/configured. Issue arfc#319
|
Hey everyone, I ran local tests myself for the godiva.json files, mostly everything lines up like it should. Another discrepancy that may be noted is the version, I am on OpenMC version 0.15.2 so the numbers are within std. dev, but for the smaller values it had a bit more range. 99% of everything works as it should, and I plan to add support for multiple statepoints and summaries soon. I added the openmc_mgxslib class so even if it is not 100% it can be added (maybe). Also I forgot to say, this one does not require an input file that specifies energy groups delayed etc, that all comes with a properly configured mgxs.Library(). Also I am working on ordering the files consistently in the.json. |
…ed sorting inside of the JSON.
…ned up spacing, extra lines, and more type checking and error catching.
…. Tweaked division by zero handling to be more readable and less complex.
… added back the consistent nu-scatter matrix requirement because I was testing stuff and forgot to add that back.
…sted the consistent nu-scatter matrix processing to allow all legendre_order types.
|
Hey @Jeremyb8707bigbrain thanks again for working on this PR. I have been very busy, but I have some general feedback:
|
|
Perfect I can do all of that! |
Changed main openmc (0.15.3) calls to run new function rather than the old one, added a way to manually build old case logic via inputs and inspecting python file for the mgxs.Library Added better logging for errors at mgxslib.load_from_statepoints.... Adapted it so that it will correctly use burn_idexes to comply with read_input() formatting. Set generate_openmc_talies_xml as a staticmethod explicitly
Summary of changes
Types of changes
Required for Merging
Associated Issues and PRs
Associated Developers
Checklist for Reviewers
Reviewers should use this link to get to the
Review Checklist before they begin their review.