CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   error "P_POS: undeclared variable" (

morihangi November 10, 2012 09:54

error "P_POS: undeclared variable"
I'm trying to write a UDF for body force appling on a particle. the body force is dependent on the position of the particle, so I used P_POS(p)[i] macro for this purpose. But after interpreting the UDF in fluent, there's always an error entitled "P_POS: undeclared variable". however this macro is mentioned in the FLUENT UDF manual. would you help me?


msaeedsadeghi November 12, 2012 04:38

Complex UDFs should be compiled.

All times are GMT -4. The time now is 06:20.