-
Notifications
You must be signed in to change notification settings - Fork 8
UQ-TMC workflow - new #65
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pull Request Test Coverage Report for Build 18326211042Details
💛 - Coveralls |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Workflow for implementing uncertainty quantification via total Monte Carlo in the repository.
specifications.yamlandbenchmark_schema.yamlhave a new uncertainty_quantification section that specifies what to perturb (currently working only for nuclear data).openmc.Statepointresults toxarray.DataArrayobjects and save them innetcdfbinary files have been separated from theOpenmcBenchmarkobject and put in autils.pyfile as they are useful also for the TMC engine and might be useful also for other future workflow_openmc_to_ofb()function convertspandas.DataFramesfromOpenmc.Statepointtoxarray.DataArrays, in the process it adds one dimension to the array calledrealizationthat is the dimension that gets populated as the TMC is triggered_save_result()function save suchDataArraysinto ah5file with one caveat: if the result and file already exist, it populates therealizationdimension of the result with the new result_uncertainty_quantification()function has been added to theOpenmcBenchmarkclass. It deploys the TMC engine and it gets triggered if theuqflag inBenchmark.run()is specifieduq\folder has been added insrc/openmc_fusion_benchmarks/with the TMC engineuq\uq_utils.pythere are some function that deploysandyfor nuclear data perturbation and adaptation toopenmcrequired formatstmc_engine.pythere's the actual TMC engineUsage:
Some observations:
specificationsandschemacand handle more. In the future we can generalize the TMC engine to handle any type of input data perturbation_openmc_to_ofb()currently handles 2d results (fromDataFrames) adding a 3rd dimension for therealizationsof the TMC, might need to become more elastic dimension-wise in the futureopenmccodestatepoint.100.h5file of the previous iteration and overwrites thecross_sections.xml. The perturbed cross sections are preserved instead in a different folder in the same path. In the future the capability of storing thestatepointand correspondingcross_sectionin separate folders will be addedbenchmark_results.h5files will be implemented in future PRs