|
[Sponsors] |
November 8, 2013, 10:47 |
|
#21 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
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.
- Anton
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
February 10, 2014, 18:16 |
|
#22 |
Member
Join Date: Feb 2012
Posts: 49
Rep Power: 14 |
Does U.oldTime() gives us the value of previous time step, or last value of the field?
assume that we have this situation : while (runTime.loop()) { U = somevalue1 ; . . U = somevalue2 ; x = U.oldTime(); } So x is somevalue1 or is the value of U at the previous time step ? |
|
February 10, 2014, 21:10 |
|
#23 |
Senior Member
Mohammad Shakil Ahmmed
Join Date: Oct 2012
Location: AUS
Posts: 137
Rep Power: 15 |
U.oldTime() will give the values of U at previous time step.
|
|
March 7, 2015, 16:35 |
|
#24 | |
Senior Member
Join Date: Jan 2013
Posts: 372
Rep Power: 14 |
Dear Marupio,
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 Quote:
|
||
October 7, 2023, 22:51 |
hello
|
#25 |
New Member
Grp
Join Date: Feb 2023
Posts: 14
Rep Power: 3 |
||
Tags |
field, store, time step |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Reading forces from previous time step within solver | SD@TUB | OpenFOAM Programming & Development | 5 | April 24, 2023 12:51 |
Time step size and max iterations per time step | pUl| | FLUENT | 31 | October 23, 2020 23:50 |
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 22:35 |
Convergence moving mesh | lr103476 | OpenFOAM Running, Solving & CFD | 30 | November 19, 2007 15:09 |