Restart of Depletion calculation

Hi all,
When I use the “restart_depletion.py” script, an error message occur. Detailed message in the terminal is as follows:

$ python ./restart_depletion.py
Traceback (most recent call last):
File “./restart_depletion.py”, line 44, in
op = openmc.deplete.Operator(geometry, settings, chain_file, previous_results)
File “/media/zhaozelong/CODE/home/mc-code/openmc-0.12.0/openmc/deplete/operator.py”, line 230, in init
prev_results[-1].transfer_volumes(geometry)
AttributeError: ‘str’ object has no attribute ‘transfer_volumes’

@zhaozelong, welcome to the forum.

Use ResultList.from_hdf5

prev_results = openmc.deplete.ResultsList.from_hdf5("depletion_results.h5")

@Pranto do you want to submit a pull request fixing that script?

@gridley already fixed this issue (tiny) Fix depletion restart example.

1 Like

Ah, you’re right! Nevermind then :smile:

thanks so much @Pranto @paulromano it works well when the previous depletion results are loaded using from_hdf5 function and the restart simualtion can be continued.

Hi All,

Please, is there an example showing how to restart a depletion analysis? If so, where I can find it?

Thanks,
Javier

Hi everyone.

I believe I found the example here.

Thanks,
Javier