Flux Energy Group Conversion using lethargy-weighted redistribution #3705
+316
−1
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
Often it is necessary for various reasons to have fluxes in different energy structures.
It is not always possible to just directly re-score the flux in a Monte Carlo with the desired spectrum.
e.g.: an experiment provides a given or particular evaluated neutron flux with a given energy spectrum, but later on it is desired to use it with a different application, that perhaps has a slightly different energy structure. Etc.
This new method adds the capability to convert an arbitrary 'source' spectrum to an arbitrary 'target' spectrum, it can use user specified spectra and/or existing OpenMC GROUP_STRUCTURES. It uses the standard approach, that is energy group re-binning with flux-per-lethargy conservation.
https://fispact.ukaea.uk/wiki/Keyword:GRPCONVERT
https://fispact.ukaea.uk/wiki/Spectra_conversion
https://scientific-publications.ukaea.uk/wp-content/uploads/api_manual.pdf#subsection.10.1
A number of tests are included, including conversion of FNS flux from CCFE-709 to UKAEA-1102 with flux, flux/d_leth plots with zoom in of the energy ranges with differing structure.
I have furthermore tested down-sampling (fine -> coarse) and other structures.
Below is a plot of FNS CCFE-709 flux as:
Checklist