CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Fluent UDF and Scheme Programming (
-   -   UDF Clarrification. (

Shrinand June 11, 2010 03:47

UDF Clarrification.
1 Attachment(s)
I wanted to create a UDF for temperature distribution profile in a samll diverging channel, wherin height varies from 25mm to 51.78 mm along a line of 50 mm. the angle is 15 degrees.

Dimension is also given below.
Attachment 3730

The temperature profile required is of parabolic eqn. My prev UDF is given by t=300+(6500*x). here x is in meters. so if x is .09 m, my temp reaches 300 + 585 = 885 k. The problem is that i want to vary it along y axis also. Full udf is given below.

#include "udf.h"
DEFINE_PROFILE(wall_x_temp, thread, index)
float r[100];
float x;
face_t f;
begin_f_loop(f, thread)
F_PROFILE(f, thread, index) = 300.+(6500*x);
F_CENTROID(r, f, thread);
end_f_loop(f, thread)


Pls help

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