|
[Sponsors] |
October 31, 2009, 19:28 |
Stop Openfoam simulation
|
#1 |
Senior Member
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 17 |
evening everyone. does anyone know the command to stop an openfoam simulation/
|
|
October 31, 2009, 20: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, 20:45 |
|
#3 |
New Member
Paul Schiefer
Join Date: Sep 2009
Posts: 25
Rep Power: 17 |
||
November 1, 2009, 10:47 |
|
#4 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
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, 06:56 |
|
#5 | |
New Member
Quang
Join Date: Jul 2010
Posts: 11
Rep Power: 16 |
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, 20:06 |
|
#6 |
New Member
Join Date: Jun 2012
Posts: 25
Rep Power: 14 |
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, 02:20 |
|
#7 |
New Member
Join Date: Jun 2012
Posts: 25
Rep Power: 14 |
Code:
runTimeModifiable yes; |
|
July 15, 2012, 08:54 |
|
#8 |
Senior Member
A_R
Join Date: Jun 2009
Posts: 122
Rep Power: 17 |
||
July 15, 2012, 11:08 |
|
#9 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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, 12:58 |
|
#10 |
New Member
Manfredi
Join Date: Aug 2012
Posts: 5
Rep Power: 14 |
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, 15:44 |
|
#11 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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, 04:47 |
|
#12 |
New Member
Manfredi
Join Date: Aug 2012
Posts: 5
Rep Power: 14 |
Thank you sir,
so maybe i should set starfFrom:latestTime, right? |
|
August 25, 2020, 12:33 |
|
#13 |
Member
Patti Michelle Sheaffer
Join Date: Sep 2018
Posts: 55
Rep Power: 8 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Solidification simulation with OpenFOAM | James | OpenFOAM | 6 | September 8, 2024 11:13 |
Is OpenFOAM appropriate for a river simulation | jasonneuswanger | OpenFOAM Running, Solving & CFD | 8 | December 18, 2020 05:25 |
OpenFOAM - Validation of Results | Ahmed | OpenFOAM Running, Solving & CFD | 10 | May 13, 2018 19:28 |
diesel Engine simulation in OpenFOAM | karam | OpenFOAM Running, Solving & CFD | 1 | March 1, 2011 10:46 |
OpenFOAM Training Courses in Germany | hjasak | OpenFOAM Announcements from Other Sources | 0 | July 23, 2009 20:34 |