![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
After you have interpreted (Chapter 4) or compiled (Chapter 5) 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.3.9) 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.
Models
Multiphase
Edit...
Next, open the Phase Interaction dialog box (Figure 6.3.8).
Phases
Interaction...
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 .
Finally, select the function name (e.g., custom_slip::libudf) from the list of UDFs displayed in the User-Defined Functions dialog box (Figure 6.3.9), and click OK. The UDF name will appear in the text box below the Slip Velocity drop-down list in the Phase Interaction dialog box. Click OK to close the Phase Interaction dialog box.
See Section 2.4.5 for details about DEFINE_VECTOR_EXCHANGE_PROPERTY functions.