CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Eagerly need your help, please (https://www.cfd-online.com/Forums/fluent/118089-eagerly-need-your-help-please.html)

Liufeng_ustb May 21, 2013 01:56

Eagerly need your help, please
 
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.

sooraj546 February 27, 2019 02:20

can u kindly post your final code............this will be really useful for people who r working in this area...........KINDLY DO SO


All times are GMT -4. The time now is 23:58.