6.3.6. Hooking DEFINE_MASS_TRANSFER UDFs

After you have interpreted (Interpreting UDFs) or compiled (Compiling UDFs) 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.80: The Phase Interaction Dialog Box).

To hook the UDF to ANSYS Fluent, first make a selection from the Model list of the Multiphase Model dialog box.

 Setup → Models → Multiphase   Edit...

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

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

Figure 6.80:  The Phase Interaction Dialog Box

The Phase Interaction Dialog Box

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.81: The User-Defined Functions Dialog Box).

Figure 6.81:  The User-Defined Functions Dialog Box

The User-Defined Functions Dialog Box

Select the function name (for example, liq_gas_source::udf) and click OK. The UDF name will appear in the field below the Mechanism drop-down list in the Phase Interaction dialog box. Click OK to close the Phase Interaction dialog box.

See DEFINE_MASS_TRANSFER for details about DEFINE_MASS_TRANSFER functions.


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