CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   need some help, UDF for bubbles diameter (http://www.cfd-online.com/Forums/fluent-udf/81441-need-some-help-udf-bubbles-diameter.html)

tagada October 27, 2010 06:26

need some help, UDF for bubbles diameter
 
I try to write an UDF function that defines the particles growth as they move along x axis (nucleation). i'm working with an axisymetric case and an eulerian model, the particles (bubbles) are injected in the x direction.
Ther is two phases, the bubbles are injected in the BC xith the velocity inlet.

This UDF doesn't work:

#include "udf.h"

#define puissance 1./3

DEFINE_PROPERTY(bubble_diameter, c, tc)
{

real x[ND_ND];

C_CENTROID(x,c,tc);

x[1] = P_POS(p)[1];

real cte1;

cte1 = (0.015 / 2.0 * 0.7 * 1000.0 * 9.81) * 0.000300;

P_DIAM(p) = cte1;

return 6 * pow(cte1 * x, puissance);
}

I need some help, thank you.


All times are GMT -4. The time now is 14:50.