mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Apply suggestions from code review
Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
parent
ffa0cfc03e
commit
4234fe45e7
2 changed files with 4 additions and 4 deletions
|
|
@ -607,9 +607,9 @@ class Material(IDManagerMixin):
|
|||
If enrichment_target is not supplied then it is enrichment for U235
|
||||
in weight percent. For example, input 4.95 for 4.95 weight percent
|
||||
enriched U. Default is None (natural composition).
|
||||
enrichment_target: str, optional
|
||||
enrichment_target : str, optional
|
||||
Single nuclide name to enrich from a natural composition (e.g., 'O16')
|
||||
enrichment_type: {'ao', 'wo'}, optional
|
||||
enrichment_type : {'ao', 'wo'}, optional
|
||||
'ao' for enrichment as atom percent and 'wo' for weight percent.
|
||||
Default is: 'ao' for two-isotope enrichment; 'wo' for U enrichment
|
||||
|
||||
|
|
|
|||
|
|
@ -58,7 +58,8 @@ def test_elements_by_name():
|
|||
assert a._nuclides == b._nuclides
|
||||
assert b._nuclides == c._nuclides
|
||||
|
||||
def test_adding_elements_by_formula():
|
||||
|
||||
def test_add_elements_by_formula():
|
||||
"""Test adding elements from a formula"""
|
||||
# testing the correct nuclides and elements are added to a material
|
||||
m = openmc.Material()
|
||||
|
|
@ -354,4 +355,3 @@ def test_mix_materials():
|
|||
assert m3.density == pytest.approx(dens3)
|
||||
assert m4.density == pytest.approx(dens4)
|
||||
assert m5.density == pytest.approx(dens5)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue