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

plz some to correct me this udf

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 16, 2011, 15:06
Default plz some to correct me this udf
  #1
New Member
 
Join Date: May 2011
Posts: 5
Rep Power: 14
kingnizarios is on a distinguished road
#include <udf.h>
#include <threads.h>
#include <metric.h>
#include <mem.h>
#include <sg_mphase.h>

#define pi 4.*atan(1.)
#define diam2 4.e-3
#define Dco2 1.699.*e-9


DEFINE_MASS_TRANSFER(airtowater,cell,t,from_index, from_speries_index,to_index,
to_species_index)
{
Thread *thread_g;
real abs_v,rho_l,klj,mbj, mu_l,H_j,yb_j,ylj_e,ylj,reyp,sc;


/*compute Reynold's number*/
reyp = rho_l*abs_v*diam2/mu_l;
/*compute Scmidt's number*/
sc = mu_l/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));
/*compute mass transfer*/
mbj = klj*pi*pow(diam2,2)*rho_l*(ylj_e-ylj);
}
kingnizarios is offline   Reply With Quote

Old   May 19, 2011, 03:48
Default
  #2
Member
 
alighaffari
Join Date: May 2011
Posts: 31
Rep Power: 14
alighaffari is on a distinguished road
what is your expectancy from this udf? what is problem?
alighaffari is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF to record FLUENT Solver variables... mariachi Fluent UDF and Scheme Programming 11 September 24, 2019 00:07
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
UDF to record FLUENT solver variables... mariachi FLUENT 1 February 3, 2010 22:18
UDF and LES....... plz help out! mariachi Fluent UDF and Scheme Programming 0 January 23, 2010 12:23
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 04:03


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