Modeling Cavitation
Introduction
This tutorial examines the pressure-driven cavitating flow of water through a sharp-
edged orifice. This is a typical configuration in fuel injectors, and brings a challenge to
the physics and numerics of cavitation models, because of the high pressure differentials
involved and the high ratio of liquid to vapor density. Using the multiphase modeling
capability of ANSYS FLUENT, you will be able to predict the strong cavitation near the
orifice after flow separation at a sharp edge.
This tutorial demonstrates how to do the following:
Prerequisites
This tutorial is written with the assumption that you have completed Tutorial 1, and
that you are familiar with the ANSYS FLUENT navigation pane and menu structure.
Some steps in the setup and solution procedure will not be shown explicitly.
Problem Description
The problem considers the cavitation caused by the flow separation after a sharp-edged
orifice. The flow is pressure driven, with an inlet pressure of 5 × 105 Pa and an outlet
pressure of 9.5 × 104 Pa. The orifice diameter is 4 × 10−3 m, and the geometrical
parameters of the orifice are D/d = 2.88 and L/r = 8, where D, d, and L are the inlet
diameter, orifice diameter, and orifice length respectively. The geometry of the orifice is
shown in Figure 19.1.
Release 12.0
c ANSYS, Inc. March 12, 2009 19-1
Modeling Cavitation
Note: The Display Options are enabled by default. Therefore, after you read in the mesh,
it will be displayed in the embedded graphics window.
Step 1: Mesh
1. Read the mesh file cav.msh.
File −→ Read −→Mesh...
As ANSYS FLUENT reads the mesh file, it will report the progress in the console.
You can disregard the warnings about the use of axis boundary conditions, as you
will make the appropriate change to the solver settings in the next step.
Release 12.0
c ANSYS, Inc. March 12, 2009 19-3
Modeling Cavitation
As seen in Figure 19.2, half of the problem geometry is modeled, with an axis
boundary (consisting of two separate lines) at the centerline. The quadrilateral
mesh is slightly graded in the plenum to be finer toward the orifice. In the orifice,
the mesh is uniform with aspect ratios close to 1, as the flow is expected to exhibit
two-dimensional gradients.
When you display data graphically in a later step, you will mirror the view across
the centerline to obtain a more realistic view of the model.
Since the bubbles are small and the flow is high speed, gravity effects can be ne-
glected and the problem can be reduced to axisymmetrical. If gravity could not be
neglected and the direction of gravity were not coincident with the geometrical axis
of symmetry, you would have to solve a 3D problem.
Step 3: Models
Models
Release 12.0
c ANSYS, Inc. March 12, 2009 19-5
Modeling Cavitation
2. Enable the standard k- turbulence model with standard wall functions.
Models −→ Viscous −→ Edit...
Step 4: Materials
Materials
Release 12.0
c ANSYS, Inc. March 12, 2009 19-7
Modeling Cavitation
2. Copy water vapor from the materials database and modify its properties.
Materials −→ Fluid −→ Create/Edit...
(a) Click the FLUENT Database... button to open the FLUENT Database Materials
dialog box.
i. Select water-vapor (h2o) from the FLUENT Fluid Materials selection list.
Scroll down the list to find water-vapor (h2o).
ii. Click Copy to include water vapor in your model.
iii. Close the FLUENT Database Materials dialog box.
Step 5: Phases
Phases
Release 12.0
c ANSYS, Inc. March 12, 2009 19-9
Modeling Cavitation
Release 12.0
c ANSYS, Inc. March 12, 2009 19-11
Modeling Cavitation
Release 12.0
c ANSYS, Inc. March 12, 2009 19-13
Modeling Cavitation
i. Click the Multiphase tab and retain the default value of 0 for Volume
Fraction.
ii. Click OK to close the Pressure Inlet dialog box.
3. Copy the boundary conditions defined for the first pressure inlet zone (inlet 1) to
the second pressure inlet zone (inlet 2).
Boundary Conditions −→ inlet 1
(a) Select mixture from the Phase drop-down list.
(b) Click Copy... to open the Copy Conditions dialog box.
Release 12.0
c ANSYS, Inc. March 12, 2009 19-15
Modeling Cavitation
i. Click the Multiphase tab and retain the default value of 0 for Volume
Fraction.
ii. Click OK to close the Pressure Outlet dialog box.
Step 8: Solution
1. Set the solution parameters.
Solution Methods
(a) Select Coupled from the Scheme drop-down list in the Pressure-Velocity Coupling
group box.
(b) Select PRESTO! from the Pressure drop-down list in the Spatial Discretization
group box.
(c) Select QUICK for Momentum, Volume Fraction, Turbulent Kinetic Energy, and
Turbulent Dissipation Rate.
Release 12.0
c ANSYS, Inc. March 12, 2009 19-17
Modeling Cavitation
Release 12.0
c ANSYS, Inc. March 12, 2009 19-19
Modeling Cavitation
4. Initialize the solution from either of the pressure inlet zones (inlet 1 or inlet 2).
Solution Initialization
(a) Select inlet 1 or inlet 2 from the Compute from drop-down list.
(b) Select Absolute in the Reference Frame list.
(c) Click Initialize to initialize the solution.
Step 9: Postprocessing
1. Plot the pressure in the orifice (Figure 19.3).
Graphics and Animations −→ Contours −→ Set Up...
Release 12.0
c ANSYS, Inc. March 12, 2009 19-21
Modeling Cavitation
4.99e+05
4.74e+05
4.50e+05
4.25e+05
4.00e+05
3.75e+05
3.50e+05
3.26e+05
3.01e+05
2.76e+05
2.51e+05
2.27e+05
2.02e+05
1.77e+05
1.52e+05
1.27e+05
1.03e+05
7.79e+04
5.31e+04
2.83e+04
3.54e+03
Note the dramatic pressure drop at the flow restriction in Figure 19.3. Low static
pressure is the major factor causing cavitation. Additionally, turbulence contributes
to cavitation due to the effect of pressure fluctuation (Figure 19.4) and turbulent
diffusion (Figure 19.5).
(a) Select symm 2 and symm 1 from the Mirror Planes selection list.
(b) Click Apply and close the Views dialog box.
In this example, the mesh used is fairly coarse. However, in cavitating flows the
pressure distribution is the dominant factor, and is not very sensitive to mesh size.
Release 12.0
c ANSYS, Inc. March 12, 2009 19-23
Modeling Cavitation
The high turbulent kinetic energy region near the neck of the orifice in Figure 19.5
coincides with the highest volume fraction of vapor in Figure 19.6. This indicates
the correct prediction of a localized high phase change rate. The vapor then gets
convected downstream by the main flow.
Summary
This tutorial demonstrated how to set up and resolve a strongly cavitating pressure-
driven flow through an orifice, using multiphase mixture model of ANSYS FLUENT with
cavitation effects. You learned how to set the boundary conditions for an internal flow.
A steady-state solution was calculated to simulate the formation of vapor in the neck
of the flow after the section restriction at the orifice. A more computationally intensive
transient calculation is necessary to accurately simulate the irregular cyclic process of
bubble formation, growth, filling by water jet re-entry, and break-off.
Further Improvements
This tutorial guides you through the steps to reach an initial solution. You may be able
to obtain a more accurate solution by using an appropriate higher-order discretization
scheme and by adapting the mesh. Mesh adaption can also ensure that the solution is
independent of the mesh. These steps are demonstrated in Tutorial 1.