Adding an initial test for mesh filter translations.

This commit is contained in:
Patrick Shriwise 2021-02-16 10:19:27 -06:00
parent a0142f183b
commit e091a17247
15 changed files with 791 additions and 0 deletions

View file

@ -0,0 +1,60 @@
<?xml version='1.0' encoding='utf-8'?>
<geometry>
<cell id="13" material="13" region="61 -62 63 -64 70 -69" universe="7" />
<cell id="14" material="14" region="~(61 -62 63 -64) (65 -66 67 -68) 70 -69" universe="7" />
<surface coeffs="-5.0" id="61" name="minimum x" type="x-plane" />
<surface coeffs="5.0" id="62" name="maximum x" type="x-plane" />
<surface coeffs="-5.0" id="63" name="minimum y" type="y-plane" />
<surface coeffs="5.0" id="64" name="maximum y" type="y-plane" />
<surface boundary="reflective" coeffs="-10.0" id="65" name="minimum x" type="x-plane" />
<surface boundary="reflective" coeffs="10.0" id="66" name="maximum x" type="x-plane" />
<surface boundary="reflective" coeffs="-10.0" id="67" name="minimum y" type="y-plane" />
<surface boundary="reflective" coeffs="10.0" id="68" name="maximum y" type="y-plane" />
<surface boundary="vacuum" coeffs="10.0" id="69" type="z-plane" />
<surface boundary="vacuum" coeffs="-10.0" id="70" type="z-plane" />
</geometry>
<?xml version='1.0' encoding='utf-8'?>
<materials>
<material depletable="true" id="13">
<density units="g/cm3" value="10.0" />
<nuclide ao="1.0" name="U235" />
</material>
<material id="14">
<density units="g/cm3" value="1.0" />
<nuclide ao="1.0" name="Zr90" />
</material>
</materials>
<?xml version='1.0' encoding='utf-8'?>
<settings>
<run_mode>eigenvalue</run_mode>
<particles>1000</particles>
<batches>5</batches>
<inactive>0</inactive>
</settings>
<?xml version='1.0' encoding='utf-8'?>
<tallies>
<mesh id="13">
<dimension>9 9 9</dimension>
<lower_left>1 -4 -9</lower_left>
<upper_right>19 14 9</upper_right>
</mesh>
<mesh id="14" type="rectilinear">
<x_grid>1.0 2.125 3.25 4.375 5.5 6.625 7.75 8.875 10.0 11.125 12.25 13.375 14.5 15.625 16.75 17.875 19.0</x_grid>
<y_grid>-4.0 -2.875 -1.75 -0.625 0.5 1.625 2.75 3.875 5.0 6.125 7.25 8.375 9.5 10.625 11.75 12.875 14.0</y_grid>
<z_grid>-9.0 -7.875 -6.75 -5.625 -4.5 -3.375 -2.25 -1.125 0.0 1.125 2.25 3.375 4.5 5.625 6.75 7.875 9.0</z_grid>
</mesh>
<filter id="13" translation="-10 -5 0" type="mesh">
<bins>13</bins>
</filter>
<filter id="14" translation="-10 -5 0" type="mesh">
<bins>14</bins>
</filter>
<tally id="13">
<filters>13</filters>
<scores>total</scores>
</tally>
<tally id="14">
<filters>14</filters>
<scores>total</scores>
</tally>
</tallies>

View file

@ -0,0 +1,60 @@
<?xml version='1.0' encoding='utf-8'?>
<geometry>
<cell id="15" material="15" region="71 -72 73 -74 80 -79" universe="8" />
<cell id="16" material="16" region="~(71 -72 73 -74) (75 -76 77 -78) 80 -79" universe="8" />
<surface coeffs="-5.0" id="71" name="minimum x" type="x-plane" />
<surface coeffs="5.0" id="72" name="maximum x" type="x-plane" />
<surface coeffs="-5.0" id="73" name="minimum y" type="y-plane" />
<surface coeffs="5.0" id="74" name="maximum y" type="y-plane" />
<surface boundary="reflective" coeffs="-10.0" id="75" name="minimum x" type="x-plane" />
<surface boundary="reflective" coeffs="10.0" id="76" name="maximum x" type="x-plane" />
<surface boundary="reflective" coeffs="-10.0" id="77" name="minimum y" type="y-plane" />
<surface boundary="reflective" coeffs="10.0" id="78" name="maximum y" type="y-plane" />
<surface boundary="vacuum" coeffs="10.0" id="79" type="z-plane" />
<surface boundary="vacuum" coeffs="-10.0" id="80" type="z-plane" />
</geometry>
<?xml version='1.0' encoding='utf-8'?>
<materials>
<material depletable="true" id="15">
<density units="g/cm3" value="10.0" />
<nuclide ao="1.0" name="U235" />
</material>
<material id="16">
<density units="g/cm3" value="1.0" />
<nuclide ao="1.0" name="Zr90" />
</material>
</materials>
<?xml version='1.0' encoding='utf-8'?>
<settings>
<run_mode>eigenvalue</run_mode>
<particles>1000</particles>
<batches>5</batches>
<inactive>0</inactive>
</settings>
<?xml version='1.0' encoding='utf-8'?>
<tallies>
<mesh id="15">
<dimension>9 9 9</dimension>
<lower_left>1 -9 -4</lower_left>
<upper_right>19 9 14</upper_right>
</mesh>
<mesh id="16" type="rectilinear">
<x_grid>1.0 2.125 3.25 4.375 5.5 6.625 7.75 8.875 10.0 11.125 12.25 13.375 14.5 15.625 16.75 17.875 19.0</x_grid>
<y_grid>-9.0 -7.875 -6.75 -5.625 -4.5 -3.375 -2.25 -1.125 0.0 1.125 2.25 3.375 4.5 5.625 6.75 7.875 9.0</y_grid>
<z_grid>-4.0 -2.875 -1.75 -0.625 0.5 1.625 2.75 3.875 5.0 6.125 7.25 8.375 9.5 10.625 11.75 12.875 14.0</z_grid>
</mesh>
<filter id="15" translation="-10 0 -5" type="mesh">
<bins>15</bins>
</filter>
<filter id="16" translation="-10 0 -5" type="mesh">
<bins>16</bins>
</filter>
<tally id="15">
<filters>15</filters>
<scores>total</scores>
</tally>
<tally id="16">
<filters>16</filters>
<scores>total</scores>
</tally>
</tallies>

View file

@ -0,0 +1,60 @@
<?xml version='1.0' encoding='utf-8'?>
<geometry>
<cell id="17" material="17" region="81 -82 83 -84 90 -89" universe="9" />
<cell id="18" material="18" region="~(81 -82 83 -84) (85 -86 87 -88) 90 -89" universe="9" />
<surface coeffs="-5.0" id="81" name="minimum x" type="x-plane" />
<surface coeffs="5.0" id="82" name="maximum x" type="x-plane" />
<surface coeffs="-5.0" id="83" name="minimum y" type="y-plane" />
<surface coeffs="5.0" id="84" name="maximum y" type="y-plane" />
<surface boundary="reflective" coeffs="-10.0" id="85" name="minimum x" type="x-plane" />
<surface boundary="reflective" coeffs="10.0" id="86" name="maximum x" type="x-plane" />
<surface boundary="reflective" coeffs="-10.0" id="87" name="minimum y" type="y-plane" />
<surface boundary="reflective" coeffs="10.0" id="88" name="maximum y" type="y-plane" />
<surface boundary="vacuum" coeffs="10.0" id="89" type="z-plane" />
<surface boundary="vacuum" coeffs="-10.0" id="90" type="z-plane" />
</geometry>
<?xml version='1.0' encoding='utf-8'?>
<materials>
<material depletable="true" id="17">
<density units="g/cm3" value="10.0" />
<nuclide ao="1.0" name="U235" />
</material>
<material id="18">
<density units="g/cm3" value="1.0" />
<nuclide ao="1.0" name="Zr90" />
</material>
</materials>
<?xml version='1.0' encoding='utf-8'?>
<settings>
<run_mode>eigenvalue</run_mode>
<particles>1000</particles>
<batches>5</batches>
<inactive>0</inactive>
</settings>
<?xml version='1.0' encoding='utf-8'?>
<tallies>
<mesh id="17">
<dimension>9 9 9</dimension>
<lower_left>-4 1 -9</lower_left>
<upper_right>14 19 9</upper_right>
</mesh>
<mesh id="18" type="rectilinear">
<x_grid>-4.0 -2.875 -1.75 -0.625 0.5 1.625 2.75 3.875 5.0 6.125 7.25 8.375 9.5 10.625 11.75 12.875 14.0</x_grid>
<y_grid>1.0 2.125 3.25 4.375 5.5 6.625 7.75 8.875 10.0 11.125 12.25 13.375 14.5 15.625 16.75 17.875 19.0</y_grid>
<z_grid>-9.0 -7.875 -6.75 -5.625 -4.5 -3.375 -2.25 -1.125 0.0 1.125 2.25 3.375 4.5 5.625 6.75 7.875 9.0</z_grid>
</mesh>
<filter id="17" translation="-5 -10 0" type="mesh">
<bins>17</bins>
</filter>
<filter id="18" translation="-5 -10 0" type="mesh">
<bins>18</bins>
</filter>
<tally id="17">
<filters>17</filters>
<scores>total</scores>
</tally>
<tally id="18">
<filters>18</filters>
<scores>total</scores>
</tally>
</tallies>

View file

@ -0,0 +1,60 @@
<?xml version='1.0' encoding='utf-8'?>
<geometry>
<cell id="19" material="19" region="91 -92 93 -94 100 -99" universe="10" />
<cell id="20" material="20" region="~(91 -92 93 -94) (95 -96 97 -98) 100 -99" universe="10" />
<surface coeffs="-5.0" id="91" name="minimum x" type="x-plane" />
<surface coeffs="5.0" id="92" name="maximum x" type="x-plane" />
<surface coeffs="-5.0" id="93" name="minimum y" type="y-plane" />
<surface coeffs="5.0" id="94" name="maximum y" type="y-plane" />
<surface boundary="reflective" coeffs="-10.0" id="95" name="minimum x" type="x-plane" />
<surface boundary="reflective" coeffs="10.0" id="96" name="maximum x" type="x-plane" />
<surface boundary="reflective" coeffs="-10.0" id="97" name="minimum y" type="y-plane" />
<surface boundary="reflective" coeffs="10.0" id="98" name="maximum y" type="y-plane" />
<surface boundary="vacuum" coeffs="10.0" id="99" type="z-plane" />
<surface boundary="vacuum" coeffs="-10.0" id="100" type="z-plane" />
</geometry>
<?xml version='1.0' encoding='utf-8'?>
<materials>
<material depletable="true" id="19">
<density units="g/cm3" value="10.0" />
<nuclide ao="1.0" name="U235" />
</material>
<material id="20">
<density units="g/cm3" value="1.0" />
<nuclide ao="1.0" name="Zr90" />
</material>
</materials>
<?xml version='1.0' encoding='utf-8'?>
<settings>
<run_mode>eigenvalue</run_mode>
<particles>1000</particles>
<batches>5</batches>
<inactive>0</inactive>
</settings>
<?xml version='1.0' encoding='utf-8'?>
<tallies>
<mesh id="19">
<dimension>9 9 9</dimension>
<lower_left>-4 -9 1</lower_left>
<upper_right>14 9 19</upper_right>
</mesh>
<mesh id="20" type="rectilinear">
<x_grid>-4.0 -2.875 -1.75 -0.625 0.5 1.625 2.75 3.875 5.0 6.125 7.25 8.375 9.5 10.625 11.75 12.875 14.0</x_grid>
<y_grid>-9.0 -7.875 -6.75 -5.625 -4.5 -3.375 -2.25 -1.125 0.0 1.125 2.25 3.375 4.5 5.625 6.75 7.875 9.0</y_grid>
<z_grid>1.0 2.125 3.25 4.375 5.5 6.625 7.75 8.875 10.0 11.125 12.25 13.375 14.5 15.625 16.75 17.875 19.0</z_grid>
</mesh>
<filter id="19" translation="-5 0 -10" type="mesh">
<bins>19</bins>
</filter>
<filter id="20" translation="-5 0 -10" type="mesh">
<bins>20</bins>
</filter>
<tally id="19">
<filters>19</filters>
<scores>total</scores>
</tally>
<tally id="20">
<filters>20</filters>
<scores>total</scores>
</tally>
</tallies>

View file

@ -0,0 +1,60 @@
<?xml version='1.0' encoding='utf-8'?>
<geometry>
<cell id="21" material="21" region="101 -102 103 -104 110 -109" universe="11" />
<cell id="22" material="22" region="~(101 -102 103 -104) (105 -106 107 -108) 110 -109" universe="11" />
<surface coeffs="-5.0" id="101" name="minimum x" type="x-plane" />
<surface coeffs="5.0" id="102" name="maximum x" type="x-plane" />
<surface coeffs="-5.0" id="103" name="minimum y" type="y-plane" />
<surface coeffs="5.0" id="104" name="maximum y" type="y-plane" />
<surface boundary="reflective" coeffs="-10.0" id="105" name="minimum x" type="x-plane" />
<surface boundary="reflective" coeffs="10.0" id="106" name="maximum x" type="x-plane" />
<surface boundary="reflective" coeffs="-10.0" id="107" name="minimum y" type="y-plane" />
<surface boundary="reflective" coeffs="10.0" id="108" name="maximum y" type="y-plane" />
<surface boundary="vacuum" coeffs="10.0" id="109" type="z-plane" />
<surface boundary="vacuum" coeffs="-10.0" id="110" type="z-plane" />
</geometry>
<?xml version='1.0' encoding='utf-8'?>
<materials>
<material depletable="true" id="21">
<density units="g/cm3" value="10.0" />
<nuclide ao="1.0" name="U235" />
</material>
<material id="22">
<density units="g/cm3" value="1.0" />
<nuclide ao="1.0" name="Zr90" />
</material>
</materials>
<?xml version='1.0' encoding='utf-8'?>
<settings>
<run_mode>eigenvalue</run_mode>
<particles>1000</particles>
<batches>5</batches>
<inactive>0</inactive>
</settings>
<?xml version='1.0' encoding='utf-8'?>
<tallies>
<mesh id="21">
<dimension>9 9 9</dimension>
<lower_left>-9 1 -4</lower_left>
<upper_right>9 19 14</upper_right>
</mesh>
<mesh id="22" type="rectilinear">
<x_grid>-9.0 -7.875 -6.75 -5.625 -4.5 -3.375 -2.25 -1.125 0.0 1.125 2.25 3.375 4.5 5.625 6.75 7.875 9.0</x_grid>
<y_grid>1.0 2.125 3.25 4.375 5.5 6.625 7.75 8.875 10.0 11.125 12.25 13.375 14.5 15.625 16.75 17.875 19.0</y_grid>
<z_grid>-4.0 -2.875 -1.75 -0.625 0.5 1.625 2.75 3.875 5.0 6.125 7.25 8.375 9.5 10.625 11.75 12.875 14.0</z_grid>
</mesh>
<filter id="21" translation="0 -10 -5" type="mesh">
<bins>21</bins>
</filter>
<filter id="22" translation="0 -10 -5" type="mesh">
<bins>22</bins>
</filter>
<tally id="21">
<filters>21</filters>
<scores>total</scores>
</tally>
<tally id="22">
<filters>22</filters>
<scores>total</scores>
</tally>
</tallies>

View file

@ -0,0 +1,60 @@
<?xml version='1.0' encoding='utf-8'?>
<geometry>
<cell id="23" material="23" region="111 -112 113 -114 120 -119" universe="12" />
<cell id="24" material="24" region="~(111 -112 113 -114) (115 -116 117 -118) 120 -119" universe="12" />
<surface coeffs="-5.0" id="111" name="minimum x" type="x-plane" />
<surface coeffs="5.0" id="112" name="maximum x" type="x-plane" />
<surface coeffs="-5.0" id="113" name="minimum y" type="y-plane" />
<surface coeffs="5.0" id="114" name="maximum y" type="y-plane" />
<surface boundary="reflective" coeffs="-10.0" id="115" name="minimum x" type="x-plane" />
<surface boundary="reflective" coeffs="10.0" id="116" name="maximum x" type="x-plane" />
<surface boundary="reflective" coeffs="-10.0" id="117" name="minimum y" type="y-plane" />
<surface boundary="reflective" coeffs="10.0" id="118" name="maximum y" type="y-plane" />
<surface boundary="vacuum" coeffs="10.0" id="119" type="z-plane" />
<surface boundary="vacuum" coeffs="-10.0" id="120" type="z-plane" />
</geometry>
<?xml version='1.0' encoding='utf-8'?>
<materials>
<material depletable="true" id="23">
<density units="g/cm3" value="10.0" />
<nuclide ao="1.0" name="U235" />
</material>
<material id="24">
<density units="g/cm3" value="1.0" />
<nuclide ao="1.0" name="Zr90" />
</material>
</materials>
<?xml version='1.0' encoding='utf-8'?>
<settings>
<run_mode>eigenvalue</run_mode>
<particles>1000</particles>
<batches>5</batches>
<inactive>0</inactive>
</settings>
<?xml version='1.0' encoding='utf-8'?>
<tallies>
<mesh id="23">
<dimension>9 9 9</dimension>
<lower_left>-9 -4 1</lower_left>
<upper_right>9 14 19</upper_right>
</mesh>
<mesh id="24" type="rectilinear">
<x_grid>-9.0 -7.875 -6.75 -5.625 -4.5 -3.375 -2.25 -1.125 0.0 1.125 2.25 3.375 4.5 5.625 6.75 7.875 9.0</x_grid>
<y_grid>-4.0 -2.875 -1.75 -0.625 0.5 1.625 2.75 3.875 5.0 6.125 7.25 8.375 9.5 10.625 11.75 12.875 14.0</y_grid>
<z_grid>1.0 2.125 3.25 4.375 5.5 6.625 7.75 8.875 10.0 11.125 12.25 13.375 14.5 15.625 16.75 17.875 19.0</z_grid>
</mesh>
<filter id="23" translation="0 -5 -10" type="mesh">
<bins>23</bins>
</filter>
<filter id="24" translation="0 -5 -10" type="mesh">
<bins>24</bins>
</filter>
<tally id="23">
<filters>23</filters>
<scores>total</scores>
</tally>
<tally id="24">
<filters>24</filters>
<scores>total</scores>
</tally>
</tallies>

View file

@ -0,0 +1,60 @@
<?xml version='1.0' encoding='utf-8'?>
<geometry>
<cell id="9" material="9" region="41 -42 43 -44 50 -49" universe="5" />
<cell id="10" material="10" region="~(41 -42 43 -44) (45 -46 47 -48) 50 -49" universe="5" />
<surface coeffs="-5.0" id="41" name="minimum x" type="x-plane" />
<surface coeffs="5.0" id="42" name="maximum x" type="x-plane" />
<surface coeffs="-5.0" id="43" name="minimum y" type="y-plane" />
<surface coeffs="5.0" id="44" name="maximum y" type="y-plane" />
<surface boundary="reflective" coeffs="-10.0" id="45" name="minimum x" type="x-plane" />
<surface boundary="reflective" coeffs="10.0" id="46" name="maximum x" type="x-plane" />
<surface boundary="reflective" coeffs="-10.0" id="47" name="minimum y" type="y-plane" />
<surface boundary="reflective" coeffs="10.0" id="48" name="maximum y" type="y-plane" />
<surface boundary="vacuum" coeffs="10.0" id="49" type="z-plane" />
<surface boundary="vacuum" coeffs="-10.0" id="50" type="z-plane" />
</geometry>
<?xml version='1.0' encoding='utf-8'?>
<materials>
<material depletable="true" id="9">
<density units="g/cm3" value="10.0" />
<nuclide ao="1.0" name="U235" />
</material>
<material id="10">
<density units="g/cm3" value="1.0" />
<nuclide ao="1.0" name="Zr90" />
</material>
</materials>
<?xml version='1.0' encoding='utf-8'?>
<settings>
<run_mode>eigenvalue</run_mode>
<particles>1000</particles>
<batches>5</batches>
<inactive>0</inactive>
</settings>
<?xml version='1.0' encoding='utf-8'?>
<tallies>
<mesh id="9">
<dimension>9 9 9</dimension>
<lower_left>-9 -19 -14</lower_left>
<upper_right>9 -1 4</upper_right>
</mesh>
<mesh id="10" type="rectilinear">
<x_grid>-9.0 -7.875 -6.75 -5.625 -4.5 -3.375 -2.25 -1.125 0.0 1.125 2.25 3.375 4.5 5.625 6.75 7.875 9.0</x_grid>
<y_grid>-19.0 -17.875 -16.75 -15.625 -14.5 -13.375 -12.25 -11.125 -10.0 -8.875 -7.75 -6.625 -5.5 -4.375 -3.25 -2.125 -1.0</y_grid>
<z_grid>-14.0 -12.875 -11.75 -10.625 -9.5 -8.375 -7.25 -6.125 -5.0 -3.875 -2.75 -1.625 -0.5 0.625 1.75 2.875 4.0</z_grid>
</mesh>
<filter id="9" translation="0 10 5" type="mesh">
<bins>9</bins>
</filter>
<filter id="10" translation="0 10 5" type="mesh">
<bins>10</bins>
</filter>
<tally id="9">
<filters>9</filters>
<scores>total</scores>
</tally>
<tally id="10">
<filters>10</filters>
<scores>total</scores>
</tally>
</tallies>

View file

@ -0,0 +1,60 @@
<?xml version='1.0' encoding='utf-8'?>
<geometry>
<cell id="11" material="11" region="51 -52 53 -54 60 -59" universe="6" />
<cell id="12" material="12" region="~(51 -52 53 -54) (55 -56 57 -58) 60 -59" universe="6" />
<surface coeffs="-5.0" id="51" name="minimum x" type="x-plane" />
<surface coeffs="5.0" id="52" name="maximum x" type="x-plane" />
<surface coeffs="-5.0" id="53" name="minimum y" type="y-plane" />
<surface coeffs="5.0" id="54" name="maximum y" type="y-plane" />
<surface boundary="reflective" coeffs="-10.0" id="55" name="minimum x" type="x-plane" />
<surface boundary="reflective" coeffs="10.0" id="56" name="maximum x" type="x-plane" />
<surface boundary="reflective" coeffs="-10.0" id="57" name="minimum y" type="y-plane" />
<surface boundary="reflective" coeffs="10.0" id="58" name="maximum y" type="y-plane" />
<surface boundary="vacuum" coeffs="10.0" id="59" type="z-plane" />
<surface boundary="vacuum" coeffs="-10.0" id="60" type="z-plane" />
</geometry>
<?xml version='1.0' encoding='utf-8'?>
<materials>
<material depletable="true" id="11">
<density units="g/cm3" value="10.0" />
<nuclide ao="1.0" name="U235" />
</material>
<material id="12">
<density units="g/cm3" value="1.0" />
<nuclide ao="1.0" name="Zr90" />
</material>
</materials>
<?xml version='1.0' encoding='utf-8'?>
<settings>
<run_mode>eigenvalue</run_mode>
<particles>1000</particles>
<batches>5</batches>
<inactive>0</inactive>
</settings>
<?xml version='1.0' encoding='utf-8'?>
<tallies>
<mesh id="11">
<dimension>9 9 9</dimension>
<lower_left>-9 -14 -19</lower_left>
<upper_right>9 4 -1</upper_right>
</mesh>
<mesh id="12" type="rectilinear">
<x_grid>-9.0 -7.875 -6.75 -5.625 -4.5 -3.375 -2.25 -1.125 0.0 1.125 2.25 3.375 4.5 5.625 6.75 7.875 9.0</x_grid>
<y_grid>-14.0 -12.875 -11.75 -10.625 -9.5 -8.375 -7.25 -6.125 -5.0 -3.875 -2.75 -1.625 -0.5 0.625 1.75 2.875 4.0</y_grid>
<z_grid>-19.0 -17.875 -16.75 -15.625 -14.5 -13.375 -12.25 -11.125 -10.0 -8.875 -7.75 -6.625 -5.5 -4.375 -3.25 -2.125 -1.0</z_grid>
</mesh>
<filter id="11" translation="0 5 10" type="mesh">
<bins>11</bins>
</filter>
<filter id="12" translation="0 5 10" type="mesh">
<bins>12</bins>
</filter>
<tally id="11">
<filters>11</filters>
<scores>total</scores>
</tally>
<tally id="12">
<filters>12</filters>
<scores>total</scores>
</tally>
</tallies>

View file

@ -0,0 +1,60 @@
<?xml version='1.0' encoding='utf-8'?>
<geometry>
<cell id="3" material="3" region="11 -12 13 -14 20 -19" universe="2" />
<cell id="4" material="4" region="~(11 -12 13 -14) (15 -16 17 -18) 20 -19" universe="2" />
<surface coeffs="-5.0" id="11" name="minimum x" type="x-plane" />
<surface coeffs="5.0" id="12" name="maximum x" type="x-plane" />
<surface coeffs="-5.0" id="13" name="minimum y" type="y-plane" />
<surface coeffs="5.0" id="14" name="maximum y" type="y-plane" />
<surface boundary="reflective" coeffs="-10.0" id="15" name="minimum x" type="x-plane" />
<surface boundary="reflective" coeffs="10.0" id="16" name="maximum x" type="x-plane" />
<surface boundary="reflective" coeffs="-10.0" id="17" name="minimum y" type="y-plane" />
<surface boundary="reflective" coeffs="10.0" id="18" name="maximum y" type="y-plane" />
<surface boundary="vacuum" coeffs="10.0" id="19" type="z-plane" />
<surface boundary="vacuum" coeffs="-10.0" id="20" type="z-plane" />
</geometry>
<?xml version='1.0' encoding='utf-8'?>
<materials>
<material depletable="true" id="3">
<density units="g/cm3" value="10.0" />
<nuclide ao="1.0" name="U235" />
</material>
<material id="4">
<density units="g/cm3" value="1.0" />
<nuclide ao="1.0" name="Zr90" />
</material>
</materials>
<?xml version='1.0' encoding='utf-8'?>
<settings>
<run_mode>eigenvalue</run_mode>
<particles>1000</particles>
<batches>5</batches>
<inactive>0</inactive>
</settings>
<?xml version='1.0' encoding='utf-8'?>
<tallies>
<mesh id="3">
<dimension>9 9 9</dimension>
<lower_left>-19 -9 -14</lower_left>
<upper_right>-1 9 4</upper_right>
</mesh>
<mesh id="4" type="rectilinear">
<x_grid>-19.0 -17.875 -16.75 -15.625 -14.5 -13.375 -12.25 -11.125 -10.0 -8.875 -7.75 -6.625 -5.5 -4.375 -3.25 -2.125 -1.0</x_grid>
<y_grid>-9.0 -7.875 -6.75 -5.625 -4.5 -3.375 -2.25 -1.125 0.0 1.125 2.25 3.375 4.5 5.625 6.75 7.875 9.0</y_grid>
<z_grid>-14.0 -12.875 -11.75 -10.625 -9.5 -8.375 -7.25 -6.125 -5.0 -3.875 -2.75 -1.625 -0.5 0.625 1.75 2.875 4.0</z_grid>
</mesh>
<filter id="3" translation="10 0 5" type="mesh">
<bins>3</bins>
</filter>
<filter id="4" translation="10 0 5" type="mesh">
<bins>4</bins>
</filter>
<tally id="3">
<filters>3</filters>
<scores>total</scores>
</tally>
<tally id="4">
<filters>4</filters>
<scores>total</scores>
</tally>
</tallies>

View file

@ -0,0 +1,60 @@
<?xml version='1.0' encoding='utf-8'?>
<geometry>
<cell id="1" material="1" region="1 -2 3 -4 10 -9" universe="1" />
<cell id="2" material="2" region="~(1 -2 3 -4) (5 -6 7 -8) 10 -9" universe="1" />
<surface coeffs="-5.0" id="1" name="minimum x" type="x-plane" />
<surface coeffs="5.0" id="2" name="maximum x" type="x-plane" />
<surface coeffs="-5.0" id="3" name="minimum y" type="y-plane" />
<surface coeffs="5.0" id="4" name="maximum y" type="y-plane" />
<surface boundary="reflective" coeffs="-10.0" id="5" name="minimum x" type="x-plane" />
<surface boundary="reflective" coeffs="10.0" id="6" name="maximum x" type="x-plane" />
<surface boundary="reflective" coeffs="-10.0" id="7" name="minimum y" type="y-plane" />
<surface boundary="reflective" coeffs="10.0" id="8" name="maximum y" type="y-plane" />
<surface boundary="vacuum" coeffs="10.0" id="9" type="z-plane" />
<surface boundary="vacuum" coeffs="-10.0" id="10" type="z-plane" />
</geometry>
<?xml version='1.0' encoding='utf-8'?>
<materials>
<material depletable="true" id="1">
<density units="g/cm3" value="10.0" />
<nuclide ao="1.0" name="U235" />
</material>
<material id="2">
<density units="g/cm3" value="1.0" />
<nuclide ao="1.0" name="Zr90" />
</material>
</materials>
<?xml version='1.0' encoding='utf-8'?>
<settings>
<run_mode>eigenvalue</run_mode>
<particles>1000</particles>
<batches>5</batches>
<inactive>0</inactive>
</settings>
<?xml version='1.0' encoding='utf-8'?>
<tallies>
<mesh id="1">
<dimension>9 9 9</dimension>
<lower_left>-19 -14 -9</lower_left>
<upper_right>-1 4 9</upper_right>
</mesh>
<mesh id="2" type="rectilinear">
<x_grid>-19.0 -17.875 -16.75 -15.625 -14.5 -13.375 -12.25 -11.125 -10.0 -8.875 -7.75 -6.625 -5.5 -4.375 -3.25 -2.125 -1.0</x_grid>
<y_grid>-14.0 -12.875 -11.75 -10.625 -9.5 -8.375 -7.25 -6.125 -5.0 -3.875 -2.75 -1.625 -0.5 0.625 1.75 2.875 4.0</y_grid>
<z_grid>-9.0 -7.875 -6.75 -5.625 -4.5 -3.375 -2.25 -1.125 0.0 1.125 2.25 3.375 4.5 5.625 6.75 7.875 9.0</z_grid>
</mesh>
<filter id="1" translation="10 5 0" type="mesh">
<bins>1</bins>
</filter>
<filter id="2" translation="10 5 0" type="mesh">
<bins>2</bins>
</filter>
<tally id="1">
<filters>1</filters>
<scores>total</scores>
</tally>
<tally id="2">
<filters>2</filters>
<scores>total</scores>
</tally>
</tallies>

View file

@ -0,0 +1,60 @@
<?xml version='1.0' encoding='utf-8'?>
<geometry>
<cell id="7" material="7" region="31 -32 33 -34 40 -39" universe="4" />
<cell id="8" material="8" region="~(31 -32 33 -34) (35 -36 37 -38) 40 -39" universe="4" />
<surface coeffs="-5.0" id="31" name="minimum x" type="x-plane" />
<surface coeffs="5.0" id="32" name="maximum x" type="x-plane" />
<surface coeffs="-5.0" id="33" name="minimum y" type="y-plane" />
<surface coeffs="5.0" id="34" name="maximum y" type="y-plane" />
<surface boundary="reflective" coeffs="-10.0" id="35" name="minimum x" type="x-plane" />
<surface boundary="reflective" coeffs="10.0" id="36" name="maximum x" type="x-plane" />
<surface boundary="reflective" coeffs="-10.0" id="37" name="minimum y" type="y-plane" />
<surface boundary="reflective" coeffs="10.0" id="38" name="maximum y" type="y-plane" />
<surface boundary="vacuum" coeffs="10.0" id="39" type="z-plane" />
<surface boundary="vacuum" coeffs="-10.0" id="40" type="z-plane" />
</geometry>
<?xml version='1.0' encoding='utf-8'?>
<materials>
<material depletable="true" id="7">
<density units="g/cm3" value="10.0" />
<nuclide ao="1.0" name="U235" />
</material>
<material id="8">
<density units="g/cm3" value="1.0" />
<nuclide ao="1.0" name="Zr90" />
</material>
</materials>
<?xml version='1.0' encoding='utf-8'?>
<settings>
<run_mode>eigenvalue</run_mode>
<particles>1000</particles>
<batches>5</batches>
<inactive>0</inactive>
</settings>
<?xml version='1.0' encoding='utf-8'?>
<tallies>
<mesh id="7">
<dimension>9 9 9</dimension>
<lower_left>-14 -9 -19</lower_left>
<upper_right>4 9 -1</upper_right>
</mesh>
<mesh id="8" type="rectilinear">
<x_grid>-14.0 -12.875 -11.75 -10.625 -9.5 -8.375 -7.25 -6.125 -5.0 -3.875 -2.75 -1.625 -0.5 0.625 1.75 2.875 4.0</x_grid>
<y_grid>-9.0 -7.875 -6.75 -5.625 -4.5 -3.375 -2.25 -1.125 0.0 1.125 2.25 3.375 4.5 5.625 6.75 7.875 9.0</y_grid>
<z_grid>-19.0 -17.875 -16.75 -15.625 -14.5 -13.375 -12.25 -11.125 -10.0 -8.875 -7.75 -6.625 -5.5 -4.375 -3.25 -2.125 -1.0</z_grid>
</mesh>
<filter id="7" translation="5 0 10" type="mesh">
<bins>7</bins>
</filter>
<filter id="8" translation="5 0 10" type="mesh">
<bins>8</bins>
</filter>
<tally id="7">
<filters>7</filters>
<scores>total</scores>
</tally>
<tally id="8">
<filters>8</filters>
<scores>total</scores>
</tally>
</tallies>

View file

@ -0,0 +1,60 @@
<?xml version='1.0' encoding='utf-8'?>
<geometry>
<cell id="5" material="5" region="21 -22 23 -24 30 -29" universe="3" />
<cell id="6" material="6" region="~(21 -22 23 -24) (25 -26 27 -28) 30 -29" universe="3" />
<surface coeffs="-5.0" id="21" name="minimum x" type="x-plane" />
<surface coeffs="5.0" id="22" name="maximum x" type="x-plane" />
<surface coeffs="-5.0" id="23" name="minimum y" type="y-plane" />
<surface coeffs="5.0" id="24" name="maximum y" type="y-plane" />
<surface boundary="reflective" coeffs="-10.0" id="25" name="minimum x" type="x-plane" />
<surface boundary="reflective" coeffs="10.0" id="26" name="maximum x" type="x-plane" />
<surface boundary="reflective" coeffs="-10.0" id="27" name="minimum y" type="y-plane" />
<surface boundary="reflective" coeffs="10.0" id="28" name="maximum y" type="y-plane" />
<surface boundary="vacuum" coeffs="10.0" id="29" type="z-plane" />
<surface boundary="vacuum" coeffs="-10.0" id="30" type="z-plane" />
</geometry>
<?xml version='1.0' encoding='utf-8'?>
<materials>
<material depletable="true" id="5">
<density units="g/cm3" value="10.0" />
<nuclide ao="1.0" name="U235" />
</material>
<material id="6">
<density units="g/cm3" value="1.0" />
<nuclide ao="1.0" name="Zr90" />
</material>
</materials>
<?xml version='1.0' encoding='utf-8'?>
<settings>
<run_mode>eigenvalue</run_mode>
<particles>1000</particles>
<batches>5</batches>
<inactive>0</inactive>
</settings>
<?xml version='1.0' encoding='utf-8'?>
<tallies>
<mesh id="5">
<dimension>9 9 9</dimension>
<lower_left>-14 -19 -9</lower_left>
<upper_right>4 -1 9</upper_right>
</mesh>
<mesh id="6" type="rectilinear">
<x_grid>-14.0 -12.875 -11.75 -10.625 -9.5 -8.375 -7.25 -6.125 -5.0 -3.875 -2.75 -1.625 -0.5 0.625 1.75 2.875 4.0</x_grid>
<y_grid>-19.0 -17.875 -16.75 -15.625 -14.5 -13.375 -12.25 -11.125 -10.0 -8.875 -7.75 -6.625 -5.5 -4.375 -3.25 -2.125 -1.0</y_grid>
<z_grid>-9.0 -7.875 -6.75 -5.625 -4.5 -3.375 -2.25 -1.125 0.0 1.125 2.25 3.375 4.5 5.625 6.75 7.875 9.0</z_grid>
</mesh>
<filter id="5" translation="5 10 0" type="mesh">
<bins>5</bins>
</filter>
<filter id="6" translation="5 10 0" type="mesh">
<bins>6</bins>
</filter>
<tally id="5">
<filters>5</filters>
<scores>total</scores>
</tally>
<tally id="6">
<filters>6</filters>
<scores>total</scores>
</tally>
</tallies>

View file

@ -0,0 +1 @@
3e9446ca032f10b5d2c65529a55264eb7f995f9890180547a838d8cc130c7258e094742b7b20578e95667c63b5634eadab5b53273c9cf297e58536abb411b985

View file

@ -0,0 +1,70 @@
from itertools import permutations
import numpy as np
import openmc
import pytest
from tests.testing_harness import HashedPyAPITestHarness
translations = list(permutations((10, 5, 0))) + list(permutations((-10, -5, 0)))
@pytest.fixture(params=translations)
def model(request):
translation = np.array(request.param)
model = openmc.model.Model()
fuel = openmc.Material()
fuel.set_density('g/cm3', 10.0)
fuel.add_nuclide('U235', 1.0)
zr = openmc.Material()
zr.set_density('g/cm3', 1.0)
zr.add_nuclide('Zr90', 1.0)
model.materials.extend([fuel, zr])
box1 = openmc.model.rectangular_prism(10.0, 10.0)
box2 = openmc.model.rectangular_prism(20.0, 20.0, boundary_type='reflective')
top = openmc.ZPlane(z0=10.0, boundary_type='vacuum')
bottom = openmc.ZPlane(z0=-10.0, boundary_type='vacuum')
cell1 = openmc.Cell(fill=fuel, region=box1 & +bottom & -top)
cell2 = openmc.Cell(fill=zr, region=~box1 & box2 & +bottom & -top)
model.geometry = openmc.Geometry([cell1, cell2])
model.settings.batches = 5
model.settings.inactive = 0
model.settings.particles = 1000
llc = np.array([-9, -9, -9]) - translation
urc = np.array([9, 9, 9]) - translation
reg_mesh = openmc.RegularMesh()
reg_mesh.dimension = [9, 9, 9]
reg_mesh.lower_left = llc
reg_mesh.upper_right = urc
recti_mesh = openmc.RectilinearMesh()
recti_mesh.x_grid = np.linspace(llc[0], urc[0], 17)
recti_mesh.y_grid = np.linspace(llc[1], urc[1], 17)
recti_mesh.z_grid = np.linspace(llc[2], urc[2], 17)
# Create filters
filters = [openmc.MeshFilter(reg_mesh, translation=translation),
openmc.MeshFilter(recti_mesh, translation=translation)]
# Create tallies
for f in filters:
tally = openmc.Tally()
tally.filters = [f]
tally.scores = ['total']
model.tallies.append(tally)
input_name = 'input_dat_' + '_'.join(map(str, translation)) + '.dat'
return model, input_name
def test_filter_mesh_translations(model):
harness = HashedPyAPITestHarness('statepoint.5.h5', *model)
harness.main()