VOF Ansys Fluent Tutorial
VOF Ansys Fluent Tutorial
VOF Ansys Fluent Tutorial
Introduction
This tutorial examines the flow of ink as it is ejected from the nozzle of a printhead in an
inkjet printer. Using FLUENT’s volume of fluid (VOF) multiphase modeling capability,
you will be able to predict the shape and motion of the resulting droplets in an air
chamber.
This tutorial demonstrates how to do the following:
• Set up and solve a transient problem using the pressure-based solver and VOF
model.
• Examine the flow and interface of the two fluids using volume fraction contours.
Prerequisites
This tutorial assumes that you are familiar with the menu structure in FLUENT and that
you have completed Tutorial 1. Some steps in the setup and solution procedure will not
be shown explicitly.
Problem Description
The problem considers the transient tracking of a liquid-gas interface in the geometry
shown in Figure 17.1. The axial symmetry of the problem allows a 2D geometry to be
used. The computation grid consists of 24,600 cells. The domain consists of two regions:
an ink chamber and an air chamber. The dimensions are summarized in Table 17.1.
c Fluent Inc. September 21, 2006 17-1
telegram: @Ansysproject
Using the VOF Model
17-2
c Fluent Inc. September 21, 2006
telegram: @Ansysproject
Using the VOF Model
• At time zero, the nozzle is filled with ink, while the rest of the domain is filled
with air. Both fluids are assumed to be at rest. To initiate the ejection, the ink
velocity at the inlet boundary (which is modeled in this simulation by a user-defined
function) suddenly increases from 0 to 3.58 m/s and then decreases according to a
cosine law.
The calculation is run for 30 microseconds overall, i.e., three times longer than the
duration of the initial impulse.
Because the dimensions are small, the double-precision version of FLUENT will be used.
Air will be designated as the primary phase, and ink (which will be modeled with the
properties of liquid water) will be designated as the secondary phase. Patching will be
required to fill the ink chamber with the secondary phase. Gravity will not be included
in the simulation. To capture the capillary effect of the ejected ink, the surface tension
and prescription of the wetting angle will be specified. The surface inside the nozzle will
be modeled as neutrally wettable, while the surface surrounding the nozzle orifice will be
non-wettable.
2. Unzip vof.zip.
inkjet.msh and inlet.c can be found in the vof folder created on unzipping the
file.
c Fluent Inc. September 21, 2006 17-3
telegram: @Ansysproject
Using the VOF Model
Step 1: Grid
1. Read the mesh file inkjet.msh.
File −→ Read −→Case...
A warning message will be displayed twice in the console. You need not take any
action at this point, as the issue will be rectified when you define the solver settings
in Step 2.
(a) Enter 1e-6 for X and Y in the Scale Factors group box.
(b) Click Scale and close the Scale Grid panel.
17-4
c Fluent Inc. September 21, 2006
telegram: @Ansysproject
Using the VOF Model
c Fluent Inc. September 21, 2006 17-5
telegram: @Ansysproject
Using the VOF Model
Grid
FLUENT 6.3 (2d, dp, pbns, lam)
17-6
c Fluent Inc. September 21, 2006
telegram: @Ansysproject
Using the VOF Model
Extra: By zooming in with the middle mouse button, you can see that the interior
of the model is composed of a fine mesh of quadrilateral cells (see Figure 17.3).
Grid
FLUENT 6.3 (2d, dp, pbns, lam)
c Fluent Inc. September 21, 2006 17-7
telegram: @Ansysproject
Using the VOF Model
(c) Click the Camera... button to open the Camera Parameters panel.
i. Drag the indicator of the dial with the left mouse button in the clockwise
direction until the upright view is displayed (Figure 17.4).
Grid
FLUENT 6.3 (2d, dp, pbns, lam)
17-8
c Fluent Inc. September 21, 2006
telegram: @Ansysproject
Using the VOF Model
Step 2: Models
1. Define the solver settings.
Define −→ Models −→Solver...
(a) Retain the default setting of Pressure Based in the Solver list.
(b) Select Axisymmetric from the Space list.
(c) Select Unsteady from the Time list.
The Solver panel will expand.
(d) Enable Non-Iterative Time Advancement in the Transient Controls group box.
(e) Click OK to close the Solver panel.
c Fluent Inc. September 21, 2006 17-9
telegram: @Ansysproject
Using the VOF Model
17-10
c Fluent Inc. September 21, 2006
telegram: @Ansysproject
Using the VOF Model
Step 3: Materials
The default properties of air and water defined in FLUENT are suitable for this problem.
In this step, you will make sure that both materials are available for selection in later
steps.
1. Add water to the list of fluid materials by copying it from the FLUENT materials
database.
Define −→Materials...
c Fluent Inc. September 21, 2006 17-11
telegram: @Ansysproject
Using the VOF Model
(a) Click the Fluent Database... button to open the Fluent Database Materials
panel.
17-12
c Fluent Inc. September 21, 2006
telegram: @Ansysproject
Using the VOF Model
Step 4: Phases
In the following steps, you will define water as the secondary phase. When you define the
initial solution, you will patch water in the nozzle region. In general, you can specify the
primary and secondary phases whichever way you prefer. It is a good idea to consider
how your choice will affect the ease of problem setup, especially with more complicated
problems.
Define −→Phases...
c Fluent Inc. September 21, 2006 17-13
telegram: @Ansysproject
Using the VOF Model
(c) Click the Set... button to open the Secondary Phase panel.
(a) Enable the Wall Adhesion option so that contact angles can be prescribed.
(b) Click the Surface Tension tab.
The surface tension coefficient inputs will be displayed.
i. Select constant from the Surface Tension Coefficient drop-down list.
ii. Enter 73.5 dyn/cm for the Surface Tension Coefficient.
(c) Click OK to close the Phase Interaction panel.
4. Close the Phases panel.
17-14
c Fluent Inc. September 21, 2006
telegram: @Ansysproject
Using the VOF Model
You will set the Reference Pressure Location to be a point where the fluid will always
be 100% air.
(a) Enter 0.10 mm for X.
(b) Enter 0.03 mm for Y.
(c) Click OK to close the Operating Conditions panel.
c Fluent Inc. September 21, 2006 17-15
telegram: @Ansysproject
Using the VOF Model
1. Set the boundary conditions at the inlet (inlet) for the mixture.
(a) Select inlet in the Zone list.
(b) Retain the default selection of mixture in the Phase drop-down list.
17-16
c Fluent Inc. September 21, 2006
telegram: @Ansysproject
Using the VOF Model
(c) Click the Set... button to open the Velocity Inlet panel.
i. Select udf membrane speed from the Velocity Magnitude drop-down list.
ii. Click OK to close the Velocity Inlet panel.
2. Set the boundary conditions at the inlet (inlet) for the secondary phase.
(a) Make sure that inlet is selected in the Zone list.
(b) Select water-liquid from the Phase drop-down list.
(c) Click the Set... button to open the Velocity Inlet panel.
i. Click the Multiphase tab and enter 1 for the Volume Fraction.
ii. Click OK to close the Velocity Inlet panel.
c Fluent Inc. September 21, 2006 17-17
telegram: @Ansysproject
Using the VOF Model
3. Set the boundary conditions at the outlet (outlet) for the secondary phase.
(a) Select outlet in the Zone list.
(b) Retain the selection of water-liquid from the Phase drop-down list.
(c) Click the Set... button to open the Pressure Outlet panel.
i. Click the Multiphase tab and retain the default setting of 0 for the Backflow
Volume Fraction.
ii. Click OK to close the Pressure Outlet panel.
4. Set the conditions at the top wall of the air chamber (wall no wet) for the mixture.
(a) Select wall no wet in the Zone list.
(b) Select mixture from the Phase drop-down list.
17-18
c Fluent Inc. September 21, 2006
telegram: @Ansysproject
Using the VOF Model
5. Set the conditions at the side wall of the ink chamber (wall wet) for the mixture.
(a) Select wall wet in the Zone list.
(b) Retain the selection of mixture from the Phase drop-down list.
c Fluent Inc. September 21, 2006 17-19
telegram: @Ansysproject
Using the VOF Model
i. Retain the default setting of 90 degrees in the text-entry field for Contact
Angles.
ii. Click OK to close the Wall panel.
17-20
c Fluent Inc. September 21, 2006
telegram: @Ansysproject
Using the VOF Model
Step 8: Solution
1. Set the solution parameters.
Solve −→ Controls −→Solution...
(a) Select Fractional Step from the Pressure-Velocity Coupling drop-down list.
(b) Retain the default selection of PRESTO! in the Pressure drop-down list in the
Discretization group box.
(c) Select QUICK from the Momentum drop-down list.
(d) Click OK to close the Solution Controls panel.
c Fluent Inc. September 21, 2006 17-21
telegram: @Ansysproject
Using the VOF Model
17-22
c Fluent Inc. September 21, 2006
telegram: @Ansysproject
Using the VOF Model
(a) Retain the default setting of 0 mm for X Min and Y Min in the Input Coordinates
group box.
(b) Enter 0.10 mm for X Max.
(c) Enter 0.03 mm for Y Max.
(d) Click Mark.
FLUENT will report in the console that 1500 cells were marked for refinement
while zero cells were marked for coarsening.
Extra: You can display and manipulate adaption registers, which are gen-
erated using the Mark command, using the Manage Adaption Registers
panel. Click the Manage... button in the Region Adaption panel to open the
Manage Adaption Registers panel.
(e) Close the Region Adaption panel.
c Fluent Inc. September 21, 2006 17-23
telegram: @Ansysproject
Using the VOF Model
17-24
c Fluent Inc. September 21, 2006
telegram: @Ansysproject
Using the VOF Model
c Fluent Inc. September 21, 2006 17-25
telegram: @Ansysproject
Using the VOF Model
(a) Retain the default setting of 0 for the Autosave Case File Frequency.
(b) Enter 200 for the Autosave Data File Frequency.
(c) Make sure that time-step is selected from the Append File Name with drop-down
list.
(d) Enter inkjet for the File Name.
FLUENT will append the time step value to the file name prefix (inkjet). The
standard .dat extension will also be appended. This will yield file names of
the form inkjet0200.dat, where 200 is the time step number.
Optionally, you can add the extension .gz to the end of the file name (e.g.,
inkjet.gz), which will instruct FLUENT to save the data files in a compressed
format, yielding file names of the form inkjet0200.dat.gz.
(e) Click OK to close the Autosave Case/Data panel.
17-26
c Fluent Inc. September 21, 2006
telegram: @Ansysproject
Using the VOF Model
Step 9: Postprocessing
1. Read the data file for the solution after 6 microseconds (inkjet0600.dat).
File −→ Read −→Data...
2. Display filled contours of water volume fraction after 6 microseconds (Figure 17.5).
Display −→Contours...
c Fluent Inc. September 21, 2006 17-27
telegram: @Ansysproject
Using the VOF Model
1.00e+00
9.50e-01
9.00e-01
8.50e-01
8.00e-01
7.50e-01
7.00e-01
6.50e-01
6.00e-01
5.50e-01
5.00e-01
4.50e-01
4.00e-01
3.50e-01
3.00e-01
2.50e-01
2.00e-01
1.50e-01
1.00e-01
5.00e-02
0.00e+00
3. Similarly, display contours of water volume fraction after 12, 18, 24, and 30 microseconds
(Figures 17.6—17.9).
1.00e+00
9.50e-01
9.00e-01
8.50e-01
8.00e-01
7.50e-01
7.00e-01
6.50e-01
6.00e-01
5.50e-01
5.00e-01
4.50e-01
4.00e-01
3.50e-01
3.00e-01
2.50e-01
2.00e-01
1.50e-01
1.00e-01
5.00e-02
0.00e+00
17-28
c Fluent Inc. September 21, 2006
telegram: @Ansysproject
Using the VOF Model
1.00e+00
9.50e-01
9.00e-01
8.50e-01
8.00e-01
7.50e-01
7.00e-01
6.50e-01
6.00e-01
5.50e-01
5.00e-01
4.50e-01
4.00e-01
3.50e-01
3.00e-01
2.50e-01
2.00e-01
1.50e-01
1.00e-01
5.00e-02
0.00e+00
1.00e+00
9.50e-01
9.00e-01
8.50e-01
8.00e-01
7.50e-01
7.00e-01
6.50e-01
6.00e-01
5.50e-01
5.00e-01
4.50e-01
4.00e-01
3.50e-01
3.00e-01
2.50e-01
2.00e-01
1.50e-01
1.00e-01
5.00e-02
0.00e+00
c Fluent Inc. September 21, 2006 17-29
telegram: @Ansysproject
Using the VOF Model
1.00e+00
9.50e-01
9.00e-01
8.50e-01
8.00e-01
7.50e-01
7.00e-01
6.50e-01
6.00e-01
5.50e-01
5.00e-01
4.50e-01
4.00e-01
3.50e-01
3.00e-01
2.50e-01
2.00e-01
1.50e-01
1.00e-01
5.00e-02
0.00e+00
Summary
This tutorial demonstrated the application of the volume of fluid method with surface
tension effects. The problem involved the 2D axisymmetric modeling of a transient
liquid-gas interface, and postprocessing showed how the position and shape of the surface
between the two immiscible fluids changed over time.
See Section 23.3 of the User’s Guide for additional details about VOF multiphase flow
modeling.
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 grid. Grid adaption can also ensure that the solution is
independent of the grid. These steps are demonstrated in Tutorial 1.
17-30
c Fluent Inc. September 21, 2006