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/)
-   -   need help for UDF (https://www.cfd-online.com/Forums/fluent-udf/87171-need-help-udf.html)

tagada April 13, 2011 04:36

need help for UDF
 
Hello everybody

I'm trying to increase the particle size (diameter) with UDF in fluent. I made a little code for testing purposes and interpreted it and then defined an injection single which uses this UDF. But when I dislay particle track, the diameter doesn't change. If someone could help me it would be great.
This is my code:

/* compute new particle diameter */
#include "udf.h"

DEFINE_DPM_LAW(diam_particle,p,ci)
{
P_DIAM(p) = 6.0*pow((0.015*0.0003*P_POS(p)[0]/(2*0.7*1000.0*9.81)),(1/3));
}


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