|
[Sponsors] |
October 31, 2009, 18:28 |
Stop Openfoam simulation
|
#1 |
Senior Member
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 16 |
evening everyone. does anyone know the command to stop an openfoam simulation/
|
|
October 31, 2009, 19:44 |
|
#2 | |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
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,
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
||
October 31, 2009, 19:45 |
|
#3 |
New Member
Paul Schiefer
Join Date: Sep 2009
Posts: 25
Rep Power: 16 |
||
November 1, 2009, 09:47 |
|
#4 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,684
Rep Power: 40 |
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 fileName abortName(args.rootPath()/args.globalCaseName()/"ABORT"); if (isFile(abortName)) { Info<< "removing old ABORT file" << endl; rm(abortName); } Code:
if (isFile(abortName)) { Info<< "reacting to user ABORT" << endl; runTime.writeAndEnd(); } Code:
// cleanup ABORT file if (isFile(abortName)) { rm(abortName); } /mark |
||
August 8, 2011, 05:56 |
|
#5 | |
New Member
Quang
Join Date: Jul 2010
Posts: 11
Rep Power: 15 |
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). -------------------------------------------------------------------------- |
||
July 13, 2012, 19:06 |
|
#6 |
New Member
Join Date: Jun 2012
Posts: 25
Rep Power: 13 |
What could be the reason for OF not stopping when I put "writeNow" in the controldict file?
Code:
application pimpleFoam; startFrom startTime; startTime 0; stopAt writeNow; endTime 100; deltaT 0.002059; writeControl timeStep; writeInterval 1000; |
|
July 14, 2012, 01:20 |
|
#7 |
New Member
Join Date: Jun 2012
Posts: 25
Rep Power: 13 |
Code:
runTimeModifiable yes; |
|
July 15, 2012, 07:54 |
|
#8 |
Senior Member
A_R
Join Date: Jun 2009
Posts: 122
Rep Power: 16 |
||
July 15, 2012, 10:08 |
|
#9 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
Uhm... that only suspends the execution. Running: Code:
fg #or bg 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
__________________
|
|
September 18, 2012, 11:58 |
|
#10 |
New Member
Manfredi
Join Date: Aug 2012
Posts: 5
Rep Power: 13 |
Hello, what if i want to stop a process without losing saved data and then restart it from where i stopped it?
|
|
September 18, 2012, 14:44 |
|
#11 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
||
September 19, 2012, 03:47 |
|
#12 |
New Member
Manfredi
Join Date: Aug 2012
Posts: 5
Rep Power: 13 |
Thank you sir,
so maybe i should set starfFrom:latestTime, right? |
|
August 25, 2020, 11:33 |
|
#13 |
Member
Patti Michelle Sheaffer
Join Date: Sep 2018
Posts: 55
Rep Power: 7 |
||
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is OpenFOAM appropriate for a river simulation | jasonneuswanger | OpenFOAM Running, Solving & CFD | 8 | December 18, 2020 04:25 |
OpenFOAM - Validation of Results | Ahmed | OpenFOAM Running, Solving & CFD | 10 | May 13, 2018 18:28 |
Solidification simulation with OpenFOAM | James | OpenFOAM | 5 | June 26, 2012 02:33 |
diesel Engine simulation in OpenFOAM | karam | OpenFOAM Running, Solving & CFD | 1 | March 1, 2011 09:46 |
OpenFOAM Training Courses in Germany | hjasak | OpenFOAM Announcements from Other Sources | 0 | July 23, 2009 19:34 |