|
[Sponsors] |
August 19, 2011, 09:30 |
Adjusting Physical Time Scale Dynamically
|
#1 |
New Member
Join Date: Sep 2010
Posts: 28
Rep Power: 0 |
How would it be possible for the solver to adjust the Physical Time Scale during the solving dynamically based on the solving iteration number? I got the CEL Expression down to:
Code:
0.3 [m]/ave(Velocity)@Body Any help would be greatly appreciated. |
|
August 20, 2011, 20:49 |
|
#2 |
Member
Mauricio Labarca
Join Date: Aug 2009
Posts: 35
Rep Power: 16 |
I have done something like that in transitory cases with the timestep... it should be something similar for the timescale. I've nested the "if" functions to make the timestep variable depending on the simulation time. In your case you could try reading the iteration number; if iteration number is==1 then do an expression for guessing the first timescale, else use your dinamyc expression.
the variable for accesing the current iteration number is "citern" so the if expression could be something like: if(citern=1,<Expression for first timestep>,0.3 [m]/ave(Velocity)@Body) |
|
August 21, 2011, 10:28 |
|
#3 |
New Member
Join Date: Sep 2010
Posts: 28
Rep Power: 0 |
Oh, good job! Thank you for your help!
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Physical Reason for stability of Implicit Schemes? | radhakrishnan | Main CFD Forum | 26 | October 3, 2023 22:05 |
Superlinear speedup in OpenFOAM 13 | msrinath80 | OpenFOAM Running, Solving & CFD | 18 | March 3, 2015 05:36 |
How to write k and epsilon before the abnormal end | xiuying | OpenFOAM Running, Solving & CFD | 8 | August 27, 2013 15:33 |
time averaged heat transfer in oscillating flow | Matthieu Ubas | Main CFD Forum | 2 | November 5, 1999 14:20 |
unsteady calcs in FLUENT | Sanjay Padhiar | Main CFD Forum | 1 | March 31, 1999 12:32 |