|
[Sponsors] | |||||
|
|
|
#1 |
|
Senior Member
n/a
Join Date: Sep 2009
Posts: 183
Rep Power: 5 ![]() |
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,877
Rep Power: 23 ![]() |
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 GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image. GeekoCFD 32bit - The 32bit edition of GeekoCFD. GeekoCFD text mode - A smaller version of GeekoCFD, text-mode only, with only OpenFOAM. Available in a variety of virtual formats. |
||
|
|
|
||
|
|
|
#3 |
|
New Member
Paul Schiefer
Join Date: Sep 2009
Posts: 25
Rep Power: 5 ![]() |
||
|
|
|
|
|
|
|
#4 | |
|
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.com/
Posts: 766
Rep Power: 16 ![]() |
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: 12
Rep Power: 4 ![]() |
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: 2 ![]() |
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: 2 ![]() |
Code:
runTimeModifiable yes; |
|
|
|
|
|
|
|
|
#8 |
|
Senior Member
A_R
Join Date: Jun 2009
Posts: 115
Rep Power: 5 ![]() |
||
|
|
|
|
|
|
|
#9 |
|
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 4,307
Blog Entries: 31
Rep Power: 45 ![]() ![]() |
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: 2 ![]() |
Hello, what if i want to stop a process without losing saved data and then restart it from where i stopped it?
|
|
|
|
|
|
|
|
|
#11 | |
|
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 4,307
Blog Entries: 31
Rep Power: 45 ![]() ![]() |
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: 2 ![]() |
Thank you sir,
so maybe i should set starfFrom:latestTime, right? |
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Solidification simulation with OpenFOAM | James | OpenFOAM | 5 | June 26, 2012 02:33 |
| OpenFOAM - Validation of Results | Ahmed | OpenFOAM Running, Solving & CFD | 9 | June 22, 2011 18:59 |
| diesel Engine simulation in OpenFOAM | karam | OpenFOAM Running, Solving & CFD | 1 | March 1, 2011 09:46 |
| Is OpenFOAM appropriate for a river simulation | jasonneuswanger | OpenFOAM Running, Solving & CFD | 7 | December 14, 2010 01:26 |
| OpenFOAM Training Courses in Germany | hjasak | OpenFOAM Announcements from Other Sources | 0 | July 23, 2009 19:34 |