mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Allow normal instantiation of ResultsList (instead of from_hdf5)
This commit is contained in:
parent
fe230168fb
commit
0b77cc7edc
12 changed files with 48 additions and 34 deletions
|
|
@ -12,7 +12,7 @@ with openmc.StatePoint(statepoint) as sp:
|
|||
geometry = sp.summary.geometry
|
||||
|
||||
# Load previous depletion results
|
||||
previous_results = openmc.deplete.ResultsList.from_hdf5("depletion_results.h5")
|
||||
previous_results = openmc.deplete.ResultsList("depletion_results.h5")
|
||||
|
||||
###############################################################################
|
||||
# Transport calculation settings
|
||||
|
|
@ -56,7 +56,7 @@ integrator.integrate()
|
|||
###############################################################################
|
||||
|
||||
# Open results file
|
||||
results = openmc.deplete.ResultsList.from_hdf5("depletion_results.h5")
|
||||
results = openmc.deplete.ResultsList("depletion_results.h5")
|
||||
|
||||
# Obtain K_eff as a function of time
|
||||
time, keff = results.get_keff(time_units='d')
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ integrator.integrate()
|
|||
###############################################################################
|
||||
|
||||
# Open results file
|
||||
results = openmc.deplete.ResultsList.from_hdf5("depletion_results.h5")
|
||||
results = openmc.deplete.ResultsList("depletion_results.h5")
|
||||
|
||||
# Obtain K_eff as a function of time
|
||||
time, keff = results.get_keff(time_units='d')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue