# Macros - Time dependent

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

 September 11, 2012, 04:47 Macros - Time dependent #1 Senior Member   --------- Join Date: Oct 2010 Posts: 303 Rep Power: 9 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.

 September 11, 2012, 05:35 #2 Senior Member     Amir Join Date: May 2009 Location: Montreal, QC Posts: 739 Blog Entries: 1 Rep Power: 15 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

 September 11, 2012, 06:50 #3 Senior Member   --------- Join Date: Oct 2010 Posts: 303 Rep Power: 9 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.

 September 11, 2012, 08:10 #4 Senior Member     Amir Join Date: May 2009 Location: Montreal, QC Posts: 739 Blog Entries: 1 Rep Power: 15 yes, there is. You can use a profile instead of UDF. (refer to the manual-> transient profiles) Bests, __________________ Amir

 Thread Tools Display Modes Linear Mode

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

 Similar Threads Thread Thread Starter Forum Replies Last Post Lord Kelvin OpenFOAM Running, Solving & CFD 8 March 28, 2016 11:08 xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 15:33 fferroni OpenFOAM Post-Processing 7 June 8, 2012 07:56 faiz rauf FLUENT 0 August 31, 2004 13:02 rakib FLUENT 2 June 28, 2000 07:39

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