Skip to content

Commit 04dfbe8

Browse files
authored
Merge pull request #469 from jude-moo/benchmark/openmc_FNG-HCPB
Adding FNG-HCPB benchmark for OpenMC
2 parents ba828bf + cbd917b commit 04dfbe8

File tree

14 files changed

+3865
-4
lines changed

14 files changed

+3865
-4
lines changed

docs/source/dev/insertbenchmarks.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ OpenMC
5656
`OpenMC documentation <https://docs.openmc.org/en/stable/usersguide/settings.html#compiled-sources>`_.
5757
- If the model uses weight windows, a weight windows file in HDF5 format should be provided.
5858
The file should be named ``weight_windows.h5``. This weight window will be used in simulation if it is provided.
59+
- If dosimetry calculations are required, the IRDFF-II data library should be used and can be implemented using an ``openmc.EnergyFunctionFilter``
60+
which is outlined in this `notebook <https://nbviewer.org/gist/paulromano/842b1df9eb2003747e2fd6d95514129a>`.
5961
- The tallies IDs should be explicitly fixed when creating the ``tallies.xml`` file. This prevents
6062
OpenMC from creating them automatically and, thus, potentially changing them between different runs
6163
of a same benchmark. If possible, the tallies identifiers should be the same as the ones used in the

docs/source/documentation/benchdesc/fng/fng-hcpb.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,19 @@ where :math:`{\lambda}` is the decay constant, :math:`n_{tot}` is the total neut
7070
mass is for an individual pellet. This normalisation is included in the MCNP input file so the raw output
7171
can be directly compared to the measured data.
7272

73+
OpenMC model
74+
^^^^^^^^^^^^
75+
To allow for the simulation to run in OpenMC, vacuum boundary conditions were set for all outer surfaces of the geometry.
76+
77+
OpenMC tallies
78+
^^^^^^^^^^^^^^
79+
The reaction rates are calcaulated using a flux tally and an EnergyFunctionFilter, corresponding to the cross-section data for the nuclide being tallied over.
80+
To make the results comparable to the experimental data, the raw output from OpenMC must be divided by the volume of the foils.
81+
82+
The tritium production was tallied using the (n,Xt) score in OpenMC. The specific activity is then calculated in the same way as for MCNP,
83+
but factors have to be folded in during post-processing.
84+
85+
7386
Patch file
7487
^^^^^^^^^^
7588
Coming soon...

src/jade/resources/default_cfg/benchmarks_pp/raw/mcnp/FNG-HCPB.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ _cell_id_h3: &depth_h3
6767
16055: 28.410
6868
16059: 28.411
6969
16063: 28.412
70-
_cell_id_h3: &depth_h3d
70+
_cell_id_h3d: &depth_h3d
7171
16016: [9.5, 01]
7272
16020: [9.5,02]
7373
16024: [9.5,03]
@@ -127,5 +127,4 @@ Tritium activity:
127127

128128
Tritium activity Pellet:
129129
concat_option: no_action
130-
84: [[add_column_with_dict, {'ref_column': 'Cells', 'values': *depth_h3d, new_columns: [ 'Distance','Pellet']}],[replace, {'column': 'Cells', 'values': *depth_h3}]]
131-
130+
84: [[add_column_with_dict, {'ref_column': 'Cells', 'values': *depth_h3d, new_columns: [ 'Distance','Pellet']}],[replace, {'column': 'Cells', 'values': *depth_h3}]]
Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
# Define anchors to be used in the file.
2+
# Use _ prefix to avoid confusing the jade parser.
3+
_cell_id_foils: &depth_foils
4+
48001: 4.10115
5+
48002: 10.40115
6+
48003: 16.70115
7+
48004: 23.00115
8+
58001: 4.10115
9+
58002: 10.40115
10+
58003: 16.70115
11+
58004: 23.00115
12+
38001: 4.10115
13+
38002: 10.40115
14+
38003: 16.70115
15+
38004: 23.00115
16+
28000: 0.0
17+
28001: 4.10115
18+
28002: 10.40115
19+
28003: 16.70115
20+
28004: 23.00115
21+
_cell_id_h3: &depth_h3
22+
16016: 9.501
23+
16020: 9.502
24+
16024: 9.503
25+
16028: 9.504
26+
16032: 9.505
27+
16036: 9.506
28+
16040: 9.507
29+
16044: 9.508
30+
16048: 9.509
31+
16052: 9.510
32+
16056: 9.511
33+
16060: 9.512
34+
16017: 15.801
35+
16021: 15.802
36+
16025: 15.803
37+
16029: 15.804
38+
16033: 15.805
39+
16037: 15.806
40+
16041: 15.807
41+
16045: 15.808
42+
16049: 15.809
43+
16053: 15.810
44+
16057: 15.811
45+
16061: 15.812
46+
16018: 22.101
47+
16022: 22.102
48+
16026: 22.103
49+
16030: 22.104
50+
16034: 22.105
51+
16038: 22.106
52+
16042: 22.107
53+
16046: 22.108
54+
16050: 22.109
55+
16054: 22.110
56+
16058: 22.111
57+
16062: 22.112
58+
16019: 28.401
59+
16023: 28.402
60+
16027: 28.403
61+
16031: 28.404
62+
16035: 28.405
63+
16039: 28.406
64+
16043: 28.407
65+
16047: 28.408
66+
16051: 28.409
67+
16055: 28.410
68+
16059: 28.411
69+
16063: 28.412
70+
_cell_id_h3d: &depth_h3d
71+
16016: [9.5, 01]
72+
16020: [9.5,02]
73+
16024: [9.5,03]
74+
16028: [9.5,04]
75+
16032: [9.5,05]
76+
16036: [9.5,06]
77+
16040: [9.5,07]
78+
16044: [9.5,08]
79+
16048: [9.5,09]
80+
16052: [9.5,10]
81+
16056: [9.5,11]
82+
16060: [9.5,12]
83+
16017: [15.8,01]
84+
16021: [15.8,02]
85+
16025: [15.8,03]
86+
16029: [15.8,04]
87+
16033: [15.8,05]
88+
16037: [15.8,06]
89+
16041: [15.8,07]
90+
16045: [15.8,08]
91+
16049: [15.8,09]
92+
16053: [15.8,10]
93+
16057: [15.8,11]
94+
16061: [15.8,12]
95+
16018: [22.1,01]
96+
16022: [22.1,02]
97+
16026: [22.1,03]
98+
16030: [22.1,04]
99+
16034: [22.1,05]
100+
16038: [22.1,06]
101+
16042: [22.1,07]
102+
16046: [22.1,08]
103+
16050: [22.1,09]
104+
16054: [22.1,10]
105+
16058: [22.1,11]
106+
16062: [22.1,12]
107+
16019: [28.4,01]
108+
16023: [28.4,02]
109+
16027: [28.4,03]
110+
16031: [28.4,04]
111+
16035: [28.4,05]
112+
16039: [28.4,06]
113+
16043: [28.4,07]
114+
16047: [28.4,08]
115+
16051: [28.4,09]
116+
16055: [28.4,10]
117+
16059: [28.4,11]
118+
16063: [28.4,12]
119+
# Fluxes
120+
Reaction rate:
121+
concat_option: no_action
122+
4:
123+
- [volume, {}]
124+
- [replace, {'column': 'Cells', 'values': *depth_foils}]
125+
126+
Tritium activity:
127+
concat_option: no_action
128+
84:
129+
- [mass, {}]
130+
- [scale, {'factor': 2.57042574E+07}]
131+
- [replace, {'column': 'Cells', 'values': *depth_h3}]
132+
133+
Tritium activity Pellet:
134+
concat_option: no_action
135+
84:
136+
- [mass, {}]
137+
- [scale, {'factor': 2.57042574E+07}]
138+
- [add_column_with_dict, {'ref_column': 'Cells', 'values': *depth_h3d, new_columns: [ 'Distance','Pellet']}]
139+
- [replace, {'column': 'Cells', 'values': *depth_h3}]

src/jade/resources/default_cfg/run_cfg.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,4 +239,15 @@ IPPE-CF:
239239
custom_input:
240240
nps: 1e8
241241
description: IPPE 252Cf experiment
242+
only_input: false
243+
#
244+
FNG_HCPB:
245+
codes:
246+
d1s: []
247+
mcnp: []
248+
openmc: []
249+
serpent: []
250+
custom_input:
251+
nps: 1e8
252+
description: FNG Helium Cooled Pebble Bed TBM Experiment
242253
only_input: false

0 commit comments

Comments
 (0)