Lecture 10.11.2022
Lecture 10.11.2022
Lecture 3
APPROXIMATE SOLUTION TECHNIQUES
3.1 INTRODUCTION
Numerous approximate solution techniques have been developed for different types of
problems in CFD. These methods can be classified into two categories:
Mesh-based methods which require discretization of the problem domain into a
mesh (or grid), e.g. finite difference, finite element, and finite volume methods.
Mesh-free methods which primarily use a collection of nodes with no apparent
connectivity, e.g. smooth particle hydrodynamics (SPH), mesh-less Petrov-
Galerkin (MLPG), lattice Boltzmann methods.
Of the preceding two types, mesh-based methods are more popular in CFD. Of these, finite
volume method has been the most popular due to its simplicity and ease of application for
problems in complex geometries. In fact, majority of commercial CFD packages (e.g. Fluent,
StarCD, etc.) are based on finite volume method. In this lecture, we will have a brief
overview of finite difference, finite element and finite volume methods.
The main disadvantage of the finite difference method is its restriction to simple
geometries (although immersed boundary techniques do remove this restriction). We provide
a detailed description of this method in the following section.
FEM is ideally suited to problems on complex geometries, and hence, this method has
been very popular in computational solid mechanics. There is an extensive literature available
L3.1
COMPUTATIONAL FLUID DYNAMICS INTRODUCTION: Approximation Techniques
on all aspects of this method: type of elements, shape functions, mesh generation,
applications to different type of problems, etc. For detailed study of FEM, interested reader
can refer to books by Zienkiewicz et al. (2005a, 2005b), Reddy (2005), Reddy and Gartling
(2010) amongst others.
The FVM can accommodate any type of grid, and hence, it is naturally suitable for
complex geometries. This explains its popularity for commercial CFD packages, which must
cater to problems in arbitrarily complex geometries. This method has immensely benefited
from the unstructured grid generation methods developed for the finite element method.
REFERENCES/SUGGESTED READING
Anderson, J. D., Jr. (1995). Computational Fluid Dynamics: The Basics with Applications.
McGraw Hill, New York.
Ferziger, J. H. And Perić, M. (2003). Computational Methods for Fluid Dynamics. Springer.
Reddy, J. N. (2005). An Introduction to the Finite Element Method. 3rd Ed., McGraw Hill,
New York.
Reddy, J. N. and Gartling, D. K. (2010). The Finite Element Method in Heat Transfer and
Fluid Dynamics, 3rd ed., CRC Press
Zienkiewicz, O. C., Taylor, R. L., Zhu, J. Z. (2005b). The Finite Element Method: Its Basis
and Fundamentals, 6th Ed., Butterworth-Heinemann (Elsevier).
L3.2
COMPUTATIONAL FLUID DYNAMICS: Conservation Laws and Mathematical Preliminaries
Lecture 4
CONSERVATION LAWS AND MATHEMATICAL
PRELIMINARIES
4.1 CONSERVATION LAWS
CFD is based on fundamental governing equations of fluid dynamics which are essentially
mathematical models of conservation laws of physics. Assuming a fluid to be a continuum,
these conservation laws are
1. Conservation of mass
2. Conservation of momentum (Newton’s second law)
3. Conservation of energy (first law of thermodynamics)
These conservation laws are supplemented with constitutive relations (e.g. stress-strain rate
relation, heat diffusion law, etc.) for a specific material.
In this lecture, we provide a brief overview mathematical notation and a few important
theorems which are used to obtain mathematical statements of the conservation laws, in
integral as well as differential forms. The integral forms provide the starting point for the
finite volume method whereas the differential form of conservation equations is used by the
finite difference and the finite element methods. This lecture closely follows the approach of
Kundu and Cohen (2008) and Panton (2005) which should be consulted for further details
and supplemental reading.
L4.1
COMPUTATIONAL FLUID DYNAMICS: Conservation Laws and Mathematical Preliminaries
Summation convention
A repeated index in a term implies summation over the range of that index. For example
ai bi ai bi (Dot product of two vectors a and b) (4.1)
i
vi v v v v
i 1 2 3 (Divergence of vector v) (4.2)
xi xi x1 x2 x3
Kronecker delta
The Kronecker delta, ij , is a second order isotropic tensor defined as
1 if i j
ij (4.3)
0 if i j
Substitution property of Kronecker delta:
ij u j ui (4.4)
L4.2
COMPUTATIONAL FLUID DYNAMICS: Conservation Laws and Mathematical Preliminaries
Gradient operator ( )
The gradient operator, (“del”) is the vector operator defined as
i j k ii (4.14)
x y w xi
When operated on a scalar function , it generates a vector whose ith component is / xi .
Divergence operator ( . )
The divergence of a vector field is defined as the scalar quantity given by
v v v v
.v i 1 2 3 (4.15)
xi x1 x2 x3
Divergence of a second order tensor τ yields a vector whose ith component is given by
.τ i ij (4.16)
x j
Thus, divergence operator decreases the order of a tensor by 1, whereas gradient operator
increases the order of a tensor by 1.
which is popularly known as Gauss divergence theorem. Gauss divergence theorem is used to
convert a surface integral to a volume integral (or vice-versa).
L4.3
COMPUTATIONAL FLUID DYNAMICS: Conservation Laws and Mathematical Preliminaries
provides a relation between the time rates of change in two descriptions, and is used to obtain
the integral form of the conservation laws for a fluid medium.
where CM represents the volume of the system which occupies the control volume Ω at a
given instant of time and ρ is mass density. Reynolds transport theorem states that the time
rate of change of for the system is equal to the rate of change of in control volume plus
net flux of through boundaries of the control volume, i.e.
d
d v v c dA (4.20)
dt CM t S
where v c is velocity of the control volume with respect to the fixed inertial reference frame
in which v is defined, and S denotes the boundary surface of the control volume. The second
term on RHS is usually called the convective (or advective) term.
We would employ the preceding notations and theorems to derive the integral as well as the
differential forms of the mass, momentum and energy equations in next few lectures.
REFERENCES
Kundu, P. K. and Cohen, I. M. (2008). Fluid Mechanics, 4th Ed., Academic Press.
Panton, R. L. (2005). Incompressible Flow, 3rd Ed., Wiley.
L4.4
COMPUTATIONAL FLUID DYNAMICS: Continuity Equation
Lecture 5
CONTINUITY EQUATION
Reynolds transport theorem (L4.22) yields the following integral form for the mass
conservation (or continuity) equation for a stationary control volume:
t
d v dA 0 (5.1)
S
The preceding equation holds for any control volume which is possible only if the integrand
vanishes everywhere, i.e.
. v 0 (5.4)
t
Equation (5.4) represents the differential form of continuity equation in vector notation. In
Cartesian coordinates with usual notation of velocity components (i.e. v ui vj wk vi i i ),
the continuity equation becomes
u v w vi
0 (5.5)
t x y z t xi
The differential form (5.4) or (5.5) can be also derived by considering mass conservation for
an infinitesimal differential control volume (see Example 5.1 below). Expanded form of
continuity equation in cylindrical polar and spherical polar coordinates can be found in any
text on fluid mechanics, e.g. Kundu and Cohen (2008) and Panton (2005).
L5.1
COMPUTATIONAL FLUID DYNAMICS: Continuity Equation
Example 5.1
Derive the differential form of continuity equation using an infinitesimal differential control
volume in Cartesian coordinates.
Solution
Let us consider flow of a fluid through an infinitesimal differential control volume of
dimensions dx, dy and dz. For the sake of clarity, Figure 5.1 depicts the flow through a two-
dimensional control volume. The mass flow rate of fluid entering from the left face (negative
x-face) of the CV is udydz and the mass flow rate leaving the positive x-face of the CV is
u
u dx dydz. Further, the mass flow rate entering from the bottom face (negative y-
x
face) of the CV is vdxdz and the mass flow rate leaving the top face (positive y-face) of the
v
CV is v dy dxdz. Therefore,
y
u
Net mass efflux rate through x-faces = u dx dydz udydz
x
u
= dxdydz
x
v
Net mass efflux rate through y-faces = v dy dxdz vdxdz
y
v
= dxdydz
y
v
v dy
y y
u
u u dx
dy
x
dx
v
Figure 5.1 Mass fluxes through two-dimensional differential control volume
w
Net mass efflux rate through z-faces = dxdydz
z
u v w
Hence, the net mass efflux rate = dxdydz
x y z
L5.2
COMPUTATIONAL FLUID DYNAMICS: Continuity Equation
Rate of accumulation of mass inside the CV = dxdydz
t
For mass conservation, the rate of mass accumulation in the control volume must be negative
of the net mass efflux rate, i.e.
u v w
dxdydz dxdydz
t x y z
Dividing both sides by the differential volume dxdydz and transferring all the terms on one
side gives the following equation for mass conservation:
u v w
0
t x y z
which is same as the continuity equation (5.5) derived from the integral form of the continuity
equation.
Exercise 5.1: Derive the differential form of continuity equation in polar coordinates by take
an infinitesimal control volume in (a) cylindrical polar coordinates and (b) spherical polar
coordinates.
REFERENCES
Kundu, P. K. and Cohen, I. M. (2008). Fluid Mechanics, 4th Ed., Academic Press.
Panton, R. L. (2005). Incompressible Flow, 3rd Ed., Wiley.
L5.3