updated test results and fixed a few typos

This commit is contained in:
Sam Shaner 2016-10-18 08:59:59 -04:00
parent 052417b9c3
commit 6b687e9bf5
7 changed files with 16 additions and 16 deletions

View file

@ -464,11 +464,11 @@ class Material(object):
if enrichment > 0.05:
msg = 'A uranium enrichment of {0} was given for Material ID='\
'"{0}". OpenMC assumes the U234/U235 mass ratio is '\
'"{1}". OpenMC assumes the U234/U235 mass ratio is '\
'constant at 0.008, which is only valid at low ' \
'enrichments. Consider setting the isotopic ' \
'composition manually for enrichments over 5%.'.\
format(self._id)
format(enrichment, self._id)
warnings.warn(msg)
if expand or enrichment is not None:

View file

@ -1 +1 @@
6f1239c0f681f0bf405bcf090d4ec88c8a551ba4f4d49679fcbd6394b15d12e562d792c74dffbdd8f2b5e7945432d3fcea57922e4fe9d8e88fdc6741870cd366
0d54ed29b2a348854d99d36f602b188766465b41e70536647578c61d076909a2351b5c4cafbbdc62dd00f36bf2685f231fae7c75d1289befddd2da79042e31a7

View file

@ -1,5 +1,5 @@
k-combined:
8.318639E-01 1.165753E-01
8.617147E-01 2.915803E-02
tally 1:
8.059858E+01
1.299961E+03
7.879002E+01
1.242562E+03

View file

@ -24,7 +24,7 @@ class ElementWOTestHarness(PyAPITestHarness):
fuel.add_element("O", 0.12, 'wo')
# Add some natural elements to the fuel
for element in [ 'Ir', 'Au', 'Hg', 'Tl', 'Pb', 'Bi', 'Th', 'Pa']:
for element in ['Ir', 'Au', 'Hg', 'Tl', 'Pb', 'Bi', 'Th', 'Pa']:
fuel.add_element(element, 1.e-8, 'wo')
clad = openmc.Material(name='Cladding')
@ -33,8 +33,8 @@ class ElementWOTestHarness(PyAPITestHarness):
hot_water = openmc.Material(name='Hot borated water')
hot_water.set_density('g/cm3', 0.740582)
hot_water.add_element("H", 2./18., 'wo')
hot_water.add_element("O", 16./18., 'wo')
hot_water.add_element("H", 0.1111, 'wo')
hot_water.add_element("O", 0.8889, 'wo')
hot_water.add_s_alpha_beta('c_H_in_H2O')
# Define the materials file.

View file

@ -1 +1 @@
1fe2d58365b5c8baf45766e788815bef715805ca96bb63480f50b2283b34c90408c19b52996e2b0da6afe1595b94a43aef7a72a3f47513131784275ed9092e89
47d753380f995651e6cec8e3648ff9e4ac254fc80919014124f4f6674afc95262006eda3821b4d6dcf09e29f28f5e21840c9b76b95c1c7f8ae522faac2386090

View file

@ -1,5 +1,5 @@
k-combined:
1.457508E+00 5.577598E-02
1.385412E+00 1.198466E-01
tally 1:
6.199709E+01
7.692381E+02
6.197393E+01
7.688717E+02

View file

@ -20,7 +20,7 @@ class EnrichmentTestHarness(PyAPITestHarness):
# Define materials.
fuel = openmc.Material(name='Fuel')
fuel.set_density('g/cm3', 10.29769)
fuel.add_element("U", 0.88, 'wo', enrichment=0.05)
fuel.add_element("U", 0.88, 'wo', enrichment=0.0495)
fuel.add_element("O", 0.12, 'wo')
clad = openmc.Material(name='Cladding')
@ -29,8 +29,8 @@ class EnrichmentTestHarness(PyAPITestHarness):
hot_water = openmc.Material(name='Hot borated water')
hot_water.set_density('g/cm3', 0.740582)
hot_water.add_element("H", 2./18., 'wo')
hot_water.add_element("O", 16./18., 'wo')
hot_water.add_element("H", 0.1111, 'wo')
hot_water.add_element("O", 0.8889, 'wo')
hot_water.add_s_alpha_beta('c_H_in_H2O')
# Define the materials file.