CFD Online Logo CFD Online URL
Home > Forums > FLUENT

udf parse error

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   February 4, 2007, 23:15
Default udf parse error
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

  Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
parse error in transient udf spring FLUENT 1 July 6, 2010 06:26
UDF: DEFINE_CG_MOTION for vertical jump motion of an electrode! alban Fluent UDF and Scheme Programming 2 June 8, 2010 18:54
groovyBC sega OpenFOAM Running, Solving & CFD 12 February 17, 2010 10:30
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 02:32
Compiling problems with hello worldC fw407 OpenFOAM Installation 21 January 6, 2008 18:38

All times are GMT -4. The time now is 01:42.