CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

How to resume a stopped simulation

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Display Modes
Old   July 23, 2011, 19:50
Default How to resume a stopped simulation
  #1
New Member
 
Pallav Jha
Join Date: Apr 2011
Posts: 17
Rep Power: 6
Pallav is on a distinguished road
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
Pallav is offline   Reply With Quote

Old   July 23, 2011, 20:04
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,511
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Pallav,

What you are looking for is this option in controlDict:
Quote:
Originally Posted by http://www.openfoam.com/docs/user/controlDict.php
Code:
startFrom       latestTime;    //Most recent time step from the set of time directories.
Check the link in the quote for more informations on what you can do in controlDict

Best regards,
Bruno
hpp10 likes this.
wyldckat is offline   Reply With Quote

Old   July 23, 2011, 20:53
Default
  #3
New Member
 
Pallav Jha
Join Date: Apr 2011
Posts: 17
Rep Power: 6
Pallav is on a distinguished road
Thanks a lot Bruno.
Pallav is offline   Reply With Quote

Old   July 24, 2011, 04:19
Default
  #4
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 463
Rep Power: 9
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
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…
lovecraft22 is offline   Reply With Quote

Old   July 24, 2011, 05:32
Default
  #5
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 12
Bernhard is on a distinguished road
Well, if the simulation was killed by the computer, then these changes will still take effect.
Bernhard is offline   Reply With Quote

Old   July 24, 2011, 11:45
Default
  #6
New Member
 
Pallav Jha
Join Date: Apr 2011
Posts: 17
Rep Power: 6
Pallav is on a distinguished road
Lore and Bernhard,

Thank you for your inputs.
Pallav is offline   Reply With Quote

Old   January 29, 2013, 09:12
Default
  #7
Member
 
Jamal
Join Date: May 2012
Location: Freiburg
Posts: 54
Rep Power: 4
aujamal20 is an unknown quantity at this point
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
aujamal20 is offline   Reply With Quote

Old   January 29, 2013, 18:57
Default
  #8
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,511
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Jamal,

A few questions:
  1. Which OpenFOAM version are you using? It's possible that you're triggering an old bug on an old version of OpenFOAM.
  2. What value do you have for "endTime" in "system/controlDict"?
  3. Are you using a stopping criteria based on residuals?
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   January 30, 2013, 18:17
Default
  #9
Member
 
Jamal
Join Date: May 2012
Location: Freiburg
Posts: 54
Rep Power: 4
aujamal20 is an unknown quantity at this point
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
aujamal20 is offline   Reply With Quote

Old   January 30, 2013, 18:23
Default
  #10
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,511
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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:"
wyldckat is offline   Reply With Quote

Old   April 16, 2014, 04:04
Default
  #11
New Member
 
胡丕
Join Date: Apr 2014
Posts: 1
Rep Power: 0
hpp10 is on a distinguished road
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)
hpp10 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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 32 June 27, 2014 18:40
velocity profile export from a simulation onto another sudhirlv STAR-CCM+ 1 September 12, 2010 18:57
continue LES simulation after it stopped holand_us OpenFOAM 9 April 5, 2010 12:52
continue LES simulation after it stopped holand_us OpenFOAM Running, Solving & CFD 1 March 29, 2010 03:50
strange simulation error Ralf Schmidt FLUENT 2 May 4, 2007 13:02


All times are GMT -4. The time now is 01:15.