CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   Urgent, Urgent, a UDF problem, PLEASE HELP!!! (

Max November 21, 2007 08:29

Urgent, Urgent, a UDF problem, PLEASE HELP!!!
Hi all,

I have worked with UDFs for some months. I passed a lot of problem in dealing with UDFs, but I encounter with a problem that it makes me realy confused. My simplified UDF is as follows:

DEFINE_PROFILE(film_temperature, t, i) {

int F;

real T;

face_t f;

begin_f_loop(f, t)


F = f;

F_PROFILE(f, t, i) = 100 + F;

Message0("F:%d\n", F);

T = F_T(f,t);

Message0("face Temp: %f\n", T);


end_f_loop(f, t) }

I hook this UDF on a wall as a temperature B.C., but it doesn't work fine. Could anyone tell me how can I correct it?

Thanks in advance,


W7032654 September 24, 2010 20:30

F = f;is error
F = f;is error ,you can F_CENTROID(x,t) ; F=x[ ]

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