Skip to content

Commit 5df277a

Browse files
committed
Merge branch 'developing' of https://github.com/JADE-V-V/JADE into apply_corrections
2 parents 48d8a26 + c32ec22 commit 5df277a

File tree

20 files changed

+3884
-12
lines changed

20 files changed

+3884
-12
lines changed

.github/workflows/pytest.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ jobs:
7878
if: runner.os == 'Linux'
7979
run: |
8080
set -o pipefail
81+
git config --global http.sslBackend schannel
8182
source /usr/local/Modules/init/sh
8283
pytest --cov=. -cov-config=jade.coveragerc --cov-report xml
8384
env:
@@ -89,6 +90,7 @@ jobs:
8990
- name: Testing - Windows
9091
if: runner.os == 'Windows'
9192
run: |
93+
git config --global http.sslBackend schannel
9294
pytest
9395
env:
9496
ACCESS_TOKEN_GITHUB: ${{ secrets.ACCESS_TOKEN_GITHUB }}

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/ISIS-800MeV-C.rst

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
ISIS Benchmark Experiment on Deep-Penetration Neutrons through Concrete and Iron Shields WITH 800 MeV PROTONS
2-
-------
32

43
.. important::
54

6-
This benchmark is part of the SINBAD collection and cannot be freely distributed with JADE.
75

8-
The purpose of this experiment was to measure the deep-penetration neutrons through a thick bulk shield at an intense spallation neutron source facility, ISIS, of the Rutherford Appleton Laboratory (RAL), United Kingdom.
9-
The experiments were performed with 800MeV protons. The protons stopped on a Tantalum target of 30cm effective thickness, located in a vacuum chamber and cooled by heavy water (D2O).
10-
Different measurements were performed during the experiments to fully cover the neutron spectrum, including solid state neutron track detectors (SSNTD), thermoluminiscent dosimeters (TLD), activation detectors and an indium activation multi-moderator detector. The fast neutron flux was measured with the activation threshold detectors by using the C12(n,2n)C11, Al27(n,a)Na24 and the various threshold Bi209(n,xn)Bi210-x reactions. The activation of C12 dosimeters was measured between layers of ordinary concrete and steel located on top of the biological shield, i.e. at an emission angle of 90º relative to beam direction.
6+
This benchmark is part of the SINBAD collection and cannot be freely distributed with JADE.
7+
8+
The purpose of this experiment was to measure the deep-penetration neutrons through a thick bulk shield at an intense spallation neutron source facility, ISIS, of the Rutherford Appleton Laboratory (RAL), United Kingdom.
9+
10+
The experiments were performed with 800MeV protons. The protons stopped on a Tantalum target of 30cm effective thickness, located in a vacuum chamber and cooled by heavy water (D2O).
11+
12+
Different measurements were performed during the experiments to fully cover the neutron spectrum, including solid state neutron track detectors (SSNTD), thermoluminiscent dosimeters (TLD), activation detectors and an indium activation multi-moderator detector. The fast neutron flux was measured with the activation threshold detectors by using the C12(n,2n)C11, Al27(n,a)Na24 and the various threshold Bi209(n,xn)Bi210-x reactions. The activation of C12 dosimeters was measured between layers of ordinary concrete and stell located on top of the biological shield, i.e. at an emission angle of 90º relative to beam direction.
13+
1114
In this experiment additional shielding slabs of ordinary concrete and iron were placed upon the top center of the bulk shield just above the target, as shown in Fig. 1.
1215
Figs. 2 - 4 show photos of this experiment at the top of the target station. The additional
1316
concrete and iron were assembled by 119-cm-diameter by 20-cm-thick slabs of 2.36-g/cm3

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...

docs/source/documentation/benchmarks.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,5 @@ Experimental Benchmarks
9595
.. include:: benchdesc/rcr/rcr-ss.rst
9696

9797
.. include:: benchdesc/rcr/rcr-fe+ni.rst
98+
99+
.. include:: benchdesc/ISIS-800MeV-C.rst

src/jade/app/fetch.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,9 @@ def fetch_from_gitlab(
9090
gl = gitlab.Gitlab(url=url, private_token=authorization_token, ssl_verify=False)
9191
try:
9292
gl.auth()
93-
except gitlab.exceptions.GitlabAuthenticationError:
93+
except gitlab.exceptions.GitlabAuthenticationError as e:
9494
logging.error("Gitlab authentication failed")
95+
logging.error(e)
9596
return False
9697

9798
# select the correct project

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

src/jade/run/benchmark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def write(self, output_folder: PathLike):
113113
path to the output folder.
114114
"""
115115
# write the input to the output folder
116-
self.input._write(output_folder)
116+
self.input.write(output_folder)
117117

118118
def print_metadata(self, outpath: PathLike, metadata_file: PathLike):
119119
"""Print the metadata of the run to the output folder.

0 commit comments

Comments
 (0)