After you have interpreted (Interpreting UDFs) or compiled (Compiling UDFs) your DEFINE_CAVITATION_RATE UDF, the name of the function you supplied as a DEFINE macro argument will become visible and selectable in the User-Defined Function Hooks dialog box (Figure 6.76: The User-Defined Function Hooks Dialog Box) in ANSYS Fluent. Note that
cavitation rate UDFs can be applied only to the mixture multiphase
model.
To hook the UDF to ANSYS Fluent, you will first need to open the Multiphase Model dialog box.
Setup → Models → Multiphase
Edit...
Enable the Mixture model in the Multiphase Model dialog box and click .
Enter the solve/set/expert text command
in the console and respond yes to “use Singhal-et-al cavitation model?” Then open
the Phase Interaction dialog box.
Setup → Models → Multiphase → Phases
Edit... → Interaction...
Enable Singhal-Et-Al Cavitation Model in the Mass tab of the Phase Interaction dialog box (Figure 6.75: The Phase Interaction Dialog Box), and click .
Next, open the User-Defined Function Hooks dialog box (Figure 6.76: The User-Defined Function Hooks Dialog Box).
Parameters & Customization → User Defined Functions
Function Hooks...
To hook the UDF to ANSYS Fluent, select the function name (for example, c_rate::libudf) in the Cavitation Mass Rate drop-down list (Figure 6.76: The User-Defined Function Hooks Dialog Box), and click .
See
DEFINE_CAVITATION_RATE
for
details about DEFINE_CAVITATION_RATE functions.