Hi everyone,
I am doing multi sphere simulation. it takes a lot of time. Due to some reason like computer shut down my simulation stops. I want to restart the simulation from the same point where I left the simulation.
I have read the two commands write_restart and read_restart (https://www.cfdem.com/media/DEM/docu/write_restart.html) but I cannot understand where to place the write_restart command in the input file and how to use the read_restart command to restart the simulation where it left.
here I have attached my input script.
thanks in advance
Attachment | Size |
---|---|
![]() | 13.8 KB |
medvedeg | Mon, 08/21/2017 - 14:37
Hallo Kashif Saeed,
Hallo Kashif Saeed,
"write_restart" writes a restart file only once. For dumping restart files periodically on hard disk, use the following format "restart 1000 restart%.file". It will dump a restart file every 1000 timesteps. This must appear before the first "run" command. Otherwise, some thousands (or hundreed thousands) time steps will be simulated without dumping any of restart file.
To read the restart file, replace "create_box .." command by "read_restart file", where "file" is the name of your restart file you want to restart with.