save the last timestep
Hi, I have only a short question. Is it possible to save the timestep before foam shut down? I have a long calculation with adjustable timestep and long write intervals. The 'purgeWrite' option doesen't work well for me. Thanks and best regards
|
When does your simulation end? If you know how long you are going to run it, then you just need to match your interval in such a way you get an integer number of steps. Otherwise you need to add
Code:
runTime.writeNow() Code:
return 0; |
In your system/controlDict you can use:
stopAt writeNow; This will stop and write your fields. Hope this helps. |
dear all!
i have to stop my simulation and write the current time step after a pre-specified ClockTime -> clockTimeLimit. For this task I used the runTime.writeAndEnd() function in the main while-loop of the solver: Code:
while (runTime.run()) Does somebody have an idea what is going wrong here? Thanks in advance! Cheers, Aram |
hi!
i changed the code and now it seems to work in parallel: Code:
scalar clockTime = runTime.elapsedClockTime(); aram |
All times are GMT -4. The time now is 08:45. |