mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Merge pull request #612 from wbinventor/iso-in-lab-test
Added Iso-in-Lab Test
This commit is contained in:
commit
cd7c497186
3 changed files with 29 additions and 0 deletions
1
tests/test_iso_in_lab/inputs_true.dat
Normal file
1
tests/test_iso_in_lab/inputs_true.dat
Normal file
|
|
@ -0,0 +1 @@
|
|||
e0409e0660d58857a6a96ff5cb539ccc41c82f0e443e8081ee00bbee7b6c81b0ad43c870950ae37d4a18c329067b09479a27aa171c3a3f5771f53b384496fe61
|
||||
2
tests/test_iso_in_lab/results_true.dat
Normal file
2
tests/test_iso_in_lab/results_true.dat
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
k-combined:
|
||||
9.638451E-01 1.237712E-02
|
||||
26
tests/test_iso_in_lab/test_iso_in_lab.py
Normal file
26
tests/test_iso_in_lab/test_iso_in_lab.py
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import os
|
||||
import sys
|
||||
import glob
|
||||
import hashlib
|
||||
sys.path.insert(0, os.pardir)
|
||||
from testing_harness import PyAPITestHarness
|
||||
import openmc
|
||||
import openmc.mgxs
|
||||
|
||||
|
||||
class IsoInLabTestHarness(PyAPITestHarness):
|
||||
|
||||
def _build_inputs(self):
|
||||
"""Write input XML files with iso-in-lab scattering."""
|
||||
|
||||
self._input_set.build_default_materials_and_geometry()
|
||||
self._input_set.build_default_settings()
|
||||
self._input_set.materials.make_isotropic_in_lab()
|
||||
self._input_set.export()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
harness = IsoInLabTestHarness('statepoint.10.*')
|
||||
harness.main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue