![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
After you have interpreted (Chapter 4) or compiled (Chapter 5) 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.
Models
Multiphase
Edit...
Next, select Species Transport from the Model list of the Species Model dialog box.
Models
Species
Edit...
Then open the Phase Interaction dialog box (Figure 6.3.5).
Phases
Interaction...
Click the Reactions tab and enter a nonzero number in the Total Number of Heterogeneous Reactions text box. Select the function name (e.g., user_evap_condens_react::libudf) from the Reaction Rate Function drop-down list and click OK.
See Section 2.4.3 for details about writing DEFINE_HET_RXN_RATE functions.