CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   parse error (http://www.cfd-online.com/Forums/fluent/43584-parse-error.html)

brusly February 1, 2007 13:09

parse error
 
hi all when i interpret the udf it shows line 6 parse error can any tell me what may be the reason

the udf is given below

#include "udf.h" #include "sg_mphase.h" #include "mem.h" #include "sg_mem.h"

DEFINE_MASS_TRANSFER(vaporisation_condensation,cel l,mixture_thread,from_index,from_species_id,to_ind ex,to_species_id) { Thread **pt = THREAD_SUB_THREADS(mixture_thread); vof_vapor = C_VOF(c,pt[from_index]); vof_liquid = 1.-vof_vapor; Tl = C_T(c,pt[to_index]); urelx = C_U(c,pt[from_index]) -C_U(c,pt[to_index]); urely = C_V(c,pt[from_index]) -C_V(c,pt[to_index]); urel = sqrt(urelx*urelx + urely*urely + urelz*urelz); dbub = C_PHASE_DIAMETER(c,pt[from_index]); reb = urel * dbub * C_R(c,pt[to_index])/C_MU_L(c,pt[to_index]); Pr = C_MU_L(c,pt[to_index])*C_CP(c,pt[to_index])/C_K_L(c,pt[to_index]); Ai = 6.*vof_vapor/dbub; Nu = 2. + 0.6*pow(reb,0.5)*pow(Pr,0.3) ; H = C_K_L(c,pt[to_index]) * Nu / dbub; total_mass_exchange = - (Tl-Ts)*H*Ai/L; return total_mass_exchange; }

thanks in advance


All times are GMT -4. The time now is 15:31.