mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
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:
parent
3e79b55ae4
commit
23f8cfb4f0
2 changed files with 6 additions and 2 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue