CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   Please check this UDF. (

Josh February 8, 2006 12:27

Please check this UDF.
When I run this UDF, the following messege appears:

iter time/iter chip-exec: charge_density: wrong return type: void udf function expecteddensity

The UDF is shown below:

#include "udf.h" #define QM -5e-6 DEFINE_SOURCE(charge_density,c,t,dS,eqn) { real density; density=QM; printf("density", density); return density; }

All times are GMT -4. The time now is 15:47.