CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   udf, boundary (https://www.cfd-online.com/Forums/fluent/95015-udf-boundary.html)

hamid1 December 2, 2011 08:55

udf, boundary
 
Hi
I actually want to measure the pressure at the outlet boundary condition,
i have written the following code :

DEFINE_PROFILE(outlet_catheter,thread,nv)

{


face_t f;
real NV_VEC (A);



T=RP_Get_Real("flow-time");


begin_f_loop(f,thread)

{
F_AREA (A,f,thread);

force+=F_P(f,thread)*NV_MAG(A);
PF= force/(15.0*(10^(-4)));



}

end_f_loop(f,thread)



}

but it seems that its not calculating the pressure properly,
i would appreciate if anyone could kindly help me..

litterfree December 3, 2011 03:43

you should use other macros. such as DEFINE ADJUST(), DEFINE_EXECUTE_AT_END(),
DEFINE_ON_DEMAND()

hamid1 December 3, 2011 09:57

thanks so much for the reply,
im quite new in udf, so i want to ask,
between the macros that u have mentioned which one should I choose ?
how can i inform fluent that which face i want to measure the pressure?
besides, is the code i have written for measuring pressure correct?

thanks again


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