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

Eagerly need your help, please

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 21, 2013, 01:56
Default Eagerly need your help, please
  #1
Member
 
刘峰
Join Date: Mar 2013
Posts: 31
Rep Power: 13
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
 	mw[i][0].
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
Quote:
#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

Old   February 27, 2019, 02:20
Default
  #2
Member
 
Join Date: Apr 2017
Location: india
Posts: 96
Rep Power: 9
sooraj546 is on a distinguished road
can u kindly post your final code............this will be really useful for people who r working in this area...........KINDLY DO SO
sooraj546 is offline   Reply With Quote

Reply

Tags
heterogeneous reaction, index of phase


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



All times are GMT -4. The time now is 03:09.