CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   UDF Wall Temperature Problem - Coordinates (http://www.cfd-online.com/Forums/fluent/48664-udf-wall-temperature-problem-coordinates.html)

 Marc July 3, 2008 06:33

UDF Wall Temperature Problem - Coordinates

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?

{

face_t f;

real x[ND_ND];

real z;

{

z=x[3];

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

}

}

 Remus July 3, 2008 11:10

Re: UDF Wall Temperature Problem - Coordinates

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.

Remus

 All times are GMT -4. The time now is 05:33.