mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Replacing old slab_mg example model with new one that uses a library that follows the library standard. Also had to update tests accordingly.
This commit is contained in:
parent
c7fa8c05ce
commit
c1652bbdec
25 changed files with 359 additions and 675 deletions
|
|
@ -1,97 +0,0 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<geometry>
|
||||
<cell id="1" material="1" region="1 -2 3 -4 5 -6" universe="1" />
|
||||
<cell id="2" material="2" region="1 -2 3 -4 6 -7" universe="1" />
|
||||
<cell id="3" material="3" region="1 -2 3 -4 7 -8" universe="1" />
|
||||
<cell id="4" material="4" region="1 -2 3 -4 8 -9" universe="1" />
|
||||
<cell id="5" material="5" region="1 -2 3 -4 9 -10" universe="1" />
|
||||
<cell id="6" material="6" region="1 -2 3 -4 10 -11" universe="1" />
|
||||
<cell id="7" material="7" region="1 -2 3 -4 11 -12" universe="1" />
|
||||
<cell id="8" material="8" region="1 -2 3 -4 12 -13" universe="1" />
|
||||
<cell id="9" material="9" region="1 -2 3 -4 13 -14" universe="1" />
|
||||
<cell id="10" material="10" region="1 -2 3 -4 14 -15" universe="1" />
|
||||
<cell id="11" material="11" region="1 -2 3 -4 15 -16" universe="1" />
|
||||
<cell id="12" material="12" region="1 -2 3 -4 16 -17" universe="1" />
|
||||
<surface boundary="reflective" coeffs="0.0" id="1" type="x-plane" />
|
||||
<surface boundary="reflective" coeffs="10.0" id="2" type="x-plane" />
|
||||
<surface boundary="reflective" coeffs="0.0" id="3" type="y-plane" />
|
||||
<surface boundary="reflective" coeffs="10.0" id="4" type="y-plane" />
|
||||
<surface boundary="reflective" coeffs="0.0" id="5" type="z-plane" />
|
||||
<surface coeffs="0.4167" id="6" type="z-plane" />
|
||||
<surface coeffs="0.8334" id="7" type="z-plane" />
|
||||
<surface coeffs="1.2501" id="8" type="z-plane" />
|
||||
<surface coeffs="1.6668" id="9" type="z-plane" />
|
||||
<surface coeffs="2.0835" id="10" type="z-plane" />
|
||||
<surface coeffs="2.5002" id="11" type="z-plane" />
|
||||
<surface coeffs="2.9169" id="12" type="z-plane" />
|
||||
<surface coeffs="3.3336" id="13" type="z-plane" />
|
||||
<surface coeffs="3.7503" id="14" type="z-plane" />
|
||||
<surface coeffs="4.167" id="15" type="z-plane" />
|
||||
<surface coeffs="4.5837" id="16" type="z-plane" />
|
||||
<surface boundary="reflective" coeffs="5.0" id="17" type="z-plane" />
|
||||
</geometry>
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<materials>
|
||||
<cross_sections>../../1d_mgxs.h5</cross_sections>
|
||||
<material id="1" name="1">
|
||||
<density units="macro" value="1.0" />
|
||||
<macroscopic name="uo2_ang" />
|
||||
</material>
|
||||
<material id="2" name="2">
|
||||
<density units="macro" value="1.0" />
|
||||
<macroscopic name="uo2_ang_mu" />
|
||||
</material>
|
||||
<material id="3" name="3">
|
||||
<density units="macro" value="1.0" />
|
||||
<macroscopic name="uo2_iso" />
|
||||
</material>
|
||||
<material id="4" name="4">
|
||||
<density units="macro" value="1.0" />
|
||||
<macroscopic name="uo2_iso_mu" />
|
||||
</material>
|
||||
<material id="5" name="5">
|
||||
<density units="macro" value="1.0" />
|
||||
<macroscopic name="clad_ang" />
|
||||
</material>
|
||||
<material id="6" name="6">
|
||||
<density units="macro" value="1.0" />
|
||||
<macroscopic name="clad_ang_mu" />
|
||||
</material>
|
||||
<material id="7" name="7">
|
||||
<density units="macro" value="1.0" />
|
||||
<macroscopic name="clad_iso" />
|
||||
</material>
|
||||
<material id="8" name="8">
|
||||
<density units="macro" value="1.0" />
|
||||
<macroscopic name="clad_iso_mu" />
|
||||
</material>
|
||||
<material id="9" name="9">
|
||||
<density units="macro" value="1.0" />
|
||||
<macroscopic name="lwtr_ang" />
|
||||
</material>
|
||||
<material id="10" name="10">
|
||||
<density units="macro" value="1.0" />
|
||||
<macroscopic name="lwtr_ang_mu" />
|
||||
</material>
|
||||
<material id="11" name="11">
|
||||
<density units="macro" value="1.0" />
|
||||
<macroscopic name="lwtr_iso" />
|
||||
</material>
|
||||
<material id="12" name="12">
|
||||
<density units="macro" value="1.0" />
|
||||
<macroscopic name="lwtr_iso_mu" />
|
||||
</material>
|
||||
</materials>
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<settings>
|
||||
<run_mode>eigenvalue</run_mode>
|
||||
<particles>100</particles>
|
||||
<batches>10</batches>
|
||||
<inactive>5</inactive>
|
||||
<source strength="1.0">
|
||||
<space type="box">
|
||||
<parameters>0.0 0.0 0.0 10.0 10.0 5.0</parameters>
|
||||
</space>
|
||||
</source>
|
||||
<energy_mode>multi-group</energy_mode>
|
||||
</settings>
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
k-combined:
|
||||
1.073147E+00 1.602384E-02
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
from openmc.examples import slab_mg
|
||||
|
||||
from tests.testing_harness import PyAPITestHarness
|
||||
|
||||
|
||||
def test_mg_basic():
|
||||
model = slab_mg()
|
||||
harness = PyAPITestHarness('statepoint.10.h5', model)
|
||||
harness.main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue