6.2.3. Hooking DEFINE_CPHI UDFs

After you have interpreted (Interpreting UDFs) or compiled (Compiling UDFs) your DEFINE_CPHI UDF, the name of the function you supplied as a DEFINE macro argument will become visible and selectable in the User-Defined Function Hooks dialog box (Figure 6.17: The User-Defined Function Hooks Dialog Box) in ANSYS Fluent.

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

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

Figure 6.17:  The User-Defined Function Hooks Dialog Box

The User-Defined Function Hooks Dialog Box


Important:  EDC or PDF Transport models must be enabled to hook the mixing model constant Cphi UDFs.


Select the function name (for example, user_cphi::libudf) from the drop-down list for Mixing Model Constant (Cphi), and click OK.

See DEFINE_CPHI for details about defining DEFINE_CPHI functions.


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