[ANSYS, Inc. Logo] return to home search
next up previous contents index

6.3.4 Hooking DEFINE_MASS_TRANSFER UDFs

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.

figure Models figure figure Multiphase figure Edit...

Next, open the Phase Interaction dialog box (Figure  6.3.6).

figure Phases figure Interaction...

Figure 6.3.6: The Phase Interaction Dialog Box
figure

Click the Mass tab and then specify the Number of Mass Transfer Mechanisms greater than $0$. 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).

Figure 6.3.7: The User-Defined Functions Dialog Box
figure

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.


next up previous contents index Previous: 6.3.3 Hooking DEFINE_HET_RXN_RATE UDFs
Up: 6.3 Hooking Multiphase UDFs
Next: 6.3.5 Hooking DEFINE_VECTOR_EXCHANGE_PROPERTY UDFs
Release 12.0 © ANSYS, Inc. 2009-01-14