|
[Sponsors] |
July 23, 2011, 20:50 |
How to resume a stopped simulation
|
#1 |
New Member
Pallav Jha
Join Date: Apr 2011
Posts: 17
Rep Power: 15 |
Hi,
I run my simulations in OF in parallel on a supercomputer (TACC). I have to submit the simulation job and ask for a defined period of time for the simulation to run. TACC kills the simulation after the simulation has run for the requested amount of time. In OF, is there a way to resume the simulation from where it stopped? Please advise. Thanks. -Pallav |
|
July 23, 2011, 21:04 |
|
#2 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Pallav,
What you are looking for is this option in controlDict: Quote:
Best regards, Bruno
__________________
|
||
July 23, 2011, 21:53 |
|
#3 |
New Member
Pallav Jha
Join Date: Apr 2011
Posts: 17
Rep Power: 15 |
Thanks a lot Bruno.
|
|
July 24, 2011, 05:19 |
|
#4 |
Senior Member
|
You'll have your simulation to be started with the runTimeModifiable option set to yes on your controlDict or no changes on that file will affect your simulation…
|
|
July 24, 2011, 06:32 |
|
#5 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22 |
Well, if the simulation was killed by the computer, then these changes will still take effect.
|
|
July 24, 2011, 12:45 |
|
#6 |
New Member
Pallav Jha
Join Date: Apr 2011
Posts: 17
Rep Power: 15 |
Lore and Bernhard,
Thank you for your inputs. |
|
January 29, 2013, 09:12 |
|
#7 |
Member
Jamal
Join Date: May 2012
Location: Freiburg
Posts: 54
Rep Power: 13 |
Dear
I am having a problem to resume the openFoam simulation after making manual changes in last time directory of previous run. For example if I run a simulation for 100 s and I have 0,20, 40 ...,100 time directories. Now I reverse the flow direction by changing inlet/outlet BC for 100/U , manually. From now onward I cant run the simulation from latestTime of 100. While I set my controlDict properly but it shows an error. But If I remove the time directory 100 and want to run from any other directory like 80, which is not changed, then the simulation runs properly. Please let me how to resolve this problem. Regards |
|
January 29, 2013, 18:57 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Jamal,
A few questions:
Bruno
__________________
|
|
January 30, 2013, 18:17 |
|
#9 |
Member
Jamal
Join Date: May 2012
Location: Freiburg
Posts: 54
Rep Power: 13 |
Dear Bruno
1. I am using OF 2.1.0 2. When I start a simulation I set endTime in controlDict to 100 when simulation ends then I edit the last time directory 100/U and 100/T to reverse the flow by switching the BC for inlet/outlet & set endTime to say 200. 3. So I don't use any stopping criteria. Thanks and regards, Jamal |
|
January 30, 2013, 18:23 |
|
#10 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Jamal,
I can't remember very well... there was at least one bug in 2.1.0 that might be related: http://www.openfoam.org/mantisbt/view.php?id=382 So you might want to update to 2.1.1. Nonetheless... do you change the "endTime" value in "controlDict" before continuing? edit: OK, you updated your answer... so you did change... Additionally, is "startFrom" set to "latestTime" for at least the second run? Best regards, Bruno
__________________
Last edited by wyldckat; January 30, 2013 at 18:27. Reason: see "edit:" |
|
April 16, 2014, 05:04 |
|
#11 |
New Member
胡丕
Join Date: Apr 2014
Posts: 2
Rep Power: 0 |
Thanks a lot! I did parallel computing with mpi, when there was no space for my computing in my devices. So, I cleared some room, using your suggestion, I set in controlDict :startFrom latestTime; This didnot work. But with your suggesting website tutorial guide, I got the topic of the problem: the lastestTime cannot be used, when I set in the controlDict:sartFrom startTime; startTime 2140; It works well.(my latest time is 2150, I guess there must be some missing files in 2150, so latestTime didnot work)
|
|
September 12, 2015, 03:25 |
resume openfoam simulation
|
#12 |
New Member
jaydeep
Join Date: Sep 2015
Location: Pune, Maharashtra, India
Posts: 7
Rep Power: 11 |
Hello everybody,
we can resume stopped openfoam simulation. just need some changes in system/controldict file as follows, startFrom latestTime; latestTime 0.xxx; you will need to check the stopped time in the log file and enter that time as latestTime. it worked for me. if anybody has another better solution, please share. Regards, Jaydeep |
|
October 2, 2015, 06:35 |
|
#13 |
New Member
Sukratu Barve
Join Date: Mar 2009
Posts: 16
Rep Power: 17 |
Hello Jaydeep,
Are you sure it works without us considering the "write Interval" we set for our flow fields? Please confirm or modify your post. Best! |
|
October 4, 2015, 16:41 |
|
#14 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to all,
OK, in order to make things perfectly clear, let's use the tutorial "incompressible/icoFoam/cavity" as a basis for demonstrating this issue. The default settings in this tutorial are these: Code:
startFrom startTime; startTime 0; stopAt endTime; endTime 0.5;
And for those who complain about this being a "needle in a haystack"... Well, this is OpenFOAM you're dealing with, you better train yourself to find these kinds of needles in your cases . One wrong decimal separator is all that it takes for you to be simulating a pipe as large as a river or as the Earth . Best regards, Bruno |
|
April 23, 2016, 20:50 |
|
#15 |
Member
Join Date: Apr 2016
Posts: 39
Rep Power: 10 |
Are there any special steps to resume a parallel case?
|
|
April 25, 2016, 22:05 |
|
#16 |
Member
Andrew Eisenhawer
Join Date: Nov 2012
Location: Alberta, Canada
Posts: 35
Rep Power: 14 |
Parallel cases will resume the same way (using the same mpirun command). However, I find my self reconstructing and then deleting the decomposed directories between stages (to see results in case I want to change /constant files), so I have to re-decompose before resuming. I always have "startFrom latestTime;" in controlDict.
|
|
June 6, 2018, 08:51 |
|
#17 |
New Member
Srikrishnan Balasubramanian
Join Date: Jul 2017
Location: Erlangen
Posts: 7
Rep Power: 9 |
Hi
I have some problem restarting the simulation from the stopped time ( stopped due to system time out). The thing is my write intervals are quite high. When I try to reconstruct the files, I am not able to. I think so because there is only 0 and constant folders in each processor. So when I use ---> reconstructPar -latestTime I get error message "no time selected" Is there any way to restart the simulation from the stopped time ? |
|
June 6, 2018, 16:13 |
|
#18 |
New Member
Join Date: Nov 2016
Posts: 15
Rep Power: 10 |
As far as I know: No
|
|
August 14, 2020, 15:44 |
|
#19 |
Member
Muhammad Kashif Jawad
Join Date: Oct 2019
Location: Pakistan
Posts: 48
Rep Power: 6 |
Hi all,
I want to know that how to resume the simulation with log file.. I lose my log file starting data if i run my simulation from latest time.. the new log file is written from latest time. |
|
August 14, 2020, 16:14 |
|
#20 |
Senior Member
Chris DeGroot
Join Date: Nov 2011
Location: Canada
Posts: 414
Rep Power: 18 |
Normally, you should just copy your log file to a different filename, or write to a new filename upon restarting. The log file is just the screen output piped to a file, so it will not continue writing in the same file.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to pause a transient simulation and resume without time step advancement? | aleisia | Main CFD Forum | 33 | June 12, 2017 12:41 |
velocity profile export from a simulation onto another | sudhirlv | STAR-CCM+ | 1 | September 12, 2010 19:57 |
continue LES simulation after it stopped | holand_us | OpenFOAM | 9 | April 5, 2010 13:52 |
continue LES simulation after it stopped | holand_us | OpenFOAM Running, Solving & CFD | 1 | March 29, 2010 04:50 |
strange simulation error | Ralf Schmidt | FLUENT | 2 | May 4, 2007 14:02 |