|
[Sponsors] |
February 1, 2007, 13:09 |
parse error
|
#1 |
Guest
Posts: n/a
|
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM] Native ParaView Reader Bugs | tj22 | ParaView | 270 | January 4, 2016 12:39 |
nonNewtonian viscosity model | mhassani | OpenFOAM Programming & Development | 5 | January 7, 2013 10:27 |
Accessing phi from a fvPatchField at same patch | johndeas | OpenFOAM | 1 | September 13, 2010 21:23 |
compile errors of boundary condition "expDirectionMixed" | liying02ts | OpenFOAM Bugs | 2 | February 1, 2010 21:11 |
user defined function | cfduser | CFX | 0 | April 29, 2006 11:58 |