|November 8, 2013, 10:47||
Join Date: May 2009
Posts: 1,188Rep Power: 21
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.
|February 10, 2014, 18:16||
Join Date: Feb 2012
Posts: 49Rep Power: 7
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: 314Rep Power: 7
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|
|Reading forces from previous time step within solver||SD@TUB||OpenFOAM Programming & Development||1||May 25, 2016 03:00|
|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|
|Convergence moving mesh||lr103476||OpenFOAM Running, Solving & CFD||30||November 19, 2007 15:09|