mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
Updating PyAPITestHarness to allow inputs_true file to be specified.
This commit is contained in:
parent
7bb93041d3
commit
72e85dd4fa
11 changed files with 26750 additions and 11 deletions
92
tests/regression_tests/unstructured_mesh/inputs_true0.dat
Normal file
92
tests/regression_tests/unstructured_mesh/inputs_true0.dat
Normal file
|
|
@ -0,0 +1,92 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<geometry>
|
||||
<cell id="13" material="13" name="fuel" region="9 -10 11 -12 13 -14" universe="9" />
|
||||
<cell id="14" material="14" name="clad" region="(-9 | 10 | -11 | 12 | -13 | 14) (15 -16 17 -18 19 -20)" universe="9" />
|
||||
<cell id="15" material="15" name="water" region="(-15 | 16 | -17 | 18 | -19 | 20) (21 -22 23 -24 25 -26)" universe="9" />
|
||||
<surface coeffs="-5.0" id="9" name="minimum x" type="x-plane" />
|
||||
<surface coeffs="5.0" id="10" name="maximum x" type="x-plane" />
|
||||
<surface coeffs="-5.0" id="11" name="minimum y" type="y-plane" />
|
||||
<surface coeffs="5.0" id="12" name="maximum y" type="y-plane" />
|
||||
<surface coeffs="-5.0" id="13" name="minimum z" type="z-plane" />
|
||||
<surface coeffs="5.0" id="14" name="maximum z" type="z-plane" />
|
||||
<surface coeffs="-6.0" id="15" name="minimum x" type="x-plane" />
|
||||
<surface coeffs="6.0" id="16" name="maximum x" type="x-plane" />
|
||||
<surface coeffs="-6.0" id="17" name="minimum y" type="y-plane" />
|
||||
<surface coeffs="6.0" id="18" name="maximum y" type="y-plane" />
|
||||
<surface coeffs="-6.0" id="19" name="minimum z" type="z-plane" />
|
||||
<surface coeffs="6.0" id="20" name="maximum z" type="z-plane" />
|
||||
<surface boundary="vacuum" coeffs="-15" id="21" name="minimum x" type="x-plane" />
|
||||
<surface boundary="vacuum" coeffs="15" id="22" name="maximum x" type="x-plane" />
|
||||
<surface boundary="vacuum" coeffs="-15" id="23" name="minimum y" type="y-plane" />
|
||||
<surface boundary="vacuum" coeffs="15" id="24" name="maximum y" type="y-plane" />
|
||||
<surface boundary="vacuum" coeffs="-15" id="25" name="minimum z" type="z-plane" />
|
||||
<surface boundary="vacuum" coeffs="15" id="26" name="maximum z" type="z-plane" />
|
||||
</geometry>
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<materials>
|
||||
<material depletable="true" id="13" name="fuel">
|
||||
<density units="g/cc" value="4.5" />
|
||||
<nuclide ao="1.0" name="U235" />
|
||||
</material>
|
||||
<material id="14" name="zircaloy">
|
||||
<density units="g/cc" value="5.77" />
|
||||
<nuclide ao="0.5145" name="Zr90" />
|
||||
<nuclide ao="0.1122" name="Zr91" />
|
||||
<nuclide ao="0.1715" name="Zr92" />
|
||||
<nuclide ao="0.1738" name="Zr94" />
|
||||
<nuclide ao="0.028" name="Zr96" />
|
||||
</material>
|
||||
<material id="15" name="water">
|
||||
<density units="atom/b-cm" value="0.07416" />
|
||||
<nuclide ao="2.0" name="H1" />
|
||||
<nuclide ao="1.0" name="O16" />
|
||||
</material>
|
||||
</materials>
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<settings>
|
||||
<run_mode>fixed source</run_mode>
|
||||
<particles>100</particles>
|
||||
<batches>10</batches>
|
||||
<source strength="1.0">
|
||||
<space origin="0.0 0.0 0.0" type="spherical">
|
||||
<r parameters="0.0 0.0" type="uniform" />
|
||||
<theta type="discrete">
|
||||
<parameters>0.0 1.0</parameters>
|
||||
</theta>
|
||||
<phi type="discrete">
|
||||
<parameters>0.0 1.0</parameters>
|
||||
</phi>
|
||||
</space>
|
||||
<angle reference_uvw="-1.0 0.0 0.0" type="monodirectional" />
|
||||
<energy type="discrete">
|
||||
<parameters>15000000.0 1.0</parameters>
|
||||
</energy>
|
||||
</source>
|
||||
</settings>
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<tallies>
|
||||
<mesh id="1">
|
||||
<dimension>10 10 10</dimension>
|
||||
<lower_left>-10.0 -10.0 -10.0</lower_left>
|
||||
<upper_right>10.0 10.0 10.0</upper_right>
|
||||
</mesh>
|
||||
<mesh id="2" type="unstructured">
|
||||
<mesh_file>test_mesh_tets_w_holes.h5m</mesh_file>
|
||||
</mesh>
|
||||
<filter id="1" type="mesh">
|
||||
<bins>1</bins>
|
||||
</filter>
|
||||
<filter id="2" type="mesh">
|
||||
<bins>2</bins>
|
||||
</filter>
|
||||
<tally id="1" name="regular mesh tally">
|
||||
<filters>1</filters>
|
||||
<scores>flux</scores>
|
||||
<estimator>collision</estimator>
|
||||
</tally>
|
||||
<tally id="2" name="unstructured mesh tally">
|
||||
<filters>2</filters>
|
||||
<scores>flux</scores>
|
||||
<estimator>collision</estimator>
|
||||
</tally>
|
||||
</tallies>
|
||||
92
tests/regression_tests/unstructured_mesh/inputs_true1.dat
Normal file
92
tests/regression_tests/unstructured_mesh/inputs_true1.dat
Normal file
|
|
@ -0,0 +1,92 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<geometry>
|
||||
<cell id="16" material="16" name="fuel" region="27 -28 29 -30 40 -41" universe="10" />
|
||||
<cell id="17" material="17" name="clad" region="(-27 | 28 | -29 | 30 | -40 | 41) (42 -43 44 -45 46 -47)" universe="10" />
|
||||
<cell id="18" material="18" name="water" region="(-42 | 43 | -44 | 45 | -46 | 47) (48 -49 50 -51 52 -53)" universe="10" />
|
||||
<surface coeffs="-5.0" id="27" name="minimum x" type="x-plane" />
|
||||
<surface coeffs="5.0" id="28" name="maximum x" type="x-plane" />
|
||||
<surface coeffs="-5.0" id="29" name="minimum y" type="y-plane" />
|
||||
<surface coeffs="5.0" id="30" name="maximum y" type="y-plane" />
|
||||
<surface coeffs="-5.0" id="40" name="minimum z" type="z-plane" />
|
||||
<surface coeffs="5.0" id="41" name="maximum z" type="z-plane" />
|
||||
<surface coeffs="-6.0" id="42" name="minimum x" type="x-plane" />
|
||||
<surface coeffs="6.0" id="43" name="maximum x" type="x-plane" />
|
||||
<surface coeffs="-6.0" id="44" name="minimum y" type="y-plane" />
|
||||
<surface coeffs="6.0" id="45" name="maximum y" type="y-plane" />
|
||||
<surface coeffs="-6.0" id="46" name="minimum z" type="z-plane" />
|
||||
<surface coeffs="6.0" id="47" name="maximum z" type="z-plane" />
|
||||
<surface boundary="vacuum" coeffs="-15" id="48" name="minimum x" type="x-plane" />
|
||||
<surface boundary="vacuum" coeffs="15" id="49" name="maximum x" type="x-plane" />
|
||||
<surface boundary="vacuum" coeffs="-15" id="50" name="minimum y" type="y-plane" />
|
||||
<surface boundary="vacuum" coeffs="15" id="51" name="maximum y" type="y-plane" />
|
||||
<surface boundary="vacuum" coeffs="-15" id="52" name="minimum z" type="z-plane" />
|
||||
<surface boundary="vacuum" coeffs="15" id="53" name="maximum z" type="z-plane" />
|
||||
</geometry>
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<materials>
|
||||
<material depletable="true" id="16" name="fuel">
|
||||
<density units="g/cc" value="4.5" />
|
||||
<nuclide ao="1.0" name="U235" />
|
||||
</material>
|
||||
<material id="17" name="zircaloy">
|
||||
<density units="g/cc" value="5.77" />
|
||||
<nuclide ao="0.5145" name="Zr90" />
|
||||
<nuclide ao="0.1122" name="Zr91" />
|
||||
<nuclide ao="0.1715" name="Zr92" />
|
||||
<nuclide ao="0.1738" name="Zr94" />
|
||||
<nuclide ao="0.028" name="Zr96" />
|
||||
</material>
|
||||
<material id="18" name="water">
|
||||
<density units="atom/b-cm" value="0.07416" />
|
||||
<nuclide ao="2.0" name="H1" />
|
||||
<nuclide ao="1.0" name="O16" />
|
||||
</material>
|
||||
</materials>
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<settings>
|
||||
<run_mode>fixed source</run_mode>
|
||||
<particles>100</particles>
|
||||
<batches>10</batches>
|
||||
<source strength="1.0">
|
||||
<space origin="0.0 0.0 0.0" type="spherical">
|
||||
<r parameters="0.0 0.0" type="uniform" />
|
||||
<theta type="discrete">
|
||||
<parameters>0.0 1.0</parameters>
|
||||
</theta>
|
||||
<phi type="discrete">
|
||||
<parameters>0.0 1.0</parameters>
|
||||
</phi>
|
||||
</space>
|
||||
<angle reference_uvw="-1.0 0.0 0.0" type="monodirectional" />
|
||||
<energy type="discrete">
|
||||
<parameters>15000000.0 1.0</parameters>
|
||||
</energy>
|
||||
</source>
|
||||
</settings>
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<tallies>
|
||||
<mesh id="3">
|
||||
<dimension>10 10 10</dimension>
|
||||
<lower_left>-10.0 -10.0 -10.0</lower_left>
|
||||
<upper_right>10.0 10.0 10.0</upper_right>
|
||||
</mesh>
|
||||
<mesh id="4" type="unstructured">
|
||||
<mesh_file>test_mesh_tets.h5m</mesh_file>
|
||||
</mesh>
|
||||
<filter id="3" type="mesh">
|
||||
<bins>3</bins>
|
||||
</filter>
|
||||
<filter id="4" type="mesh">
|
||||
<bins>4</bins>
|
||||
</filter>
|
||||
<tally id="3" name="regular mesh tally">
|
||||
<filters>3</filters>
|
||||
<scores>flux</scores>
|
||||
<estimator>collision</estimator>
|
||||
</tally>
|
||||
<tally id="4" name="unstructured mesh tally">
|
||||
<filters>4</filters>
|
||||
<scores>flux</scores>
|
||||
<estimator>collision</estimator>
|
||||
</tally>
|
||||
</tallies>
|
||||
92
tests/regression_tests/unstructured_mesh/inputs_true2.dat
Normal file
92
tests/regression_tests/unstructured_mesh/inputs_true2.dat
Normal file
|
|
@ -0,0 +1,92 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<geometry>
|
||||
<cell id="19" material="19" name="fuel" region="54 -55 56 -57 58 -59" universe="11" />
|
||||
<cell id="20" material="20" name="clad" region="(-54 | 55 | -56 | 57 | -58 | 59) (60 -61 62 -63 64 -65)" universe="11" />
|
||||
<cell id="33" material="21" name="water" region="(-60 | 61 | -62 | 63 | -64 | 65) (66 -67 68 -69 70 -71)" universe="11" />
|
||||
<surface coeffs="-5.0" id="54" name="minimum x" type="x-plane" />
|
||||
<surface coeffs="5.0" id="55" name="maximum x" type="x-plane" />
|
||||
<surface coeffs="-5.0" id="56" name="minimum y" type="y-plane" />
|
||||
<surface coeffs="5.0" id="57" name="maximum y" type="y-plane" />
|
||||
<surface coeffs="-5.0" id="58" name="minimum z" type="z-plane" />
|
||||
<surface coeffs="5.0" id="59" name="maximum z" type="z-plane" />
|
||||
<surface coeffs="-6.0" id="60" name="minimum x" type="x-plane" />
|
||||
<surface coeffs="6.0" id="61" name="maximum x" type="x-plane" />
|
||||
<surface coeffs="-6.0" id="62" name="minimum y" type="y-plane" />
|
||||
<surface coeffs="6.0" id="63" name="maximum y" type="y-plane" />
|
||||
<surface coeffs="-6.0" id="64" name="minimum z" type="z-plane" />
|
||||
<surface coeffs="6.0" id="65" name="maximum z" type="z-plane" />
|
||||
<surface boundary="vacuum" coeffs="-10" id="66" name="minimum x" type="x-plane" />
|
||||
<surface boundary="vacuum" coeffs="10" id="67" name="maximum x" type="x-plane" />
|
||||
<surface boundary="vacuum" coeffs="-10" id="68" name="minimum y" type="y-plane" />
|
||||
<surface boundary="vacuum" coeffs="10" id="69" name="maximum y" type="y-plane" />
|
||||
<surface boundary="vacuum" coeffs="-10" id="70" name="minimum z" type="z-plane" />
|
||||
<surface boundary="vacuum" coeffs="10" id="71" name="maximum z" type="z-plane" />
|
||||
</geometry>
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<materials>
|
||||
<material depletable="true" id="19" name="fuel">
|
||||
<density units="g/cc" value="4.5" />
|
||||
<nuclide ao="1.0" name="U235" />
|
||||
</material>
|
||||
<material id="20" name="zircaloy">
|
||||
<density units="g/cc" value="5.77" />
|
||||
<nuclide ao="0.5145" name="Zr90" />
|
||||
<nuclide ao="0.1122" name="Zr91" />
|
||||
<nuclide ao="0.1715" name="Zr92" />
|
||||
<nuclide ao="0.1738" name="Zr94" />
|
||||
<nuclide ao="0.028" name="Zr96" />
|
||||
</material>
|
||||
<material id="21" name="water">
|
||||
<density units="atom/b-cm" value="0.07416" />
|
||||
<nuclide ao="2.0" name="H1" />
|
||||
<nuclide ao="1.0" name="O16" />
|
||||
</material>
|
||||
</materials>
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<settings>
|
||||
<run_mode>fixed source</run_mode>
|
||||
<particles>100</particles>
|
||||
<batches>10</batches>
|
||||
<source strength="1.0">
|
||||
<space origin="0.0 0.0 0.0" type="spherical">
|
||||
<r parameters="0.0 0.0" type="uniform" />
|
||||
<theta type="discrete">
|
||||
<parameters>0.0 1.0</parameters>
|
||||
</theta>
|
||||
<phi type="discrete">
|
||||
<parameters>0.0 1.0</parameters>
|
||||
</phi>
|
||||
</space>
|
||||
<angle reference_uvw="-1.0 0.0 0.0" type="monodirectional" />
|
||||
<energy type="discrete">
|
||||
<parameters>15000000.0 1.0</parameters>
|
||||
</energy>
|
||||
</source>
|
||||
</settings>
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<tallies>
|
||||
<mesh id="5">
|
||||
<dimension>10 10 10</dimension>
|
||||
<lower_left>-10.0 -10.0 -10.0</lower_left>
|
||||
<upper_right>10.0 10.0 10.0</upper_right>
|
||||
</mesh>
|
||||
<mesh id="6" type="unstructured">
|
||||
<mesh_file>test_mesh_tets_w_holes.h5m</mesh_file>
|
||||
</mesh>
|
||||
<filter id="5" type="mesh">
|
||||
<bins>5</bins>
|
||||
</filter>
|
||||
<filter id="6" type="mesh">
|
||||
<bins>6</bins>
|
||||
</filter>
|
||||
<tally id="5" name="regular mesh tally">
|
||||
<filters>5</filters>
|
||||
<scores>flux</scores>
|
||||
<estimator>collision</estimator>
|
||||
</tally>
|
||||
<tally id="6" name="unstructured mesh tally">
|
||||
<filters>6</filters>
|
||||
<scores>flux</scores>
|
||||
<estimator>collision</estimator>
|
||||
</tally>
|
||||
</tallies>
|
||||
92
tests/regression_tests/unstructured_mesh/inputs_true3.dat
Normal file
92
tests/regression_tests/unstructured_mesh/inputs_true3.dat
Normal file
|
|
@ -0,0 +1,92 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<geometry>
|
||||
<cell id="34" material="22" name="fuel" region="72 -73 74 -75 76 -77" universe="12" />
|
||||
<cell id="35" material="23" name="clad" region="(-72 | 73 | -74 | 75 | -76 | 77) (78 -79 80 -81 82 -83)" universe="12" />
|
||||
<cell id="36" material="24" name="water" region="(-78 | 79 | -80 | 81 | -82 | 83) (84 -85 86 -87 88 -89)" universe="12" />
|
||||
<surface coeffs="-5.0" id="72" name="minimum x" type="x-plane" />
|
||||
<surface coeffs="5.0" id="73" name="maximum x" type="x-plane" />
|
||||
<surface coeffs="-5.0" id="74" name="minimum y" type="y-plane" />
|
||||
<surface coeffs="5.0" id="75" name="maximum y" type="y-plane" />
|
||||
<surface coeffs="-5.0" id="76" name="minimum z" type="z-plane" />
|
||||
<surface coeffs="5.0" id="77" name="maximum z" type="z-plane" />
|
||||
<surface coeffs="-6.0" id="78" name="minimum x" type="x-plane" />
|
||||
<surface coeffs="6.0" id="79" name="maximum x" type="x-plane" />
|
||||
<surface coeffs="-6.0" id="80" name="minimum y" type="y-plane" />
|
||||
<surface coeffs="6.0" id="81" name="maximum y" type="y-plane" />
|
||||
<surface coeffs="-6.0" id="82" name="minimum z" type="z-plane" />
|
||||
<surface coeffs="6.0" id="83" name="maximum z" type="z-plane" />
|
||||
<surface boundary="vacuum" coeffs="-10" id="84" name="minimum x" type="x-plane" />
|
||||
<surface boundary="vacuum" coeffs="10" id="85" name="maximum x" type="x-plane" />
|
||||
<surface boundary="vacuum" coeffs="-10" id="86" name="minimum y" type="y-plane" />
|
||||
<surface boundary="vacuum" coeffs="10" id="87" name="maximum y" type="y-plane" />
|
||||
<surface boundary="vacuum" coeffs="-10" id="88" name="minimum z" type="z-plane" />
|
||||
<surface boundary="vacuum" coeffs="10" id="89" name="maximum z" type="z-plane" />
|
||||
</geometry>
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<materials>
|
||||
<material depletable="true" id="22" name="fuel">
|
||||
<density units="g/cc" value="4.5" />
|
||||
<nuclide ao="1.0" name="U235" />
|
||||
</material>
|
||||
<material id="23" name="zircaloy">
|
||||
<density units="g/cc" value="5.77" />
|
||||
<nuclide ao="0.5145" name="Zr90" />
|
||||
<nuclide ao="0.1122" name="Zr91" />
|
||||
<nuclide ao="0.1715" name="Zr92" />
|
||||
<nuclide ao="0.1738" name="Zr94" />
|
||||
<nuclide ao="0.028" name="Zr96" />
|
||||
</material>
|
||||
<material id="24" name="water">
|
||||
<density units="atom/b-cm" value="0.07416" />
|
||||
<nuclide ao="2.0" name="H1" />
|
||||
<nuclide ao="1.0" name="O16" />
|
||||
</material>
|
||||
</materials>
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<settings>
|
||||
<run_mode>fixed source</run_mode>
|
||||
<particles>100</particles>
|
||||
<batches>10</batches>
|
||||
<source strength="1.0">
|
||||
<space origin="0.0 0.0 0.0" type="spherical">
|
||||
<r parameters="0.0 0.0" type="uniform" />
|
||||
<theta type="discrete">
|
||||
<parameters>0.0 1.0</parameters>
|
||||
</theta>
|
||||
<phi type="discrete">
|
||||
<parameters>0.0 1.0</parameters>
|
||||
</phi>
|
||||
</space>
|
||||
<angle reference_uvw="-1.0 0.0 0.0" type="monodirectional" />
|
||||
<energy type="discrete">
|
||||
<parameters>15000000.0 1.0</parameters>
|
||||
</energy>
|
||||
</source>
|
||||
</settings>
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<tallies>
|
||||
<mesh id="7">
|
||||
<dimension>10 10 10</dimension>
|
||||
<lower_left>-10.0 -10.0 -10.0</lower_left>
|
||||
<upper_right>10.0 10.0 10.0</upper_right>
|
||||
</mesh>
|
||||
<mesh id="8" type="unstructured">
|
||||
<mesh_file>test_mesh_tets.h5m</mesh_file>
|
||||
</mesh>
|
||||
<filter id="7" type="mesh">
|
||||
<bins>7</bins>
|
||||
</filter>
|
||||
<filter id="8" type="mesh">
|
||||
<bins>8</bins>
|
||||
</filter>
|
||||
<tally id="7" name="regular mesh tally">
|
||||
<filters>7</filters>
|
||||
<scores>flux</scores>
|
||||
<estimator>collision</estimator>
|
||||
</tally>
|
||||
<tally id="8" name="unstructured mesh tally">
|
||||
<filters>8</filters>
|
||||
<scores>flux</scores>
|
||||
<estimator>collision</estimator>
|
||||
</tally>
|
||||
</tallies>
|
||||
92
tests/regression_tests/unstructured_mesh/inputs_true4.dat
Normal file
92
tests/regression_tests/unstructured_mesh/inputs_true4.dat
Normal file
|
|
@ -0,0 +1,92 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<geometry>
|
||||
<cell id="37" material="25" name="fuel" region="90 -91 92 -93 94 -95" universe="13" />
|
||||
<cell id="38" material="26" name="clad" region="(-90 | 91 | -92 | 93 | -94 | 95) (96 -97 98 -99 100 -101)" universe="13" />
|
||||
<cell id="39" material="27" name="water" region="(-96 | 97 | -98 | 99 | -100 | 101) (102 -103 104 -105 106 -107)" universe="13" />
|
||||
<surface coeffs="-5.0" id="90" name="minimum x" type="x-plane" />
|
||||
<surface coeffs="5.0" id="91" name="maximum x" type="x-plane" />
|
||||
<surface coeffs="-5.0" id="92" name="minimum y" type="y-plane" />
|
||||
<surface coeffs="5.0" id="93" name="maximum y" type="y-plane" />
|
||||
<surface coeffs="-5.0" id="94" name="minimum z" type="z-plane" />
|
||||
<surface coeffs="5.0" id="95" name="maximum z" type="z-plane" />
|
||||
<surface coeffs="-6.0" id="96" name="minimum x" type="x-plane" />
|
||||
<surface coeffs="6.0" id="97" name="maximum x" type="x-plane" />
|
||||
<surface coeffs="-6.0" id="98" name="minimum y" type="y-plane" />
|
||||
<surface coeffs="6.0" id="99" name="maximum y" type="y-plane" />
|
||||
<surface coeffs="-6.0" id="100" name="minimum z" type="z-plane" />
|
||||
<surface coeffs="6.0" id="101" name="maximum z" type="z-plane" />
|
||||
<surface boundary="vacuum" coeffs="-15" id="102" name="minimum x" type="x-plane" />
|
||||
<surface boundary="vacuum" coeffs="15" id="103" name="maximum x" type="x-plane" />
|
||||
<surface boundary="vacuum" coeffs="-15" id="104" name="minimum y" type="y-plane" />
|
||||
<surface boundary="vacuum" coeffs="15" id="105" name="maximum y" type="y-plane" />
|
||||
<surface boundary="vacuum" coeffs="-15" id="106" name="minimum z" type="z-plane" />
|
||||
<surface boundary="vacuum" coeffs="15" id="107" name="maximum z" type="z-plane" />
|
||||
</geometry>
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<materials>
|
||||
<material depletable="true" id="25" name="fuel">
|
||||
<density units="g/cc" value="4.5" />
|
||||
<nuclide ao="1.0" name="U235" />
|
||||
</material>
|
||||
<material id="26" name="zircaloy">
|
||||
<density units="g/cc" value="5.77" />
|
||||
<nuclide ao="0.5145" name="Zr90" />
|
||||
<nuclide ao="0.1122" name="Zr91" />
|
||||
<nuclide ao="0.1715" name="Zr92" />
|
||||
<nuclide ao="0.1738" name="Zr94" />
|
||||
<nuclide ao="0.028" name="Zr96" />
|
||||
</material>
|
||||
<material id="27" name="water">
|
||||
<density units="atom/b-cm" value="0.07416" />
|
||||
<nuclide ao="2.0" name="H1" />
|
||||
<nuclide ao="1.0" name="O16" />
|
||||
</material>
|
||||
</materials>
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<settings>
|
||||
<run_mode>fixed source</run_mode>
|
||||
<particles>100</particles>
|
||||
<batches>10</batches>
|
||||
<source strength="1.0">
|
||||
<space origin="0.0 0.0 0.0" type="spherical">
|
||||
<r parameters="0.0 0.0" type="uniform" />
|
||||
<theta type="discrete">
|
||||
<parameters>0.0 1.0</parameters>
|
||||
</theta>
|
||||
<phi type="discrete">
|
||||
<parameters>0.0 1.0</parameters>
|
||||
</phi>
|
||||
</space>
|
||||
<angle reference_uvw="-1.0 0.0 0.0" type="monodirectional" />
|
||||
<energy type="discrete">
|
||||
<parameters>15000000.0 1.0</parameters>
|
||||
</energy>
|
||||
</source>
|
||||
</settings>
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<tallies>
|
||||
<mesh id="9">
|
||||
<dimension>10 10 10</dimension>
|
||||
<lower_left>-10.0 -10.0 -10.0</lower_left>
|
||||
<upper_right>10.0 10.0 10.0</upper_right>
|
||||
</mesh>
|
||||
<mesh id="10" type="unstructured">
|
||||
<mesh_file>test_mesh_tets_w_holes.h5m</mesh_file>
|
||||
</mesh>
|
||||
<filter id="9" type="mesh">
|
||||
<bins>9</bins>
|
||||
</filter>
|
||||
<filter id="10" type="mesh">
|
||||
<bins>10</bins>
|
||||
</filter>
|
||||
<tally id="9" name="regular mesh tally">
|
||||
<filters>9</filters>
|
||||
<scores>flux</scores>
|
||||
<estimator>tracklength</estimator>
|
||||
</tally>
|
||||
<tally id="10" name="unstructured mesh tally">
|
||||
<filters>10</filters>
|
||||
<scores>flux</scores>
|
||||
<estimator>tracklength</estimator>
|
||||
</tally>
|
||||
</tallies>
|
||||
92
tests/regression_tests/unstructured_mesh/inputs_true5.dat
Normal file
92
tests/regression_tests/unstructured_mesh/inputs_true5.dat
Normal file
|
|
@ -0,0 +1,92 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<geometry>
|
||||
<cell id="40" material="28" name="fuel" region="108 -109 110 -111 112 -113" universe="14" />
|
||||
<cell id="41" material="29" name="clad" region="(-108 | 109 | -110 | 111 | -112 | 113) (114 -115 116 -117 118 -119)" universe="14" />
|
||||
<cell id="42" material="30" name="water" region="(-114 | 115 | -116 | 117 | -118 | 119) (120 -121 122 -123 124 -125)" universe="14" />
|
||||
<surface coeffs="-5.0" id="108" name="minimum x" type="x-plane" />
|
||||
<surface coeffs="5.0" id="109" name="maximum x" type="x-plane" />
|
||||
<surface coeffs="-5.0" id="110" name="minimum y" type="y-plane" />
|
||||
<surface coeffs="5.0" id="111" name="maximum y" type="y-plane" />
|
||||
<surface coeffs="-5.0" id="112" name="minimum z" type="z-plane" />
|
||||
<surface coeffs="5.0" id="113" name="maximum z" type="z-plane" />
|
||||
<surface coeffs="-6.0" id="114" name="minimum x" type="x-plane" />
|
||||
<surface coeffs="6.0" id="115" name="maximum x" type="x-plane" />
|
||||
<surface coeffs="-6.0" id="116" name="minimum y" type="y-plane" />
|
||||
<surface coeffs="6.0" id="117" name="maximum y" type="y-plane" />
|
||||
<surface coeffs="-6.0" id="118" name="minimum z" type="z-plane" />
|
||||
<surface coeffs="6.0" id="119" name="maximum z" type="z-plane" />
|
||||
<surface boundary="vacuum" coeffs="-15" id="120" name="minimum x" type="x-plane" />
|
||||
<surface boundary="vacuum" coeffs="15" id="121" name="maximum x" type="x-plane" />
|
||||
<surface boundary="vacuum" coeffs="-15" id="122" name="minimum y" type="y-plane" />
|
||||
<surface boundary="vacuum" coeffs="15" id="123" name="maximum y" type="y-plane" />
|
||||
<surface boundary="vacuum" coeffs="-15" id="124" name="minimum z" type="z-plane" />
|
||||
<surface boundary="vacuum" coeffs="15" id="125" name="maximum z" type="z-plane" />
|
||||
</geometry>
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<materials>
|
||||
<material depletable="true" id="28" name="fuel">
|
||||
<density units="g/cc" value="4.5" />
|
||||
<nuclide ao="1.0" name="U235" />
|
||||
</material>
|
||||
<material id="29" name="zircaloy">
|
||||
<density units="g/cc" value="5.77" />
|
||||
<nuclide ao="0.5145" name="Zr90" />
|
||||
<nuclide ao="0.1122" name="Zr91" />
|
||||
<nuclide ao="0.1715" name="Zr92" />
|
||||
<nuclide ao="0.1738" name="Zr94" />
|
||||
<nuclide ao="0.028" name="Zr96" />
|
||||
</material>
|
||||
<material id="30" name="water">
|
||||
<density units="atom/b-cm" value="0.07416" />
|
||||
<nuclide ao="2.0" name="H1" />
|
||||
<nuclide ao="1.0" name="O16" />
|
||||
</material>
|
||||
</materials>
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<settings>
|
||||
<run_mode>fixed source</run_mode>
|
||||
<particles>100</particles>
|
||||
<batches>10</batches>
|
||||
<source strength="1.0">
|
||||
<space origin="0.0 0.0 0.0" type="spherical">
|
||||
<r parameters="0.0 0.0" type="uniform" />
|
||||
<theta type="discrete">
|
||||
<parameters>0.0 1.0</parameters>
|
||||
</theta>
|
||||
<phi type="discrete">
|
||||
<parameters>0.0 1.0</parameters>
|
||||
</phi>
|
||||
</space>
|
||||
<angle reference_uvw="-1.0 0.0 0.0" type="monodirectional" />
|
||||
<energy type="discrete">
|
||||
<parameters>15000000.0 1.0</parameters>
|
||||
</energy>
|
||||
</source>
|
||||
</settings>
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<tallies>
|
||||
<mesh id="11">
|
||||
<dimension>10 10 10</dimension>
|
||||
<lower_left>-10.0 -10.0 -10.0</lower_left>
|
||||
<upper_right>10.0 10.0 10.0</upper_right>
|
||||
</mesh>
|
||||
<mesh id="12" type="unstructured">
|
||||
<mesh_file>test_mesh_tets.h5m</mesh_file>
|
||||
</mesh>
|
||||
<filter id="11" type="mesh">
|
||||
<bins>11</bins>
|
||||
</filter>
|
||||
<filter id="12" type="mesh">
|
||||
<bins>12</bins>
|
||||
</filter>
|
||||
<tally id="11" name="regular mesh tally">
|
||||
<filters>11</filters>
|
||||
<scores>flux</scores>
|
||||
<estimator>tracklength</estimator>
|
||||
</tally>
|
||||
<tally id="12" name="unstructured mesh tally">
|
||||
<filters>12</filters>
|
||||
<scores>flux</scores>
|
||||
<estimator>tracklength</estimator>
|
||||
</tally>
|
||||
</tallies>
|
||||
92
tests/regression_tests/unstructured_mesh/inputs_true6.dat
Normal file
92
tests/regression_tests/unstructured_mesh/inputs_true6.dat
Normal file
|
|
@ -0,0 +1,92 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<geometry>
|
||||
<cell id="43" material="31" name="fuel" region="126 -127 128 -129 130 -131" universe="15" />
|
||||
<cell id="44" material="32" name="clad" region="(-126 | 127 | -128 | 129 | -130 | 131) (132 -133 134 -135 136 -137)" universe="15" />
|
||||
<cell id="45" material="33" name="water" region="(-132 | 133 | -134 | 135 | -136 | 137) (138 -139 140 -141 142 -143)" universe="15" />
|
||||
<surface coeffs="-5.0" id="126" name="minimum x" type="x-plane" />
|
||||
<surface coeffs="5.0" id="127" name="maximum x" type="x-plane" />
|
||||
<surface coeffs="-5.0" id="128" name="minimum y" type="y-plane" />
|
||||
<surface coeffs="5.0" id="129" name="maximum y" type="y-plane" />
|
||||
<surface coeffs="-5.0" id="130" name="minimum z" type="z-plane" />
|
||||
<surface coeffs="5.0" id="131" name="maximum z" type="z-plane" />
|
||||
<surface coeffs="-6.0" id="132" name="minimum x" type="x-plane" />
|
||||
<surface coeffs="6.0" id="133" name="maximum x" type="x-plane" />
|
||||
<surface coeffs="-6.0" id="134" name="minimum y" type="y-plane" />
|
||||
<surface coeffs="6.0" id="135" name="maximum y" type="y-plane" />
|
||||
<surface coeffs="-6.0" id="136" name="minimum z" type="z-plane" />
|
||||
<surface coeffs="6.0" id="137" name="maximum z" type="z-plane" />
|
||||
<surface boundary="vacuum" coeffs="-10" id="138" name="minimum x" type="x-plane" />
|
||||
<surface boundary="vacuum" coeffs="10" id="139" name="maximum x" type="x-plane" />
|
||||
<surface boundary="vacuum" coeffs="-10" id="140" name="minimum y" type="y-plane" />
|
||||
<surface boundary="vacuum" coeffs="10" id="141" name="maximum y" type="y-plane" />
|
||||
<surface boundary="vacuum" coeffs="-10" id="142" name="minimum z" type="z-plane" />
|
||||
<surface boundary="vacuum" coeffs="10" id="143" name="maximum z" type="z-plane" />
|
||||
</geometry>
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<materials>
|
||||
<material depletable="true" id="31" name="fuel">
|
||||
<density units="g/cc" value="4.5" />
|
||||
<nuclide ao="1.0" name="U235" />
|
||||
</material>
|
||||
<material id="32" name="zircaloy">
|
||||
<density units="g/cc" value="5.77" />
|
||||
<nuclide ao="0.5145" name="Zr90" />
|
||||
<nuclide ao="0.1122" name="Zr91" />
|
||||
<nuclide ao="0.1715" name="Zr92" />
|
||||
<nuclide ao="0.1738" name="Zr94" />
|
||||
<nuclide ao="0.028" name="Zr96" />
|
||||
</material>
|
||||
<material id="33" name="water">
|
||||
<density units="atom/b-cm" value="0.07416" />
|
||||
<nuclide ao="2.0" name="H1" />
|
||||
<nuclide ao="1.0" name="O16" />
|
||||
</material>
|
||||
</materials>
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<settings>
|
||||
<run_mode>fixed source</run_mode>
|
||||
<particles>100</particles>
|
||||
<batches>10</batches>
|
||||
<source strength="1.0">
|
||||
<space origin="0.0 0.0 0.0" type="spherical">
|
||||
<r parameters="0.0 0.0" type="uniform" />
|
||||
<theta type="discrete">
|
||||
<parameters>0.0 1.0</parameters>
|
||||
</theta>
|
||||
<phi type="discrete">
|
||||
<parameters>0.0 1.0</parameters>
|
||||
</phi>
|
||||
</space>
|
||||
<angle reference_uvw="-1.0 0.0 0.0" type="monodirectional" />
|
||||
<energy type="discrete">
|
||||
<parameters>15000000.0 1.0</parameters>
|
||||
</energy>
|
||||
</source>
|
||||
</settings>
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<tallies>
|
||||
<mesh id="13">
|
||||
<dimension>10 10 10</dimension>
|
||||
<lower_left>-10.0 -10.0 -10.0</lower_left>
|
||||
<upper_right>10.0 10.0 10.0</upper_right>
|
||||
</mesh>
|
||||
<mesh id="14" type="unstructured">
|
||||
<mesh_file>test_mesh_tets_w_holes.h5m</mesh_file>
|
||||
</mesh>
|
||||
<filter id="13" type="mesh">
|
||||
<bins>13</bins>
|
||||
</filter>
|
||||
<filter id="14" type="mesh">
|
||||
<bins>14</bins>
|
||||
</filter>
|
||||
<tally id="13" name="regular mesh tally">
|
||||
<filters>13</filters>
|
||||
<scores>flux</scores>
|
||||
<estimator>tracklength</estimator>
|
||||
</tally>
|
||||
<tally id="14" name="unstructured mesh tally">
|
||||
<filters>14</filters>
|
||||
<scores>flux</scores>
|
||||
<estimator>tracklength</estimator>
|
||||
</tally>
|
||||
</tallies>
|
||||
92
tests/regression_tests/unstructured_mesh/inputs_true7.dat
Normal file
92
tests/regression_tests/unstructured_mesh/inputs_true7.dat
Normal file
|
|
@ -0,0 +1,92 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<geometry>
|
||||
<cell id="46" material="34" name="fuel" region="144 -145 146 -147 148 -149" universe="16" />
|
||||
<cell id="47" material="35" name="clad" region="(-144 | 145 | -146 | 147 | -148 | 149) (150 -151 152 -153 154 -155)" universe="16" />
|
||||
<cell id="48" material="36" name="water" region="(-150 | 151 | -152 | 153 | -154 | 155) (156 -157 158 -159 160 -161)" universe="16" />
|
||||
<surface coeffs="-5.0" id="144" name="minimum x" type="x-plane" />
|
||||
<surface coeffs="5.0" id="145" name="maximum x" type="x-plane" />
|
||||
<surface coeffs="-5.0" id="146" name="minimum y" type="y-plane" />
|
||||
<surface coeffs="5.0" id="147" name="maximum y" type="y-plane" />
|
||||
<surface coeffs="-5.0" id="148" name="minimum z" type="z-plane" />
|
||||
<surface coeffs="5.0" id="149" name="maximum z" type="z-plane" />
|
||||
<surface coeffs="-6.0" id="150" name="minimum x" type="x-plane" />
|
||||
<surface coeffs="6.0" id="151" name="maximum x" type="x-plane" />
|
||||
<surface coeffs="-6.0" id="152" name="minimum y" type="y-plane" />
|
||||
<surface coeffs="6.0" id="153" name="maximum y" type="y-plane" />
|
||||
<surface coeffs="-6.0" id="154" name="minimum z" type="z-plane" />
|
||||
<surface coeffs="6.0" id="155" name="maximum z" type="z-plane" />
|
||||
<surface boundary="vacuum" coeffs="-10" id="156" name="minimum x" type="x-plane" />
|
||||
<surface boundary="vacuum" coeffs="10" id="157" name="maximum x" type="x-plane" />
|
||||
<surface boundary="vacuum" coeffs="-10" id="158" name="minimum y" type="y-plane" />
|
||||
<surface boundary="vacuum" coeffs="10" id="159" name="maximum y" type="y-plane" />
|
||||
<surface boundary="vacuum" coeffs="-10" id="160" name="minimum z" type="z-plane" />
|
||||
<surface boundary="vacuum" coeffs="10" id="161" name="maximum z" type="z-plane" />
|
||||
</geometry>
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<materials>
|
||||
<material depletable="true" id="34" name="fuel">
|
||||
<density units="g/cc" value="4.5" />
|
||||
<nuclide ao="1.0" name="U235" />
|
||||
</material>
|
||||
<material id="35" name="zircaloy">
|
||||
<density units="g/cc" value="5.77" />
|
||||
<nuclide ao="0.5145" name="Zr90" />
|
||||
<nuclide ao="0.1122" name="Zr91" />
|
||||
<nuclide ao="0.1715" name="Zr92" />
|
||||
<nuclide ao="0.1738" name="Zr94" />
|
||||
<nuclide ao="0.028" name="Zr96" />
|
||||
</material>
|
||||
<material id="36" name="water">
|
||||
<density units="atom/b-cm" value="0.07416" />
|
||||
<nuclide ao="2.0" name="H1" />
|
||||
<nuclide ao="1.0" name="O16" />
|
||||
</material>
|
||||
</materials>
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<settings>
|
||||
<run_mode>fixed source</run_mode>
|
||||
<particles>100</particles>
|
||||
<batches>10</batches>
|
||||
<source strength="1.0">
|
||||
<space origin="0.0 0.0 0.0" type="spherical">
|
||||
<r parameters="0.0 0.0" type="uniform" />
|
||||
<theta type="discrete">
|
||||
<parameters>0.0 1.0</parameters>
|
||||
</theta>
|
||||
<phi type="discrete">
|
||||
<parameters>0.0 1.0</parameters>
|
||||
</phi>
|
||||
</space>
|
||||
<angle reference_uvw="-1.0 0.0 0.0" type="monodirectional" />
|
||||
<energy type="discrete">
|
||||
<parameters>15000000.0 1.0</parameters>
|
||||
</energy>
|
||||
</source>
|
||||
</settings>
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<tallies>
|
||||
<mesh id="15">
|
||||
<dimension>10 10 10</dimension>
|
||||
<lower_left>-10.0 -10.0 -10.0</lower_left>
|
||||
<upper_right>10.0 10.0 10.0</upper_right>
|
||||
</mesh>
|
||||
<mesh id="16" type="unstructured">
|
||||
<mesh_file>test_mesh_tets.h5m</mesh_file>
|
||||
</mesh>
|
||||
<filter id="15" type="mesh">
|
||||
<bins>15</bins>
|
||||
</filter>
|
||||
<filter id="16" type="mesh">
|
||||
<bins>16</bins>
|
||||
</filter>
|
||||
<tally id="15" name="regular mesh tally">
|
||||
<filters>15</filters>
|
||||
<scores>flux</scores>
|
||||
<estimator>tracklength</estimator>
|
||||
</tally>
|
||||
<tally id="16" name="unstructured mesh tally">
|
||||
<filters>16</filters>
|
||||
<scores>flux</scores>
|
||||
<estimator>tracklength</estimator>
|
||||
</tally>
|
||||
</tallies>
|
||||
26002
tests/regression_tests/unstructured_mesh/results_true.dat
Normal file
26002
tests/regression_tests/unstructured_mesh/results_true.dat
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -20,11 +20,12 @@ class UnstructuredMeshTest(PyAPITestHarness):
|
|||
|
||||
def __init__(self,
|
||||
statepoint_name,
|
||||
inputs_true,
|
||||
estimator='collision',
|
||||
external_geom=False,
|
||||
holes=None):
|
||||
|
||||
super().__init__(statepoint_name)
|
||||
super().__init__(statepoint_name, inputs_true=inputs_true)
|
||||
|
||||
self.estimator = estimator # tally estimator type
|
||||
self.external_geom = external_geom # geometry size matches mesh
|
||||
|
|
@ -188,9 +189,6 @@ class UnstructuredMeshTest(PyAPITestHarness):
|
|||
|
||||
settings.export_to_xml()
|
||||
|
||||
def _compare_inputs(self):
|
||||
pass
|
||||
|
||||
def _compare_results(self):
|
||||
with openmc.StatePoint(self._sp_name) as sp:
|
||||
# loop over the tallies and get data
|
||||
|
|
@ -238,10 +236,12 @@ param_values = (['collision', 'tracklength'], # estimators
|
|||
[True, False], # geometry outside of the mesh
|
||||
[(333, 90, 77), None]) # location of holes in the mesh
|
||||
test_cases = []
|
||||
for estimator, ext_geom, holes in product(*param_values):
|
||||
for i, (estimator, ext_geom, holes) in enumerate(product(*param_values)):
|
||||
test_cases.append({'estimator' : estimator,
|
||||
'external_geom' : ext_geom,
|
||||
'holes' : holes})
|
||||
'holes' : holes,
|
||||
'inputs_true' : 'inputs_true{}.dat'.format(i)})
|
||||
inputs = ['inputs_true{}.dat'.format(i) for i, opts in enumerate(test_cases)]
|
||||
|
||||
|
||||
@pytest.mark.parametrize("opts", test_cases)
|
||||
|
|
|
|||
|
|
@ -276,7 +276,7 @@ class ParticleRestartTestHarness(TestHarness):
|
|||
|
||||
|
||||
class PyAPITestHarness(TestHarness):
|
||||
def __init__(self, statepoint_name, model=None):
|
||||
def __init__(self, statepoint_name, model=None, inputs_true=None):
|
||||
super().__init__(statepoint_name)
|
||||
if model is None:
|
||||
self._model = pwr_core()
|
||||
|
|
@ -284,6 +284,7 @@ class PyAPITestHarness(TestHarness):
|
|||
self._model = model
|
||||
self._model.plots = []
|
||||
|
||||
self.inputs_true = "inputs_true.dat" if not inputs_true else inputs_true
|
||||
|
||||
def main(self):
|
||||
"""Accept commandline arguments and either run or update tests."""
|
||||
|
|
@ -342,15 +343,15 @@ class PyAPITestHarness(TestHarness):
|
|||
|
||||
def _overwrite_inputs(self):
|
||||
"""Overwrite inputs_true.dat with inputs_test.dat"""
|
||||
shutil.copyfile('inputs_test.dat', 'inputs_true.dat')
|
||||
shutil.copyfile('inputs_test.dat', self.inputs_true)
|
||||
|
||||
def _compare_inputs(self):
|
||||
"""Make sure the current inputs agree with the _true standard."""
|
||||
compare = filecmp.cmp('inputs_test.dat', 'inputs_true.dat')
|
||||
compare = filecmp.cmp('inputs_test.dat', self.inputs_true)
|
||||
if not compare:
|
||||
expected = open('inputs_true.dat', 'r').readlines()
|
||||
expected = open(self.inputs_true, 'r').readlines()
|
||||
actual = open('inputs_test.dat', 'r').readlines()
|
||||
diff = unified_diff(expected, actual, 'inputs_true.dat',
|
||||
diff = unified_diff(expected, actual, self.inputs_true,
|
||||
'inputs_test.dat')
|
||||
print('Input differences:')
|
||||
print(''.join(colorize(diff)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue