CFD Online Logo CFD Online URL
Home > Forums > Fluent UDF and Scheme Programming

udf for 3d model to give heat flux profile around the wall surface

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

LinkBack Thread Tools Display Modes
Old   September 6, 2012, 06:21
Default udf for 3d model to give heat flux profile around the wall surface
New Member
Join Date: Aug 2012
Posts: 26
Rep Power: 7
n7310889 is on a distinguished road
Hi, could any of you can tell me whats wrong with this macro? Its for 3d to provide input heat-flux profile around a semi circular cylinder of 33mm radius and 1.5m long.The heat profile varies along the verticle y direction and translates the same along the horizontal z axis.

#include "udf.h"

real x[ND_ND];
real x,y,z,r,angle;

face_t f;


x =x[0];
y =x[1];
z =x[2];
r =sqrt(pow(x,2)+pow(y,2));
angle =acos(-y/r);

if ((z>=0.0) && (z<=1.4))

if ((angle>=0.0) && (angle<=60.0))
F_PROFILE(f,thread,index) =6500.0;

if ((angle>50.0) && (angle<=180.0))
F_PROFILE(f,thread,index) =0.0;


F_PROFILE(f,thread,index) =0.0;

n7310889 is offline   Reply With Quote


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
UDF for Heat Exchanger model francois louw FLUENT 2 July 16, 2010 02:21
Heat Flux as a Profile Boundary Condition Hitch8 CFX 2 April 22, 2010 13:09
Wall Heat Flux not a listed variable mike CFX 8 February 5, 2009 14:32
Two-Phase Buoyant Flow Issue Miguel Baritto CFX 4 August 31, 2006 12:02
CFX4.3 -build analysis form Chie Min CFX 5 July 12, 2001 23:19

All times are GMT -4. The time now is 09:44.