![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
After you have interpreted (Chapter 4) or compiled (Chapter 5) your DEFINE_MASS_TRANSFER UDF, the name of the function you supplied as a DEFINE macro argument will become visible and selectable in the Phase Interaction dialog box (Figure 6.3.6).
To hook the UDF to ANSYS FLUENT, first make a selection from the Model list of the Multiphase Model dialog box.
Models
Multiphase
Edit...
Next, open the Phase Interaction dialog box (Figure 6.3.6).
Phases
Interaction...
Click the
Mass tab and then specify the
Number of Mass Transfer Mechanisms greater than
. The
Mechanism drop-down list will appear. Next, select
user-defined from the
Mechanism drop-down list to open the
User-Defined Functions dialog box (Figure
6.3.7).
Select the function name (e.g., liq_gas_source::udf) and click OK. The UDF name will appear in the text box below the Mechanism drop-down list in the Phase Interaction dialog box. Click OK to close the Phase Interaction dialog box.
See Section 2.4.4 for details about writing DEFINE_MASS_TRANSFER functions.