CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT

UDF Wall Temperature Problem - Coordinates

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

LinkBack Thread Tools Search this Thread Display Modes
Old   July 3, 2008, 06:33
Default UDF Wall Temperature Problem - Coordinates
Posts: n/a
Dear Fluent Users,

I try to define a wall temperature with DEFINE_PROFILE, the temperature should vary with one of the three GLOBAL coordinates which exist. My wall ist a tube, so geometrically the BC is a cylinder. The variation of the temperature works fine for two dimensions ( x[1] and x[2] ), but not for the third (axial , using x[3]) dimension. Any idea what couldt be wrong?

DEFINE_PROFILE(dt_name, thread, i)


face_t f;

real x[ND_ND];

real z;

begin_f_loop(f, thread)




F_PROFILE(f, thread, i) = 273 + z*800;


end_f_loop(f, thread)


Thank you in advance.

  Reply With Quote

Old   July 3, 2008, 11:10
Default Re: UDF Wall Temperature Problem - Coordinates
Posts: n/a
The x vector returned by F_CENTROID(x,f,thread) has three components stored in x[0], x[1], and x[2]. You'll have to use x[2] for the third (axial) component.

  Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
CCM+Multiphase problem with Cylindric coordinates S.B Siemens 0 November 18, 2007 21:59
Problem with the cylindrical coordinates langloi OpenFOAM Running, Solving & CFD 0 December 9, 2005 22:26
Access cell coordinates and wall data in posdat.f Boban Siemens 5 July 22, 2005 04:25
About fix wall temperature in wall boundary joon Siemens 2 March 10, 2003 01:41
Wall boundary coordinates? cjtune Siemens 1 February 18, 2003 10:31

All times are GMT -4. The time now is 03:20.