Add time distribution to one test

This doesn not change the results, only the settings.xml. A better test
hast to be made
This commit is contained in:
Olaf Schumann 2021-12-29 13:06:52 +01:00
parent 3e79b55ae4
commit 23f8cfb4f0
2 changed files with 6 additions and 2 deletions

View file

@ -121,6 +121,7 @@
</dist>
</pair>
</energy>
<time parameters="2 5" type="uniform" />
</source>
<source strength="0.1">
<space origin="1.0 1.0 0.0" type="cylindrical">
@ -144,5 +145,6 @@
</dist>
</pair>
</energy>
<time parameters="2 5" type="uniform" />
</source>
</settings>

View file

@ -65,14 +65,16 @@ class SourceTestHarness(PyAPITestHarness):
energy3 = openmc.stats.Tabular(E, p, interpolation='histogram')
energy4 = openmc.stats.Mixture([1, 2, 3], [energy1, energy2, energy3])
time1 = openmc.stats.Uniform(2, 5)
source1 = openmc.Source(spatial1, angle1, energy1, strength=0.3)
source2 = openmc.Source(spatial2, angle2, energy2, strength=0.1)
source3 = openmc.Source(spatial3, angle3, energy3, strength=0.1)
source4 = openmc.Source(spatial4, angle3, energy3, strength=0.1)
source5 = openmc.Source(spatial5, angle3, energy3, strength=0.1)
source6 = openmc.Source(spatial5, angle3, energy4, strength=0.1)
source7 = openmc.Source(spatial6, angle3, energy4, strength=0.1)
source8 = openmc.Source(spatial7, angle3, energy4, strength=0.1)
source7 = openmc.Source(spatial6, angle3, energy4, time1, strength=0.1)
source8 = openmc.Source(spatial7, angle3, energy4, time1, strength=0.1)
settings = openmc.Settings()
settings.batches = 10