mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-21 06:25:30 -04:00
Do not add radioactive Ta180 when calling add_element('Ta') (#3750)
This commit is contained in:
parent
3e2f1f521a
commit
5c502ddb3e
2 changed files with 2 additions and 4 deletions
|
|
@ -184,8 +184,6 @@ class Element(str):
|
|||
for nuclide in absent_nuclides:
|
||||
if nuclide in ['O17', 'O18'] and 'O16' in mutual_nuclides:
|
||||
abundances['O16'] += NATURAL_ABUNDANCE[nuclide]
|
||||
elif nuclide == 'Ta180_m1' and 'Ta180' in library_nuclides:
|
||||
abundances['Ta180'] = NATURAL_ABUNDANCE[nuclide]
|
||||
elif nuclide == 'Ta180_m1' and 'Ta181' in mutual_nuclides:
|
||||
abundances['Ta181'] += NATURAL_ABUNDANCE[nuclide]
|
||||
elif nuclide == 'W180' and 'W182' in mutual_nuclides:
|
||||
|
|
|
|||
|
|
@ -45,11 +45,11 @@ def test_expand_no_isotopes():
|
|||
|
||||
|
||||
def test_expand_ta():
|
||||
ref = {'Ta180': 0.01201, 'Ta181': 99.98799}
|
||||
ref = {'Ta181': 100.0}
|
||||
element = openmc.Element('Ta')
|
||||
for isotope in element.expand(100.0, 'ao'):
|
||||
assert isotope[1] == approx(ref[isotope[0]])
|
||||
|
||||
|
||||
|
||||
def test_expand_exceptions():
|
||||
""" Test that correct exceptions are raised for invalid input """
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue