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

Eagerly need your help, please

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

LinkBack Thread Tools Display Modes
Old   May 21, 2013, 01:56
Default Eagerly need your help, please
Join Date: Mar 2013
Posts: 31
Rep Power: 6
Liufeng_ustb is on a distinguished road
Hi, everyone.

I want to know who has experience in using macro DEFINE_HET_RXN_RATE( name,c,t,r,mw,yi,rr,rr_t)?

I have such a problem: In the help document of FLUENT, the illustration of variables mw[][] and yi[][] confused me.

HTML Code:
real mw[MAX_PHASES][MAX_SPE_EQNS]	Matrix of species molecular weights.
 	mw[i][j] will give molecular weight of
 	species with ID j in phase with index i.
 	For phase which has fluid material, the
 	molecular weight can be accessed as
real yi[MAX_PHASES][MAX_SPE_EQNS]	Matrix of species mass fractions.
 	yi[i][j] will give mass fraction of
 	species with ID j in phase with index i.
 	For phase which has fluid material,
 	yi[i][0] will be 1.
So the question is how do we know i and j? Do they depend on the settings in FLUNENT?

An example is shown in help which is about simulating evaporation or condensation on the surface of droplets and there are such two sentences
#define index_evap_primary 0 /*evaporating species index in primary phase*/
#define prim_index 0 /*index of primary phase*/
I want to know, how can we get the index of primary phase and evaporating species. Is dependent on the order of mixture setting and phase setting?
You all know, in mixture setting, we can arrange the order of species. Default id for the first specie is 0, but for phase setting, primary phase id obviously is not 0 but 2. So I am confused about. I hope someone can help me.
Liufeng_ustb is offline   Reply With Quote


heterogeneous reaction, index of phase

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

All times are GMT -4. The time now is 19:52.