Creating a new HDF5 nuclear data library for UQ#102
Open
Grego01-biot wants to merge 5 commits intoopenmc-dev:masterfrom
Open
Creating a new HDF5 nuclear data library for UQ#102Grego01-biot wants to merge 5 commits intoopenmc-dev:masterfrom
Grego01-biot wants to merge 5 commits intoopenmc-dev:masterfrom
Conversation
added 5 commits
February 5, 2026 10:40
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.
This PR adds
generate_endf_covariance.py,a script that extends the existinggenerate_endf.pywith optional MF=33 multigroup cross-section covariance processing. It produces the same HDF5 library asgenerate_endf.pybut with covariance data (lower-triangular L factors) attached to each neutron file. It is important to note that this PR depends on openmc-dev/openmc#3911!For each neutron ENDF evaluation, the script:
Runs the standard NJOY processing chain to produce cross-section data (identical to
generate_endf.py)Runs NJOY/ERRORR to produce multigroup relative covariance matrices on a 1500-group uniform-lethargy grid (1e-5 eV to 20 MeV). The default settings are covariance temperature at 293.6K, eigenvalue tolerance at 1e-10, temperatures for neutron cross-sections 250, 293.6, 600, 900, 1200 and 2500K.
Factors each covariance matrix as lower triangular and stores L in the HDF5 file under
/<nuclide>/covariance/mf33/.If ENDF evaluation lacks MF=33 for a nuclide, the HDF5 file is still written with standard cross sections. A warning is logged and processing continues.
The full library with covariance can be run using the following script:
python generate_endf_covariance.py --njoy /path/to/njoy -r viii.0 -d endfb-viii.0-hdf5The impact on storage and time to generate this new library is in process and results will be added to this PR.