CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

Resetting a simulation

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By wyldckat

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

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.

Thanks.
Traib is offline   Reply With Quote

Old   April 28, 2013, 06:55
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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: http://linuxreviews.org/beginner/jobs/
  3. You could also stopping and continuing by running:
    Code:
    # to pause
    kill -s STOP <pid number>
    # to continue
    kill -s CONT <pid number>
    Source: http://www.articleworld.org/index.ph...x-like_systems
  4. Or rely on a shell script that assists you in pausing things when you want: http://openfoamwiki.net/index.php/Ti...ect_systemCall - i.e, the script you take care of pausing...
  5. I didn't know about this one: "timeActivatedFileUpdate" -> http://foam.sourceforge.net/docs/cpp...4.html#details
  6. You could do it with C++ source code, if you want something more automatic that changes depending on a certain condition: "codedFunctionObject" -> http://foam.sourceforge.net/docs/cpp/a00247.html
  7. With swak4Foam+pythonFlu, you could do the same but with Python: http://openfoamwiki.net/index.php/Contrib/swak4Foam + http://pythonflu.wikidot.com/
  8. You could even create a variant of the function object "abortCalculation": http://foam.sourceforge.net/docs/cpp/a00003.html - the variant could pause indefinitely while a file exists.
Best regards,
Bruno
Traib and Leejay like this.
__________________
wyldckat is offline   Reply With Quote

Old   April 28, 2013, 08:42
Default
  #3
New Member
 
Traib
Join Date: Sep 2012
Posts: 27
Rep Power: 13
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

Reply

Tags
openfoam, reset, solution, stop


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 Off
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 14:29
strange simulation error Ralf Schmidt FLUENT 2 May 4, 2007 13:02


All times are GMT -4. The time now is 20:50.