6.3.7. Hooking DEFINE_VECTOR_EXCHANGE_PROPERTY UDFs

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

To hook the UDF to ANSYS Fluent, first select Mixture from the Model list of the Multiphase Model dialog box, and make sure that the Slip Velocity option is enabled.

 Setup → Models → Multiphase   Edit...

Next, open the Phase Interaction dialog box (Figure 6.82: The Phase Interaction Dialog Box).

 Setup → Models → Multiphase → Phases  Edit... → Interaction...

Figure 6.82:  The Phase Interaction Dialog Box

The Phase Interaction Dialog Box

Click the Slip tab in the Phase Interaction dialog box, and select user-defined from the drop-down list for the Slip Velocity. This will open the User-Defined Functions dialog box.

Figure 6.83:  The User-Defined Functions Dialog Box

The User-Defined Functions Dialog Box

Finally, select the function name (for example, custom_slip::libudf) from the list of UDFs displayed in the User-Defined Functions dialog box (Figure 6.83: The User-Defined Functions Dialog Box), and click OK. The UDF name will appear in the field below the Slip Velocity drop-down list in the Phase Interaction dialog box. Click OK to close the Phase Interaction dialog box.

See DEFINE_VECTOR_EXCHANGE_PROPERTY for details about DEFINE_VECTOR_EXCHANGE_PROPERTY functions.


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