CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   UDF problem: P_VEL(p)(p->state.pos) (http://www.cfd-online.com/Forums/fluent/40505-udf-problem-p_vel-p-p-state-pos.html)

ORC3 April 10, 2006 00:20

UDF problem: P_VEL(p)(p->state.pos)
 
Hello, I need to extract the difference of particle current velocity and initial velocity: what do I need to do? I tried using a udf, and gives error: --- #include "udf.h" #include "dpm.h"

#define P_INIT_VEL(p)(p->init_state.pos) #define P_VEL(p)(p->state.pos)

{ real h; h= P_VEL(p)(p->state.pos)-P_INIT_VEL(p)(p->init_state.pos);

return h; } -- why doesn't it work? I know its silly to ask.

Melanie


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