6.1.1. Hooking DEFINE_ADJUST UDFs

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

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

Figure 6.1:  The User-Defined Function Hooks Dialog Box

The User-Defined Function Hooks Dialog Box

Click the Edit... button next to Adjust to open the Adjust Functions dialog box (Figure 6.2: The Adjust Functions Dialog Box).

Figure 6.2:  The Adjust Functions Dialog Box

The Adjust Functions Dialog Box

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

See DEFINE_ADJUST for details about defining adjust functions using the DEFINE_ADJUST macro.


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