CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   error "P_POS: undeclared variable" (http://www.cfd-online.com/Forums/fluent/109155-error-p_pos-undeclared-variable.html)

morihangi November 10, 2012 09:54

error "P_POS: undeclared variable"
 
Hi
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?

thanks,

msaeedsadeghi November 12, 2012 04:38

Complex UDFs should be compiled.


All times are GMT -4. The time now is 00:51.