|
|
| DEFINE_HET_RXN_RATE( name,c,t,r,mw,yi,rr,rr_t) |
| Argument Type | Description |
| char name | UDF name. |
| cell_t c | Cell index. |
| Thread *t | Cell thread (mixture level) on which |
| heterogeneous reaction rate is to be applied. | |
| Hetero_Reaction *r | Pointer 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 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 molecular weight of | |
| species with ID j in phase with index i. | |
| For phase which has fluid material, | |
| yi[i][0] will be 1. | |
| real *rr | Pointer to laminar reaction rate. |
| real *rr_t | Currently 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.