6.1.4. Hooking DEFINE_EXECUTE_AT_EXIT UDFs

After you have interpreted (Interpreting UDFs) or compiled (Compiling UDFs) 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.6: The User-Defined Function Hooks Dialog Box).

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

Figure 6.6:  The User-Defined Function Hooks Dialog Box

The User-Defined Function Hooks Dialog Box

Click the Edit... button next to Execute at Exit to open the Execute at Exit Functions dialog box (Figure 6.7: The Execute at Exit Functions Dialog Box).

Figure 6.7:  The Execute at Exit Functions Dialog Box

The Execute at Exit Functions Dialog Box

Select the function(s) you want to hook to your model from the Available Execute at Exit 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 (for example, 2 selected). Click OK in the User-Defined Function Hooks dialog box to apply the settings.

See DEFINE_EXECUTE_AT_EXIT for details about defining DEFINE_EXECUTE_AT_EXIT functions.


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