6.2.2. Hooking DEFINE_CHEM_STEP UDFs

After you have interpreted (Interpreting UDFs) or compiled (Compiling UDFs) your DEFINE_CHEM_STEP 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.16: 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 in the Species Model dialog box.

 Setup → Models → Species   Edit...

Note that chemistry step UDFs can only be used with the laminar finite-rate model (with stiff chemistry enabled), the EDC model, or the PDF Transport model. Therefore, you must use one of the following groups of settings in the Species Model dialog box:

Next, open the User-Defined Function Hooks dialog box (Figure 6.16: The User-Defined Function Hooks Dialog Box).

 Parameters & Customization → User Defined Functions  Function Hooks...

Figure 6.16:  The User-Defined Function Hooks Dialog Box

The User-Defined Function Hooks Dialog Box

Select the function name (for example, user_chem_step::libudf) in the Chemistry Step drop-down list in the User-Defined Function Hooks dialog box, and click OK.

See DEFINE_CHEM_STEP for details about defining DEFINE_CHEM_STEP functions.


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