After you have interpreted (Interpreting UDFs) or compiled (Compiling UDFs) your DEFINE_VR_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.70: The User-Defined Function Hooks Dialog
Box) in ANSYS Fluent.
To hook the UDF to ANSYS Fluent, first set up an appropriate reaction model in the Species Model dialog box.
Setup → Models → Species
Edit...
Select Species Transport from the Model list in the Species Model dialog box, and enable the Volumetric option in the Reactions group box. Make sure that Stiff Chemistry Solver is disabled in the Options group box, and click .
Next, open the User-Defined Function Hooks dialog box (Figure 6.70: The User-Defined Function Hooks Dialog Box).
Parameters & Customization → User Defined Functions
Function Hooks...
Select the function name (for example, myrate::libudf) in the Volume Reaction Rate Function drop-down list in the User-Defined Function Hooks dialog box, and click .
See
DEFINE_VR_RATE
for details
about DEFINE_VR_RATE functions.