![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
After you have interpreted (Chapter 4) or compiled (Chapter 5) your DEFINE_SR_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.2.31) in ANSYS FLUENT.
To hook the UDF to ANSYS FLUENT, first set up an appropriate reaction model in the Species Model dialog box.
Models
Species
Edit...
Select Species Transport from the Model list in the Species Model dialog box, and enable the Volumetric and Wall Surface options in the Reactions group box. Make sure that Stiff Chemistry Solver is disabled in the Options group box, and click OK.
Next, open the User-Defined Function Hooks dialog box. (Figure 6.2.31)
Define
User-Defined
Function Hooks...
Select the function name (e.g., user_sr_rate::libudf) in the Surface Reaction Rate Function drop-down list in the User-Defined Function Hooks dialog box, and click OK.
See Section 2.3.22 for details about DEFINE_SR_RATE functions.