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

UDF for wall temperature

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   October 8, 2009, 12:48
Default UDF for wall temperature
  #1
New Member
 
Sakthivale Roshan Dhaneswar
Join Date: Oct 2009
Posts: 2
Rep Power: 0
dhanshan1986 is on a distinguished road
Hello, I am new to using UDFs on fluent and am finding it quite hard. I need to specify a wall (vertical walls) temperature boundary condition : T(x) = 800*X/0.2 where X (m) is the distance of the point from the top of the geometry (rectangular) which is totally 50 cm long. The origin of the geometry is at the bottom.

This is the code I have written so far:

#include "udf.h"
DEFINE_PROFILE(wall_temp, thread, position)
{
real x[ND_ND]; /* this will hold the position vector */
real y;
cell_t f;

begin_f_loop(f,thread)
{
F_CENTROID(x, f, thread);
y = x[1];
F_T(f,thread,position) = (800.*(50.-y))/20;
}
end_f_loop(f, thread)
}

When I interpret the udf and run my calculation on fluent, I do not get the result I expect and instead I get a contant temperature of 2000 K. I also get an 'nmake' error during compilation. Is compilation necessary ?
Thanks in advance.
dhanshan1986 is offline   Reply With Quote

 


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
UDF for a horizontal temperature profile CD Fluent UDF and Scheme Programming 9 May 6, 2018 12:13
UDF or any approach for Bulk Temperature calculation vemps FLUENT 0 May 1, 2009 01:09
UDF velocity and temperature Raj FLUENT 3 February 1, 2009 18:29
Access Granular Temperature in UDF Gavin FLUENT 5 July 22, 2005 11:06
UDF: Repatching part temperature Mcgregor FLUENT 1 June 2, 2003 08:51


All times are GMT -4. The time now is 17:39.