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

Overwriting output time

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 27, 2013, 10:44
Default Overwriting output time
  #1
Member
 
Tony Ladd
Join Date: Aug 2013
Posts: 48
Rep Power: 13
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.

Thanks

Tony
tladd is offline   Reply With Quote

Old   September 1, 2013, 09:00
Default
  #2
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,902
Rep Power: 37
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:

Code:
while OuterTimeLoop
O1. Some operations
while InnerTimeLoop
I1. Produce steady state solution
end
O2. Some more operations based on steady state solution.
end
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,

Niels
__________________
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

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
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM Running, Solving & CFD 8 March 28, 2016 12:08
Rapidly decreasing deltaT for interDyMFoam chrisb2244 OpenFOAM Running, Solving & CFD 3 July 1, 2014 17: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 06:24
ForcesCoeffs ronaldo OpenFOAM 4 September 14, 2009 08:11


All times are GMT -4. The time now is 05:56.