CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

Overwriting output time

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

LinkBack Thread Tools Display Modes
Old   August 27, 2013, 09:44
Default Overwriting output time
Tony Ladd
Join Date: Aug 2013
Posts: 37
Rep Power: 6
tladd is on a distinguished road
I am new to OpenFoam and am using SIMPLE to solve the Stokes equations - grad p = nu grad^2 U. Since they are a time independent component of a multistage solver I want to prevent the time value from incrementing during the SIMPLE iteration (simple.loop). Any suggestions? I looked at SimpleControl.C but I could not figure out where the runtime.timeName() is being incremented. This program is very useful but its way too clever for me.


tladd is offline   Reply With Quote

Old   September 1, 2013, 08:00
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Deltares, Delft, The Netherlands
Posts: 1,758
Rep Power: 29
ngj will become famous soon enoughngj will become famous soon enough
Hi Tony,

If I understand you correctly, then you are developing something with this type of structure:

while OuterTimeLoop
O1. Some operations
while InnerTimeLoop
I1. Produce steady state solution
O2. Some more operations based on steady state solution.
From the top of my head, I would probably try to work with two Time objects (e.g. runTime and runTimeInner). one, which is constructed before the OuterTimeLoop and then one, which you construct each and every time before the InnerTimeLoop. In this way, you will have a time increment for the outer (transient?) time loop, which is independent of the steady state solution, which might even work with a different time stepping, Courant criterion, etc. This can then be control by given the InnerTimeLoop a second controlDict, say controlDictInner.

The only thing you will need to be aware of, is that there might be the need of a duplicate of variables and some corresponding mapper, such that they carry the correct time information depending on the use of the variables, but I do not have an answer for that.

Kind regards,

Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote


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
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM Running, Solving & CFD 8 March 28, 2016 11:08
Rapidly decreasing deltaT for interDyMFoam chrisb2244 OpenFOAM Running, Solving & CFD 3 July 1, 2014 16:40
Unstabil Simulation with chtMultiRegionFoam mbay101 OpenFOAM Running, Solving & CFD 13 December 28, 2013 14:12
Orifice Plate with a fully developed flow - Problems with convergence jonmec OpenFOAM Running, Solving & CFD 3 July 28, 2011 05:24
ForcesCoeffs ronaldo OpenFOAM 4 September 14, 2009 07:11

All times are GMT -4. The time now is 12:41.