CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Fluent UDF and Scheme Programming

Macros - Time dependent

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 11, 2012, 04:47
Default Macros - Time dependent
  #1
Senior Member
 
---------
Join Date: Oct 2010
Posts: 302
Rep Power: 8
saisanthoshm88 is on a distinguished road
Could some one please explain the difference between the solver macros CURRENT_TIME and CURRENT_TIMESTEP in Fluent.

I'd appreciate an explanation with a short example
__________________
Best regards,
Santhosh.
saisanthoshm88 is offline   Reply With Quote

Old   September 11, 2012, 05:35
Default
  #2
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Shiraz, Iran
Posts: 739
Blog Entries: 1
Rep Power: 14
Amir is on a distinguished road
CURRENT_TIME is the current physical time and CURRENT_TIMESTEP is the current numerical used time step. (In some algorithms, the floating time step may use)
e.g., for a case with fixed time step of 1 sec, after 10 time step we have:
CURRENT_TIME=10 sec
CURRENT_TIMESTEP=1 sec

Bests,
__________________
Amir
Amir is offline   Reply With Quote

Old   September 11, 2012, 06:50
Default
  #3
Senior Member
 
---------
Join Date: Oct 2010
Posts: 302
Rep Power: 8
saisanthoshm88 is on a distinguished road
Thanks for the reply Amir. I've a question on writing a udf that involves an interpolation

For instance i have the following case where the inlet pressure varies with times as follows:

Time [sec] - 0 0.2 0.3
Pressure [Pa] - 0 10 0

so the udf should now interpolate for the values of pressure in the intervals [0,0.2] and [0.2,0.3] in this case.

Here it is only a few points so it may be easier to just extract the interpolation functions easily and frame the udf but is there a better way of doing this when the data is much.
__________________
Best regards,
Santhosh.
saisanthoshm88 is offline   Reply With Quote

Old   September 11, 2012, 08:10
Default
  #4
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Shiraz, Iran
Posts: 739
Blog Entries: 1
Rep Power: 14
Amir is on a distinguished road
yes, there is. You can use a profile instead of UDF. (refer to the manual-> transient profiles)

Bests,
__________________
Amir
Amir 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
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 15:33
plot over time fferroni OpenFOAM Post-Processing 7 June 8, 2012 07:56
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM 6 April 12, 2011 11:24
time dependent curve faiz rauf FLUENT 0 August 31, 2004 13:02
Time Dependent Solutions. rakib FLUENT 2 June 28, 2000 07:39


All times are GMT -4. The time now is 04:27.