CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > CFX

Adjusting Physical Time Scale Dynamically

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   August 19, 2011, 09:30
Default Adjusting Physical Time Scale Dynamically
  #1
New Member
 
Join Date: Sep 2010
Posts: 28
Rep Power: 0
zephyrus17 is on a distinguished road
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
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.
zephyrus17 is offline   Reply With Quote

Old   August 20, 2011, 20:49
Default
  #2
Member
 
Mauricio Labarca
Join Date: Aug 2009
Posts: 35
Rep Power: 7
mauricio is on a distinguished road
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)
mauricio is offline   Reply With Quote

Old   August 21, 2011, 10:28
Default
  #3
New Member
 
Join Date: Sep 2010
Posts: 28
Rep Power: 0
zephyrus17 is on a distinguished road
Oh, good job! Thank you for your help!
zephyrus17 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 06:36
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 15:33
Physical Reason for stability of Implicit Schemes? radhakrishnan Main CFD Forum 25 December 7, 2000 16:25
time averaged heat transfer in oscillating flow Matthieu Ubas Main CFD Forum 2 November 5, 1999 15:20
unsteady calcs in FLUENT Sanjay Padhiar Main CFD Forum 1 March 31, 1999 12:32


All times are GMT -4. The time now is 14:36.