![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
After you have interpreted (Chapter 4) or compiled (Chapter 5) your DEFINE_EXECUTE_AT_EXIT UDF, it is ready to be hooked to ANSYS FLUENT. Note that you can hook multiple at-exit UDFs to your model, if desired.
To hook the UDF to ANSYS FLUENT, open the User-Defined Function Hooks dialog box. (Figure 6.1.6)
Define
User-Defined
Function Hooks...
Click the Edit... button next to Execute At Exit to open the Execute At Exit Functions dialog box (Figure 6.1.7).
Select the function(s) you wish to hook to your model from the Available Execute At End Functions list. Click Add and then OK to close the dialog box. The name of the function you selected will be displayed in the Execute At Exit 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.4 for details about defining DEFINE_EXECUTE_AT_EXIT functions.