passing arg of type material not string

This commit is contained in:
Jonathan Shimwell 2022-03-03 18:18:39 +00:00
parent 51b6d59105
commit 504d58f045
2 changed files with 4 additions and 4 deletions

View file

@ -62,10 +62,10 @@ results = openmc.deplete.ResultsList.from_hdf5("depletion_results.h5")
time, keff = results.get_eigenvalue()
# Obtain U235 concentration as a function of time
time, n_U235 = results.get_atoms('1', 'U235')
time, n_U235 = results.get_atoms(uo2, 'U235')
# Obtain Xe135 capture reaction rate as a function of time
time, Xe_capture = results.get_reaction_rate('1', 'Xe135', '(n,gamma)')
time, Xe_capture = results.get_reaction_rate(uo2, 'Xe135', '(n,gamma)')
###############################################################################
# Generate plots

View file

@ -107,10 +107,10 @@ results = openmc.deplete.ResultsList.from_hdf5("depletion_results.h5")
time, keff = results.get_eigenvalue()
# Obtain U235 concentration as a function of time
time, n_U235 = results.get_atoms('1', 'U235')
time, n_U235 = results.get_atoms(uo2, 'U235')
# Obtain Xe135 capture reaction rate as a function of time
time, Xe_capture = results.get_reaction_rate('1', 'Xe135', '(n,gamma)')
time, Xe_capture = results.get_reaction_rate(uo2, 'Xe135', '(n,gamma)')
###############################################################################
# Generate plots