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

Change writecontrol from "runTime" to"timesteo" after certain time automatically

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 26, 2016, 08:54
Default Change writecontrol from "runTime" to"timesteo" after certain time automatically
  #1
Senior Member
 
Manu Chakkingal
Join Date: Feb 2016
Location: Delft, Netherlands
Posts: 129
Rep Power: 10
manuc is on a distinguished road
Hello

I would like to run simulation for rumtime with data saved at bigger time interval and I am using runTime for that.. After certain time I would like to store it at much smaller intervals at each timestep.

Would it be possible to switch from "runtime" to"timesteo" automatically with some if statements in controldict
I want something like:

writecontrol==runTime;
if ( time> 100)
writecontrol=timestep
end

How to do it in OF and is it possible to be done in controldict as the number "100" may vary with cases and its a bad idea to update it in the.C file
__________________
Regards
Manu
manuc is offline   Reply With Quote

Old   July 26, 2016, 13:08
Default
  #2
Senior Member
 
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18
anishtain4 is on a distinguished road
take a look here:
http://openfoam.org/release/2-0-0/ru...e-compilation/
the first one seems to be what you want to do
anishtain4 is offline   Reply With Quote

Old   July 27, 2016, 04:58
Default
  #3
Senior Member
 
Manu Chakkingal
Join Date: Feb 2016
Location: Delft, Netherlands
Posts: 129
Rep Power: 10
manuc is on a distinguished road
Thanks Mahdi..I will try it
__________________
Regards
Manu
manuc is offline   Reply With Quote

Reply


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
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 05:38
Transient simulation not converging skabilan OpenFOAM Running, Solving & CFD 14 December 16, 2019 23:12
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM Running, Solving & CFD 8 March 28, 2016 11:08
Stuck in a Rut- interDyMFoam! xoitx OpenFOAM Running, Solving & CFD 14 March 25, 2016 07:09
Sudden jump in Courant number NJG OpenFOAM Running, Solving & CFD 7 May 15, 2014 13:52


All times are GMT -4. The time now is 18:08.