6.3.4. Hooking DEFINE_HET_RXN_RATE UDFs

After you have interpreted (Interpreting UDFs) or compiled (Compiling UDFs) your DEFINE_HET_RXN_RATE UDF, the name of the function you supplied as a DEFINE macro argument will become visible and selectable in ANSYS Fluent.

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

 Setup → Models → Multiphase   Edit...

Next, select Species Transport from the Model list of the Species Model dialog box.

 Setup → Models → Species   Edit...

Then open the Phase Interaction dialog box (Figure 6.79: The Phase Interaction Dialog Box).

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

Figure 6.79:  The Phase Interaction Dialog Box

The Phase Interaction Dialog Box

Click the Reactions tab and enter a nonzero number in the Total Number of Heterogeneous Reactions field. Select the function name (for example, user_evap_condens_react::libudf) from the Reaction Rate Function drop-down list and click OK.

See DEFINE_HET_RXN_RATE for details about DEFINE_HET_RXN_RATE functions.


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