|
[Sponsors] |
May 16, 2011, 15:06 |
plz some to correct me this udf
|
#1 |
New Member
Join Date: May 2011
Posts: 5
Rep Power: 14 |
#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); } |
|
May 19, 2011, 03:48 |
|
#2 |
Member
alighaffari
Join Date: May 2011
Posts: 31
Rep Power: 14 |
what is your expectancy from this udf? what is problem?
|
|
|
|
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 |