CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Please check this UDF. (https://www.cfd-online.com/Forums/fluent/39562-please-check-udf.html)

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 20:56.