A.2. Usage

DEFINE_HET_RXN_RATE (name,c,t,r,mw,yi,rr,rr_t)

Argument TypeDescription
char nameUDF name
cell_t cCell index
Thread *tCell thread (mixture level) on which heterogeneous reaction rate is to be applied
Hetero_Reaction *rPointer to data structure that represents the current heterogeneous reaction (see sg_mphase.h)
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 that 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 molecular weight of species with ID j in phase with index i. For phase that has fluid material, yi[i][0] will be 1.
real *rrPointer to laminar reaction rate
real *rr_tCurrently not used. Provided for future use.
Function returns
void

There are eight arguments to DEFINE_HET_RXN_RATE: name, c, t, r, mw, yi, rr, and rr_t. You will supply name, the name of the UDF. c, t, r, mw, yi, rr, and rr_t are variables that are passed by the ANSYS Fluent solver to your UDF. Your UDF will need to set the values referenced by the real pointer rr.


Release 18.2 - © ANSYS, Inc. All rights reserved.