6.1.5. Hooking DEFINE_INIT UDFs

After you have interpreted (Interpreting UDFs) or compiled (Compiling UDFs) your DEFINE_INIT UDF, it is ready to be hooked to ANSYS Fluent. Note that you can hook multiple initialization UDFs to your model, if desired.

To hook the UDF to ANSYS Fluent, open the User-Defined Function Hooks dialog box (Figure 6.8: The User-Defined Function Hooks Dialog Box).

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

Figure 6.8:  The User-Defined Function Hooks Dialog Box

The User-Defined Function Hooks Dialog Box

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

Figure 6.9:  The Initialization Functions Dialog Box

The Initialization Functions Dialog Box

Select the function(s) you want to hook to your model from the Available Initialization Functions list. Click Add and then OK to close the dialog box. The name of the function you selected will be displayed in the Initialization 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_INIT for details about defining DEFINE_INIT functions.


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