Sie sind auf Seite 1von 4

UDF for multicomponent particle vaporization -- CFD Online Discussion

http://www.cfd-online.com/Forums/fluent-udf/97102-udf-multicomponent

Home News Forums Wiki Links Jobs Books Events Tools Feeds
Home News Forums Wiki Links Jobs Books Events Tools Feeds

HomeNews Forums Wiki Links Jobs Books Events Tools Feeds About

NewsHome Forums Wiki Links Jobs Books Events Tools Feeds About Search

ForumsHome News Wiki Links Jobs Books Events Tools Feeds About Search Home

WikiHome News Forums Links Jobs Books Events Tools Feeds About Search Home >

LinksHome News Forums Wiki Jobs Books Events Tools Feeds About Search Home >

JobsHome News Forums Wiki Links Books Events Tools Feeds About Search Home > Forums

BooksHome News Forums Wiki Links Jobs Events Tools Feeds About Search Home > Forums >

EventsHome News Forums Wiki Links Jobs Books Tools Feeds About Search Home > Forums > Fluent

ToolsHome News Forums Wiki Links Jobs Books Events Feeds About Search Home > Forums > Fluent

FeedsHome News Forums Wiki Links Jobs Books Events Tools About Search Home > Forums > Fluent

AboutHome News Forums Wiki Links Jobs Books Events Tools Feeds Search Home > Forums > Fluent

SearchNews Forums Wiki Links Jobs Books Events Tools Feeds About Home > Forums > Fluent UDF

Home > Forums > Fluent UDF and Scheme Programming

[ Sponsors ]

UDF for multicomponent particle vaporization

User Name

Password

for multicomponent particle vaporization User Name Password Remember Me   R EGISTER B LOGS C OMMUNITY

Remember Me

 

REGISTER

BLOGS

  R EGISTER B LOGS C OMMUNITY N EW P OSTS U PDATED T HREADS  

COMMUNITY

C OMMUNITY N EW P OSTS

NEW POSTS

C OMMUNITY N EW P OSTS

UPDATED THREADS

U PDATED T HREADS
 

SEARCH

 
 
 

LINKBACK

L INK B ACK

THREAD TOOLS

D ISPLAY M ODES

DISPLAY MODES

  L INK B ACK T HREAD T OOLS D ISPLAY M ODES
February 8, 2012, 20:55

February 8, 2012, 20:55

 
UDF for multicomponent particle vaporization

UDF for multicomponent particle vaporization

 

#1

Mohsin

Senior Member

 
I have coal par cles surrounded by liquid water (hence mul -component). As soon as

I have coal par cles surrounded by liquid water (hence mul

I have coal par cles surrounded by liquid water (hence mul -component). As soon as the

-component). As soon as

the wet coal will enter into the domain, the liquid water will evaporate into vapors and

 

Mohsin Mukhtar Join Date: Mar 2010 Location: South Korea

 

dry coal will exit the domain.

   

FLUENT’s inbuilt code only supports droplet (1 component) vaporiza

on. Hence, UDF

on. Hence, UDF

 

Posts: 249 Rep Power: 6

Posts: 249 Rep Power: 6

has to be wri

code to solve mul -component vaporiza on in the following link:

to solve mul -component vaporiza on in the following link: en for mul -component par cles.

en for mul

mul -component vaporiza on in the following link: en for mul -component par cles. Fortunately, Fluent
mul -component vaporiza on in the following link: en for mul -component par cles. Fortunately, Fluent

-component par cles. Fortunately, Fluent has provided a UDF

 
h p://hpce.iitm.ac.in/website/Manuals/Fluent_6.3/fluent6.3/help/html

h p://hpce.iitm.ac.in/website/Manuals/Fluent_6.3/fluent6.3/help/html

 

/udf/node64.htm

However, when I compile and hook the above UDF in DPM model of FLUENT and run

 
the simula on, I get 0 evapora on of water. I think, there is some
the simula on, I get 0 evapora on of water. I think, there is some

the simula on, I get 0 evapora on of water. I think, there is some problem in the code

and modifica ons have to be done in the code, as there is no men vaporiza on that should start when “Tp>=vap-temp”

ons have to be done in the code, as there is no men vaporiza on that

oning of

The following is the same UDF code as was seen in the link above but

The following is the same UDF code as was seen in the link above but boiling por on is neglected(as there is no boiling in my case). Could anyone please explain what should be added here to get vaporiza on of water from coal par cles?

boiling in my case). Could anyone please explain what should be added here to get vaporiza
boiling in my case). Could anyone please explain what should be added here to get vaporiza

/************************************************** ********************* UDF for defining the heat and mass transport for multicomponent particle vaporization ************************************************** *********************/

 

UDF for multicomponent particle vaporization -- CFD Online Discussion

http://www.cfd-online.com/Forums/fluent-udf/97102-udf-multicomponent

#include "udf.h"

DEFINE_DPM_HEAT_MASS(multicomponent_vaporization,p ,Cp,hgas,hvap,cvap_surf,Z,dydt,dzdt) {int ns; Material *sp; real dens_total = 0.0; /* total vapor density*/ real P_total = 0.0; /* vapor pressure */ int nc = TP_N_COMPONENTS(p); /* number of particle components */ Thread *t0 = P_CELL_THREAD(p); /* thread where the particle is in */ Material *gas_mix = THREAD_MATERIAL(DPM_THREAD(t0, p)); /* gas mixture material */ Material *cond_mix = P_MATERIAL(p); /* particle mixture material*/ cphase_state_t *c = &(p->cphase); /* cell information of particle location*/ real molwt[MAX_SPE_EQNS]; /* molecular weight of gas species */ real Tp = P_T(p); /* particle temperature */ real mp = P_MASS(p); /* particle mass */ /* */ real molwt_bulk = 0.; /* average molecular weight in bulk gas */ real Dp = DPM_DIAM_FROM_VOL(mp / P_RHO(p)); /* particle diameter */ real Ap = DPM_AREA(Dp); /* particle surface */ real Pr = c->sHeat * c->mu / c->tCond; /* Prandtl number */ real Nu = 2.0 + 0.6 * sqrt(p->Re) * pow(Pr, 1./3.); /* Nusselt number */ real h = Nu * c->tCond / Dp; /* Heat transfer coefficient*/ real dh_dt = h * (c->temp - Tp) * Ap; /* heat source term*/ dydt[0] += dh_dt / (mp * Cp); dzdt->energy -= dh_dt;

mixture_species_loop(gas_mix,sp,ns)

{

molwt[ns] = MATERIAL_PROP(sp,PROP_mwi); /* molecular weight of gas species */ molwt_bulk += c->yi[ns] / molwt[ns];

}

/* prevent division by zero */ molwt_bulk = MAX(molwt_bulk,DPM_SMALL);

for (ns = 0; ns < nc; ns++)

{

int gas_index = TP_COMPONENT_INDEX_I(p,ns); /* average molecular weight */

if( gas_index >= 0 )

{

/* condensed material */ Material * cond_c = MIXTURE_COMPONENT(cond_mix, ns); /* vaporization temperature */ real vap_temp = MATERIAL_PROP(cond_c,PROP_vap_temp); /* diffusion coefficient */ real D = MATERIAL_PROP_POLYNOMIAL(cond_c,PROP_binary_diffus ivity, c->temp); /* Schmidt number */

UDF for multicomponent particle vaporization -- CFD Online Discussion

http://www.cfd-online.com/Forums/fluent-udf/97102-udf-multicomponent

   

real Sc = c->mu / ( c->rho * D );

 

/* mass transfer coefficient */ real k = (2. + 0.6 * sqrt(p->Re) * pow(Sc, 1./3.)) * D / Dp; /* bulk gas concentration (ideal gas) */ real cvap_bulk = c->pressure / UNIVERSAL_GAS_CONSTANT / c->temp

 

*

c->yi[gas_index] / molwt_bulk/

solver_par.molWeight[gas_index];

 

/* vaporization rate */ real vap_rate = k * molwt[gas_index] * Ap

*

(cvap_surf[ns] - cvap_bulk);

/* no vaporization below vaporization temperature, no condensation*/ if (Tp < vap_temp || vap_rate < 0.0) vap_rate = 0.;

 

dydt[1+ns] -= vap_rate; dzdt->species[gas_index] += vap_rate; /* dT/dt = dh/dt / (m Cp)*/ dydt[0] -= hvap[gas_index] * vap_rate / ( mp * Cp ); /* gas enthalpy source term */ dzdt->energy += hgas[gas_index] * vap_rate;

P_total += cvap_surf[ns];

dens_total += cvap_surf[ns] * molwt[gas_index];

}

}

}

Last edited by Mohsin; February 9, 2012 at 02:50.

 
 
 
 
September 27, 2012, 01:16   # 2

September 27, 2012, 01:16

September 27, 2012, 01:16   # 2
 

#2

Sujala

 

Hi, How did u solve this problem. I am also doing CFD simulation of pneumatic dryer. I followed your thread and used the multicomponent droplet (particles +

 

New Member

Sujala Bhattarai Join Date: Sep 2012 Posts: 2 Rep Power: 0

Sujala Bhattarai Join Date: Sep 2012 Posts: 2 Rep Power: 0

water). And used the UDF Define_DPM_HEAT_MASS. And couldn't see any evaporation. I am student from KNU, south korea.

 
 
 
 
I am student from KNU, south korea.     « Previous Thread | Next Thread »

« Previous Thread | Next Thread »

Posting Rules

Posting Rules You may not post new threads You may not post replies You may not

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

UDF for multicomponent particle vaporization -- CFD Online Discussion

Posting Rules

Posting Rules

HTML code is Off Trackbacks are On Pingbacks are On Refbacks are On

Forum Rules

http://www.cfd-online.com/Forums/fluent-udf/97102-udf-multicomponent

Similar Threads

Thread

vaporization pressure UDF

Problem with a simple UDF to calculate cell-averaged particle values

UDF for Particle reaction and DPM_Property

DPM UDF particle position using the macro P_POS(p)[i]

udf about particle concentration--who can help me?

Thread Starter

Forum

Replies

Komon

Fluent UDF and Scheme Programming

0

kmayank

FLUENT

1

saifulraju

ANSYS

0

dm2747

FLUENT

0

zhaoh

FLUENT

1

FLUENT 0 z h a o h F L U E N T 1 Last Post

Last Post

September 20,

2011 19:33

January 18, 2011

01:40

September 22,

2010 07:24

April 17, 2009

01:29

January 17, 2007

11:46

1 7 , 2 0 0 9 01:29 January 17, 2007 11:46 © CFD Online All

© CFD Online

All times are GMT -4. The time now is 10:44.

Contact Us - CFD Online - Top