Stop Openfoam simulation
evening everyone. does anyone know the command to stop an openfoam simulation/
|
Quote:
stopAt writeNow; // It stops the simulation after writing data for the current time step or stopAt noWriteNow; // It stops the simulation without writing data for the current time step in the controlDict dictionary and save it. Best, |
Quote:
http://www.cfd-online.com/Forums/ima...apse_thead.gif |
Quote:
From the command-line, a simple "touch ABORT" suffices without needing to edit any files. For general reference (in case anyone else wants to add it to their solvers): Before the time-loop begins: Code:
// define ABORT file for stopping the job Code:
if (isFile(abortName)) Code:
// cleanup ABORT file /mark |
Quote:
This is my code if( errors <= 0.001 ) { Info<< "reached convergence"<< endl; runTime.writeAndEnd(); Info<< "latestTime = " << runTime.timeName() << endl; } This is error -------------------------------------------------------------------------- mpirun noticed that process rank 0 with PID 27921 on node dfmserver exited on signal 11 (Segmentation fault). -------------------------------------------------------------------------- |
What could be the reason for OF not stopping when I put "writeNow" in the controldict file?
Code:
application pimpleFoam; |
Code:
runTimeModifiable yes; |
just push ctrl+z
Quote:
|
Greetings to all!
Quote:
Code:
fg For more, search online for: Code:
linux job control Last but not least, nowadays the official OpenFOAM version has a helper script named foamEndJob. For more: Code:
foamEndJob -help Bruno |
Hello, what if i want to stop a process without losing saved data and then restart it from where i stopped it?
|
Greetings Meltedbrain,
Like I wrote on the previous post, the command foamEndJob can assist you with stopping it. As for restarting... you can see on the user guide, section 4.3 Time and data input/output control: Quote:
Bruno |
Thank you sir,
so maybe i should set starfFrom:latestTime, right? |
Quote:
OF rereads the controlDict after every cycle of the solver, I believe, so dynamic changes can be made there. |
All times are GMT -4. The time now is 02:24. |