mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
passing arg of type material not string
This commit is contained in:
parent
51b6d59105
commit
504d58f045
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue