|November 8, 2013, 10:47||
Join Date: May 2009
Location: Delft, Netherlands
Posts: 984Rep Power: 17
oldTime and prevIter both are useful, nothing is deprecated. As stated by David, you can use oldTime to go back multiple time steps (not just one as prevIter), and it manages the storing automatically. That of course only works if you actually need values from a previous timestep, not from subcycle iterations. The latter case is where you would typically use prevIter/storePrevIter, but of course you can also use it to store data from a previous time step.
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
*Help define the OpenFOAM stackexchange Q&A site: http://area51.stackexchange.com/prop...oam-technology
|February 10, 2014, 18:16||
Join Date: Feb 2012
Posts: 49Rep Power: 5
Does U.oldTime() gives us the value of previous time step, or last value of the field?
assume that we have this situation :
U = somevalue1 ;
U = somevalue2 ;
x = U.oldTime();
So x is somevalue1 or is the value of U at the previous time step ?
|March 7, 2015, 16:35||
Join Date: Jan 2013
Posts: 235Rep Power: 5
Your reply below is very helpful, but I have still the problems about
when "erased and reconstructed at every timestep" happens? At the beginning of each time step or at the end of the time step?
Thank you very much. OFFO
|field, store, time step|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Time step size and max iterations per time step||pUl|||FLUENT||31||August 21, 2015 04:46|
|Superlinear speedup in OpenFOAM 13||msrinath80||OpenFOAM Running, Solving & CFD||18||March 3, 2015 06:36|
|UDF: Previous time step macros NOT working||jpapg||FLUENT||0||April 30, 2011 21:35|
|Reading forces from previous time step within solver||SD@TUB||OpenFOAM Programming & Development||0||March 14, 2010 07:58|
|Convergence moving mesh||lr103476||OpenFOAM Running, Solving & CFD||30||November 19, 2007 15:09|