After you have compiled (Compiling UDFs) your DEFINE_NET_REACTION_RATE UDF, the
name of the function you supplied as a DEFINE macro argument will become visible and selectable in the User-Defined Function Hooks dialog box (Figure 6.35: The User-Defined Function Hooks Dialog Box) in ANSYS Fluent.
To hook the UDF to ANSYS Fluent, first set up the species transport and combustion models.
Setup → Models → Species
Edit...
Note that net reaction rate UDFs can only be used with the laminar finite-rate model (with stiff chemistry enabled), the EDC model, the PDF Transport model, or the surface chemistry model. Therefore, you must use one of the following groups of settings in the Species Model dialog box:
To enable the laminar finite-rate model, select Species Transport, enable Volumetric in the Reactions group box, select Laminar Finite-Rate in the Turbulence-Chemistry Interaction group box, and enable Stiff Chemistry Solver in the Options group box.
To enable the EDC model, select Species Transport, enable Volumetric in the Reactions group box, and select Eddy-Dissipation Concept in the Turbulence-Chemistry Interaction group box.
To enable the PDF Transport model, select Composition PDF Transport and enable Volumetric in the Reactions group box.
To enable the surface chemistry model, select Species Transport and enable Volumetric and Wall Surface in the Reactions group box.
Next, open the User-Defined Function Hooks dialog box (Figure 6.35: The User-Defined Function Hooks Dialog Box).
Parameters & Customization → User Defined Functions
Function Hooks...
Select the function name (for example, net_rxn::libudf) in the Net Reaction Rate Function drop-down list, and click .
See
DEFINE_NET_REACTION_RATE
for
details about DEFINE_NET_REACTION_RATE functions.