How to restart the calculation at the interrupted time

26 views
Skip to first unread message

Ruibo Yi

unread,
Jun 27, 2022, 10:12:01 PM6/27/22
to pysph-users
When the calculation process is accidentally interrupted, how to restart the calculation at the interrupted time?

I see method  pysph.solver.utils.load(fname)   in the doc.
In example:
>>> data = load('elliptical_drop_100.npz')
>>> data.keys() ['arrays', 'solver_data'] 
>>> arrays = data['arrays']
>>> arrays.keys() ['fluid'] 
>>> fluid = arrays['fluid'] 
>>> type(fluid) 
pysph.base.particle_array.ParticleArray
>>> data['solver_data'] {'count': 100, 'dt': 4.6416394784204199e-05, 't': 0.0039955855395528766}

Through load(), I can load the information of all particles and solver, but how should I get the simulation to work again?
Whether to reload create_particles () .And how to pass in the solver information?

Stephan

unread,
Jun 29, 2022, 8:13:52 AM6/29/22
to pysph-users
You can just restart from the latest saved output file as described here: https://groups.google.com/g/pysph-users/c/0S91Zul5kEM/m/nICQx1TWBAAJ

Op dinsdag 28 juni 2022 om 04:12:01 UTC+2 schreef yirui...@gmail.com:
Reply all
Reply to author
Forward
0 new messages