need your help actif member
#include <udf.h>
#define pi 4.*atan(1.) #define diam2 3.e-4 #define Dco2 1.699.*e-9 #define H_j 1.3.*e-3 DEFINE_EXCHANGE_PROPERTY(airtowater, cell, mix_thread, s_col, f_col) { Thread *thread_b, *thread_l; real abs_v,rho_l,rho_b,klj,mbj, mu_l,M_T,m_co2,H_j,yb_j,ylj,reyp,sc,mb_j,mu_b; thread_b = THREAD_SUB_THREAD(mix_thread, s_col);/* bubl */ thread_l = THREAD_SUB_THREAD(mix_thread, f_col);/* liquid*/ /* find phase velocities and properties*/ rho_b = C_R(cell, thread_b); rho_l = C_R(cell, thread_l); real mu_b = C_MU_L(cell, thread_b); /*compute Reynold's number*/ reyp = rho_b*abs_v*diam2/mu_b; /*compute Scmidt's number*/ sc = mu_b/rho_l*Dco2; /*compute mass transfert coefficient for chemical species j*/ klj = Dco2/diam2(2+0.015*pow(reyp,0.89)*pow(sc,0.7)); /*the mass fraction on the liquid side of the interface*/ ylj_e = (H_j*m_co2*rho_b)/(M_T*rho_l); mb_j = klj*pi*pow(r_b,2)*rho_l*(ylj_e-ylj); return mb_j; } ------------------------------------------------------------------------- ------------------------------------------------------------------------- Error: C:\Users\souhail\Desktop\1221.c: line 10: parse error. Error: C:\Users\souhail\Desktop\1221.c: line 20: mu_b: undeclared variable |
All times are GMT -4. The time now is 01:27. |