Skip to content

Commit 85dc2a4

Browse files
committed
add random_ray_kinetic regression test
1 parent 2f1b27b commit 85dc2a4

File tree

16 files changed

+514
-0
lines changed

16 files changed

+514
-0
lines changed

tests/regression_tests/random_ray_kinetic/__init__.py

Whitespace-only changes.
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
<?xml version='1.0' encoding='utf-8'?>
2+
<model>
3+
<materials>
4+
<cross_sections>mgxs.h5</cross_sections>
5+
<material id="1" name="UO2 fuel">
6+
<density value="1.0" units="macro"/>
7+
<macroscopic name="UO2"/>
8+
</material>
9+
<material id="2" name="Water">
10+
<density value="1.0" units="macro" value_timeseries="1.0 0.9994949494949495 0.998989898989899 0.9984848484848485 0.997979797979798 0.9974747474747475 0.996969696969697 0.9964646464646465 0.9959595959595959 0.9954545454545455 0.9949494949494949 0.9944444444444445 0.9939393939393939 0.9934343434343434 0.9929292929292929 0.9924242424242424 0.9919191919191919 0.9914141414141414 0.9909090909090909 0.9904040404040404 0.9898989898989898 0.9893939393939394 0.9888888888888889 0.9883838383838384 0.9878787878787879 0.9873737373737373 0.9868686868686869 0.9863636363636363 0.9858585858585859 0.9853535353535353 0.9848484848484849 0.9843434343434343 0.9838383838383838 0.9833333333333333 0.9828282828282828 0.9823232323232323 0.9818181818181818 0.9813131313131312 0.9808080808080808 0.9803030303030302 0.9797979797979798 0.9792929292929293 0.9787878787878788 0.9782828282828283 0.9777777777777777 0.9772727272727273 0.9767676767676767 0.9762626262626263 0.9757575757575757 0.9752525252525253 0.9747474747474747 0.9742424242424242 0.9737373737373737 0.9732323232323232 0.9727272727272727 0.9722222222222222 0.9717171717171716 0.9712121212121212 0.9707070707070706 0.9702020202020202 0.9696969696969697 0.9691919191919192 0.9686868686868687 0.9681818181818181 0.9676767676767677 0.9671717171717171 0.9666666666666667 0.9661616161616161 0.9656565656565657 0.9651515151515151 0.9646464646464646 0.9641414141414141 0.9636363636363636 0.9631313131313131 0.9626262626262626 0.962121212121212 0.9616161616161616 0.961111111111111 0.9606060606060606 0.9601010101010101 0.9595959595959596 0.9590909090909091 0.9585858585858585 0.9580808080808081 0.9575757575757575 0.9570707070707071 0.9565656565656565 0.956060606060606 0.9555555555555555 0.955050505050505 0.9545454545454545 0.954040404040404 0.9535353535353535 0.953030303030303 0.9525252525252524 0.952020202020202 0.9515151515151514 0.951010101010101 0.9505050505050505 0.95"/>
11+
<macroscopic name="LWTR"/>
12+
</material>
13+
</materials>
14+
<geometry>
15+
<cell id="1" name="fuel inner a" material="1" region="-2" universe="1"/>
16+
<cell id="2" name="fuel inner b" material="1" region="2 -3" universe="1"/>
17+
<cell id="3" name="fuel inner c" material="1" region="3 -1" universe="1"/>
18+
<cell id="4" name="moderator inner a" material="2" region="1 -4" universe="1"/>
19+
<cell id="5" name="moderator outer b" material="2" region="4 -5" universe="1"/>
20+
<cell id="6" name="moderator outer c" material="2" region="5" universe="1"/>
21+
<cell id="7" name="azimuthal_cell_0" fill="1" region="6 -7" universe="2"/>
22+
<cell id="8" name="azimuthal_cell_1" fill="1" region="7 -8" universe="2"/>
23+
<cell id="9" name="azimuthal_cell_2" fill="1" region="8 -9" universe="2"/>
24+
<cell id="10" name="azimuthal_cell_3" fill="1" region="9 -10" universe="2"/>
25+
<cell id="11" name="azimuthal_cell_4" fill="1" region="10 -11" universe="2"/>
26+
<cell id="12" name="azimuthal_cell_5" fill="1" region="11 -12" universe="2"/>
27+
<cell id="13" name="azimuthal_cell_6" fill="1" region="12 -13" universe="2"/>
28+
<cell id="14" name="azimuthal_cell_7" fill="1" region="13 -6" universe="2"/>
29+
<cell id="15" name="pincell" fill="2" region="14 -15 16 -17" universe="3"/>
30+
<surface id="1" name="Fuel OR" type="z-cylinder" coeffs="0.0 0.0 0.54"/>
31+
<surface id="2" name="inner ring a" type="z-cylinder" coeffs="0.0 0.0 0.33"/>
32+
<surface id="3" name="inner ring b" type="z-cylinder" coeffs="0.0 0.0 0.45"/>
33+
<surface id="4" name="outer ring a" type="z-cylinder" coeffs="0.0 0.0 0.6"/>
34+
<surface id="5" name="outer ring b" type="z-cylinder" coeffs="0.0 0.0 0.69"/>
35+
<surface id="6" type="plane" coeffs="-0.0 1.0 0 0"/>
36+
<surface id="7" type="plane" coeffs="-0.7071067811865475 0.7071067811865476 0 0"/>
37+
<surface id="8" type="plane" coeffs="-1.0 6.123233995736766e-17 0 0"/>
38+
<surface id="9" type="plane" coeffs="-0.7071067811865476 -0.7071067811865475 0 0"/>
39+
<surface id="10" type="plane" coeffs="-1.2246467991473532e-16 -1.0 0 0"/>
40+
<surface id="11" type="plane" coeffs="0.7071067811865475 -0.7071067811865477 0 0"/>
41+
<surface id="12" type="plane" coeffs="1.0 -1.8369701987210297e-16 0 0"/>
42+
<surface id="13" type="plane" coeffs="0.7071067811865477 0.7071067811865474 0 0"/>
43+
<surface id="14" name="minimum x" type="x-plane" boundary="reflective" coeffs="-0.63"/>
44+
<surface id="15" name="maximum x" type="x-plane" boundary="reflective" coeffs="0.63"/>
45+
<surface id="16" name="minimum y" type="y-plane" boundary="reflective" coeffs="-0.63"/>
46+
<surface id="17" name="maximum y" type="y-plane" boundary="reflective" coeffs="0.63"/>
47+
</geometry>
48+
<settings>
49+
<run_mode>eigenvalue</run_mode>
50+
<particles>100</particles>
51+
<batches>400</batches>
52+
<inactive>200</inactive>
53+
<kinetic_simulation>true</kinetic_simulation>
54+
<timestep_parameters>
55+
<dt>0.01</dt>
56+
<n_timesteps>5</n_timesteps>
57+
<timestep_units>s</timestep_units>
58+
</timestep_parameters>
59+
<energy_mode>multi-group</energy_mode>
60+
<random_ray>
61+
<distance_active>100.0</distance_active>
62+
<distance_inactive>20.0</distance_inactive>
63+
<source type="independent" strength="1.0" particle="neutron">
64+
<space type="box">
65+
<parameters>-0.63 -0.63 -1 0.63 0.63 1</parameters>
66+
</space>
67+
</source>
68+
<volume_normalized_flux_tallies>true</volume_normalized_flux_tallies>
69+
<bd_order>3</bd_order>
70+
<time_method>isotropic</time_method>
71+
</random_ray>
72+
</settings>
73+
<tallies>
74+
<filter id="1" type="delayedgroup">
75+
<bins>1 2 3 4 5 6 7 8</bins>
76+
</filter>
77+
<tally id="1" name="Pin tally">
78+
<scores>flux fission nu-fission</scores>
79+
<estimator>analog</estimator>
80+
</tally>
81+
<tally id="2" name="Delayed tally">
82+
<filters>1</filters>
83+
<scores>precursors</scores>
84+
</tally>
85+
</tallies>
86+
</model>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
k-combined:
2+
1.325787E+00 5.102917E-04
3+
tally 1:
4+
2.630331E+03
5+
3.459322E+04
6+
1.079948E+02
7+
5.831610E+01
8+
2.651573E+02
9+
3.515523E+02
10+
tally 2:
11+
1.077582E+00
12+
5.805919E-03
13+
2.327022E+00
14+
2.707515E-02
15+
8.947059E-01
16+
4.002493E-03
17+
6.344423E-01
18+
2.012585E-03
19+
4.939693E-01
20+
1.220028E-03
21+
6.664308E-02
22+
2.220650E-05
23+
2.312960E-02
24+
2.674892E-06
25+
3.680705E-03
26+
6.773796E-08
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
k-combined:
2+
1.325787E+00 5.102917E-04
3+
tally 1:
4+
2.630190E+03
5+
3.458951E+04
6+
1.079890E+02
7+
5.830986E+01
8+
2.651431E+02
9+
3.515147E+02
10+
tally 2:
11+
1.077582E+00
12+
5.805916E-03
13+
2.327021E+00
14+
2.707513E-02
15+
8.947056E-01
16+
4.002491E-03
17+
6.344421E-01
18+
2.012584E-03
19+
4.939691E-01
20+
1.220027E-03
21+
6.664304E-02
22+
2.220648E-05
23+
2.312958E-02
24+
2.674887E-06
25+
3.680701E-03
26+
6.773779E-08
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
k-combined:
2+
1.325787E+00 5.102917E-04
3+
tally 1:
4+
2.628842E+03
5+
3.455405E+04
6+
1.078945E+02
7+
5.820788E+01
8+
2.649118E+02
9+
3.509018E+02
10+
tally 2:
11+
1.077582E+00
12+
5.805915E-03
13+
2.327021E+00
14+
2.707512E-02
15+
8.947054E-01
16+
4.002489E-03
17+
6.344416E-01
18+
2.012581E-03
19+
4.939683E-01
20+
1.220024E-03
21+
6.664281E-02
22+
2.220632E-05
23+
2.312938E-02
24+
2.674842E-06
25+
3.680634E-03
26+
6.773532E-08
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
k-combined:
2+
1.325787E+00 5.102917E-04
3+
tally 1:
4+
2.626019E+03
5+
3.447990E+04
6+
1.077393E+02
7+
5.804055E+01
8+
2.645315E+02
9+
3.498950E+02
10+
tally 2:
11+
1.077582E+00
12+
5.805913E-03
13+
2.327020E+00
14+
2.707510E-02
15+
8.947048E-01
16+
4.002483E-03
17+
6.344403E-01
18+
2.012572E-03
19+
4.939660E-01
20+
1.220012E-03
21+
6.664210E-02
22+
2.220585E-05
23+
2.312878E-02
24+
2.674703E-06
25+
3.680428E-03
26+
6.772777E-08
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
k-combined:
2+
1.325787E+00 5.102917E-04
3+
tally 1:
4+
2.621893E+03
5+
3.437163E+04
6+
1.075306E+02
7+
5.781591E+01
8+
2.640198E+02
9+
3.485426E+02
10+
tally 2:
11+
1.077581E+00
12+
5.805908E-03
13+
2.327017E+00
14+
2.707505E-02
15+
8.947036E-01
16+
4.002472E-03
17+
6.344375E-01
18+
2.012555E-03
19+
4.939613E-01
20+
1.219989E-03
21+
6.664066E-02
22+
2.220489E-05
23+
2.312757E-02
24+
2.674422E-06
25+
3.680017E-03
26+
6.771264E-08
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
k-combined:
2+
1.325787E+00 5.102917E-04
3+
tally 1:
4+
2.616580E+03
5+
3.423247E+04
6+
1.072732E+02
7+
5.753947E+01
8+
2.633886E+02
9+
3.468780E+02
10+
tally 2:
11+
1.077581E+00
12+
5.805900E-03
13+
2.327014E+00
14+
2.707497E-02
15+
8.947015E-01
16+
4.002454E-03
17+
6.344330E-01
18+
2.012526E-03
19+
4.939535E-01
20+
1.219950E-03
21+
6.663827E-02
22+
2.220330E-05
23+
2.312556E-02
24+
2.673959E-06
25+
3.679343E-03
26+
6.768783E-08
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
<?xml version='1.0' encoding='utf-8'?>
2+
<model>
3+
<materials>
4+
<cross_sections>mgxs.h5</cross_sections>
5+
<material id="1" name="UO2 fuel">
6+
<density value="1.0" units="macro"/>
7+
<macroscopic name="UO2"/>
8+
</material>
9+
<material id="2" name="Water">
10+
<density value="1.0" units="macro" value_timeseries="1.0 0.9994949494949495 0.998989898989899 0.9984848484848485 0.997979797979798 0.9974747474747475 0.996969696969697 0.9964646464646465 0.9959595959595959 0.9954545454545455 0.9949494949494949 0.9944444444444445 0.9939393939393939 0.9934343434343434 0.9929292929292929 0.9924242424242424 0.9919191919191919 0.9914141414141414 0.9909090909090909 0.9904040404040404 0.9898989898989898 0.9893939393939394 0.9888888888888889 0.9883838383838384 0.9878787878787879 0.9873737373737373 0.9868686868686869 0.9863636363636363 0.9858585858585859 0.9853535353535353 0.9848484848484849 0.9843434343434343 0.9838383838383838 0.9833333333333333 0.9828282828282828 0.9823232323232323 0.9818181818181818 0.9813131313131312 0.9808080808080808 0.9803030303030302 0.9797979797979798 0.9792929292929293 0.9787878787878788 0.9782828282828283 0.9777777777777777 0.9772727272727273 0.9767676767676767 0.9762626262626263 0.9757575757575757 0.9752525252525253 0.9747474747474747 0.9742424242424242 0.9737373737373737 0.9732323232323232 0.9727272727272727 0.9722222222222222 0.9717171717171716 0.9712121212121212 0.9707070707070706 0.9702020202020202 0.9696969696969697 0.9691919191919192 0.9686868686868687 0.9681818181818181 0.9676767676767677 0.9671717171717171 0.9666666666666667 0.9661616161616161 0.9656565656565657 0.9651515151515151 0.9646464646464646 0.9641414141414141 0.9636363636363636 0.9631313131313131 0.9626262626262626 0.962121212121212 0.9616161616161616 0.961111111111111 0.9606060606060606 0.9601010101010101 0.9595959595959596 0.9590909090909091 0.9585858585858585 0.9580808080808081 0.9575757575757575 0.9570707070707071 0.9565656565656565 0.956060606060606 0.9555555555555555 0.955050505050505 0.9545454545454545 0.954040404040404 0.9535353535353535 0.953030303030303 0.9525252525252524 0.952020202020202 0.9515151515151514 0.951010101010101 0.9505050505050505 0.95"/>
11+
<macroscopic name="LWTR"/>
12+
</material>
13+
</materials>
14+
<geometry>
15+
<cell id="1" name="fuel inner a" material="1" region="-2" universe="1"/>
16+
<cell id="2" name="fuel inner b" material="1" region="2 -3" universe="1"/>
17+
<cell id="3" name="fuel inner c" material="1" region="3 -1" universe="1"/>
18+
<cell id="4" name="moderator inner a" material="2" region="1 -4" universe="1"/>
19+
<cell id="5" name="moderator outer b" material="2" region="4 -5" universe="1"/>
20+
<cell id="6" name="moderator outer c" material="2" region="5" universe="1"/>
21+
<cell id="7" name="azimuthal_cell_0" fill="1" region="6 -7" universe="2"/>
22+
<cell id="8" name="azimuthal_cell_1" fill="1" region="7 -8" universe="2"/>
23+
<cell id="9" name="azimuthal_cell_2" fill="1" region="8 -9" universe="2"/>
24+
<cell id="10" name="azimuthal_cell_3" fill="1" region="9 -10" universe="2"/>
25+
<cell id="11" name="azimuthal_cell_4" fill="1" region="10 -11" universe="2"/>
26+
<cell id="12" name="azimuthal_cell_5" fill="1" region="11 -12" universe="2"/>
27+
<cell id="13" name="azimuthal_cell_6" fill="1" region="12 -13" universe="2"/>
28+
<cell id="14" name="azimuthal_cell_7" fill="1" region="13 -6" universe="2"/>
29+
<cell id="15" name="pincell" fill="2" region="14 -15 16 -17" universe="3"/>
30+
<surface id="1" name="Fuel OR" type="z-cylinder" coeffs="0.0 0.0 0.54"/>
31+
<surface id="2" name="inner ring a" type="z-cylinder" coeffs="0.0 0.0 0.33"/>
32+
<surface id="3" name="inner ring b" type="z-cylinder" coeffs="0.0 0.0 0.45"/>
33+
<surface id="4" name="outer ring a" type="z-cylinder" coeffs="0.0 0.0 0.6"/>
34+
<surface id="5" name="outer ring b" type="z-cylinder" coeffs="0.0 0.0 0.69"/>
35+
<surface id="6" type="plane" coeffs="-0.0 1.0 0 0"/>
36+
<surface id="7" type="plane" coeffs="-0.7071067811865475 0.7071067811865476 0 0"/>
37+
<surface id="8" type="plane" coeffs="-1.0 6.123233995736766e-17 0 0"/>
38+
<surface id="9" type="plane" coeffs="-0.7071067811865476 -0.7071067811865475 0 0"/>
39+
<surface id="10" type="plane" coeffs="-1.2246467991473532e-16 -1.0 0 0"/>
40+
<surface id="11" type="plane" coeffs="0.7071067811865475 -0.7071067811865477 0 0"/>
41+
<surface id="12" type="plane" coeffs="1.0 -1.8369701987210297e-16 0 0"/>
42+
<surface id="13" type="plane" coeffs="0.7071067811865477 0.7071067811865474 0 0"/>
43+
<surface id="14" name="minimum x" type="x-plane" boundary="reflective" coeffs="-0.63"/>
44+
<surface id="15" name="maximum x" type="x-plane" boundary="reflective" coeffs="0.63"/>
45+
<surface id="16" name="minimum y" type="y-plane" boundary="reflective" coeffs="-0.63"/>
46+
<surface id="17" name="maximum y" type="y-plane" boundary="reflective" coeffs="0.63"/>
47+
</geometry>
48+
<settings>
49+
<run_mode>eigenvalue</run_mode>
50+
<particles>100</particles>
51+
<batches>400</batches>
52+
<inactive>200</inactive>
53+
<kinetic_simulation>true</kinetic_simulation>
54+
<timestep_parameters>
55+
<dt>0.01</dt>
56+
<n_timesteps>5</n_timesteps>
57+
<timestep_units>s</timestep_units>
58+
</timestep_parameters>
59+
<energy_mode>multi-group</energy_mode>
60+
<random_ray>
61+
<distance_active>100.0</distance_active>
62+
<distance_inactive>20.0</distance_inactive>
63+
<source type="independent" strength="1.0" particle="neutron">
64+
<space type="box">
65+
<parameters>-0.63 -0.63 -1 0.63 0.63 1</parameters>
66+
</space>
67+
</source>
68+
<volume_normalized_flux_tallies>true</volume_normalized_flux_tallies>
69+
<bd_order>3</bd_order>
70+
<time_method>propagation</time_method>
71+
</random_ray>
72+
</settings>
73+
<tallies>
74+
<filter id="1" type="delayedgroup">
75+
<bins>1 2 3 4 5 6 7 8</bins>
76+
</filter>
77+
<tally id="1" name="Pin tally">
78+
<scores>flux fission nu-fission</scores>
79+
<estimator>analog</estimator>
80+
</tally>
81+
<tally id="2" name="Delayed tally">
82+
<filters>1</filters>
83+
<scores>precursors</scores>
84+
</tally>
85+
</tallies>
86+
</model>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
k-combined:
2+
1.325787E+00 5.102917E-04
3+
tally 1:
4+
2.630331E+03
5+
3.459322E+04
6+
1.079948E+02
7+
5.831610E+01
8+
2.651573E+02
9+
3.515523E+02
10+
tally 2:
11+
1.077582E+00
12+
5.805919E-03
13+
2.327022E+00
14+
2.707515E-02
15+
8.947059E-01
16+
4.002493E-03
17+
6.344423E-01
18+
2.012585E-03
19+
4.939693E-01
20+
1.220028E-03
21+
6.664308E-02
22+
2.220650E-05
23+
2.312960E-02
24+
2.674892E-06
25+
3.680705E-03
26+
6.773796E-08

0 commit comments

Comments
 (0)