Professional Documents
Culture Documents
Chapter 15
INTRODUCTION TO
COMPUTATIONAL FLUID
DYNAMICS
Prof. Dr. Ali PINARBAI
Yildiz Technical University
Mechanical Engineering Department
Yildiz, ISTANBUL
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
Flow over a male swimmer simulated using the ANSYS FLUENT CFD code. The image shows simulated
oil flow lines along the surface of the body. Flow separation in the region of the neck is visible.
4
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
Objectives
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
Equations of Motion
Continuity equation
NavierStokes equation
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
Solution Procedure
1. A computational domain is chosen, and a grid (also called a mesh) is generated;
the domain is divided into many small elements called cells.
2. Boundary conditions are specified on each edge of the computational domain (2-D
flows) or on each face of the domain (3-D flows).
3. The type of fluid (water, air, gasoline, etc.) is specified, along with fluid properties
(temperature, density, viscosity, etc.).
4. Numerical parameters and solution algorithms are selected.
5. Starting values for all flow field variables are specified for each cell.
6. Beginning with the initial guesses, discretized forms of Eqs. 151 and 152 are
solved iteratively, usually at the center of each cell.
7. Once the solution has converged, flow field variables such as velocity and pressure
are plotted and analyzed graphically.
8. Global properties of the flow field, such as pressure drop, and integral properties,
such as forces (lift and drag) and moments acting on a body, are calculated from the
converged solution
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
10
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
11
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
14
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
Boundary Conditions
15
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
The standard wall boundary condition is imposed on stationary solid boundaries, where we
also impose either a wall temperature or a wall heat flux. The shear stress along the wall can be
set to zero to simulate the free surface of a liquid, as shown here for the case of a swimming
pool. There is slip along this wall that simulates the free surface (in contact with air).
16
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
17
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
At a pressure inlet or a pressure outlet, we specify the pressure on the face, but we cannot
specify the velocity through the face. As the CFD solution converges, the velocity adjusts
itself such that the prescribed pressure boundary conditions are satisfied.
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
19
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
The fan boundary condition imposes an abrupt change in pressure across the fan
face to simulate an axial-flow fan in a duct. When the specified pressure rise is
zero, the fan boundary condition degenerates to an interior boundary condition.
21
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
22
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
23
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
24
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
25
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
Computational domain (light blue shaded region) used to simulate steady 2-D flow over a circular
cylinder (not to scale). It is assumed that the flow is symmetric about the x-axis. Applied boundary
conditions are shown for each edge in parentheses. We also define a, the angle measured along the
cylinder surface from the front stagnation point.
27
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
28
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
29
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
In an incompressible CFD
simulation of flow around a
cylinder, the choice of freestream speed, cylinder
diameter, or even type of fluid
is not critical, provided that
the desired Reynolds number
is achieved.
31
(a) an
instantaneous snapshot of vorticity contours produced by CFD, and (b)
time-integrated streaklines produced by a smoke wire located at
x/D=5. The vorticity contours show that Krmn vrtices decay rapidly in
the wake, whereas the streaklines retain a memory of their history
from upstream, making it appear that the vortices continue for a great
distance downstream.
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
Close-up view of vortices shedding from a circular cylinder: (a) instantaneous vorticity contour
plot produced by CFD at Re=150, and (b) dye streaklines produced by dye introduced at the
cylinder surface at Re=140.
32
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
33
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
35
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
A useful rule of thumb for turbulence properties at a pressure inlet or velocity inlet boundary
condition is to specify a turbulence intensity of 10 % and a turbulent length scale of one-half of
some characteristic length scale in the problem (
D/2).
Turbulent flow CFD solutions are only as good as the appropriateness and
validity of the turbulence model used in the calculations.
While most CFD calculations with turbulence models are
stationary (steady in the mean), it is also possible to
calculate unsteady turbulent flow fields using turbulence
models. In the case of flow over a body, we may impose
unsteady boundary conditions and march in time to
predict gross features of the unsteady flow field.
36
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
37
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
38
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
Definition of blade spacing s: (a) frontal view of the stator, and (b) the
stator modeled as a 2-D cascade in edge view. Twelve radial stator vanes
are shown in the frontal view, but the actual number of vanes is to be
determined. Three stator vanes are shown in the cascade, but the actual
cascade consists of an infinite number of vanes, each displaced by blade
spacing s, which increases with radius r. 2-D cascade is an approximation
of 3-D flow at one value of radius r and blade spacing s. Chord length c is
defined as the horizontal length of the stator vane.
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
41
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
3-D computational domain defined by one flow passage through two stator vanes for N=10 (angle
between vanes=36). The computational domain volume is defined between the pressure and suction
surfaces of the stator vanes, between the inner and outer cylinder walls, and from the inlet to the
outlet. Two pairs of rotationally periodic boundary conditions are defined as shown.
43
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
Grayscale tangential velocity contour plot produced by 3-D CFD calculations of stationary
turbulent flow through a stator vane flow passage. The tangential velocity component is shown
in m/s at the outlet of the computational domain (and also on the vane surfaces, where the
velocity is zero). An outline of the inlet to the computational domain is also shown for clarity.
Although only one flow passage is modeled, we duplicate the image circumferentially around the
x-axis nine times to visualize the entire stator flow field. In this grayscale image, the tangential
velocity ranges from 0 (black) to 90 m/s (white).
45
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
46
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
47
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
49
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
51
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
52
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
CFD results for the chip cooling example, long configuration: grayscale temperature contours
as viewed from directly above the chip surfaces, with T values in K on the legend. The location
of maximum surface temperature is indicated, it occurs near the end of chip 7. Light regions
near the leading edges of chips 1, 2, and 3 are also seen, indicating high surface temperatures
at those locations.
53
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
CFD results for the chip cooling example, short configuration: grayscale temperature contours as
viewed from directly above the chip surfaces, with T values in K on the legend. The same
temperature scale is used here as in Fig. 1569. The locations of maximum surface temperature
are indicated; they occur near the end of chips 7 and 8 near the center of the PCB. Light regions
near the leading edges of chips 1 and 2 are also seen, indicating high surface temperatures at
those locations.
54
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
55
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
56
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
57
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
58
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
CFD results for steady, adiabatic, inviscid compressible flow through an axisymmetric converging
diverging nozzle: (a) calculated average Mach number and pressure ratio at 25 axial locations
(circles), compared to predictions from isentropic, onedimensional compressible flow theory (solid
lines); (b) grayscale Mach number contours, ranging from Ma=0.3 (darkest) to 2.7 (lightest).
Although only the top half is calculated, a mirror image about the x-axis is shown for clarity. The
sonic line (Ma=1) is also highlighted. It is parabolic rather than straight in this axisymmetric flow
due to the radial component of velocity, as discussed in Schreier (1982).
59
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
60
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
61
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
62
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
CFD results (grayscale Mach number contours) for steady, adiabatic, inviscid, compressible flow at
Ma1=2.0 over a wedge of half-angle (a) 10, (b) 20, and (c) 30. The Mach number contours range
from Ma= 0.2 (darkest) to 2.0 (lightest) in all cases. For the two smaller wedge half-angles, an
attached weak oblique shock forms at the leading edge of the wedge, but for the 30 case, a
detached shock (bow wave) forms ahead of the wedge. Shock strength increases with ,
as
indicated by the darker shade of gray downstream of the shock as increases.
63
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
Computational domain for steady, incompressible, 2-D flow of water through a sluice gate, with
boundary conditions identified. Two fluids are modeled in the flow field liquid water, and air above
the free surface of the water. Liquid depth yinlet and inlet speed Vinlet are specified.
CFD results for incompressible, 2-D flow of water through a sluice gate in an open channel. Phase
contours are plotted, where blue indicates liquid water and white indicates gaseous air: (a) overall
view of the sluice gate and hydraulic jump, and (b) close-up view of the hydraulic jump. The flow is
highly unsteady, and these are instantaneous snapshots at an arbitrary time.
65
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS
Summary
66
Chapter 15:
INTRODUCTION TO COMPUTATIONAL
FLUID DYNAMICS