Tally factors for OpenMC volume and mass corrections. #360
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 pull requests adds the functionality required to renormlaise OpenMC output data into an equivalent form to the corresponding MCNP benchmark. This is done a
tally_factors.yaml
file, which must be located within the Benchmarks_Inputs folder:Benchmark_Inputs/Test/openmc
An example has been developed for testing, and is included in:
tests/TestFiles/openmc/tally_factors.yaml
In addition, a
volumes.json
file should also be provided in the Benchmarks_Inputs folder, containing as a minimum the volumes of all tally cells:Benchmark_Inputs/Test
The implementation has been made optional, therefore for any benchmarks where the native OpenMC and MCNP tally outputs are equivalent (for example, if the SD card is set to 1 on selected MCNP tallies), the additional yaml and json files are not required.
Baseline
tally_factors.yaml
andvolumes.json
files should be developed for each benchmark, and pushed to the IAEA-NDS/open_benchmarks repository.It should also be noted that within this pull request, the ability to generate and run any computational benchmark in OpenMC has been enabled.
Type of change
Please select what type of change this is.
Testing
Specific tests have been added to
openmc_test.py
, to test the reading oftally_factors.yaml
andvolumes.json
. To test the application of mass and volume correction factors, existing numerical tests intest_tallies_to_dataframes
have been updated accordingly.Checklist: