Repository navigation
Conversation
The ultra-fine structures are generated from their published definitions with the new build_fine_group_structure(), which builds any structure defined as equal-lethargy or equal-width groups per macro-interval. The FOMG and VESTA-43000 edges tabulated in openmc-dev#3564 serve as the test reference.
changed some of the primary variable names to hopefully be a bit clearer num_groups -> num_fine_bins bounds -> macro_bounds n_intervals -> num_macro_groups General cleanup, comments, description
-bins_per_macro -decimals
yrrepy
force-pushed
the
fine-group-structures
branch
from
October 12, 2026 04:20
05755cd to
103e6da
Compare
yrrepy
marked this pull request as ready for review
October 13, 2026 03:38
This branch has not been deployed
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
This PR follows up #3564.
It was requested to not have the large energy structures in the Python file but rather in an .H5.
The implementation here one ups that, a generic method,
build_fine_group_structure, that can be used to build these types of formulaic fine energy group structures. Pretty dang sleek if I do say so myself!These structures often follow similar styles, 1000 groups per decade between 1eV and 100 keV, etc.
The built method allows equal-lethargy or equal-width groups per interval.
FOMG-16000, VESTA-43000, VESTA-100000 are added as named groups that immediately leverage this functionality to populate their
GROUP_STRUCTURESN.B.
These two energy structures are explicitly included on
tests/unit_tests/fine_group_structures_reference.npz, and VESTA-43000 of the npz is tested againstbuild_fine_group_structure.FOMG is included on the npz, but the tests compare hard coded equations of FOMG-16000 and VESTA-100000 against
build_fine_group_structure.I manually prepared in Excel the npz energy structures.
These types of energy structure are needed for the multi-group binning (MGB) method of neutron activation.
Found in Aleph, VESTA, Shift and SMURE.
https://doi.org/10.1051/snamc/201405203
morgan2013.pdf
https://www.kns.org/files/pre_paper/44/20A-413-%EA%B9%80%EA%B2%BD%EB%AF%BC-%EB%B0%9C%ED%91%9C%EC%9E%90%EB%A3%8C.pdf
https://etheses.whiterose.ac.uk/id/eprint/4427/1/PhD_Thesis_Corrected_FINAL_FINAL_3_9_13.pdf
https://www.osti.gov/etdeweb/servlets/purl/20902503 https://roma.sckcen.be/ws/portalfiles/portal/4558859/An_Optimum_Approach_to_Monte_Carlo_Burn_Up.pdf https://rsicc.ornl.gov/codes/ccc/ccc7/ccc-769.html
https://www.tandfonline.com/doi/abs/10.13182/NSE07-A2695
AI Assistance
Planning/orchestration/final review, implementation, review
Checklist
Summary by CodeRabbit