|
[Sponsors] |
May 22, 2011, 12:04 |
need your help actif member
|
#1 |
New Member
Join Date: May 2011
Posts: 5
Rep Power: 14 |
#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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM] Native ParaView Reader Bugs | tj22 | ParaView | 270 | January 4, 2016 11:39 |
Version 15 on Mac OS X | gschaider | OpenFOAM Installation | 113 | December 2, 2009 10:23 |
Compilation errors in ThirdPartymallochoard | feng_w | OpenFOAM Installation | 1 | January 25, 2009 06:59 |
OpenFoam 14 installation problem | gfcoppola | OpenFOAM Installation | 20 | November 2, 2007 13:38 |
[OpenFOAM] Could you please help me | liugx212 | ParaView | 4 | December 22, 2005 16:55 |