CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT

need your help actif member

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

LinkBack Thread Tools Display Modes
Old   May 22, 2011, 12:04
Default need your help actif member
New Member
Join Date: May 2011
Posts: 5
Rep Power: 8
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,

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


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 270 January 4, 2016 12:39
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 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 07:42.