CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   reverse flow (http://www.cfd-online.com/Forums/fluent/75555-reverse-flow.html)

Engr.Hala April 28, 2010 13:52

Udf help
 
Hi everybody
In my model i have two phase flow (vapor water carrying water droplets
) passing though a tube banks. I need to add UDF which describes the growth in the water droplet as a function of time and when it reaches a certain size it deletes.

I have wrote the following UDF
/************************************************/
/*UDF that simulates deleting particles when particle diamaetr */
/*which is a function of time is greater than 1 mm */
/************************************************/

#include "udf.h"

DEFINE_PROPERTY(particle_diamater,c,t)
{

real pdiameter=C_PHASE_DIAMETER(c,t);

if (pdiameter >= 0.0001)
DIAMETER = 0.;

else
DIAMATER = pdiamater;

return DIAMETER;

}
I don't have C+ program installed on my machine is that necessary. When i am reading the UDF in FLUENT i am receiving the following : parse erro

Can anybody help please? It is urgent !!!!


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