CFD Online Discussion Forums

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

brusly February 4, 2007 23:15

udf parse error
 
hi cfdiens

can any one find the error in the define term:when i interpret it shows line6 parse error

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

DEFINE_MASS_TRANSFER(vaporisation_condensation,c,m ixture_thread,from_index,from_species_index,to_ind ex,to_species_index) { 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; }

thank u



All times are GMT -4. The time now is 23:43.