|
[Sponsors] | |||||
|
|
|
#1 |
|
Senior Member
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 18 ![]() |
evening everyone. does anyone know the command to stop an openfoam simulation/
|
|
|
|
|
|
|
|
|
#2 | |
|
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 37 ![]() ![]() |
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.
|
||
|
|
|
||
|
|
|
#3 |
|
New Member
Paul Schiefer
Join Date: Sep 2009
Posts: 25
Rep Power: 18 ![]() |
||
|
|
|
|
|
|
|
#4 | |
|
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 41 ![]() ![]() |
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 |
||
|
|
|
||
|
|
|
#5 | |
|
New Member
Quang
Join Date: Jul 2010
Posts: 11
Rep Power: 17 ![]() |
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). -------------------------------------------------------------------------- |
||
|
|
|
||
|
|
|
#6 |
|
New Member
Join Date: Jun 2012
Posts: 25
Rep Power: 15 ![]() |
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; |
|
|
|
|
|
|
|
|
#7 |
|
New Member
Join Date: Jun 2012
Posts: 25
Rep Power: 15 ![]() |
Code:
runTimeModifiable yes; |
|
|
|
|
|
|
|
|
#8 |
|
Senior Member
A_R
Join Date: Jun 2009
Posts: 122
Rep Power: 18 ![]() |
||
|
|
|
|
|
|
|
#9 |
|
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 130 ![]() ![]() ![]() ![]() ![]() ![]() |
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
__________________
|
|
|
|
|
|
|
|
|
#10 |
|
New Member
Manfredi
Join Date: Aug 2012
Posts: 5
Rep Power: 15 ![]() |
Hello, what if i want to stop a process without losing saved data and then restart it from where i stopped it?
|
|
|
|
|
|
|
|
|
#11 | |
|
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 130 ![]() ![]() ![]() ![]() ![]() ![]() |
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
__________________
|
||
|
|
|
||
|
|
|
#12 |
|
New Member
Manfredi
Join Date: Aug 2012
Posts: 5
Rep Power: 15 ![]() |
Thank you sir,
so maybe i should set starfFrom:latestTime, right? |
|
|
|
|
|
|
|
|
#13 |
|
Member
Patti Michelle Sheaffer
Join Date: Sep 2018
Posts: 55
Rep Power: 9 ![]() |
||
|
|
|
|
![]() |
| 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 | 10 | March 17, 2025 03:51 |
| Solidification simulation with OpenFOAM | James | OpenFOAM | 6 | September 8, 2024 11:13 |
| 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 |