Creating a new HDF5 nuclear data library for UQ#3911
Draft
Grego01-biot wants to merge 26 commits intoopenmc-dev:developfrom
Draft
Creating a new HDF5 nuclear data library for UQ#3911Grego01-biot wants to merge 26 commits intoopenmc-dev:developfrom
Grego01-biot wants to merge 26 commits intoopenmc-dev:developfrom
Conversation
…hrough HDF5 files
…cross_section_sampling
…cross_section_sampling
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
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.
Description
The goal of this PR is to create a new HDF5 nuclear data library with covariance data stored in that would live on the OpenMC nuclear data libraries page. Another draft PR will be added shortly to openmc-dev/data repository in order to have the capability to generate the entire nuclear data library.
In order to do so, two new Python files are created and added to openmc/data and neutron.py is modified. The idea is to start by generating multigroup covariance matrices for MF33 using ERRORR module from NJOY, parsing output tape33, performing an eigenvalue decomposition (QR factorization) and storing the energy grids, the reactions and the lower triangular matrices for each reaction. The idea behind using a separate nuclear data library is that file size is less of a concern, since it is intended only for UQ purposes, and we can still reduce storage by keeping only the lower triangular matrix. This would allow the user to perform uncertainty quantification within OpenMC by doing either a sensitivity analysis with the sandwich rule or a Total Monte Carlo approach. The data structure is not fixed yet and is open to suggestions.
Here is an example of the code used to generate the new HDF5 file for Fe56.h5 using 1500 energy groups:
It is important to note that the code needs modular to account for the tolerance used in NJOY, the dilution cross section used for the multigroup covariance generation and the combination or not of MF32 and MF33. This capability would also allow users to generate and store their own multigroup covariance data by providing a precomputed flux spectrum as input to NJOY and selecting the desired output energy grid. Another PR will follow with the source code modifications in order to sample on the fly the neutron cross sections using the covariance data stored in the HDF5.
Fixes # (issue)
Checklist