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/)
-   -   bubbles diameter: UDF function that defines the particles growth as they move along x (http://www.cfd-online.com/Forums/fluent-udf/81441-bubbles-diameter-udf-function-defines-particles-growth-they-move-along-x.html)

tagada October 27, 2010 05:26

bubbles diameter: UDF function that defines the particles growth as they move along x
 
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.

majid_kamyab June 11, 2015 06:28

what exactly do you mean by not working
are you using population balance model?

pakk June 15, 2015 10:23

"This UDF doesn't work" is very little information. Be more specific.


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