Do not add radioactive Ta180 when calling add_element('Ta') (#3750)

This commit is contained in:
Paul Romano 2026-01-26 11:09:58 -06:00 committed by GitHub
parent 3e2f1f521a
commit 5c502ddb3e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 4 deletions

View file

@ -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:

View file

@ -45,7 +45,7 @@ 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]])