CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   UDF charge density in mhd model dpm (https://www.cfd-online.com/Forums/fluent-udf/186969-udf-charge-density-mhd-model-dpm.html)

G-NO April 25, 2017 20:42

UDF charge density in mhd model dpm
 
I want to use the charge density of the inert particles with udf when I turn on the mhd model and use dpm.
However, when using discrete phase sample on reports, it caused an error even writing code that only takes very simple constants.

Error at Node 2: get_udf_function: function charge_density :: abc has wrong type: 2! = 43

I wonder what kind of type requires and what the wrong type means.
If anyone has applied udf to charge density, please help.

P.S. code is very simple

#include "udf.h"
DEFINE_DPM_PROPERTY(charge_density,c,t,p,i)
{
return 5;
}

Thanks for read my post. :)


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