added metastable activity test

This commit is contained in:
Jonathan Shimwell 2022-06-22 23:18:14 +01:00
parent 649f4a28f2
commit 270ef8346c

View file

@ -423,3 +423,11 @@ def test_activity_of_tritium():
m1.volume = 1
assert pytest.approx(m1.activity) == 3.559778e14
def test_activity_of_metastable():
"""Checks that 1 mol of a Tc99_m1 nuclides has the correct activity"""
m1 = openmc.Material()
m1.add_nuclide("Tc99_m1", 1)
m1.set_density('g/cm3', 1)
m1.volume = 98.9
assert pytest.approx(m1.activity, rel=0.001) == 1.93e19