![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
After you have interpreted (Chapter 4) or compiled (Chapter 5) 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.3.2) 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.
Models
Multiphase
Edit...
Enable the Mixture model in the Multiphase Model dialog box and click OK.
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.
Phases
Interaction...
Enable Singhal-Et-Al Cavitation Model in the Mass tab of the Phase Interaction dialog box (Figure 6.3.1), and click OK.
Next, open the User-Defined Function Hooks dialog box. (Figure 6.3.2)
Define
User-Defined
Function Hooks...
To hook the UDF to ANSYS FLUENT, select the function name (e.g., c_rate::libudf) in the Cavitation Mass Rate drop-down list (Figure 6.3.2), and click OK.
See Section 2.4.1 for details about DEFINE_CAVITATION_RATE functions.