# What is the difference between current time step and current time

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

 April 28, 2012, 17:23 What is the difference between current time step and current time #1 New Member   Join Date: Sep 2011 Posts: 15 Rep Power: 14 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

April 29, 2012, 11:15
#2
Senior Member

Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,683
Rep Power: 66
Quote:
 Originally Posted by djing CURRENT TIME real current flow time (in seconds) CURRENT TIMESTEP real current physical time step size (in seconds)

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

 April 29, 2012, 16:48 #3 New Member   Join Date: Sep 2011 Posts: 15 Rep Power: 14 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

April 29, 2012, 17:04
#4
Senior Member

Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,683
Rep Power: 66
Quote:
 Originally Posted by djing 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.

 May 1, 2012, 16:18 #5 New Member   Join Date: Sep 2011 Posts: 15 Rep Power: 14 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

 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 OffTrackbacks are Off Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Komon Fluent UDF and Scheme Programming 1 April 1, 2012 19:53 tsram90 FLUENT 0 November 11, 2011 10:19 olwi OpenFOAM Running, Solving & CFD 1 April 30, 2009 04:55 dm2747 FLUENT 0 April 17, 2009 01:29 Molly CFX 9 May 29, 2008 10:23

All times are GMT -4. The time now is 00:49.