6.2.17. Hooking DEFINE_IGNITE_SOURCE UDFs

After you have compiled (Compiling UDFs) your DEFINE_IGNITE_SOURCE 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.34: The User-Defined Function Hooks Dialog Box) in ANSYS Fluent.

To hook the UDF to ANSYS Fluent, first open the General task page.

 Setup →   General

Select Pressure-Based from the Type list, and select Transient from the Time list.

Then, select a turbulence model in the Viscous Model dialog box.

 Setup → Models → Viscous Model  Edit...

Next, set up an appropriate reaction model in the Species Model dialog box.

 Setup → Models → Species   Edit...

Select either the Premixed Combustion or the Partially Premixed Combustion model in the Species Model dialog box and click OK.

Then open the Autoignition Model dialog box.

 Setup → Models → Species → Autoignition   Edit...

Select the Knock Model from the Model list in the Autoignition Model dialog box, and click OK.

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

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

Figure 6.34:  The User-Defined Function Hooks Dialog Box

The User-Defined Function Hooks Dialog Box

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

See DEFINE_IGNITE_SOURCE for details about DEFINE_IGNITE_SOURCE functions.


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