
258 NUMERICAL SOLUTION OF THE INCOMPRESSIBLE NAVIER-STOKES EQUATION
Problem 4.6 MATLAB script 4.3 solves the one-dimensional, nonlinear, vis-
cous Burgers equation using the AB-CN semi-implicit method; the tridiago-
nal linear system of finite-difference equations resulting from the implicit time
advancement of the viscous diffusion term is solved using the Thomas algorithm,
with the same initial/boundary conditions as described in Problem 2.12. Solve
the same problem using LU decomposition instead of the Thomas algortithm.
4.5 PRIMITIVE VARIABLE FORMULATION: NUMERICAL
INTEGRATION OF THE NAVIER-STOKES EQUATION
In this section, we apply the methods developed in Section 4.4 to the numeri-
cal integration of the two-dimensional, incompressible, time-dependent Navier-
Stokes equation written in terms of primitive variables on a uniform grid. We
will introduce the fractional time-step algorithm and staggered mesh systems and
outline a method for solving for the pressure (gradient) that satisfies mass conser-
vation to machine accuracy at the advanced time level. Putting all these together,
we will develop an efficient solver for the driven cavity problem.
Let us consider the two-dimensional, time-dependent, incompressible Navier-
Stokes and the continuity equations nondimensionalized by the characteristic
length and velocity scales, L and U
0
, respectively:
∇ · V = 0 (4.5.1)
∂V
∂t
+V · ∇V =−∇P + Re
−1
∇
2
V (4.5.2)
Here, P = p/ρ,wherep is thermodynamic pressure, and using (4.5.1) we define
H = V · ∇V = ∇ · (VV) (4.5.3)
The Reynolds number Re is defined as
Re =
U
o
L
ν
(4.5.4)
When integrating (4.5.1) and (4.5.2), it is imperative that mass conservation
equation (4.5.1) is satisfied to machine zero at every point in the integration
domain. An efficient way to ensure this constraint is by the use of the time-
splitting (or the fractional time step) method. Of the several variants of this
method (Chorin, 1968; Orszag and Kells, 1981; Kim and Moin, 1985), we
will adopt the one used by Huser and Biringen (1992) in their simulations of
shear-driven cavity flows. Another predictor–corrector algorithm for incompress-
ible flows is the SIMPLE algorithm (semi-implicit method for pressure-linked
equations) advanced by Patankar and Spalding (1972) and Patankar (1980). This
method is based on a finite-volume discretizationonastaggeredgrid,andhas
been widely used in computational fluid mechanics and heat transfer.