mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
cleaner way to get initial time
This commit is contained in:
parent
73d8b4a043
commit
29222f69cf
2 changed files with 1 additions and 4 deletions
|
|
@ -76,9 +76,6 @@ results = openmc.deplete.ResultsList("depletion_results.h5")
|
|||
|
||||
# Obtain K_eff as a function of time
|
||||
time, keff = results.get_eigenvalue()
|
||||
|
||||
print(time/24/60/60)
|
||||
print(keff)
|
||||
|
||||
# Plot eigenvalue as a function of time
|
||||
plt.figure()
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ def predictor(operator, timesteps, power, print_out=True):
|
|||
if operator.prev_res == None:
|
||||
t = 0.0
|
||||
else:
|
||||
t = operator.prev_res.get_eigenvalue()[0][-1]
|
||||
t = operator.prev_res[-1].time[-1]
|
||||
|
||||
# Initialize starting index for saving results
|
||||
if operator.prev_res == None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue