CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   Parse error whilst interpreting UDF for drag model (https://www.cfd-online.com/Forums/fluent-udf/106125-parse-error-whilst-interpreting-udf-drag-model.html)

 Musa August 20, 2012 05:49

Parse error whilst interpreting UDF for drag model

Hello dear friends,
I have been trying to interpret the code below but I keep getting the message parse error in line 10. Kindly help me out. I am a beginner in using udf's.

# include "udf.h"

# define pi 4.atan(1.)
# define diam2 4.06e-4

{
real x_vel_g,x_vel_s,y_vel_g,y_vel_s,abs_v,slip_x,slip_ y,
rho_g,rho_s,mu_g,reyp,vof_g,vof_s,vof_m,taup,k_g_s ;
vof_m = 0.47
/* find the threads for the gas(primary)*/
/* and solids(secondary phases) */

/* find phase velocities and properties*/

/* compute slip*/
abs_v = sqrt(slip_x*slip_x + slip_y*slip_y);

/* compute reynolds number*/
reyp = rho_g*abs_v*diam2/mu_g;

/* compute particle relaxation time*/
taup = rho_s*vof_s/k_g_s
vof_g = C_VOF(cell,thread_g);/* gas vol frac */
vof_s = C_VOF(cell,thread_s);/* solid vol frac*/

k_g_s = 18*mu_g*vof_s*(1 + 0.1*pow(reyp,0.75))/diam2/diam2/pow(1-(vof_s/vof_m),2.5*vof_m);
return k_g_s;
}

 smhosseini August 20, 2012 09:05

Hi musa,