# UDF for transient conduction.

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 LinkBack Thread Tools Display Modes
 June 24, 2013, 05:14 UDF for transient conduction. #1 New Member   Ravindra Join Date: May 2013 Posts: 5 Rep Power: 6 Hi, I am solving a transient conduction problem when a side of the plate is subjected to time and space varying boundary condition. I am using a udf which is as follows: /************************************************** ******************** UDF for specifying a transient velocity profile boundary condition ************************************************** ********************/ #include "udf.h" DEFINE_PROFILE(temp, t, i) { real x[ND_ND]; real x0, y0, time; face_t f; time = CURRENT_TIME; begin_f_loop(f, t) { F_CENTROID(x,f,t); x0 = x[0]; y0 = x[1]; F_PROFILE(f, t, i) = 100.0*sin(y0)*sin(3.14*time)+200.0*cos(y0)*cos(3.1 4*time); } end_f_loop(f, t) } Now the problem is after solving the problem in fluent, when i monitor the temperature at a point on the surface of the wall, I am not getting the temperature variation as given to the UDF. Does this problem is related to time step i am using? or there is the problem in the UDF? Any help would be appreciated... Thanks..

 August 23, 2013, 14:31 Temp.varying with space and Time #2 New Member   AMSharma Join Date: Apr 2012 Posts: 12 Rep Power: 7 Hi Ravindra Whether you have sorted out the problem with your transient conduction udf? I am looking for a very similar udf for temperature varying with space and time..Could you please forward me the model udf for same.

October 20, 2013, 09:45
#3
New Member

Harshad
Join Date: May 2013
Location: mUMBAI
Posts: 13
Rep Power: 6
Quote:
 Originally Posted by Ravindra123 Hi, I am solving a transient conduction problem when a side of the plate is subjected to time and space varying boundary condition. I am using a udf which is as follows: /************************************************** ******************** UDF for specifying a transient velocity profile boundary condition ************************************************** ********************/ #include "udf.h" DEFINE_PROFILE(temp, t, i) { real x[ND_ND]; real x0, y0, time; face_t f; time = CURRENT_TIME; begin_f_loop(f, t) { F_CENTROID(x,f,t); x0 = x[0]; y0 = x[1]; F_PROFILE(f, t, i) = 100.0*sin(y0)*sin(3.14*time)+200.0*cos(y0)*cos(3.1 4*time); } end_f_loop(f, t) } Now the problem is after solving the problem in fluent, when i monitor the temperature at a point on the surface of the wall, I am not getting the temperature variation as given to the UDF. Does this problem is related to time step i am using? or there is the problem in the UDF? Any help would be appreciated... Thanks..
Hi Ravindra,
Have u written ur profile right?
i dont c it is a function of x though u've defined x0
u've written it as a function of y only
inform d check
good luck

 Tags udf

 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 Qureshi FLUENT 7 March 23, 2017 08:37 Avin2407 Fluent UDF and Scheme Programming 1 March 13, 2015 03:02 shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14 sudh FLUENT 0 June 28, 2004 08:09 Luc SEMINEL FLUENT 0 November 25, 2002 05:03

All times are GMT -4. The time now is 06:50.

 Contact Us - CFD Online - Privacy Statement - Top