CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   What is the difference between current time step and current time (https://www.cfd-online.com/Forums/fluent/101183-what-difference-between-current-time-step-current-time.html)

djing April 28, 2012 17:23

What is the difference between current time step and current time
 
hi
I want to simulate unsteady flow in FLUENT why do I use a variable speed input and a variable pressure output
to do that I must use one of two macros (udf):
CURRENT TIME or CURRENT TIMESTEP
I want to know what is the difference between the two macros knowing that I found on their deffinition in FLUENT UDF guide as follows:

Macro Name Returns
CURRENT TIME real current flow time (in seconds)
CURRENT TIMESTEP real current physical time step size (in seconds)

thank you in advance for your reply

LuckyTran April 29, 2012 11:15

Quote:

Originally Posted by djing (Post 358232)
CURRENT TIME real current flow time (in seconds)
CURRENT TIMESTEP real current physical time step size (in seconds)

I had thought that:

current time is physical time with units of seconds
current timestep is a counter (a number) to keep track of how many timesteps have been solved

djing April 29, 2012 16:48

thank you for your reply

if current timestep is a counter (a number) to keep track of how many timesteps have been solved as you say
why it is referred as second in FLUENT

LuckyTran April 29, 2012 17:04

Quote:

Originally Posted by djing (Post 358375)
thank you for your reply

if current timestep is a counter (a number) to keep track of how many timesteps have been solved as you say
why it is referred as second in FLUENT

I was mixed up. Now I am wondering which variable holds the current timestep.

CURRENT TIME is current physical time of current iteration
CURRENT TIMESTEP is the timestep size (change in time between two iterations in time).

But does that help? I still think it's odd that TIMESTEP refers to the timestep size and not the current timestep but whatever.

if you want to know how much time has elapsed since the simulation started, you should reference TIME.
If you need to know the timestep size between two iterations you should reference TIMESTEP. Though, I am not sure if the timestep is considered previous and current iteration or current and next iteration. That would take more reading.

djing May 1, 2012 16:18

thank you for your contribution
I think now the difference is clear between the two (current time and current time step) maintenat I have to use current time for my simulation


All times are GMT -4. The time now is 05:51.