CFD Online Discussion Forums

CFD Online Discussion Forums (
-   CFX (
-   -   Adjusting Physical Time Scale Dynamically (

zephyrus17 August 19, 2011 09:30

Adjusting Physical Time Scale Dynamically
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:

0.3 [m]/ave(Velocity)@Body
But just need a way for it to guess the first (and only the first) iteration step, then let my expression take over.

Any help would be greatly appreciated.

mauricio August 20, 2011 20:49

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)

zephyrus17 August 21, 2011 10:28

Oh, good job! Thank you for your help! :D

All times are GMT -4. The time now is 23:02.