CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM

Resetting a simulation

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

Like Tree2Likes
  • 2 Post By wyldckat

LinkBack Thread Tools Display Modes
Old   April 28, 2013, 02:19
Default Resetting a simulation
New Member
Join Date: Sep 2012
Posts: 27
Rep Power: 5
Traib is on a distinguished road

Just a quick, dump question- is it possible to pause a solution at any instant and reset a few solution control parameters (for e.g. max Co, time step, etc.), without having to totally stop the calculation and start at the last written timestep??? I have done this in Fluent where its very simple so I think this can also be done in OpenFOAM as well.

I am running it on Ubuntu 12.04 if it is of any relevance.

Traib is offline   Reply With Quote

Old   April 28, 2013, 06:55
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,659
Blog Entries: 34
Rep Power: 87
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Traib,

There are several possible ways to do this in OpenFOAM; to name a few... er, several:
  1. No need to stop. Simply change the dictionary files and OpenFOAM will automatically read them when they are changed.
  2. On Linux, if you're running directly from the command line, you could hit the "Ctrl+Z" key combination for freezing the application, then run fg or bg to unfreeze. For more information:
  3. You could also stopping and continuing by running:
    # to pause
    kill -s STOP <pid number>
    # to continue
    kill -s CONT <pid number>
  4. Or rely on a shell script that assists you in pausing things when you want: - i.e, the script you take care of pausing...
  5. I didn't know about this one: "timeActivatedFileUpdate" ->
  6. You could do it with C++ source code, if you want something more automatic that changes depending on a certain condition: "codedFunctionObject" ->
  7. With swak4Foam+pythonFlu, you could do the same but with Python: +
  8. You could even create a variant of the function object "abortCalculation": - the variant could pause indefinitely while a file exists.
Best regards,
Traib and Leejay like this.
wyldckat is offline   Reply With Quote

Old   April 28, 2013, 08:42
New Member
Join Date: Sep 2012
Posts: 27
Rep Power: 5
Traib is on a distinguished road
Wow, I wouldn't have imagined I had that many options.

Method-1 and 2 is what I need most of the time. But method-5 seems useful for lengthy simulation that I sometimes need to do in separate steps, like turning chemistry/combustion on/off during the simulation. But I should look into it more to use it in my setup. Thanks.
Traib is offline   Reply With Quote


openfoam, reset, solution, stop

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
Why my simulation not agree with the wind tunnel experiment zhaowei CFX 4 July 11, 2015 03:36
Solar Radiation in OpenFOAM plainstyle OpenFOAM Running, Solving & CFD 15 July 8, 2014 04:43
Simulation of a complex wing in solidworks flow simulation niels1900 FloEFD, FloWorks & FloTHERM 6 April 20, 2011 10:44
Continuous vs interrupted simulation sega OpenFOAM Running, Solving & CFD 4 November 3, 2008 15:29
strange simulation error Ralf Schmidt FLUENT 2 May 4, 2007 13:02

All times are GMT -4. The time now is 23:55.