CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   UDF help------------ (https://www.cfd-online.com/Forums/fluent/42668-udf-help.html)

mech October 26, 2006 10:33

UDF help------------
 
My following UDF compiled and run well but I get 0 in the UDMI. Can anybody what is the problem?

#define <mem.h>

DEFINE_ON_DEMAND(on_demand_WallShear) {

Thread *tf;

cell_t c;

face_t f;

int ID =3;

Domain *domain;

real NV_VEC(A);

domain = Get_Domain(1);

tf = Lookup_Thread(domain,ID);

begin_f_loop(f, tf)

{

F_AREA(A,f,tf);

F_UDMI(f,tf,1)= NV_MAG(A);

}

end_f_loop(f, tf)

}


cadaei October 27, 2006 10:03

Re: UDF help------------
 
you need to store the value using F_UDMI and C_UDMI. then display with node values turned off in Fluent

mech November 2, 2006 06:35

Re: UDF help------------
 
Thank you cadaei for your attentioin. i will try.


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