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

Macros - Time dependent

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 11, 2012, 05:47
Default Macros - Time dependent
  #1
Senior Member
 
---------
Join Date: Oct 2010
Posts: 303
Rep Power: 18
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, 06:35
Default
  #2
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Montreal, QC
Posts: 735
Blog Entries: 1
Rep Power: 23
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, 07:50
Default
  #3
Senior Member
 
---------
Join Date: Oct 2010
Posts: 303
Rep Power: 18
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, 09:10
Default
  #4
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Montreal, QC
Posts: 735
Blog Entries: 1
Rep Power: 23
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


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM Running, Solving & CFD 8 March 28, 2016 12:08
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 16:33
plot over time fferroni OpenFOAM Post-Processing 7 June 8, 2012 08:56
time dependent curve faiz rauf FLUENT 0 August 31, 2004 14:02
Time Dependent Solutions. rakib FLUENT 2 June 28, 2000 08:39


All times are GMT -4. The time now is 22:26.