CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

Please Help! Temperature profile UDF for 3D geometry

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 16, 2010, 01:47
Default Please Help! Temperature profile UDF for 3D geometry
  #1
New Member
 
Subhankar
Join Date: Jul 2010
Posts: 12
Rep Power: 6
subhankar_bhandari is on a distinguished road
Hi all,
I am using UDF to define temperature field in 2D fluid flow problem. If I would like to put 3D temperature profile , what modification of UDF for 2D temperature profile is required.

My UDF for 2D temperature profile is :

DEFINE_PROFILE(inlet_temp, thread, index)
{
real x[ND_ND];
real temp, y;
face_t f;

begin_f_loop(f, thread)
{
F_CENTROID(x,f,thread);
y = x[1];
temp = (12285-333)*(1-(pow((y/0.0035),4)))+(333);
F_PROFILE(f, thread, index) = temp;
printf("Temperature calculated by UDF is %f\n",temp);
}
end_f_loop(f, thread)
}

what would be for 3D?

Thanks in advance.
subhankar_bhandari is offline   Reply With Quote

Old   April 16, 2011, 05:23
Default
  #2
Member
 
Join Date: Mar 2011
Posts: 50
Rep Power: 5
cdf_user is on a distinguished road
for 3d

y = pow(x[1],2) + pow(x[2],2)
cdf_user is offline   Reply With Quote

Old   April 16, 2011, 05:30
Default
  #3
Member
 
Join Date: Mar 2011
Posts: 50
Rep Power: 5
cdf_user is on a distinguished road
for 3d

y = pow(x[1],2) + pow(x[2],2)
cdf_user 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
3D UDF Paraboilc Velocity Profile (Can't Maintain) Sing FLUENT 7 September 1, 2011 01:38
how to set temperature profile in atmospheric boundary layer vickrenz FLUENT 0 September 16, 2009 13:26
velocity and temperature profile vickrenz FLUENT 0 August 30, 2009 23:58
please help UDF for velocity profile in y-directio raju FLUENT 3 September 22, 2008 16:36
UDF: temperature profile dolores FLUENT 5 March 30, 2004 04:53


All times are GMT -4. The time now is 10:59.