![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
After you have compiled (Chapter 5) 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.2.12) in ANSYS FLUENT.
To hook the UDF to ANSYS FLUENT, first open the General task page.
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.
Models
Viscous Model
Edit...
Next, set up an appropriate reaction model in the Species Model dialog box.
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.
Models
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.2.12)
Define
User-Defined
Function Hooks...
Select the function name (e.g., ign_udf_src::libudf) in the Ignition Source drop-down list in the User-Defined Function Hooks dialog box, and click OK.
See Section 2.3.10 for details about DEFINE_IGNITE_SOURCE functions.