![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
After you interpreted (Chapter 4) or compiled (Chapter 5) your DEFINE_ADJUST UDF, the name of the function you supplied as a DEFINE macro argument can be hooked using the User-Defined Function Hooks dialog box (Figure 6.1.1). Note that you can hook multiple adjust UDFs to your model, if desired.
To hook the UDF to ANSYS FLUENT, open the User-Defined Function Hooks dialog box. (Figure 6.1.1)
Define
User-Defined
Function Hooks...
Click the Edit... button next to Adjust to open the Adjust Functions dialog box (Figure 6.1.2).
Select the function(s) you wish to hook to your model from the Available Adjust Functions list. Click Add and then OK to close the dialog box. The name of the function you selected will be displayed in the Adjust field of the User-Defined Function Hooks dialog box. If you select more than one function, the number will be displayed (e.g., 2 selected). Click OK in the User-Defined Function Hooks dialog box to apply the settings.
See Section 2.2.1 for details about defining adjust functions using the DEFINE_ADJUST macro.