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

UDF for transient conduction.

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 24, 2013, 05:14
Default UDF for transient conduction.
  #1
New Member
 
Ravindra
Join Date: May 2013
Posts: 5
Rep Power: 4
Ravindra123 is on a distinguished road
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..
Ravindra123 is offline   Reply With Quote

Old   August 23, 2013, 14:31
Default Temp.varying with space and Time
  #2
New Member
 
Sharma Abhishek
Join Date: Apr 2012
Posts: 11
Rep Power: 5
avi@lpsc is on a distinguished road
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.
avi@lpsc is offline   Reply With Quote

Old   October 20, 2013, 09:45
Default
  #3
New Member
 
Harshad
Join Date: May 2013
Posts: 13
Rep Power: 4
harsh_999 is on a distinguished road
Quote:
Originally Posted by Ravindra123 View Post
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
harsh_999 is offline   Reply With Quote

Reply

Tags
udf

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
solving a conduction problem in FLUENT using UDF Avin2407 Fluent UDF and Scheme Programming 1 March 13, 2015 03:02
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
Dynamic Mesh UDF Qureshi FLUENT 1 December 2, 2009 01:27
wall conduction, UDF sudh FLUENT 0 June 28, 2004 08:09
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 05:03


All times are GMT -4. The time now is 07:32.