CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

need your help actif member

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 22, 2011, 12:04
Default need your help actif member
  #1
New Member
 
Join Date: May 2011
Posts: 5
Rep Power: 6
kingnizarios is on a distinguished road
#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
kingnizarios is offline   Reply With Quote

Reply

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
Native ParaView Reader Bugs tj22 OpenFOAM Paraview & paraFoam 267 July 20, 2015 22:29
Version 15 on Mac OS X gschaider OpenFOAM Installation 120 December 2, 2009 11:23
Compilation errors in ThirdPartymallochoard feng_w OpenFOAM Installation 1 January 25, 2009 07:59
OpenFoam 14 installation problem gfcoppola OpenFOAM Installation 20 November 2, 2007 14:38
Could you please help me liugx212 OpenFOAM Paraview & paraFoam 4 December 22, 2005 17:55


All times are GMT -4. The time now is 13:16.