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

6.3.1 Hooking DEFINE_CAVITATION_RATE UDFs

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.

figure Models figure figure Multiphase figure 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.

figure Phases figure Interaction...

Figure 6.3.1: The Phase Interaction Dialog Box
figure

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 $\rightarrow$ User-Defined $\rightarrow$ Function Hooks...

Figure 6.3.2: The User-Defined Function Hooks Dialog Box
figure

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.


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