CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   Urgent, Urgent, a UDF problem, PLEASE HELP!!! (http://www.cfd-online.com/Forums/fluent/46642-urgent-urgent-udf-problem-please-help.html)

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,

Max

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 11:06.