Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1. Introduction
The purpose of this tutorial is to provide guidelines and recommendations for setting up and solving a spray paint
case using the discrete phase model (DPM) of ANSYS Fluent.
2. Prerequisites
This tutorial is written with the assumption that you have completed the Tutorials Introduction to ANSYS
Fluent in ANSYS Workbench: Fluid Flow and Heat Transfer in Mixing Flow , and Modeling
Evaporating Liquid Spray from ANSYS Fluent Tutorial Guide, 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.
In this tutorial, you will use the standard k-ε turbulence model and the discrete phase model. If you have not used
these models before, it would be helpful to first refer to chapters Modeling Turbulence and Modeling Discrete
Phase from ANSYS Fluent User’s Guide.
3. Problem Description
Water is injected onto a cylinder to form a wall-film on the cylinder.
4. Preparation
1. Copy the mesh file spray_paint.msh.gz to your working directory.
2. Start the 3D double precision version of ANSYS Fluent.
For more information about Fluent Launcher see Section Starting ANSYS Fluent Using Fluent Launcher from
ANSYS Fluent User’s Guide.
Step 1: Grid
1.1. Read the grid file
File → Read → Mesh
Select the file spray_paint.msh.gz from the Files list and then click on OK.
1.2. Check the mesh
Setup → General → Check
Click on Check under Mesh (Figure 2).
Fluent will perform various checks on the mesh and will report the progress in the console. Make sure that the
minimum volume reported is a positive number.
1.3. Display the mesh (Figure 3)
Setup → General → Display
Figure 3. Mesh
Step 2: Materials
2.1. Define the materials.
Setup → Materials...
Step 3: Models
3.1. Select Pressure Based solver.
Setup → General→ Solver
Select Pressure-Based under Type, Transient under Time (Figure 3).
3.3. Specify Turbulence model. This tutorial will be solved by using Standard κ-ε model.
Setup → Models→ Viscous
Select k-epsilon (2 eqn) under Model and Standard under k-epsilon Model list, keep the default settings (Figure
4).
Keep the default values under the momentum and thermal tabs for the boundary and wall boundary zones.
Keep the default solution methods: you will use SIMPLE, LSQ gradients, 2nd order for pressure, momentum and
energy, and first order for turbulence.
Step 8: Iterate
8.1. Run calculation
Enter 0.001 for the Time Step Size, 10 for the number of iterations, and 50 for the Max Number of
Iterations/Time Step. Click on Calculate, Figure 6.
8.2. Save the case and data files with the name spray_paint_ini.gz
File → Write → Case&Data...
Open the Injections panel from the tree, or click on Injections button (Figure 7). When the Injection panel opens
hit on Create to define the injection properties.
Parameter Value
X-Position [m] -0.2
Y-Position [m] 0
Z-Position [m] 0
Diameter [m] 0.001
Temperature [K] 300
Start Time [s] 0
End Time [s] 1000
Azimuthal Start Angle [deg] 0
Azimuthal Stop Angle [deg] 360
X-Axis 1
Y-Axis 0
Z-Axis 0
Velocity Magnitude [m/s] 50
Cone Angle [deg] 4
Radius [m] 0
Total Flow Rate [kg/s] 0.01
You will continue running the case, at this point you do not need to initialize the flow.
Enter 0.001 for the Time Step Size, 60 for the number of iterations, and 50 for the Max Number of
Iterations/Time Step. Click on Calculate.
14.3. Save the case and data file with the name spray_paint_inert_end.gz
File → Write → Case&Data...
c) Select wall from the tree and change the color to white
d) Uncheck the Default Legend View
e) Click on FLUENT PT for Water Liquid
f) Under the Geometry tab:
i. Increase the Max Tracks to 500
ii. Enable Filter
iii. Check Diameter
iv. Select ‘<’ symbol and enter 0.0006m
g) Under the Color tab:
i. Switch to Variable mode
ii. Select Velocity variable
iii. Local Range
h) Under the Symbol tab:
i. Check Show Symbols
ii. Select Ball
iii. Uncheck Show Tracks
i) Apply
j) Open the Animation panel (See Figure 14)
i. Select the FLUENT PT for Water Liquid object
ii. Click on the playback arrow to display the animation
iii. Alternatively, you can save the animation of the particles
16.2. Enable Species Transport model with Inlet Diffusion and Diffusion Energy Source options and default
settings (Figure 15).
Setup → Model → Species → Species Transport
17.2. Under Properties, click on Edit adjacent to Mixture Species, the Species panel will be open
In the Species panel:
a) remove n2 and o2 from the Selected Species list
b) add air from Available Materials list.
The final Species panel is shown in Figure 16
c) OK to close the Species panel
17.3. Change to ideal-gas density
You will get a warning on the operating density for compressible flows with buoyancy, you will fix this in
the next step
17.4. Change/Create on Create/Edit Materials panel (Figure 17)
Review/Repeat Step 13, 13.5. Enter spray_paint_evaporation.xml as the name of the particle history file.
You will continue running the case, at this point you do not need to initialize the flow.
Enter 0.001 for the Time Step Size, 60 for the number of iterations, and 50 for the Max Number of
Iterations/Time Step. Click on Calculate.
24.3. Save the case and data file with the name spray_paint_evaporation_end.gz
File → Write → Case&Data..
Figures 22 bellow show the contours of wall film height and surface heat transfer coefficient and the particle
traces at t=0.07s extracted from Fluent post-processor. Figure 23 shows the particle trace with iso-surface of
mass fraction of h2o at 0.001 iso-value. Figure 24 depicts a screen shot of the particle trace animation extracted
from CFDPost.
8 Summary
In this tutorial, we performed a numerical simulation of spray paint process using inert and droplet DPM from
ANSYS Fluent. Fluent post-processor, and CFD-Post have been used for post-processing of the results.
Figure 22. Contours of wall film height and surface htc, and particle traces colored by particle diameter
and particle temperature obtained from Fluent post-processor
Figure 23. Iso-value of 0.001 mass fraction of water and particle trace colored by particle diameter
obtained from Fluent post-processor