The Basic Finite Volume Method
The Basic Finite Volume Method
◮ The method starts by dividing the flow domain into a number of small
control volumes.
◮ The grid points where variables are stored are typically defined as being
at the center of each control volume.
◮ The transport equation(s) are then integrated over each control volume.
◮ Such methods are relatively easy to apply when the flow geometry allows
a simple Cartesian set of grid points to be adopted.
1
2 CFD Course Basic of Finite Volume Method
(1)
Or
(2)
(3)
(4)
2
3 CFD Course Basic of Finite Volume Method
(5)
The divergence theorem can be used to convert the left hand side volume
integral to an integral around the boundary, ∂Ω, of the control volume:
(6)
◮ The left hand side of equation (6) is thus simply the total net
convective and diffusive flux of into the control volume.
◮ Provided the same expressions are used for fluxes across faces in
neighboring cells, this approach ensures that the conservation
properties will also be satisfied globally over the flow domain.
(7)
3
4 CFD Course Basic of Finite Volume Method
(8)
for any point lying somewhere on the line being integrated along.
◮ The integration of terms on the right hand side of equation (8) can
then be carried out, using a suitable change of variable, to give
◮ In fact, when is taken as the mid-point of the face then the above
approximation has leading order term of O((s)3), and the
approximation is third order.
(9)
where ̅̅̅is the “average” value of Sover the control volume and
(S)P is simply its value at the cell center node P.
4
5 CFD Course Basic of Finite Volume Method
(10)
◮ This leads to
5
6 CFD Course Basic of Finite Volume Method
(12)
(13)
◮ The gradients U/x and U/y at the cell faces can be evaluated
using central differences, so that the diffusion terms become
(14)
(15)
whetre
6
7 CFD Course Basic of Finite Volume Method
where Cxe, Cxw, etc are simply the mass fluxes through the east, west,
north and south faces.
◮ The scheme used to interpolate these values will affect both the
stability and accuracy of the overall solution, and a few commonly-
used alternatives are outlined below.
◮ A very simple scheme for approximating cell face values for the
convective terms is the first-order upwind convection scheme:
(17)
(18)
7
8 CFD Course Basic of Finite Volume Method
where
◮ Note that the coefficients , etc are all positive, as is . The final
set of terms in is the net mass flux into the cell, which should be
zero, so in practice can simply be taken as the sum +
+ + .
.
(19)
◮ Having obtained the coefficients and source terms for each grid
cell, the resulting system of equations can be solved by a suitable
numerical algorithm.
(20)
◮ The leading error term in this can thus be written as
8
9 CFD Course Basic of Finite Volume Method
◮ For this reason, whilst first order schemes are often used, it is
usually preferable to employ a higher order scheme.
(21)
(22)
(23)
9
10 CFD Course Basic of Finite Volume Method
(24)
◮ The central difference scheme is thus more accurate than the first
order upwind scheme, although it can produce oscillatory solutions.
3- QUICK Scheme
◮ The QUICK (Quadratic Upwind Interpolation for Convection
Kinetics) scheme fits a parabola between three points to approximate
Ue.
(25)
10
11 CFD Course Basic of Finite Volume Method
outlined earlier, since contributions from UEE, UWW, UNN and USS now
appear.
◮ This maintains the five point stencil of points treated implicitly, and
the positivity of the coefficient matrix.
11
12 CFD Course Basic of Finite Volume Method
◮ At this stage it is not clear how the pressure field is updated, since
we do not have a transport equation for the pressure. This issue is
addressed in the following section.
= 0 at xE or /x = 0 at xE
(26)
where the coefficients ae, aw, an and as contain the convective and
diffusive contributions, and ap = ae +aw +an +as.
12