UDF for charge density parameter
Hello, i'm trying to use UDF for charge density of inert particles. I'm using MHD module and DPM.
When using discrete phase sample on reports (particle tracks for example) i see error: Error at Node 2: get_udf_function: function charge_density_macro has wrong type: 2! = 46. It happened even with simple code like i used last time: #include "udf.h" DEFINE_DPM_PROPERTY(charge_density_macro, c, t, p, T) { real charge_density; charge_density = -1; return charge_density; } I know, error means that i'm using wrong type of udf for this parameter, but i wonder what i do wrong... P.S. If i use interpreted , here is no mistake. That erroe happenes only when i use compiled code (i need to use compiled for main code) |
I've compiled this code without any error
Are you sure you can define negative density?:confused: |
All times are GMT -4. The time now is 08:37. |