|
[Sponsors] |
February 4, 2007, 23:15 |
udf parse error
|
#1 |
Guest
Posts: n/a
|
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
parse error in transient udf | spring | FLUENT | 1 | July 6, 2010 07:26 |
UDF: DEFINE_CG_MOTION for vertical jump motion of an electrode! | alban | Fluent UDF and Scheme Programming | 2 | June 8, 2010 19:54 |
[swak4Foam] groovyBC: problems compiling: "flex: not found" and "undefined reference to ..." | sega | OpenFOAM Community Contributions | 12 | February 17, 2010 10:30 |
Installation OF1.5-dev | ttdtud | OpenFOAM Installation | 46 | May 5, 2009 03:32 |
Compiling problems with hello worldC | fw407 | OpenFOAM Installation | 21 | January 6, 2008 18:38 |