fundamentals of computational fluid dynamics.pdf

275

Upload: buihuong

Post on 03-Jan-2017

251 views

Category:

Documents


6 download

TRANSCRIPT

Page 1: Fundamentals of Computational Fluid Dynamics.pdf

Fundamentals of Computational Fluid

Dynamics

Harvard Lomax and Thomas H. Pulliam

NASA Ames Research Center

David W. Zingg

University of Toronto Institute for Aerospace Studies

August 26, 1999

Page 2: Fundamentals of Computational Fluid Dynamics.pdf
Page 3: Fundamentals of Computational Fluid Dynamics.pdf

Contents

1 INTRODUCTION 1

1.1 Motivation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

1.2 Background . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

1.2.1 Problem Speci�cation and Geometry Preparation . . . . . . . 2

1.2.2 Selection of Governing Equations and Boundary Conditions . 3

1.2.3 Selection of Gridding Strategy and Numerical Method . . . . 3

1.2.4 Assessment and Interpretation of Results . . . . . . . . . . . . 4

1.3 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

1.4 Notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

2 CONSERVATION LAWS AND THE MODEL EQUATIONS 7

2.1 Conservation Laws . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

2.2 The Navier-Stokes and Euler Equations . . . . . . . . . . . . . . . . . 8

2.3 The Linear Convection Equation . . . . . . . . . . . . . . . . . . . . 12

2.3.1 Di�erential Form . . . . . . . . . . . . . . . . . . . . . . . . . 12

2.3.2 Solution in Wave Space . . . . . . . . . . . . . . . . . . . . . . 13

2.4 The Di�usion Equation . . . . . . . . . . . . . . . . . . . . . . . . . . 14

2.4.1 Di�erential Form . . . . . . . . . . . . . . . . . . . . . . . . . 14

2.4.2 Solution in Wave Space . . . . . . . . . . . . . . . . . . . . . . 15

2.5 Linear Hyperbolic Systems . . . . . . . . . . . . . . . . . . . . . . . . 16

2.6 Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

3 FINITE-DIFFERENCE APPROXIMATIONS 21

3.1 Meshes and Finite-Di�erence Notation . . . . . . . . . . . . . . . . . 21

3.2 Space Derivative Approximations . . . . . . . . . . . . . . . . . . . . 24

3.3 Finite-Di�erence Operators . . . . . . . . . . . . . . . . . . . . . . . 25

3.3.1 Point Di�erence Operators . . . . . . . . . . . . . . . . . . . . 25

3.3.2 Matrix Di�erence Operators . . . . . . . . . . . . . . . . . . . 25

3.3.3 Periodic Matrices . . . . . . . . . . . . . . . . . . . . . . . . . 29

3.3.4 Circulant Matrices . . . . . . . . . . . . . . . . . . . . . . . . 30

iii

Page 4: Fundamentals of Computational Fluid Dynamics.pdf

3.4 Constructing Di�erencing Schemes of Any Order . . . . . . . . . . . . 31

3.4.1 Taylor Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . 31

3.4.2 Generalization of Di�erence Formulas . . . . . . . . . . . . . . 34

3.4.3 Lagrange and Hermite Interpolation Polynomials . . . . . . . 35

3.4.4 Practical Application of Pad�e Formulas . . . . . . . . . . . . . 37

3.4.5 Other Higher-Order Schemes . . . . . . . . . . . . . . . . . . . 38

3.5 Fourier Error Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . 39

3.5.1 Application to a Spatial Operator . . . . . . . . . . . . . . . . 39

3.6 Di�erence Operators at Boundaries . . . . . . . . . . . . . . . . . . . 43

3.6.1 The Linear Convection Equation . . . . . . . . . . . . . . . . 44

3.6.2 The Di�usion Equation . . . . . . . . . . . . . . . . . . . . . . 46

3.7 Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47

4 THE SEMI-DISCRETE APPROACH 51

4.1 Reduction of PDE's to ODE's . . . . . . . . . . . . . . . . . . . . . . 52

4.1.1 The Model ODE's . . . . . . . . . . . . . . . . . . . . . . . . 52

4.1.2 The Generic Matrix Form . . . . . . . . . . . . . . . . . . . . 53

4.2 Exact Solutions of Linear ODE's . . . . . . . . . . . . . . . . . . . . 54

4.2.1 Eigensystems of Semi-Discrete Linear Forms . . . . . . . . . . 54

4.2.2 Single ODE's of First- and Second-Order . . . . . . . . . . . . 55

4.2.3 Coupled First-Order ODE's . . . . . . . . . . . . . . . . . . . 57

4.2.4 General Solution of Coupled ODE's with Complete Eigensystems 59

4.3 Real Space and Eigenspace . . . . . . . . . . . . . . . . . . . . . . . . 61

4.3.1 De�nition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61

4.3.2 Eigenvalue Spectrums for Model ODE's . . . . . . . . . . . . . 62

4.3.3 Eigenvectors of the Model Equations . . . . . . . . . . . . . . 63

4.3.4 Solutions of the Model ODE's . . . . . . . . . . . . . . . . . . 65

4.4 The Representative Equation . . . . . . . . . . . . . . . . . . . . . . 67

4.5 Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68

5 FINITE-VOLUME METHODS 71

5.1 Basic Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72

5.2 Model Equations in Integral Form . . . . . . . . . . . . . . . . . . . . 73

5.2.1 The Linear Convection Equation . . . . . . . . . . . . . . . . 73

5.2.2 The Di�usion Equation . . . . . . . . . . . . . . . . . . . . . . 74

5.3 One-Dimensional Examples . . . . . . . . . . . . . . . . . . . . . . . 74

5.3.1 A Second-Order Approximation to the Convection Equation . 75

5.3.2 A Fourth-Order Approximation to the Convection Equation . 77

5.3.3 A Second-Order Approximation to the Di�usion Equation . . 78

5.4 A Two-Dimensional Example . . . . . . . . . . . . . . . . . . . . . . 80

Page 5: Fundamentals of Computational Fluid Dynamics.pdf

5.5 Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83

6 TIME-MARCHING METHODS FOR ODE'S 85

6.1 Notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86

6.2 Converting Time-Marching Methods to O�E's . . . . . . . . . . . . . 87

6.3 Solution of Linear O�E's With Constant Coe�cients . . . . . . . . . 88

6.3.1 First- and Second-Order Di�erence Equations . . . . . . . . . 89

6.3.2 Special Cases of Coupled First-Order Equations . . . . . . . . 90

6.4 Solution of the Representative O�E's . . . . . . . . . . . . . . . . . 91

6.4.1 The Operational Form and its Solution . . . . . . . . . . . . . 91

6.4.2 Examples of Solutions to Time-Marching O�E's . . . . . . . . 92

6.5 The �� � Relation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93

6.5.1 Establishing the Relation . . . . . . . . . . . . . . . . . . . . . 93

6.5.2 The Principal �-Root . . . . . . . . . . . . . . . . . . . . . . . 95

6.5.3 Spurious �-Roots . . . . . . . . . . . . . . . . . . . . . . . . . 95

6.5.4 One-Root Time-Marching Methods . . . . . . . . . . . . . . . 96

6.6 Accuracy Measures of Time-Marching Methods . . . . . . . . . . . . 97

6.6.1 Local and Global Error Measures . . . . . . . . . . . . . . . . 97

6.6.2 Local Accuracy of the Transient Solution (er�; j�j ; er!) . . . . 98

6.6.3 Local Accuracy of the Particular Solution (er�) . . . . . . . . 99

6.6.4 Time Accuracy For Nonlinear Applications . . . . . . . . . . . 100

6.6.5 Global Accuracy . . . . . . . . . . . . . . . . . . . . . . . . . 101

6.7 Linear Multistep Methods . . . . . . . . . . . . . . . . . . . . . . . . 102

6.7.1 The General Formulation . . . . . . . . . . . . . . . . . . . . . 102

6.7.2 Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103

6.7.3 Two-Step Linear Multistep Methods . . . . . . . . . . . . . . 105

6.8 Predictor-Corrector Methods . . . . . . . . . . . . . . . . . . . . . . . 106

6.9 Runge-Kutta Methods . . . . . . . . . . . . . . . . . . . . . . . . . . 107

6.10 Implementation of Implicit Methods . . . . . . . . . . . . . . . . . . . 110

6.10.1 Application to Systems of Equations . . . . . . . . . . . . . . 110

6.10.2 Application to Nonlinear Equations . . . . . . . . . . . . . . . 111

6.10.3 Local Linearization for Scalar Equations . . . . . . . . . . . . 112

6.10.4 Local Linearization for Coupled Sets of Nonlinear Equations . 115

6.11 Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117

7 STABILITY OF LINEAR SYSTEMS 121

7.1 Dependence on the Eigensystem . . . . . . . . . . . . . . . . . . . . . 122

7.2 Inherent Stability of ODE's . . . . . . . . . . . . . . . . . . . . . . . 123

7.2.1 The Criterion . . . . . . . . . . . . . . . . . . . . . . . . . . . 123

7.2.2 Complete Eigensystems . . . . . . . . . . . . . . . . . . . . . . 123

Page 6: Fundamentals of Computational Fluid Dynamics.pdf

7.2.3 Defective Eigensystems . . . . . . . . . . . . . . . . . . . . . . 123

7.3 Numerical Stability of O�E 's . . . . . . . . . . . . . . . . . . . . . . 124

7.3.1 The Criterion . . . . . . . . . . . . . . . . . . . . . . . . . . . 124

7.3.2 Complete Eigensystems . . . . . . . . . . . . . . . . . . . . . . 125

7.3.3 Defective Eigensystems . . . . . . . . . . . . . . . . . . . . . . 125

7.4 Time-Space Stability and Convergence of O�E's . . . . . . . . . . . . 125

7.5 Numerical Stability Concepts in the Complex �-Plane . . . . . . . . . 128

7.5.1 �-Root Traces Relative to the Unit Circle . . . . . . . . . . . 128

7.5.2 Stability for Small �t . . . . . . . . . . . . . . . . . . . . . . . 132

7.6 Numerical Stability Concepts in the Complex �h Plane . . . . . . . . 135

7.6.1 Stability for Large h. . . . . . . . . . . . . . . . . . . . . . . . 135

7.6.2 Unconditional Stability, A-Stable Methods . . . . . . . . . . . 136

7.6.3 Stability Contours in the Complex �h Plane. . . . . . . . . . . 137

7.7 Fourier Stability Analysis . . . . . . . . . . . . . . . . . . . . . . . . 141

7.7.1 The Basic Procedure . . . . . . . . . . . . . . . . . . . . . . . 141

7.7.2 Some Examples . . . . . . . . . . . . . . . . . . . . . . . . . . 142

7.7.3 Relation to Circulant Matrices . . . . . . . . . . . . . . . . . . 143

7.8 Consistency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143

7.9 Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146

8 CHOICE OF TIME-MARCHING METHODS 149

8.1 Sti�ness De�nition for ODE's . . . . . . . . . . . . . . . . . . . . . . 149

8.1.1 Relation to �-Eigenvalues . . . . . . . . . . . . . . . . . . . . 149

8.1.2 Driving and Parasitic Eigenvalues . . . . . . . . . . . . . . . . 151

8.1.3 Sti�ness Classi�cations . . . . . . . . . . . . . . . . . . . . . . 151

8.2 Relation of Sti�ness to Space Mesh Size . . . . . . . . . . . . . . . . 152

8.3 Practical Considerations for Comparing Methods . . . . . . . . . . . 153

8.4 Comparing the E�ciency of Explicit Methods . . . . . . . . . . . . . 154

8.4.1 Imposed Constraints . . . . . . . . . . . . . . . . . . . . . . . 154

8.4.2 An Example Involving Di�usion . . . . . . . . . . . . . . . . . 154

8.4.3 An Example Involving Periodic Convection . . . . . . . . . . . 155

8.5 Coping With Sti�ness . . . . . . . . . . . . . . . . . . . . . . . . . . 158

8.5.1 Explicit Methods . . . . . . . . . . . . . . . . . . . . . . . . . 158

8.5.2 Implicit Methods . . . . . . . . . . . . . . . . . . . . . . . . . 159

8.5.3 A Perspective . . . . . . . . . . . . . . . . . . . . . . . . . . . 160

8.6 Steady Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160

8.7 Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161

Page 7: Fundamentals of Computational Fluid Dynamics.pdf

9 RELAXATION METHODS 163

9.1 Formulation of the Model Problem . . . . . . . . . . . . . . . . . . . 164

9.1.1 Preconditioning the Basic Matrix . . . . . . . . . . . . . . . . 164

9.1.2 The Model Equations . . . . . . . . . . . . . . . . . . . . . . . 166

9.2 Classical Relaxation . . . . . . . . . . . . . . . . . . . . . . . . . . . 168

9.2.1 The Delta Form of an Iterative Scheme . . . . . . . . . . . . . 168

9.2.2 The Converged Solution, the Residual, and the Error . . . . . 168

9.2.3 The Classical Methods . . . . . . . . . . . . . . . . . . . . . . 169

9.3 The ODE Approach to Classical Relaxation . . . . . . . . . . . . . . 170

9.3.1 The Ordinary Di�erential Equation Formulation . . . . . . . . 170

9.3.2 ODE Form of the Classical Methods . . . . . . . . . . . . . . 172

9.4 Eigensystems of the Classical Methods . . . . . . . . . . . . . . . . . 173

9.4.1 The Point-Jacobi System . . . . . . . . . . . . . . . . . . . . . 174

9.4.2 The Gauss-Seidel System . . . . . . . . . . . . . . . . . . . . . 176

9.4.3 The SOR System . . . . . . . . . . . . . . . . . . . . . . . . . 180

9.5 Nonstationary Processes . . . . . . . . . . . . . . . . . . . . . . . . . 182

9.6 Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187

10 MULTIGRID 191

10.1 Motivation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191

10.1.1 Eigenvector and Eigenvalue Identi�cation with Space Frequencies191

10.1.2 Properties of the Iterative Method . . . . . . . . . . . . . . . 192

10.2 The Basic Process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192

10.3 A Two-Grid Process . . . . . . . . . . . . . . . . . . . . . . . . . . . 200

10.4 Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202

11 NUMERICAL DISSIPATION 203

11.1 One-Sided First-Derivative Space Di�erencing . . . . . . . . . . . . . 204

11.2 The Modi�ed Partial Di�erential Equation . . . . . . . . . . . . . . . 205

11.3 The Lax-Wendro� Method . . . . . . . . . . . . . . . . . . . . . . . . 207

11.4 Upwind Schemes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209

11.4.1 Flux-Vector Splitting . . . . . . . . . . . . . . . . . . . . . . . 210

11.4.2 Flux-Di�erence Splitting . . . . . . . . . . . . . . . . . . . . . 212

11.5 Arti�cial Dissipation . . . . . . . . . . . . . . . . . . . . . . . . . . . 213

11.6 Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214

12 SPLIT AND FACTORED FORMS 217

12.1 The Concept . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217

12.2 Factoring Physical Representations | Time Splitting . . . . . . . . . 218

12.3 Factoring Space Matrix Operators in 2{D . . . . . . . . . . . . . . . . 220

Page 8: Fundamentals of Computational Fluid Dynamics.pdf

12.3.1 Mesh Indexing Convention . . . . . . . . . . . . . . . . . . . . 220

12.3.2 Data Bases and Space Vectors . . . . . . . . . . . . . . . . . . 221

12.3.3 Data Base Permutations . . . . . . . . . . . . . . . . . . . . . 221

12.3.4 Space Splitting and Factoring . . . . . . . . . . . . . . . . . . 223

12.4 Second-Order Factored Implicit Methods . . . . . . . . . . . . . . . . 226

12.5 Importance of Factored Forms in 2 and 3 Dimensions . . . . . . . . . 226

12.6 The Delta Form . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228

12.7 Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229

13 LINEAR ANALYSIS OF SPLIT AND FACTORED FORMS 233

13.1 The Representative Equation for Circulant Operators . . . . . . . . . 233

13.2 Example Analysis of Circulant Systems . . . . . . . . . . . . . . . . . 234

13.2.1 Stability Comparisons of Time-Split Methods . . . . . . . . . 234

13.2.2 Analysis of a Second-Order Time-Split Method . . . . . . . . 237

13.3 The Representative Equation for Space-Split Operators . . . . . . . . 238

13.4 Example Analysis of 2-D Model Equations . . . . . . . . . . . . . . . 242

13.4.1 The Unfactored Implicit Euler Method . . . . . . . . . . . . . 242

13.4.2 The Factored Nondelta Form of the Implicit Euler Method . . 243

13.4.3 The Factored Delta Form of the Implicit Euler Method . . . . 243

13.4.4 The Factored Delta Form of the Trapezoidal Method . . . . . 244

13.5 Example Analysis of the 3-D Model Equation . . . . . . . . . . . . . 245

13.6 Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247

A USEFUL RELATIONS AND DEFINITIONS FROM LINEAR AL-

GEBRA 249

A.1 Notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249

A.2 De�nitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250

A.3 Algebra . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251

A.4 Eigensystems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251

A.5 Vector and Matrix Norms . . . . . . . . . . . . . . . . . . . . . . . . 254

B SOME PROPERTIES OF TRIDIAGONAL MATRICES 257

B.1 Standard Eigensystem for Simple Tridiagonals . . . . . . . . . . . . . 257

B.2 Generalized Eigensystem for Simple Tridiagonals . . . . . . . . . . . . 258

B.3 The Inverse of a Simple Tridiagonal . . . . . . . . . . . . . . . . . . . 259

B.4 Eigensystems of Circulant Matrices . . . . . . . . . . . . . . . . . . . 260

B.4.1 Standard Tridiagonals . . . . . . . . . . . . . . . . . . . . . . 260

B.4.2 General Circulant Systems . . . . . . . . . . . . . . . . . . . . 261

B.5 Special Cases Found From Symmetries . . . . . . . . . . . . . . . . . 262

B.6 Special Cases Involving Boundary Conditions . . . . . . . . . . . . . 263

Page 9: Fundamentals of Computational Fluid Dynamics.pdf

C THEHOMOGENEOUS PROPERTYOF THE EULER EQUATIONS265

Page 10: Fundamentals of Computational Fluid Dynamics.pdf

Chapter 1

INTRODUCTION

1.1 Motivation

The material in this book originated from attempts to understand and systemize nu-

merical solution techniques for the partial di�erential equations governing the physics

of uid ow. As time went on and these attempts began to crystallize, underlying

constraints on the nature of the material began to form. The principal such constraint

was the demand for uni�cation. Was there one mathematical structure which could

be used to describe the behavior and results of most numerical methods in common

use in the �eld of uid dynamics? Perhaps the answer is arguable, but the authors

believe the answer is a�rmative and present this book as justi�cation for that be-

lief. The mathematical structure is the theory of linear algebra and the attendant

eigenanalysis of linear systems.

The ultimate goal of the �eld of computational uid dynamics (CFD) is to under-

stand the physical events that occur in the ow of uids around and within designated

objects. These events are related to the action and interaction of phenomena such

as dissipation, di�usion, convection, shock waves, slip surfaces, boundary layers, and

turbulence. In the �eld of aerodynamics, all of these phenomena are governed by

the compressible Navier-Stokes equations. Many of the most important aspects of

these relations are nonlinear and, as a consequence, often have no analytic solution.

This, of course, motivates the numerical solution of the associated partial di�erential

equations. At the same time it would seem to invalidate the use of linear algebra for

the classi�cation of the numerical methods. Experience has shown that such is not

the case.

As we shall see in a later chapter, the use of numerical methods to solve partial

di�erential equations introduces an approximation that, in e�ect, can change the

form of the basic partial di�erential equations themselves. The new equations, which

1

Page 11: Fundamentals of Computational Fluid Dynamics.pdf

2 CHAPTER 1. INTRODUCTION

are the ones actually being solved by the numerical process, are often referred to as

the modi�ed partial di�erential equations. Since they are not precisely the same as

the original equations, they can, and probably will, simulate the physical phenomena

listed above in ways that are not exactly the same as an exact solution to the basic

partial di�erential equation. Mathematically, these di�erences are usually referred to

as truncation errors. However, the theory associated with the numerical analysis of

uid mechanics was developed predominantly by scientists deeply interested in the

physics of uid ow and, as a consequence, these errors are often identi�ed with a

particular physical phenomenon on which they have a strong e�ect. Thus methods are

said to have a lot of \arti�cial viscosity" or said to be highly dispersive. This means

that the errors caused by the numerical approximation result in a modi�ed partial

di�erential equation having additional terms that can be identi�ed with the physics

of dissipation in the �rst case and dispersion in the second. There is nothing wrong,

of course, with identifying an error with a physical process, nor with deliberately

directing an error to a speci�c physical process, as long as the error remains in some

engineering sense \small". It is safe to say, for example, that most numerical methods

in practical use for solving the nondissipative Euler equations create a modi�ed partial

di�erential equation that produces some form of dissipation. However, if used and

interpreted properly, these methods give very useful information.

Regardless of what the numerical errors are called, if their e�ects are not thor-

oughly understood and controlled, they can lead to serious di�culties, producing

answers that represent little, if any, physical reality. This motivates studying the

concepts of stability, convergence, and consistency. On the other hand, even if the

errors are kept small enough that they can be neglected (for engineering purposes),

the resulting simulation can still be of little practical use if ine�cient or inappropriate

algorithms are used. This motivates studying the concepts of sti�ness, factorization,

and algorithm development in general. All of these concepts we hope to clarify in

this book.

1.2 Background

The �eld of computational uid dynamics has a broad range of applicability. Indepen-

dent of the speci�c application under study, the following sequence of steps generally

must be followed in order to obtain a satisfactory solution.

1.2.1 Problem Speci�cation and Geometry Preparation

The �rst step involves the speci�cation of the problem, including the geometry, ow

conditions, and the requirements of the simulation. The geometry may result from

Page 12: Fundamentals of Computational Fluid Dynamics.pdf

1.2. BACKGROUND 3

measurements of an existing con�guration or may be associated with a design study.

Alternatively, in a design context, no geometry need be supplied. Instead, a set

of objectives and constraints must be speci�ed. Flow conditions might include, for

example, the Reynolds number and Mach number for the ow over an airfoil. The

requirements of the simulation include issues such as the level of accuracy needed, the

turnaround time required, and the solution parameters of interest. The �rst two of

these requirements are often in con ict and compromise is necessary. As an example

of solution parameters of interest in computing the ow�eld about an airfoil, one may

be interested in i) the lift and pitching moment only, ii) the drag as well as the lift

and pitching moment, or iii) the details of the ow at some speci�c location.

1.2.2 Selection of Governing Equations and Boundary Con-

ditions

Once the problem has been speci�ed, an appropriate set of governing equations and

boundary conditions must be selected. It is generally accepted that the phenomena of

importance to the �eld of continuum uid dynamics are governed by the conservation

of mass, momentum, and energy. The partial di�erential equations resulting from

these conservation laws are referred to as the Navier-Stokes equations. However, in

the interest of e�ciency, it is always prudent to consider solving simpli�ed forms

of the Navier-Stokes equations when the simpli�cations retain the physics which are

essential to the goals of the simulation. Possible simpli�ed governing equations include

the potential- ow equations, the Euler equations, and the thin-layer Navier-Stokes

equations. These may be steady or unsteady and compressible or incompressible.

Boundary types which may be encountered include solid walls, in ow and out ow

boundaries, periodic boundaries, symmetry boundaries, etc. The boundary conditions

which must be speci�ed depend upon the governing equations. For example, at a solid

wall, the Euler equations require ow tangency to be enforced, while the Navier-Stokes

equations require the no-slip condition. If necessary, physical models must be chosen

for processes which cannot be simulated within the speci�ed constraints. Turbulence

is an example of a physical process which is rarely simulated in a practical context (at

the time of writing) and thus is often modelled. The success of a simulation depends

greatly on the engineering insight involved in selecting the governing equations and

physical models based on the problem speci�cation.

1.2.3 Selection of Gridding Strategy and Numerical Method

Next a numerical method and a strategy for dividing the ow domain into cells, or

elements, must be selected. We concern ourselves here only with numerical meth-

ods requiring such a tessellation of the domain, which is known as a grid, or mesh.

Page 13: Fundamentals of Computational Fluid Dynamics.pdf

4 CHAPTER 1. INTRODUCTION

Many di�erent gridding strategies exist, including structured, unstructured, hybrid,

composite, and overlapping grids. Furthermore, the grid can be altered based on

the solution in an approach known as solution-adaptive gridding. The numerical

methods generally used in CFD can be classi�ed as �nite-di�erence, �nite-volume,

�nite-element, or spectral methods. The choices of a numerical method and a grid-

ding strategy are strongly interdependent. For example, the use of �nite-di�erence

methods is typically restricted to structured grids. Here again, the success of a sim-

ulation can depend on appropriate choices for the problem or class of problems of

interest.

1.2.4 Assessment and Interpretation of Results

Finally, the results of the simulation must be assessed and interpreted. This step can

require post-processing of the data, for example calculation of forces and moments,

and can be aided by sophisticated ow visualization tools and error estimation tech-

niques. It is critical that the magnitude of both numerical and physical-model errors

be well understood.

1.3 Overview

It should be clear that successful simulation of uid ows can involve a wide range of

issues from grid generation to turbulence modelling to the applicability of various sim-

pli�ed forms of the Navier-Stokes equations. Many of these issues are not addressed

in this book. Some of them are presented in the books by Anderson, Tannehill, and

Pletcher [1] and Hirsch [2]. Instead we focus on numerical methods, with emphasis

on �nite-di�erence and �nite-volume methods for the Euler and Navier-Stokes equa-

tions. Rather than presenting the details of the most advanced methods, which are

still evolving, we present a foundation for developing, analyzing, and understanding

such methods.

Fortunately, to develop, analyze, and understand most numerical methods used to

�nd solutions for the complete compressible Navier-Stokes equations, we can make use

of much simpler expressions, the so-called \model" equations. These model equations

isolate certain aspects of the physics contained in the complete set of equations. Hence

their numerical solution can illustrate the properties of a given numerical method

when applied to a more complicated system of equations which governs similar phys-

ical phenomena. Although the model equations are extremely simple and easy to

solve, they have been carefully selected to be representative, when used intelligently,

of di�culties and complexities that arise in realistic two- and three-dimensional uid

ow simulations. We believe that a thorough understanding of what happens when

Page 14: Fundamentals of Computational Fluid Dynamics.pdf

1.4. NOTATION 5

numerical approximations are applied to the model equations is a major �rst step in

making con�dent and competent use of numerical approximations to the Euler and

Navier-Stokes equations. As a word of caution, however, it should be noted that,

although we can learn a great deal by studying numerical methods as applied to the

model equations and can use that information in the design and application of nu-

merical methods to practical problems, there are many aspects of practical problems

which can only be understood in the context of the complete physical systems.

1.4 Notation

The notation is generally explained as it is introduced. Bold type is reserved for real

physical vectors, such as velocity. The vector symbol~ is used for the vectors (or

column matrices) which contain the values of the dependent variable at the nodes

of a grid. Otherwise, the use of a vector consisting of a collection of scalars should

be apparent from the context and is not identi�ed by any special notation. For

example, the variable u can denote a scalar Cartesian velocity component in the Euler

and Navier-Stokes equations, a scalar quantity in the linear convection and di�usion

equations, and a vector consisting of a collection of scalars in our presentation of

hyperbolic systems. Some of the abbreviations used throughout the text are listed

and de�ned below.

PDE Partial di�erential equation

ODE Ordinary di�erential equation

O�E Ordinary di�erence equation

RHS Right-hand side

P.S. Particular solution of an ODE or system of ODE's

S.S. Fixed (time-invariant) steady-state solution

k-D k-dimensional space�~bc

�Boundary conditions, usually a vector

O(�) A term of order (i.e., proportional to) �

Page 15: Fundamentals of Computational Fluid Dynamics.pdf

6 CHAPTER 1. INTRODUCTION

Page 16: Fundamentals of Computational Fluid Dynamics.pdf

Chapter 2

CONSERVATION LAWS AND

THE MODEL EQUATIONS

We start out by casting our equations in the most general form, the integral conserva-

tion-law form, which is useful in understanding the concepts involved in �nite-volume

schemes. The equations are then recast into divergence form, which is natural for

�nite-di�erence schemes. The Euler and Navier-Stokes equations are brie y discussed

in this Chapter. The main focus, though, will be on representative model equations,

in particular, the convection and di�usion equations. These equations contain many

of the salient mathematical and physical features of the full Navier-Stokes equations.

The concepts of convection and di�usion are prevalent in our development of nu-

merical methods for computational uid dynamics, and the recurring use of these

model equations allows us to develop a consistent framework of analysis for consis-

tency, accuracy, stability, and convergence. The model equations we study have two

properties in common. They are linear partial di�erential equations (PDE's) with

coe�cients that are constant in both space and time, and they represent phenomena

of importance to the analysis of certain aspects of uid dynamic problems.

2.1 Conservation Laws

Conservation laws, such as the Euler and Navier-Stokes equations and our model

equations, can be written in the following integral form:

ZV (t2)

QdV �ZV (t1)

QdV +

Z t2

t1

IS(t)

n:FdSdt =Z t2

t1

ZV (t)

PdV dt (2.1)

In this equation, Q is a vector containing the set of variables which are conserved,

e.g., mass, momentum, and energy, per unit volume. The equation is a statement of

7

Page 17: Fundamentals of Computational Fluid Dynamics.pdf

8 CHAPTER 2. CONSERVATION LAWS AND THE MODEL EQUATIONS

the conservation of these quantities in a �nite region of space with volume V (t) and

surface area S(t) over a �nite interval of time t2 � t1. In two dimensions, the region

of space, or cell, is an area A(t) bounded by a closed contour C(t). The vector n is

a unit vector normal to the surface pointing outward, F is a set of vectors, or tensor,

containing the ux of Q per unit area per unit time, and P is the rate of production

of Q per unit volume per unit time. If all variables are continuous in time, then Eq.

2.1 can be rewritten as

d

dt

ZV (t)

QdV +

IS(t)

n:FdS =

ZV (t)

PdV (2.2)

Those methods which make various numerical approximations of the integrals in Eqs.

2.1 and 2.2 and �nd a solution for Q on that basis are referred to as �nite-volume

methods. Many of the advanced codes written for CFD applications are based on the

�nite-volume concept.

On the other hand, a partial derivative form of a conservation law can also be

derived. The divergence form of Eq. 2.2 is obtained by applying Gauss's theorem to

the ux integral, leading to@Q

@t+r:F = P (2.3)

where r: is the well-known divergence operator given, in Cartesian coordinates, by

r: �

i@

@x+ j

@

@y+ k

@

@z

!: (2.4)

and i; j, and k are unit vectors in the x; y, and z coordinate directions, respectively.

Those methods which make various approximations of the derivatives in Eq. 2.3 and

�nd a solution for Q on that basis are referred to as �nite-di�erence methods.

2.2 The Navier-Stokes and Euler Equations

The Navier-Stokes equations form a coupled system of nonlinear PDE's describing

the conservation of mass, momentum and energy for a uid. For a Newtonian uid

in one dimension, they can be written as

@Q

@t+@E

@x= 0 (2.5)

with

Q =

2666664

�u

e

3777775 ; E =

2666664

�u

�u2 + p

u(e+ p)

3777775�

2666664

0

43�@u@x

43�u@u

@x+ �@T

@x

3777775 (2.6)

Page 18: Fundamentals of Computational Fluid Dynamics.pdf

2.2. THE NAVIER-STOKES AND EULER EQUATIONS 9

where � is the uid density, u is the velocity, e is the total energy per unit volume, p is

the pressure, T is the temperature, � is the coe�cient of viscosity, and � is the thermal

conductivity. The total energy e includes internal energy per unit volume �� (where

� is the internal energy per unit mass) and kinetic energy per unit volume �u2=2.

These equations must be supplemented by relations between � and � and the uid

state as well as an equation of state, such as the ideal gas law. Details can be found

in Anderson, Tannehill, and Pletcher [1] and Hirsch [2]. Note that the convective

uxes lead to �rst derivatives in space, while the viscous and heat conduction terms

involve second derivatives. This form of the equations is called conservation-law or

conservative form. Non-conservative forms can be obtained by expanding derivatives

of products using the product rule or by introducing di�erent dependent variables,

such as u and p. Although non-conservative forms of the equations are analytically

the same as the above form, they can lead to quite di�erent numerical solutions in

terms of shock strength and shock speed, for example. Thus the conservative form is

appropriate for solving ows with features such as shock waves.

Many ows of engineering interest are steady (time-invariant), or at least may be

treated as such. For such ows, we are often interested in the steady-state solution of

the Navier-Stokes equations, with no interest in the transient portion of the solution.

The steady solution to the one-dimensional Navier-Stokes equations must satisfy

@E

@x= 0 (2.7)

If we neglect viscosity and heat conduction, the Euler equations are obtained. In

two-dimensional Cartesian coordinates, these can be written as

@Q

@t+@E

@x+@F

@y= 0 (2.8)

with

Q =

26664q1q2q3q4

37775 =

26664�

�u

�v

e

37775 ; E =

26664

�u

�u2 + p

�uv

u(e+ p)

37775 ; F =

26664

�v

�uv

�v2 + p

v(e+ p)

37775 (2.9)

where u and v are the Cartesian velocity components. Later on we will make use of

the following form of the Euler equations as well:

@Q

@t+ A

@Q

@x+B

@Q

@y= 0 (2.10)

The matrices A = @E

@Qand B = @F

@Qare known as the ux Jacobians. The ux vectors

given above are written in terms of the primitive variables, �, u, v, and p. In order

Page 19: Fundamentals of Computational Fluid Dynamics.pdf

10 CHAPTER 2. CONSERVATION LAWS AND THE MODEL EQUATIONS

to derive the ux Jacobian matrices, we must �rst write the ux vectors E and F in

terms of the conservative variables, q1, q2, q3, and q4, as follows:

E =

2666666666664

E1

E2

E3

E4

3777777777775=

2666666666666664

q2

( � 1)q4 +3� 2

q22

q1�

�12

q23

q1

q3q2q1

q4q2q1�

�12

�q32

q21

+q23q2

q21

3777777777777775

(2.11)

F =

2666666666664

F1

F2

F3

F4

3777777777775=

266666666666664

q3

q3q2q1

( � 1)q4 +3� 2

q23

q1�

�12

q22

q1

q4q3q1�

�12

�q22q3

q21

+q33

q21

377777777777775

(2.12)

We have assumed that the pressure satis�es p = ( � 1)[e � �(u2 + v2)=2] from the

ideal gas law, where is the ratio of speci�c heats, cp=cv. From this it follows that

the ux Jacobian of E can be written in terms of the conservative variables as

A =@Ei

@qj=

266666666666664

0 1 0 0

a21 (3� )�q2q1

�(1� )

�q3q1

� � 1

�q2q1

��q3q1

� �q3q1

� �q2q1

�0

a41 a42 a43 �q2q1

377777777777775

(2.13)

where

a21 = � 1

2

q3

q1

!2

3�

2

q2

q1

!2

Page 20: Fundamentals of Computational Fluid Dynamics.pdf

2.2. THE NAVIER-STOKES AND EULER EQUATIONS 11

a41 = ( � 1)

24 q2

q1

!3

+

q3

q1

!2 q2

q1

!35�

q4

q1

! q2

q1

!

a42 =

q4

q1

!�

� 1

2

243 q2

q1

!2

+

q3

q1

!235

a43 = �( � 1)

q2

q1

! q3

q1

!(2.14)

and in terms of the primitive variables as

A =

2666666666664

0 1 0 0

a21 (3� )u (1� )v ( � 1)

�uv v u 0

a41 a42 a43 u

3777777777775

(2.15)

where

a21 = � 1

2v2 �

3�

2u2

a41 = ( � 1)u(u2 + v2)� ue

a42 = e

��

� 1

2(3u2 + v2)

a43 = (1� )uv (2.16)

Derivation of the two forms of B = @F=@Q is similar. The eigenvalues of the ux

Jacobian matrices are purely real. This is the de�ning feature of hyperbolic systems

of PDE's, which are further discussed in Section 2.5. The homogeneous property of

the Euler equations is discussed in Appendix C.

The Navier-Stokes equations include both convective and di�usive uxes. This

motivates the choice of our two scalar model equations associated with the physics

of convection and di�usion. Furthermore, aspects of convective phenomena associ-

ated with coupled systems of equations such as the Euler equations are important in

developing numerical methods and boundary conditions. Thus we also study linear

hyperbolic systems of PDE's.

Page 21: Fundamentals of Computational Fluid Dynamics.pdf

12 CHAPTER 2. CONSERVATION LAWS AND THE MODEL EQUATIONS

2.3 The Linear Convection Equation

2.3.1 Di�erential Form

The simplest linear model for convection and wave propagation is the linear convection

equation given by the following PDE:

@u

@t+ a

@u

@x= 0 (2.17)

Here u(x; t) is a scalar quantity propagating with speed a, a real constant which may

be positive or negative. The manner in which the boundary conditions are speci�ed

separates the following two phenomena for which this equation is a model:

(1) In one type, the scalar quantity u is given on one boundary, corresponding

to a wave entering the domain through this \in ow" boundary. No bound-

ary condition is speci�ed at the opposite side, the \out ow" boundary. This

is consistent in terms of the well-posedness of a 1st-order PDE. Hence the

wave leaves the domain through the out ow boundary without distortion or

re ection. This type of phenomenon is referred to, simply, as the convection

problem. It represents most of the \usual" situations encountered in convect-

ing systems. Note that the left-hand boundary is the in ow boundary when

a is positive, while the right-hand boundary is the in ow boundary when a is

negative.

(2) In the other type, the ow being simulated is periodic. At any given time,

what enters on one side of the domain must be the same as that which is

leaving on the other. This is referred to as the biconvection problem. It is

the simplest to study and serves to illustrate many of the basic properties of

numerical methods applied to problems involving convection, without special

consideration of boundaries. Hence, we pay a great deal of attention to it in

the initial chapters.

Now let us consider a situation in which the initial condition is given by u(x; 0) =

u0(x), and the domain is in�nite. It is easy to show by substitution that the exact

solution to the linear convection equation is then

u(x; t) = u0(x� at) (2.18)

The initial waveform propagates unaltered with speed jaj to the right if a is positive

and to the left if a is negative. With periodic boundary conditions, the waveform

travels through one boundary and reappears at the other boundary, eventually re-

turning to its initial position. In this case, the process continues forever without any

Page 22: Fundamentals of Computational Fluid Dynamics.pdf

2.3. THE LINEAR CONVECTION EQUATION 13

change in the shape of the solution. Preserving the shape of the initial condition

u0(x) can be a di�cult challenge for a numerical method.

2.3.2 Solution in Wave Space

We now examine the biconvection problem in more detail. Let the domain be given

by 0 � x � 2�. We restrict our attention to initial conditions in the form

u(x; 0) = f(0)ei�x (2.19)

where f(0) is a complex constant, and � is the wavenumber. In order to satisfy the

periodic boundary conditions, � must be an integer. It is a measure of the number of

wavelengths within the domain. With such an initial condition, the solution can be

written as

u(x; t) = f(t)ei�x (2.20)

where the time dependence is contained in the complex function f(t). Substituting

this solution into the linear convection equation, Eq. 2.17, we �nd that f(t) satis�es

the following ordinary di�erential equation (ODE)

df

dt= �ia�f (2.21)

which has the solution

f(t) = f(0)e�ia�t (2.22)

Substituting f(t) into Eq. 2.20 gives the following solution

u(x; t) = f(0)ei�(x�at) = f(0)ei(�x�!t) (2.23)

where the frequency, !, the wavenumber, �, and the phase speed, a, are related by

! = �a (2.24)

The relation between the frequency and the wavenumber is known as the dispersion

relation. The linear relation given by Eq. 2.24 is characteristic of wave propagation

in a nondispersive medium. This means that the phase speed is the same for all

wavenumbers. As we shall see later, most numerical methods introduce some disper-

sion; that is, in a simulation, waves with di�erent wavenumbers travel at di�erent

speeds.

An arbitrary initial waveform can be produced by summing initial conditions of

the form of Eq. 2.19. For M modes, one obtains

u(x; 0) =MXm=1

fm(0)ei�mx (2.25)

Page 23: Fundamentals of Computational Fluid Dynamics.pdf

14 CHAPTER 2. CONSERVATION LAWS AND THE MODEL EQUATIONS

where the wavenumbers are often ordered such that �1 � �2 � � � � � �M . Since the

wave equation is linear, the solution is obtained by summing solutions of the form of

Eq. 2.23, giving

u(x; t) =MXm=1

fm(0)ei�m(x�at) (2.26)

Dispersion and dissipation resulting from a numerical approximation will cause the

shape of the solution to change from that of the original waveform.

2.4 The Di�usion Equation

2.4.1 Di�erential Form

Di�usive uxes are associated with molecular motion in a continuum uid. A simple

linear model equation for a di�usive process is

@u

@t= �

@2u

@x2(2.27)

where � is a positive real constant. For example, with u representing the tempera-

ture, this parabolic PDE governs the di�usion of heat in one dimension. Boundary

conditions can be periodic, Dirichlet (speci�ed u), Neumann (speci�ed @u=@x), or

mixed Dirichlet/Neumann.

In contrast to the linear convection equation, the di�usion equation has a nontrivial

steady-state solution, which is one that satis�es the governing PDE with the partial

derivative in time equal to zero. In the case of Eq. 2.27, the steady-state solution

must satisfy

@2u

@x2= 0 (2.28)

Therefore, u must vary linearly with x at steady state such that the boundary con-

ditions are satis�ed. Other steady-state solutions are obtained if a source term g(x)

is added to Eq. 2.27, as follows:

@u

@t= �

"@2u

@x2� g(x)

#(2.29)

giving a steady state-solution which satis�es

@2u

@x2� g(x) = 0 (2.30)

Page 24: Fundamentals of Computational Fluid Dynamics.pdf

2.4. THE DIFFUSION EQUATION 15

In two dimensions, the di�usion equation becomes

@u

@t= �

"@2u

@x2+@2u

@y2� g(x; y)

#(2.31)

where g(x; y) is again a source term. The corresponding steady equation is

@2u

@x2+@2u

@y2� g(x; y) = 0 (2.32)

While Eq. 2.31 is parabolic, Eq. 2.32 is elliptic. The latter is known as the Poisson

equation for nonzero g, and as Laplace's equation for zero g.

2.4.2 Solution in Wave Space

We now consider a series solution to Eq. 2.27. Let the domain be given by 0 � x � �

with boundary conditions u(0) = ua, u(�) = ub. It is clear that the steady-state

solution is given by a linear function which satis�es the boundary conditions, i.e.,

h(x) = ua + (ub � ua)x=�. Let the initial condition be

u(x; 0) =MXm=1

fm(0) sin�mx+ h(x) (2.33)

where � must be an integer in order to satisfy the boundary conditions. A solution

of the form

u(x; t) =MXm=1

fm(t) sin �mx + h(x) (2.34)

satis�es the initial and boundary conditions. Substituting this form into Eq. 2.27

gives the following ODE for fm:

dfm

dt= ��2m�fm (2.35)

and we �nd

fm(t) = fm(0)e��2m�t (2.36)

Substituting fm(t) into equation 2.34, we obtain

u(x; t) =MXm=1

fm(0)e��2

m�t sin�mx + h(x) (2.37)

The steady-state solution (t!1) is simply h(x). Eq. 2.37 shows that high wavenum-

ber components (large �m) of the solution decay more rapidly than low wavenumber

components, consistent with the physics of di�usion.

Page 25: Fundamentals of Computational Fluid Dynamics.pdf

16 CHAPTER 2. CONSERVATION LAWS AND THE MODEL EQUATIONS

2.5 Linear Hyperbolic Systems

The Euler equations, Eq. 2.8, form a hyperbolic system of partial di�erential equa-

tions. Other systems of equations governing convection and wave propagation phe-

nomena, such as the Maxwell equations describing the propagation of electromagnetic

waves, are also of hyperbolic type. Many aspects of numerical methods for such sys-

tems can be understood by studying a one-dimensional constant-coe�cient linear

system of the form@u

@t+ A

@u

@x= 0 (2.38)

where u = u(x; t) is a vector of length m and A is a real m � m matrix. For

conservation laws, this equation can also be written in the form

@u

@t+@f

@x= 0 (2.39)

where f is the ux vector and A = @f

@uis the ux Jacobian matrix. The entries in the

ux Jacobian are

aij =@fi

@uj(2.40)

The ux Jacobian for the Euler equations is derived in Section 2.2.

Such a system is hyperbolic if A is diagonalizable with real eigenvalues.1 Thus

� = X�1AX (2.41)

where � is a diagonal matrix containing the eigenvalues of A, and X is the matrix

of right eigenvectors. Premultiplying Eq. 2.38 by X�1, postmultiplying A by the

product XX�1, and noting that X and X�1 are constants, we obtain

@X�1u

@t+@

�z }| {X�1AX X�1u

@x= 0 (2.42)

With w = X�1u, this can be rewritten as

@w

@t+ �

@w

@x= 0 (2.43)

When written in this manner, the equations have been decoupled into m scalar equa-

tions of the form@wi

@t+ �i

@wi

@x= 0 (2.44)

1See Appendix A for a brief review of some basic relations and de�nitions from linear algebra.

Page 26: Fundamentals of Computational Fluid Dynamics.pdf

2.6. PROBLEMS 17

The elements of w are known as characteristic variables. Each characteristic variable

satis�es the linear convection equation with the speed given by the corresponding

eigenvalue of A.

Based on the above, we see that a hyperbolic system in the form of Eq. 2.38 has a

solution given by the superposition of waves which can travel in either the positive or

negative directions and at varying speeds. While the scalar linear convection equation

is clearly an excellent model equation for hyperbolic systems, we must ensure that

our numerical methods are appropriate for wave speeds of arbitrary sign and possibly

widely varying magnitudes.

The one-dimensional Euler equations can also be diagonalized, leading to three

equations in the form of the linear convection equation, although they remain non-

linear, of course. The eigenvalues of the ux Jacobian matrix, or wave speeds, are

u; u + c, and u � c, where u is the local uid velocity, and c =q p=� is the local

speed of sound. The speed u is associated with convection of the uid, while u + c

and u � c are associated with sound waves. Therefore, in a supersonic ow, where

juj > c, all of the wave speeds have the same sign. In a subsonic ow, where juj < c,

wave speeds of both positive and negative sign are present, corresponding to the fact

that sound waves can travel upstream in a subsonic ow.

The signs of the eigenvalues of the matrix A are also important in determining

suitable boundary conditions. The characteristic variables each satisfy the linear con-

vection equation with the wave speed given by the corresponding eigenvalue. There-

fore, the boundary conditions can be speci�ed accordingly. That is, characteristic

variables associated with positive eigenvalues can be speci�ed at the left boundary,

which corresponds to in ow for these variables. Characteristic variables associated

with negative eigenvalues can be speci�ed at the right boundary, which is the in-

ow boundary for these variables. While other boundary condition treatments are

possible, they must be consistent with this approach.

2.6 Problems

1. Show that the 1-D Euler equations can be written in terms of the primitive

variables R = [�; u; p]T as follows:

@R

@t+M

@R

@x= 0

where

M =

264u � 0

0 u ��1

0 p u

375

Page 27: Fundamentals of Computational Fluid Dynamics.pdf

18 CHAPTER 2. CONSERVATION LAWS AND THE MODEL EQUATIONS

Assume an ideal gas, p = ( � 1)(e� �u2=2).

2. Find the eigenvalues and eigenvectors of the matrix M derived in question 1.

3. Derive the ux Jacobian matrix A = @E=@Q for the 1-D Euler equations result-

ing from the conservative variable formulation (Eq. 2.5). Find its eigenvalues

and compare with those obtained in question 2.

4. Show that the two matricesM and A derived in questions 1 and 3, respectively,

are related by a similarity transform. (Hint: make use of the matrix S =

@Q=@R.)

5. Write the 2-D di�usion equation, Eq. 2.31, in the form of Eq. 2.2.

6. Given the initial condition u(x; 0) = sinx de�ned on 0 � x � 2�, write it in the

form of Eq. 2.25, that is, �nd the necessary values of fm(0). (Hint: use M = 2

with �1 = 1 and �2 = �1.) Next consider the same initial condition de�ned

only at x = 2�j=4, j = 0; 1; 2; 3. Find the values of fm(0) required to reproduce

the initial condition at these discrete points using M = 4 with �m = m� 1.

7. Plot the �rst three basis functions used in constructing the exact solution to

the di�usion equation in Section 2.4.2. Next consider a solution with boundary

conditions ua = ub = 0, and initial conditions from Eq. 2.33 with fm(0) = 1

for 1 � m � 3, fm(0) = 0 for m > 3. Plot the initial condition on the domain

0 � x � �. Plot the solution at t = 1 with � = 1.

8. Write the classical wave equation @2u=@t2 = c2@2u=@x2 as a �rst-order system,

i.e., in the form

@U

@t+ A

@U

@x= 0

where U = [@u=@x; @u=@t]T . Find the eigenvalues and eigenvectors of A.

9. The Cauchy-Riemann equations are formed from the coupling of the steady

compressible continuity (conservation of mass) equation

@�u

@x+@�v

@y= 0

and the vorticity de�nition

! = �

@v

@x+@u

@y= 0

Page 28: Fundamentals of Computational Fluid Dynamics.pdf

2.6. PROBLEMS 19

where ! = 0 for irrotational ow. For isentropic and homenthalpic ow, the

system is closed by the relation

� =

�1�

� 1

2

�u2 + v2 � 1

�� 1

�1

Note that the variables have been nondimensionalized. Combining the two

PDE's, we have

@f(q)

@x+@g(q)

@y= 0

where

q =

�u

v

�; f =

���u

v

�; g =

���v

�u

One approach to solving these equations is to add a time-dependent term and

�nd the steady solution of the following equation:

@q

@t+@f

@x+@g

@y= 0

(a) Find the ux Jacobians of f and g with respect to q.

(b) Determine the eigenvalues of the ux Jacobians.

(c) Determine the conditions (in terms of � and u) under which the system is

hyperbolic, i.e., has real eigenvalues.

(d) Are the above uxes homogeneous? (See Appendix C.)

Page 29: Fundamentals of Computational Fluid Dynamics.pdf

20 CHAPTER 2. CONSERVATION LAWS AND THE MODEL EQUATIONS

Page 30: Fundamentals of Computational Fluid Dynamics.pdf

���

Page 31: Fundamentals of Computational Fluid Dynamics.pdf

� � ��� ���

� ��� ��� � ��� ��� � � � � � � �� � � � � � � � � ��� � �

�! �"$#&%�%'#& )(+*-,/.,/.10�03254768,9*:#& 1;=<&#?>&0$@9 1*- 1<A41 1;B,/0C68DFEG141*:DHG1#I(KJL#&41@M%'#ND103OP03254768,9*:#& F;"3#� 5,/6�*: MQ76�@R,9*S6�OND10$@9*->868,9*->�03;L(+*T,/.U@R03;9QV03"W,X,/#ZYV#�,/.[;RQ76�"$0+6� 1DU,/*-%�08\^]Z 10_"C6� `6�QFQ1@9#Cab*:%�68,/0,/.F03;90c;9*:%M41O-,/6� 103#�41;9OTE'6� 1Dd,9.103 e;R#&O->�0c,/.10f@90$;941OT,/*: F<MD1*Tgh0$@903 F"30Z0$2N4168,/*-#& 1;3\jifO-,903@9 168,/*T>&03OTE&J#& 10M"C6� k6�QFQ1@9#Cab*:%�68,/0K,/.F0U;9Q76l,/*S68OmD10$@9*T>�6l,/*->�03;cn1@9;R,3Jh,/.F03@90$YoE�Q1@R#bD14F"3*: F<e6d;REN;B,/03%p#�qX#&@BrD1*- 76�@RE`DF*-gs03@90$ o,/*S68OV0$254768,/*-#& 1;$\jtu.10f,9*:%'0fD10$@9*T>�6l,/*->�03;v6�@90c6�Q1Q1@R#CaF*-%d6l,/03D� 10WaN,3JFO:036�D1*- 1<w,9#6kxzy|{d}W~!{'���/���Ny|�N��{d}Wx|�7�3�'(+.1*-"�.HQ1@R#bD14F"303;M6�;R0$,M#�q�D1*Tgh0$@90$ 1"30'03254768,9*:#& F;w(+.1*-"�.�"C68 HYV0;9#�O->&0$D�\�tu.1*-;+*:;u,/.10=6�Q1QF@9#o6�"�.�03%'Q1.76�;R*:�$03D�.F03@908\��! �,/.1*-;f"�.768QF,/0$@3J7,/.10w"3#� 1"30$QF,Z#�qmn7 1*T,/0WrD1*Tgh0$@903 F"30�68Q1Q1@9#Cab*:%�68,9*:#& 1;Z,9#�Q768@R,/*:6�OjD10$@9*->868,9*->�03;M*-;KQ1@90$;903 o,903D�\�tu.103;R0�"C6� HYs0�6�Q1Q1O-*:0$D03*T,/.10$@f,9#d;9Q168,/*:6�OmDF03@9*T>868,/*T>&03;f#&@+,/*:%'0wD103@R*->868,/*T>&0$;3\c]�4F@c03%'Q1.768;9*:;f*: �,/.1*-;��_.76�Qb,/03@c*:;�#& ;9Q168,/*:6�OhD10$@9*T>�6l,/*->�03;$�F,/*-%�0fD103@R*->868,/*T>&0$;u6�@90Z,9@90368,/0$De*: ��_.76�Qb,/03@+�b\P�N,/@968,/0$<&*:0$;_q�#&@u6�QFQ1O-EN*: F<,/.F03;90Kn7 1*T,/0�r!D1*Tgh0$@903 F"30K6�Q1QF@9#Cab*:%�68,/*-#& 1;_(+*-O:OhYV0KD1*:;R"341;R;90$D�*: ��_.768QF,/0$@f�1\

icO-OL#�qj,9.10[%d6l,/03@R*S6�O�YV03O-#I(�*-;ZQ1@90$;90$ 5,903D)*: A6���68@R,/0$;9*:6� A;REN;R,903%�\w�0U0$%�Q1.16�;9*-�30U,/.F0q�6�"W,�,9.768,+2541*T,/0K<&03 F03@/68O�"3OS68;9;90$;f#8qL%'03;R.103;�0WabQ1@R03;9;R03DA*- �<�03 10$@/6�O�"$41@R>N*:O-*: 1036�@�"$#b#&@RD1*: 168,/0$;*: A�7�N�?�Wy��9�� L�!�F�N��}�"C68 HYV0',9@/6� 1;Bq�#&@9%'03D),/#�6�41 F*-q�#&@R%¡��6�@R,903;R*S6� %�0$;9.(+*T,/.032541*:;RQ76�"$03D*: o,903@R>86�O-;�*: K6u;R#8r!"36�O:O-03D����l{c�V¢Nx£��x�y��l�V�� 8�!�F�N��}WJI6�;�;R.1#?(+ M*- K¤L*:<&4F@90^¥b\-¦&\§tu.10Z���l{c�V¢Nx£��x�y��l�V�� �!�F�N��}h*:;�41 1*Tq�#&@9%���68O:O�,9.10v<�03#&%'0$,9@9*:"^>86�@R*S68,9*:#& �*-;§6�Y1;9#�@9YV03DM*- o,/#+>�68@9*S68Y1O:0^"$#b0W¨'"3*:0$ o,/;L#8qF,/.F0,/@96� 1;Bq�#&@9%'03D)03254768,9*:#& F;3\e¤7#&@�,/.F*:;w@90C68;9#& �J§*: )%U41"�.#�q�,9.10'q�#�O:O:#?(+*- 1<�6�"3"$41@/68"$E6� 76�OTEN;9*:;(v0�41;R0�6� ©032541*:;RQ76�"$03Dª��6�@B,/0$;9*S68 «;REN;B,/03% (+*-,9.1#&4F,'YV03*- 1<H41 FD141O-E¬@R03;B,/@9*-"$,9*->&0�#&@'O:#&;R*: 1<Q1@96�"$,9*:"C68O�6�Q1Q1O-*:"368,/*-#& �\

­�®?¯ ° ±�²^³�±�²µ´M¶A· ¸º¹C¶A¹$»L±f¼h½¾¹$¿�±�Àj±�¶AÁ�± ÂÄÃ`»L´=»^¹3Ã'¶tu.10�;R*:%'Q1O:0$;R,�%'03;R.�*: o>&#&OT>N*: 1<UYV#�,9.�,/*:%'0Z68 1De;9Q768"30K*:;v;9.1#?(+ �*: �¤L*-<&41@90c¥F\ � \jic e*- 1;9QV03"�r,/*-#& Å#�q�,/.1*-;Un7<&41@R0�Qs0$@9%'*-,/;M41;[,/#kD10$n1 10�,9.10e,/0$@9%';`6� 1D¬ 1#�,/68,/*-#& Å 1030$D103DÆ,/#kD10$;9"3@R*:YV0

� ¦

Page 32: Fundamentals of Computational Fluid Dynamics.pdf

�&� Ç^È�ÉZÊcËmÌXÍÏÎ5ЫÑLÒÔÓ�Ò3ËmÌPÕzÖZÒÔÑ^Ñ^ÌXÍ�ÌPÓMÇ^Ì«ÉZÊXÊXÍ�×jØZÒBÙ�Éc˧ÒW×uÓZÚ

x

y

¤L*:<�41@90K¥F\T¦&Û Üj.oEN;9*:"36�O�6� 1D�"3#�%�Q14b,�68,9*:#& 768Oh;9Q16�"30$;3\n7 1*T,/0ZDF*-gs03@90$ 1"30K68Q1Q1@9#Cab*:%�68,9*:#& 1;$\^�! �<&03 F03@/68O�Jb,9.10�D10$Qs0$ 1D103 o,+>86�@9*:6�Y1O-03;3JbÝ�Jbq�#&@�0�aF6�%�QFO:0�J6�@R0�q�41 F"$,/*-#& 1;v#�q�,/.F0c*: FD103QV03 1DF03 o,�>86�@9*:6�Y1O-03;jÞ�JF68 1Ddß�à/áVà�âF\j¤7#&@j,9.10fn7@R;R,_;90$>�03@96�Oh"�.768QF,/0$@9;(v0["3#& 1;R*:D10$@�Q1@9*-%d68@9*:OTEd,9.10e¦$rÔãÏ"36�;90[ÝAäåÝmæ�ß�à9ÞRç�\K�ª.F03 k#& 1OTE�#& F0M>86�@9*:6�Y1O:0w*:;cD103 1#8,/03DhJD10$Qs0$ 1D103 F"30U#& �,/.F0w#8,/.10$@f*-;+6�;9;R41%�0$D�\_tu.F0=%'03;R.�*: FD10Waeq�#�@+ß�*:;w�� éèP���?�Xê7Jë6� 1D�,/.768,uq�#�@Þ�*-;w�� éèP���I�_ìL\jtu.F03 �#� �6� �0$2N4F*:;9Q16�"30$D�<&@R*:D

ß ä ßNíuä«ê5îUß æ�¥F\-¦?çÞ¡ä Þ!ï=äðì�îUÞPäªì�ñ æ�¥F\ � ç

(+.10$@90[îUßk*:;u,9.10M;RQ76�"3*- 1<d*- �ß)6� FD�îUÞu,/.10=;9Q768"3*: F<d*: �Þ�Js6�;c;R.1#?(+ A*: �¤L*:<&4F@90w¥F\ � \�òf#�,90,/.168,cñeäóî[Þ_,/.1@R#&41<&.1#�4F,C\vô�68,/0$@Zõ�6� 1D�öj6�@90K41;R03D�q�#�@�á�6� 1D�â�*: �6`;9*:%'*:O:6�@v(_6CE&\_�ª.F03 ìLà£ê&à�õsà�ö�6�@R0�4F;903D©q�#&@�#8,/.10$@�Q14F@9QV#&;90$;Aæ�(+.F*:"�.º*-;�;R#&%�0W,/*-%�0$;' F03"30$;9;96�@REFçWJ+O-#b"36�Ou"3#& o,90WaN,;9.F#&41O:D�%�6�÷�0�,9.10K%�036� 1*: F<[#&Yo>b*-#&41;$\

tu.10w"3#& o>&0$ o,/*:#� �q�#&@u;R41Y1;9"$@9*-QF,f6� 1D�;941QV03@R;9"3@R*:QF,�*- 1D10Wab*- 1<`*:;+6�;uq�#&O-O:#?(+;3ÛÝmæ�Þ�ø«õFñVç¡ä ÝmæRùúì'ø©õNû|ñëçXäðÝ7ïCü1ý

ÝLæ|ß[ø¬þ�îUßsç¾ä ÝmæRù êcøÆþ�û:î[ßsçXäÿÝNíRü�� æ�¥F\ ¥&çÝmæ|ß[ø¬þ�î[ß�àRÞ�ø«õFñVç¡ä Ý�� ï?ü1ý��íRü��

òf#8,/*:"$0Z,/.76l,u(+.103 �41;90$D�6�O-#& 108JFYV#�,/.e,/.F0K,9*:%'0�6� 1D�;RQ76�"30w*: FD1*:"$03;u6�QFQs036�@�6�;+6[;941Y1;R"3@R*:QF,3JY14F,[(+.F03 Æ41;90$D¬,9#&<&0W,/.10$@3Jj,/*-%�0�*-;[6�OT(�6CEN;`6�;941QV03@R;9"$@9*:Qb,'6� 1D¬*:;U4F;9476�O-O-E03 1"$O:#&;R03DÅ(+*-,9.Q76�@R03 o,/.F03;90$;f,9#'DF*:;R,9*: 1<�41*:;R.�*T,�q�@9#�% 6� �0WabQV#& 103 o,3\

Page 33: Fundamentals of Computational Fluid Dynamics.pdf

ÎNÐ��&кÙ�ÌvÚbÈcÌPÚ�ÉcÓcÖ�ÑLÒÔÓfÒ3ËmÌXÕ�ÖZÒÔÑLÑ^ÌXÍfÌXÓUÇ^Ì ÓM×=Ë1Éc˧ÒW×uÓ � ¥t�

xj-2

j-1 j j+1

j+2

n

n-1

n+1x

t

Grid orNodePoints

¤L*-<&41@R0�¥F\ � Û �bQ76�"$0Wr�,/*:%'0�<&@R*:D�6�@R@/6� 1<�03%'03 o,C\

ãZ03@R*->868,/*T>&0$;�68@90�0WabQ1@R03;9;R03D 68"3"3#�@9D1*- 1<),9#A,/.10�41;R476�O+"3#& o>�03 o,/*-#& 1;3\©tu.541;�q�#&@[Q16�@R,9*S6�OD10$@9*->868,9*->�03;+*: e;RQ76�"30w#&@�,9*:%'0c(_0w41;R0=*- 5,903@R"�.76� 1<&036�Y1OTE

�� Ýeä Ý ß à � Ýeä Ý Þ à ���� Ýeä �� Ý ß � à 0$,9"�\ æ�¥F\ �oç¤7#&@�,/.F0w#�@9D1*- 76�@RE�,/*-%�0ZDF03@9*T>868,/*T>&0�*: e,9.10K;R,/4FDFE�#�q^]Kã���� ;u(_0K41;R0

Ý��bä�� Ý� Þ æ�¥F\���ç�! �,/.F*:;+,/0WaN,�;R41Y1;R"3@9*-QF,/;�#� �D103QV03 FD103 o,�>86�@9*:6�Y1O-03;f6�@90= 10$>�03@�41;R03D�,/#d0WabQ1@90$;9;KD10$@9*->868,9*->�03;3\tu.541;�Ý � (+*-O:Oh F#�,�Ys0�41;R03D�,/#`@90$Q1@90$;903 o,f,/.10�n7@R;R,�D103@R*->868,9*->&0�#8qLÝ�(+*-,/.�@90$;9QV03"W,�,9#'ß�\

tu.10c F#�,�68,9*:#& [q�#&@XD1*Tgh0$@90$ 1"30c6�Q1Q1@R#?ab*-%d68,9*:#& F;^q�#&O:O-#I(+;^,9.10�;/6�%'0fQF.1*:O-#&;9#&QF.5EUY14F,Zæ�(+*-,9.#& 10P0Wab"$03QF,9*:#& ëç�*-,§*-;§ F#�,L4F 1*:254108\��vE�,9.1*:;�(v0_%'0C6� K,/.76l,m,9.10v;BEN%UYs#�O��u*-;§4F;903D=,/#�@903QF@903;R03 o,6[D1*-gs03@R03 1"$0M68Q1Q1@9#Cab*:%�68,9*:#& d,9#'6`DF03@9*T>868,/*T>&0K;941"�.�,/.76l,CJFq�#&@u0�aF6�%�QFO:0�J� ��� !� à � ����� ���� æ�¥F\ �&çY14F,u,9.10KQ1@90$"3*-;90K 768,941@90'æ�6� 1D�#&@9D10$@�ç_#�q§,/.F0K6�Q1Q1@R#?ab*-%d68,9*:#& d*:;u 1#�,+"36�@9@R*:0$D�*- �,/.10K;BEb%MYs#&O�5\U]c,/.F03@Z(_6?EN;w6�@R0[41;90$Dk,9#�D10$,903@9%'*: F0U*-,9;ZQ1@90$"3*-;90[%'0C6� 1*- 1<1\Ktu.10[#& F0[0Wab"30$QF,/*-#& k*:;Z,/.F0;REN%UYV#&O�îeJ1(+.1*-"�.�*-;uD10$n7 F03D�;R41"�.�,9.768,

îUÞ!ï=ä Þ!ï?ü#"%$HÞ!ï1à îUßNí+äªßNíRü#"�$HßNíIà î[Ýëï=äªÝ7ï?ü#"&$ÅÝ7ïbà 0$,9"�\ æ�¥F\�'�ç�ª.10$ �,9.103@R0=*-;u 1#`;941Y1;R"3@R*:QF,f#& �îUÞ�#&@+îUß�J7,/.10K;RQ76�"3*- 1<`*:;u41 F*-q�#&@R%�\

Page 34: Fundamentals of Computational Fluid Dynamics.pdf

� � Ç^È�ÉZÊcËmÌXÍÏÎ5ЫÑLÒÔÓ�Ò3ËmÌPÕzÖZÒÔÑ^Ñ^ÌXÍ�ÌPÓMÇ^Ì«ÉZÊXÊXÍ�×jØZÒBÙ�Éc˧ÒW×uÓZÚ­�®)( *,+�´MÁ�± ½ ±�ÀX¹.-w´w»j¹.-'± /0+1+AÀjÃ32�¹54 ´=»j¹$Ã�¶A²iÆD1*-gs03@R03 1"$0�6�Q1QF@9#Cab*:%�68,/*-#& K"C6� UYV0P<&03 10$@/68,903DU#�@m0W>�68O:4768,903D=Y5Ew%'0C6� F;L#�që6�;9*-%�Q1O-0jtL6CENO:#�@;90$@9*-03;�0�aFQ16� 1;9*-#& �\ ¤ë#�@�0�a168%�Q1O-0�Ju"$#& 1;9*-D103@�Ýmæ�ß�à9ÞRç[(+*-,/.©Þ[nFab03D�\ótu.F03 �Juq�#&O-O:#?(+*: 1<k,/.F0 1#�,/68,/*-#& A"3#� 5>�03 o,/*-#& )<&*->�03 k*: 6�j25;3\�¥F\T¦U,/#�¥F\ ¥FJ�ßä ê5îUß�6� FD)Ýmæ|ß�øðõbî[ßsçcä ÝmæTêNîUß�øõFîUßsçXäÿÝNí9ü1ýI\7�LaFQ16� 1D1*- 1<',9.10KOS68,R,/0$@_,/0$@9%µ6�YV#&4F,uß�<&*->�03;ÝNí9ü1ý+äðÝbíLø æzõFîUßsç�8 Ý ß:9 í ø ¦

� æzõFîUßsç � 8 �� Ý ß � 9 í ø<;=;=;?ø ¦ì%> æ�õFîUßsç ï 8 ï Ý ß ï 9 í ø<;=;=;mæ�¥F\@?&ç

ô�#b"36�OoD1*Tgh0$@903 F"30P6�Q1Q1@R#CaF*-%d6l,/*:#� 1;�,/#�6+<&*->�03 wQ76�@R,9*S6�O�D103@R*->868,/*T>&0X"C68 =YV0jq�#&@9%'03DKq�@9#&% O:*: F0C6�@"3#�%UY1*: 168,/*-#& 1;�#�qmÝNíZ6� 1D�ÝNí9ü1ýfq�#&@�õ�äBA`¦&à�A � à5;=;=;T\¤7#&@u0WaF6�%'Q1O:08J1"3#� 1;9*-D103@u,/.F0wtm6CENO:#&@u;R03@9*-03;�0WabQ76� F;9*:#� �q�#&@uÝNíRü#"�Û

ÝNíRü#"jäªÝNí^ø æ�îUßsç�8 Ý ß�9 í ø ¦� æ�î[ßsç � 8 � Ý ß � 9 í øC;=;=;Iø ¦

ì&> æ�îUßsç ï 8 ï Ý ß ï 9 í ø<;=;=; æ�¥F\@D&çòf#?( ;941YF,9@/6�"W,�Ýbíc6� 1D�D1*->N*:DF0�Y5Eeî[ß�,/#'#&YF,/6�*:

ÝbíRü#"&$�ÝNíî[ß äE8 Ý ßF9 í ø ¦

� æ�îUßsç�8 � Ý ß � 9 í ø<;=;=; æz¥F\T¦ � ç

tu.541;L,9.10�0WabQ1@R03;R;9*:#� �æ�ÝNí9ü#"G$=ÝNí3çIH�îUß�*-;L6f@90C68;9#& 768Y1O:0v6�Q1Q1@R#CaF*-%d6l,/*:#� wq�#&@�JLKNMK ��O í 6�;LO-#& 1<Z68;îUßA*:;u;R%d68O:O�\Xò�0WaN,f"3#& 1;R*:D10$@�,9.10K;9Q768"30wD1*-gs03@R03 1"$0M6�QFQ1@9#Cab*:%�68,/*-#& )æ�ÝNíRü#"%$ÅÝNí�P�"BçQHFæ � îUßsçW\�LabQ76� 1Dð,/.10A,/0$@9%';�*: ,/.10k 541%'03@968,/#&@�6�YV#&4F,'ê«6� 1Dð@903<�@9#&41Qª,/.F0)@R03;R41O-,e,9#Æq�#&@R% ,/.F0q�#&O-O:#?(+*: 1<M03254768,9*:#&

ÝNí9ü#"R$�ÝNí�P�"� îUß $S8 Ý ß 9 í ä ¦

� î[ß � 8 �T Ý ß T 9 í ø ¦¦ �8� îUß�U�8 �V Ý ß V 9 í&WNWNW æz¥F\T¦&¦Iç

�ª.10$ �0WabQ1@R03;R;903DA*- e,/.1*-;�%�6� 1 F03@3J7*T,+*:;+"3O-0C6�@�,9.768,+,/.F0=D1*-;9"$@90$,90�,/03@R%�;+#& �,/.F0=O-0$q|,+;9*-D10K#�q,/.F0f0$2N4168,/*-#& �@R03Q1@R03;R03 o,u6�n7@9;B,PD103@R*->868,/*T>&0u(+*-,9.d6K"30$@R,/6�*: �6�%'#&41 o,X#�q�0$@9@R#&@j(+.1*:"�.d6�Q1QV0C6�@R;#& ¬,/.10�@R*:<&.o,[;R*:D10�#�q�,/.10�0$2N416�O+;9*:<� �\Å�£,'*:;`6�O-;9#k"3O-0C6�@U,9.768,[,/.F0�0$@9@R#&@`D103QV03 1DF;�#& ¬,/.F0<&@R*:DH;RQ76�"$*: 1<�,9#�6�"$03@B,�6�*- H#&@RD103@$\�tu.10�0$@9@R#&@w,903@R%¾"$#& o,�6�*- 1*: 1<�,/.F0d<&@R*:DH;RQ76�"$*: 1<�,9#�,/.F0O:#?(v03;B,jQs#?(v03@j<&*T>&0$;L,/.10u#�@9D10$@L#�që,/.F0�%�0W,/.1#ND�\L¤ë@R#&%X�j2V\&¥F\-¦ � J8(v0u;90$0�,/.768,m,/.10u0�abQ1@90$;9;9*-#& æ�ÝNíRü#"!$'Ýbí$çQH8î[ß�*:;X6cn1@9;R,Br!#&@RD103@X68Q1Q1@9#Cab*:%�68,9*:#& M,9#YJZKNMK � í O \^�b*:%'*:O:6�@9OTE&J[�j2ë\5¥F\-¦�¦u;9.1#?(+;j,/.76l,æ�ÝNíRü#"�$kÝNí)P�"ÔçQH1æ � îUßsçv*:;_6M;90$"3#& 1DNr!#&@RD103@+6�QFQ1@9#Cab*:%�68,/*-#& �,9#[6Mn7@R;R,uD10$@9*T>�6l,/*->�0�\^tu.F0�OS68,R,/03@*:;X@R0$q�03@R@90$D�,/#=6�;X,/.10+,/.F@9030�r!QV#&*: o,X"$03 o,/0$@903DeDF*-gs03@90$ 1"30f6�Q1QF@9#Cab*:%�68,/*-#& �Jo6� FD�#& F0f#�q|,903 ';90$03;,/.F0w;R41%'%d6�@BE�@R03;94FO-,+Q1@R03;90$ o,/03D�*: e,/.10�q�#&@R%8 Ý ß 9 í ä ÝbíRü#"R$ÅÝNí)P�"

� îUß ø]\dæzîUß � ç æz¥F\T¦ � ç

Page 35: Fundamentals of Computational Fluid Dynamics.pdf

ÎNÐ ÎNЫÑmÒÔÓfÒ3ËmÌXÕ�ÖZÒÔÑ^ÑLÌPÍ�ÌXÓUÇ^Ì ×uÊXÌXÍ�ÉcË_×uÍfÚ � �­�®�­ ¸º¹C¶A¹W»^±f¼h½ ¹$¿Å±�Àj±�¶AÁ+± ^_+H±ZÀX´w»^Ã'ÀX²`�ab`�aIc dfehgIikjml gonqpsr�pRiutvpxwzy{psr�|%j�ehr�}Ü[email protected];c,/.F0=%'#&;R,�"$#&%�%'#& �0WaF6�%'Q1O:0$;f#8q^n7 1*T,/0Wr£D1*-gs03@R03 1"$0�q�#&@9%U4FOS6�;�6�@R0w,9.10=,9.1@90$0Wr!QV#&*- 5,"30$ o,/03@R03Dbr£D1*-gs03@R03 1"$0U6�QFQ1@9#Cab*:%�68,/*-#& 1;_q�#�@�,/.10�n7@R;R,f6� 1D�;90$"3#& FD�D10$@9*->868,9*->�03;3Û "

8 Ý ß 9 í ä ¦� îUß æ�ÝNíRü#"%$HÝbí�P�"Bç�ø~\�æzîUß � ç æz¥F\T¦?¥oç

8 �� Ý ß � 9 í ä ¦îUß � æ�ÝbíRü#"&$ � ÝNí^ø¬Ýbí�P�"Bç�ø~\�æzîUß � ç æz¥F\T¦C�5ç

tu.10$;90�6�@R0f,9.10cY768;9*:;Xq�#&@j�7�ly|�7xX��y �Z}W�/}W�h��}����7}W�R��x�l�/�X;R*: 1"$0f,/.F0$E'<&*->�0Z6� d6�Q1Q1@R#CaF*-%d6l,/*:#� `,9#6=DF03@9*T>868,/*T>&0f68,_#� 10cD1*-;9"$@90$,90cQV#&*: o,v*: �6=%'03;R.�*: ',/03@R%�;P#�q�;R41@9@R#&41 1DF*: 1<=Qs#&*- o,/;3\���#?(_0W>&03@$J 10$*-,/.F03@w#�q_,9.103;R0d0WabQ1@R03;R;9*:#� 1;=,903O:Oj4F;=.1#?( #8,/.10$@=QV#&*: o,9;w*- ),9.10'%�0$;9.�68@90'D1*-gs03@R03 1"$03DH#�@.1#?( YV#&41 1D768@RE�"3#� 1D1*-,9*:#& F;c6�@R0=0$ Fq�#&@R"303Dh\c�N41"�.A6�D1DF*-,/*-#& 76�O�*- Fq�#&@R%d68,9*:#& e@R032541*-@903;c6�%'#&@90;9#�Q1.1*:;B,/*-"C68,903Deq�#&@9%M41OS68,9*:#& h\

`�ab`�ao� � |%j�r�go��lBg�n{pRr�pRiutvpxwmy�pRr�|%j�e7r�}�_#& 1;R*:D10$@u,/.10K@90$OS68,9*:#&

æ�� ��� Ýsçzí�ä ¦îUß � æ�ÝNí9ü#"&$ � ÝbíLøÆÝNí)P�"Bç æz¥F\T¦G�&ç

(+.1*-"�.e*:;u6MQV#&*- 5,_D1*-gs03@R03 1"$0�6�Q1QF@9#Cab*:%�68,/*-#& �,9#[6U;90$"3#& 1D�D10$@9*T>�6l,/*->�0�\jò�#?(ÿO-0$,_41;uD103@R*->�0�6{'��x��Wy��w#&QV03@/6l,/#&@+@90$Q1@90$;90$ 5,/68,/*-#& �q�#�@+,9.10K;/6�%'0=6�Q1Q1@R#?ab*-%d68,9*:#& h\P�_#& 1;9*-D103@+,/.F0wq�#&4F@�QV#&*- 5,%'03;9.�(+*T,/.�YV#&41 FD76�@RE�QV#&*: o,/;Z68,���6� 1D6�K;9.1#?(+ kYV03O:#?(K\�ò�#�,/*-"30M,9.768,f(+.103 A(v0[;9QV0C6�÷�#�q� ,9.10= 541%MYs0$@�#8q^QV#&*: o,/;+*- �6`%�0$;9.��FJë(v0w%�036� �,9.10w N4F%UYs0$@f#8q�y|�7x!}W�Wy��l�_Qs#&*- o,/;+0Wab"3O-41D1*- 1<,/.F0wYV#&41 FD76�@9*-03;$\ � ¦ � ¥ � �

ßeä � $ $ $ $ �ê[ä ¦ ; ; �

¤ë#�41@uQs#�*: o,u%'03;9.h\vîUß�ä��RH1æ�� øª¦Içòf#?( *-%�QV#&;R0�ãZ*:@R*:"�.1O-0$,=Ys#�41 1D76�@BEÅ"3#� 1D1*-,9*:#& F;3JjÝmæ � ç[ä Ý��Ià[Ýmæ���ç'ä Ý��K68 1D¬41;90e,/.F0

"30$ o,/03@R03DAD1*Tgh0$@90$ 1"30=6�Q1Q1@R#CaF*-%d6l,/*:#� e<&*->�03 �YoE��j2ë\s¥b\-¦G�`68,�0$>�03@BE�QV#&*: o,�*: �,/.F0=%'03;R.�\_�0�o�����v�@�@�¡ =�£¢¤�@¥¦�%§�¨G��©��Iª£«¦¬[ � =�I¢��@¥�­�§��@¥¦��«.®Z�I¢¤­)§�«¦¢�©�¨G«¦¢�§��@¯¦°

Page 36: Fundamentals of Computational Fluid Dynamics.pdf

� � Ç^È�ÉZÊcËmÌXÍÏÎ5ЫÑLÒÔÓ�Ò3ËmÌPÕzÖZÒÔÑ^Ñ^ÌXÍ�ÌPÓMÇ^Ì«ÉZÊXÊXÍ�×jØZÒBÙ�Éc˧ÒW×uÓZÚ6�@R@9*->�0K68,+,/.10�q�#&4F@u03254768,9*:#& 1;$Û

æ�� ��� Ýsç " ä ¦îUß � æ�Ý��k$ � Ýv"�ø¬Ý � ç

æ�� ��� Ýsç � ä ¦îUß � æ�Ý�"&$ � Ý � øÆÝ T ç

æ�� ��� Ýsç T ä ¦îUß � æ�Ý � $ � Ý T øÆÝ U ç

æ�� ��� Ýsç U ä ¦îUß � æ�Ý T $ � Ý U øÆÝ��!ç æz¥F\T¦?�oç

�@9*-,9*: 1<U,9.103;R0K03254768,9*:#& 1;+*- �,9.10K%�#�@90�;94F<&<&03;B,/*T>&0Kq�#&@9%æ�� ��� Ýhç " ä æµÝ�� $ � Ý�" øZÝ � çIH�îUß �æ�� ��� Ýhç � ä æ Ý�"±$ � Ý � ø�Ý T çIH�îUß �æ�� ��� Ýhç T ä æ Ý � $ � Ý T øZÝ U çIH�îUß �æ�� ��� Ýhç U ä æ Ý T $ � Ý U øZÝ�� çIH�îUß � æz¥F\T¦G'&ç

*-,w*-;w"$O:036�@�,/.768,K(v0d"36� H0�aFQF@903;R;M,/.F03% *: 6�>�03"W,/#&@Ôr!%�68,/@R*TaAq�#&@R%�J§6� FD)q�41@B,/.10$@3J§,/.768,w,/.F0@90$;941OT,/*- 1<`%d68,9@9* a�.768;f6U>�03@RE�;RQs0$"3*:6�O�q�#&@9%�\^�! o,/@R#bDF41"3*- 1<

²Ý�ä ³´´´µ Ý�"Ý �Ý TÝ U¶¸···¹ à J ²�¦º O ä ¦

îUß � ³´´´µ Ý����Ý��¶¸···¹ æz¥F\T¦=?oç

6� 1D

» ä ¦îUß � ³´´´µ $ � ¦

¦ $ � ¦¦ $ � ¦

¦ $ �¶ ···¹ æz¥F\T¦=Doç

(v0="36� �@90$(+@R*-,90��j2ë\V¥F\T¦G'U6�; � ��� ²Ýeä »,²Ý[ø¼J ²�)º O æz¥F\ ��� çtu.1*:;�0�aF6�%�QFO:0U*-O:O:4F;R,/@968,/0$;c6�%�68,9@9*Ta�D1*Tgh0$@90$ 1"30[#&QV03@968,/#�@3\½�X6�"�.O-*: 10=#�qv6�%d6l,/@9* a�D1*-qSr

q�03@R03 1"$0Z#&QV03@968,/#&@X*-;vY768;903Dd#& e6=QV#&*- 5,PD1*Tgh0$@90$ 1"30f#&Qs0$@/68,9#&@3JNY14F,P,/.F0cQV#&*: o,v#&Qs0$@/68,9#&@9;P41;R03Dq�@9#�% O:*- 10�,/#KO-*: 10+6�@R0u 1#�,P 10$"303;R;/6�@R*:OTEU,/.10+;96�%�08\j¤7#&@j0WaF6�%'Q1O-0�JoYV#&41 1D768@RE["$#& 1D1*T,/*:#� 1;j%d6CED1*-"$,�6l,/0Z,/.168,�,/.F0wO-*: 10$;u68,u#�@u 10C6�@�,9.10KYs#8,9,/#�% #&@�,9#&Q�#�q�,/.10K%�68,/@R*Ta�YV0�%�#ND1*-n103D�\^�! �,/.F00WaN,9@903%'0M"36�;90=#�qL,9.10M%�68,9@9*Ta�D1*-gs03@R03 1"$0M#&QV03@968,/#�@�@R03Q1@R03;R03 o,/*- 1<e6�;RQs0$"$,9@/6�O§%�0W,/.1#ND�J7 1#� 10#�qX,/.F0[O:*: F03;Z*-;c,/.10[;96�%'0�\wtu.10`%d68,9@9* a�#�Qs0$@/68,9#&@9;Z@R03Q1@R03;R03 o,/*- 1<�,9.10U,/.F@9030�r!QV#&*: o,�"$03 o,/@96�OTrD1*Tgh0$@903 F"30�6�Q1Q1@R#?ab*-%d68,9*:#& F;Zq�#&@w6�n7@R;R,M6� 1DH;R03"$#& 1D�D10$@9*T>�6l,/*->�0[(+*-,/.ãZ*:@R*:"�.1O-0$,KYV#&41 1D16�@RE"3#� 1D1*-,9*:#& F;u#& �6[q�#�41@Br£Qs#&*- o,u%�0$;9.�6�@90

Page 37: Fundamentals of Computational Fluid Dynamics.pdf

ÎNÐ ÎNЫÑmÒÔÓfÒ3ËmÌXÕ�ÖZÒÔÑ^ÑLÌPÍ�ÌXÓUÇ^Ì ×uÊXÌXÍ�ÉcË_×uÍfÚ � '� � ä ¦

� îUß ³´´´µ � ¦$w¦ � ¦$w¦ � ¦$w¦ �

¶ ···¹ à�� ��� ä ¦îUß � ³´´´µ $ � ¦

¦ $ � ¦¦ $ � ¦

¦ $ �¶ ···¹ æz¥F\ � ¦Iç

ic;�6Åq�41@R,9.103@�0WaF6�%'Q1O:08Jc@R03Q1O:6�"30k,/.10kq�#&41@B,/.ðO:*- 10A*: <�j2ë\f¥b\-¦?�¬YoE ,/.10kq�#&O-O:#?(+*: 1<ÅQV#&*- 5,#&QV03@968,/#&@�q�#�@+6'ò�0341%�6� 1 �YV#&41 1D768@REe"$#& 1D1*T,/*:#� )æ��b0$0M�N03"$,9*:#& �¥F\ �F\ çWÛ

æ�� ��� Ýsç U ä �¥¦îUß 8 Ý ß 9 � $ �¥ ¦

î[ß � æ�Ý U $HÝ T ç æz¥F\ �&� ç(+.10$@90K,/.10KYV#&41 1D768@REe"$#& 1D1*T,/*:#� e*:;8 Ý ßh9 �¦¾�¿ ä 8 Ý ß�9 � æz¥F\ � ¥oçtu.10$ º,/.10�%d68,9@9* aÆ#&Qs0$@/68,9#&@`q�#&@d6),/.1@R030Wr£Qs#�*: o,d"$03 o,/@96�OTr£D1*-gs03@R03 1"$*: 1<;9"�.10$%�0�68,d*- o,/03@R*:#&@QV#&*: o,/;'6� FDó�k�?}����l�V��~9�l�R�N}W���W�o�V�/�.�&y|{'��x�y��l�Aq�#&@'6)ò�0341%�6� 1 Æ"3#� 1D1*-,9*:#& ¬#& ¬,/.F0�@R*:<&.o,`*-;<&*T>&03 �YoE

� ��� ä ¦î[ß � ³´´´µ $ � ¦

¦ $ � ¦¦ $ � ¦� H�¥ $ � H�¥

¶¸···¹ æz¥F\ � �5ç

�X6�"�.H#�qP,/.F03;90'%�68,/@R*TaADF*-gs03@90$ 1"30`#&QV03@968,/#�@9;K*:;K6e;9254768@90'%d68,9@9* a�(+*-,9.k03O:0$%�0$ o,/;�,/.76l,6�@R0�6�O-O��$03@R#&;�0Wab"$03QF,�q�#�@�,/.F#&;90A68O:#& 1<)Y76� FD1;d(+.1*-"�.ª6�@90�"3O:4F;R,/0$@90$Dª6�@9#&4F 1D«,/.F0�"30$ o,/@/68OD1*:6�<&#& 768O�\m�0K"C6�O-O�;94F"�.�6[%d6l,/@9* ae6�À����V�N}9�'{'��x���y��M6� FD�*- o,/@9#ND141"$0�,/.10K 1#�,/68,/*-#&

Áeæ¤� ÛÂ�ëàÃ�Iàú3çjä ³´´´´´´´µ� º� �ĺ� � \ \ \ º� �

¶¸·······¹¦

\\\�æz¥F\ � �&ç

(+.10$@90�41;R0Z#�q&� *: �,/.10c6�@9<&4F%�0$ 5,_*:;v#&QF,/*-#& 76�OV6� FD�,/.10f*:O:O-41;R,9@/68,9*:#& `*-;_<&*T>&03 �q�#�@_6M;R*:%'Q1O:0x��Wy���y��?�N�l�V�� W%�68,/@R*TaK68O-,/.F#&41<&.=6� oEK 541%UYV03@§#�q1Y768 1D1;§*:;§6fQV#&;9;R*:Y1*-O:*T,!E&\�iÅ,/@R*:D1*:6�<&#& 768O�%�68,/@R*Ta(+*-,9.1#&4F,�"3#& 1;B,�6� o,9;f68O:#& 1<=,/.10ZY16� 1D1;+"C68 eYs0�0�aFQF@903;R;90$D�6�;�Á�æ ²�ëà ²�?à ²º3ç�\jtu.10K6�@R<&41%'03 o,/;_q�#�@6dY768 1D103DA%�68,9@9*Ta�6�@90[68O-(_6?EN;f#bD1D�*: � 541%UYV03@c6� 1D�,9.10U"$03 o,/@96�OL#& F0e�� éèP���?��@90$q�0$@9;c,9#d,/.F0"30$ o,/@/68O�D1*S6�<�#& 76�Oz\

Page 38: Fundamentals of Computational Fluid Dynamics.pdf

� ? Ç^È�ÉZÊcËmÌXÍÏÎ5ЫÑLÒÔÓ�Ò3ËmÌPÕzÖZÒÔÑ^Ñ^ÌXÍ�ÌPÓMÇ^Ì«ÉZÊXÊXÍ�×jØZÒBÙ�Éc˧ÒW×uÓZÚ�H0K"36� � F#I( <&03 F03@/68O:*:�$0�#&41@+Q1@R0$>N*:#&4F;�0�aF6�%�QFO:03;$\XãZ0$n7 F*: 1< ²Ý�68; �

²Ý�ä ³´´´´´´´µÝ�"Ý �Ý T\\\Ý�Ŷ ·······¹ æz¥F\ � �oç

(v0="36� �6�Q1Q1@R#?ab*-%d68,90Z,/.10K;R03"3#� 1D�D10$@9*T>�6l,/*->�0�#�q ²Ý�YoE� ��� ²Ýeä ¦îUß � ÁeæÔ¦&àN$ � àC¦Iç ²ÝMø¼J ²�)º O æz¥F\ � '&ç

(+.10$@90~J ²�)º O ;B,�6� FD1;Mq�#&@w,/.10d>�03"W,/#&@[.1#�O:D1*- 1<�,9.10eãZ*-@9*:"�.FO:0$,=YV#&41 1D768@RE"3#& 1DF*-,/*-#& 1;w#& �,/.F0O:0Wq|,�6� 1D�@9*-<&.o,+;9*-D103;$Û J ²�)º O ä ¦îUß � ùúÝ��Ià � à5;=;=;$à � à/Ý���û�Æ æz¥F\ � ?oç

�£q^(v0MQ1@R03;R"3@9*-Ys0Mòf0$41%d68 1 �YV#&41 1D16�@RE�"3#� 1D1*-,9*:#& F;�#� �,/.F0=@R*:<&.o,f;9*:DF0�JV6�;c*- f�j25;3\s¥F\ � ��68 1D¥F\ �&� JF(v0Kn7 1D � ��� ²Ý ä ¦îUß � Áeæ ²�7à ²�là3¦Iç ²ÝMøÇJ ²�)º O æz¥F\ � Doç

(+.10$@90 ²� ä ù ¦&à3¦&àN;=;=;Wà � H�¥8û Ʋ� ä ù�$ � àN$ � àN$ � àN;=;=;$àN$ � H�¥8û ÆJ ²�¦º O ä ¦î[ß �ÉÈ Ý��Ià � à � àN;=;=;�à � îUߥ 8 Ý ß 9 ��Ê Æ

òf#�,9*:"$0�,9.768,P,/.10f%d68,9@9* a[#&QV03@968,/#&@R;v<�*->&0$ �YoEË�X25;$\F¥F\ � 'w6� 1D�¥b\ � Dw"C6�@R@RE`%'#&@90�*: bq�#&@9%�6lr,/*-#& e,/.768 �,9.10KQs#&*- o,+#&Qs0$@/68,9#&@u<&*T>&03 �YoE,�j2ë\s¥b\-¦G�N\P�! ��j25;3\V¥F\ � '[6� 1D�¥F\ � DFJF,/.F0=YV#&41 1D16�@RE"3#� 1D1*-,9*:#& F;f.76C>�0UYs0$03 A41 F*:254103OTE�;9QV03"3*Tn703Dk68 1D�*-,f*:;f"3O-0C6�@+,/.76l,c,/.F0U;/6�%'0wQs#&*- o,Z#&QV03@968,/#&@.76�;�YV0303 �6�Q1Q1O-*:0$D�6l,f0W>&0$@RE�Qs#�*: o,+*: �,/.10�n70$O:D�0Wab"30$QF,�6l,�,9.10wYs#&4F 1D76�@R*:03;$\vtu.F0M6�YF*:O:*T,!E�,9#;9QV03"$*-q|EM*: M,9.10u%d6l,/@9* a=D103@R*->868,/*T>&0�#�Qs0$@/68,9#&@L,/.F0u0WaF6�"$,X 168,/41@R0u#�q7,/.F0+6�Q1Q1@R#?ab*-%d68,9*:#& M68,j,/.F0>86�@9*-#&41;fQs#&*- o,/;c*- �,/.F0Mn703O-D�*: F"3O:4FD1*: 1<',/.10MYs#&4F 1D76�@R*:03;cQs0$@9%'*-,/;+,/.F0U41;90[#8qX2N4F*-,/0M<&03 10$@/6�O"3#� 1;R,9@941"W,/*:#� 1;u(+.1*:"�.�(+*:O-O�Ys0�4F;90$q�4FO§O:68,/0$@u*: e"$#& 1;9*-D103@968,/*-#& 1;+#�qm;R,/6�Y1*:O-*-,!E�\ÌIÍ «¦§��F§¤¨[­�§ÏÎÐ ��©k­uÑ�ÒG¬[ª�§��@«¦¬Ó«¦Ñv§��@Ôk��«¦¬[�Õ¯q©��@¬[ª£�:�I­.ªb¨Ï�£�@�£ÔÉ�£¬5§Éª�«¦¢¤¢¤�I©�®Z«.¬[ G©�§¤«3«¦¬G��©�®L�Iª£�¸ÖLª:©�®[­�§¤�@­¦��@«NªI­�§¤�Õ«.¬Â°

Page 39: Fundamentals of Computational Fluid Dynamics.pdf

ÎNÐ ÎNЫÑmÒÔÓfÒ3ËmÌXÕ�ÖZÒÔÑ^ÑLÌPÍ�ÌXÓUÇ^Ì ×uÊXÌXÍ�ÉcË_×uÍfÚ � D�b*: F"30v(v0_%�6�÷80v"$#& 1;9*-D103@96�Y1O-0v41;R0�#�qFYs#�,9.M%�68,/@R*Taw68 1DUQV#&*: o,§#&QV03@/6l,/#&@R;3J�*T,§*:;§*:%'Qs#&@B,�6� o,

,/#'03;B,�6�YFO:*:;R.�6'@R03OS6l,/*:#� eYs0W,!(_0$03 �,9.103%�\vi QV#&*: o,�#&QV03@968,/#&@u*-;+<&03 10$@/6�O-O-E�(+@9*-,R,/0$ �q�#&@u;R#&%'0D10$@9*->868,9*->�0c68,v,/.10f@90Wq�03@90$ 1"30�QV#&*- 5,LêU*: �,/03@R%�;P#�q� 10$*:<&.5YV#&@9*- 1<K>�68O:410$;_#�q�,9.10cq�41 F"$,/*-#& �\j¤7#&@0WaF6�%'Q1O-0

æ�� � Ýhç�íuä×� � ÝNí)P � ø~��"BÝbí�P�"hø]��ÝNíjø]ºN"BÝNí9ü#" æz¥F\ ¥ � ç%'*:<&.o,XYV0+,9.10�Qs#&*- o,v#�Qs0$@/68,9#&@^q�#&@P6Kn1@9;R,vD10$@9*->868,9*->�0�\Ltu.F0c"3#�@9@90$;9QV#& 1D1*- 1<w%d68,9@9* a[#&QV03@968,/#&@.76�;�q�#�@u*-,/;�6�@9<&4F%�0$ 5,9;u,/.10�"$#b0W¨�"$*:0$ 5,9;+<&*->N*: F<U,/.10Z(v03*-<&.o,/;u,/#[,/.F0Z>�68O:410$;u#�qm,9.10Zq�41 1"W,/*-#& 68,w,/.10'>86�@9*-#&41;wO:#N"C68,9*:#& 1;$\ei ê�r£;9.1*Tq|,M*- ),9.10dQV#&*: o,=#&QV03@/6l,/#&@w"3#&@R@90$;9QV#& 1D1;M,9#�6�D1*S6�<�#& 76�O;9.F*-q|,+*: e,9.10K%d68,9@9* a�#&QV03@968,/#�@3\jtu.541;+,/.10K%�68,/@R*Tad032541*->86�O-03 o,+#�q%�j2V\V¥F\ ¥ � *:;� �#²Ý�äBÁeæ�� � à���"Wà��?à�º="�à � ç ²Ý æz¥F\ ¥F¦Içòf#8,/0d,9.10e6�D1DF*-,/*-#& H#8qc6��303@R#A*: H,9.10�n1q|,9.Å03O:0$%�0$ o,M(+.1*-"�.Æ%�6�÷803;U*T,U"3O-0C6�@w,/.76l,Ó�'*-;M,/.F0"3#N0$¨'"$*:03 o,�#�qmÝNíI\`�ab`�ab` dfpsr�g�e:Ø3g�tÙ� |%j�r�g�tvpR}tu.10f6�YV#I>�0f*-O:O-41;R,9@/68,903D["C68;903;P*: [(+.1*-"�.',9.10�Ys#&4F 1D76�@BE["3#& FD1*-,9*:#& 1;X68@90unFab03D�\j�£qs,/.10+YV#&41 1DNr6�@BEA"3#& FD1*-,9*:#& 1;w6�@R0U�7}W�Wy��3��y��WJ�,9.10'q�#�@9% #�qv,/.10`%�68,/@R*Ta�#&Qs0$@/68,9#&@K"�.76� 1<�03;3\e�_#& 1;9*-D103@K,/.F003*-<&.o,Rr£Qs#&*- o,LQV03@R*:#ND1*:"P%�0$;9.`;9.F#I(+ `YV03O-#I(K\mtu.1*:;L"C6� [0$*-,/.F03@^YV0�Q1@R03;90$ o,/03D'#& `6cO-*: 1036�@L%'03;R.(+*-,9.`@903QV0C6l,/03D'03 o,9@9*:0$;3J5#&@j%'#&@90_;941<&<�03;R,9*->�03O-EU#& '6K"$*:@R"341O:6�@^%'03;9.�6�;j*- �¤m*:<&41@R0u¥F\ ¥F\m�ª.F03 ,/.F0[%�0$;9.A*:;cOS6�*-D�#&4F,Z#& �,/.10[QV03@R*:%'0$,903@c#8q_6�"$*:@R"3O:08J�*-,cD1#N03;9 Ú� ,K@R0C6�O-O-E�%d6l,9,/0$@f(+.10$@90[,/.F0 541%UYV03@R*: 1<K;R,/6�@R,9;_68;PO-#& 1<w6�;X*-, � 03 1D1;I�M6l,P,9.10+Qs#�*: o,ÚÛR41;R,vQ1@R03"30$D1*: F<=*T,/;j;R,/6�@R,9*: 1<KO-#b"368,/*-#& �\

;=;=; ' ? ¦ � ¥ � � � ' ? ¦ � ;=;=;ßeä $ $ � $ $ $ $ $ $ $ � � $ê[ä � ¦ ; ; ; ; ; ; ��j*:<&.o,+QV#&*: o,9;u#& �6[O-*: 1036�@�QV03@9*-#bDF*:"Z%'03;R.�\Pî[ßeä � �sHN�

tu.10�%d68,9@9* aU,/.168,X@90$Q1@90$;903 o,9;�D1*-gs03@R03 1"$*: 1<K;R"�.103%'03;Pq�#&@j;9"36�OS6�@X0$2N4168,/*-#& 1;X#& �6wQV03@R*:#ND1*:"%'03;9.w*:;�@R0$q�03@R@90$D=,/#f6�;§6��7}W�Wy��3��y��h%�68,/@R*Tas\�i¬,!ENQ1*-"C6�O5QV03@R*:#ND1*:"L,9@9*-D1*S6�<�#& 76�O8%d68,9@9* a�#&QV03@968,/#&@(+*-,9.� 1#& 541 1*Tq�#&@9% 03 o,/@R*:03;�*:;u<�*->&0$ eq�#&@+6��Ir!QV#&*: o,u%'03;R.�YoE

ÁkÜoæz�`Û ²�Và ²�Ià ²º3çjä ³´´´´´´´´µ�5" º � �!Ý��"Þ� � º T� � � T º U� T � U º V� U � V º)ݺN" � V ��Ý

¶¸········¹ æz¥F\ ¥ � ç

Page 40: Fundamentals of Computational Fluid Dynamics.pdf

¥ � Ç^È�ÉZÊcËmÌXÍÏÎ5ЫÑLÒÔÓ�Ò3ËmÌPÕzÖZÒÔÑ^Ñ^ÌXÍ�ÌPÓMÇ^Ì«ÉZÊXÊXÍ�×jØZÒBÙ�Éc˧ÒW×uÓZÚ

1

2

3

4

5

6

7

8

¤m*:<&41@R0K¥F\ ¥FÛ �j*:<&.o,+QV#&*: o,/;u#� �6["3*-@9"$41OS6�@_%�0$;9.�\`�ab`�a�ß àág�r�tsâ�ã�|�iÉjm� |%j�r�g£tvps}�! A<&0$ 103@96�O�J�68;Z;9.1#?(+ )*: �,9.10U0�a168%�Q1O-0�Jh,9.10U0$O:03%'03 o,9;K6�O:#& F<�,/.F0[D1*S6�<�#& 76�O-;f#�qv6�QV03@R*:#ND1*:"%�68,/@R*TaK68@90X 1#�,§"3#� 1;R,/6� o,C\���#?(_0W>&03@$J56�;RQs0$"3*:6�Oo;941YF;90$,L#�qF6�QV03@R*:#ND1*:"j%�68,/@R*Tac*:;�,/.F0v"$*:@9"$41OS68 5,%�68,/@R*TasJ�q�#&@9%'03DA(+.10$ ,9.10`03O:0$%�0$ o,/;w6�O:#� 1<e,/.10[>86�@9*-#&41;�Y768 1D1;=6�@90["$#& 1;R,/6� o,C\��_*:@9"$41OS68 5,%�68,/@R*:"30$;XQ1OS6CE'6w>N*T,�6�O7@R#&O:0+*: '#&41@v6� 768O-EN;9*-;3\L�0�(+*-O:O7.76C>�0c%U41"�.d%�#&@R0u,/#M;96CEd68Ys#&4b,P,9.103%OS6l,/03@$\jtu.10K%�#�;R,+<&0$ 103@96�O�"3*-@9"34FOS6� o,+%�68,/@R*Tad#�qL#�@9D10$@��`*-;

³´´´µ ��äÄ�5"å� � � T� T ��ä±�5"å� �� � � T ��ä±�N"�5"æ� � � T �)䶸···¹ æz¥F\ ¥&¥oç

òf#8,/*:"$0w,9.768,f0C6�"�.�@9#?( #�qX6'"3*-@9"34FOS6� o,�%d6l,/@9* ae*-;f;R.1*-q|,903DÅæ�;90$0U¤L*-<&41@90w¥F\ ¥oçu#& 10w03O-03%'03 o,f,9#,/.F0�@9*-<&.o,M#�qu,9.10d#� 10e6�YV#?>&0�*T,C\�tu.10e;9QV03"$*S6�OP"C6�;R0�#�q�6�,9@9*-D1*S6�<�#& 76�O^"$*:@R"341O:6� o,U%�68,/@R*Tak*-;<&*T>&03 �YoE

ÁkÜNæ�� ÛÂ�7à��?à�º$çXä ³´´´´´´´µ� º �� � º\ \ \� � ºº � �

¶¸·······¹¦

\\\�æz¥F\ ¥��5ç

�ª.103 �,/.10f;R,�68 1D76�@RD�,/.F@9030�r!QV#&*: o,P"30$ o,/@/68OTr!DF*-gs03@90$ 1"3*- 1<=6�Q1Q1@R#?ab*-%d68,9*:#& F;^q�#&@_6�n7@R;R,u68 1D

Page 41: Fundamentals of Computational Fluid Dynamics.pdf

ÎNÐ�çNÐóÇu×uÓcÚ�ËmÍÏè_Ç�˧ÒÔÓ{é ÖZÒÔÑ^Ñ^ÌXÍfÌXÓMÇLÒÔÓqé Ú�Ç^ÈfÌvÙ�ÌvÚ×uѬÉcÓëê ×uÍfÖ�ÌXÍ ¥F¦;90$"3#& FD�D10$@9*T>�6l,/*->�0�J&;R030:�j2ë\o¥F\ � ¦&Jo6�@R0u41;90$D[(+*-,/.[QV03@R*:#ND1*:"vYs#�41 1D76�@BEU"$#& 1D1*T,/*:#� 1;3J�,9.10$E=,�6�÷80,/.F0Kq�#�@9%

æ�� � ç Ü ä ¦� îUß ³´´´µ � ¦ $=¦$w¦ � ¦$w¦ � ¦

¦ $w¦ �

¶¸···¹ ä ¦� îUß ÁkÜNæ£$w¦&à � à3¦Iç

6� 1D

æ�� ��� ç Ü ä ¦îUß � ³´´´µ $ � ¦ ¦

¦ $ � ¦¦ $ � ¦

¦ ¦ $ �¶¸···¹ ä ¦

îUß � ÁkÜNæB¦&à5$ � à3¦Iç æz¥F\ ¥!�&ç�_O:036�@9OTE&Jh,9.103;R0`;9QV03"3*:6�OL"36�;90$;K#�qPQs0$@9*:#ND1*-"M#&QV03@968,/#&@R;K6�@90U6�O:;R#e"3*:@R"341O:6� o,�#&QV03@968,/#&@R;3\=ô�68,/0$@#& �(v0e,�6�÷80�6�DF>86� o,�6�<�0�#�q+,/.1*-;U;9QV03"$*S6�OvQ1@9#�Qs0$@R,!E&\òf#8,/*:"$0d,/.168,U,/.F03@90�68@90� 1#kYV#&41 1D16�@RE"3#� 1D1*-,9*:#& �>�03"W,/#&@R;f;R*: 1"$0K,9.1*:;u*- Fq�#&@R%d68,9*:#& d*:;+6�O-Oh*: o,903@9*-#&@�,/#[,9.10K%d68,9@9*-"303;�,9.103%';90$O->�03;3\

­�®£ì í Ã'¶A²m»jÀ�îAÁu»j¹C¶ð¾¹$¿Å±�Àj±�¶AÁ�¹C¶ðï *�Á_³�±�4 ±Z²ðÃÓñò/¾¶ôó ^ ÀL¼·�±ZÀ

`�a�ßõaIc öË|v÷õã£e7rCöË|�ø�ã�ps}tu.10etm6CEbO-#&@U;R03@9*-03;[0�aFQ16� 1;9*-#& ¬#�q+q�41 1"W,/*:#� 1;`6�YV#&4F,`6�nFab0$DÆQV#&*- 5,UQ1@9#?>N*:D10$;`6�%�036� 1;Mq�#�@"3#� 1;R,9@941"W,/*: F<¬n1 1*-,90Wr!DF*-gs03@90$ 1"30�Qs#&*- o,Rr!#�Qs0$@/68,9#&@9;�#�q=6� oE #&@9DF03@3\�i ;9*-%�QFO:0�68 1Dª;R,/@96�*:<�.5,q�#&@B(�6�@RD�(_6CE',9#="36�@9@BE[,/.1*-;v#�4F,P*:;X,/#w"3#& 1;B,/@R41"$,�6 � tm6CENO:#&@X,�6�YFO:0�J¸�K(+.1*:"�.�%�6�÷803;P0WaN,/0$ 1;9*T>&041;R0�#�qZ,9.10�0�aFQ16� 1;9*-#& º<&*T>&0$ ºYoEz�j2ë\�¥b\@?F\ªif;�6� º0�aF6�%�QFO:0�J_"3#& 1;R*:D10$@dtm6�Y1O-0�¥F\T¦�(+.F*:"�.@90$Q1@90$;90$ 5,9;�6Htm6?ENO-#&@�,/6�Y1O:0�q�#&@�6� 6�QFQ1@9#Cab*:%�68,/*-#& Æ#�qK6H;R03"3#� 1D D103@R*->868,9*->&0�41;9*- 1<,9.1@90$0>86�O:4F03;�#�qM,9.10)q�4F 1"$,9*:#& ÿ"303 o,903@90$D 6�YV#&4F,�,/.10)QV#&*: o,�68,�(+.1*:"�.ð,/.10)D103@R*->868,9*->&0)*:;e,9#«YV00$>86�O-4768,903D�\

Page 42: Fundamentals of Computational Fluid Dynamics.pdf

¥ � Ç^È�ÉZÊcËmÌXÍÏÎ5ЫÑLÒÔÓ�Ò3ËmÌPÕzÖZÒÔÑ^Ñ^ÌXÍ�ÌPÓMÇ^Ì«ÉZÊXÊXÍ�×jØZÒBÙ�Éc˧ÒW×uÓZÚ

8 �� Ý ß � 9 í ø ¦îUß � æ��5ÝNí�P�"hø]��ÝNíjø]º�ÝNí9ü#"BçXä×ù

îUß�; îUß � ; îUß T ; îUß U ;ÝNí JLKNMK � O í JLK¦ú¤MK � ú O í JLK)û¤MK � û O í JZK)übMK � ü O íî[ß � ; J K¦ú¤MK � ú O í ¦�{;3Ýbí�P�" � �{;5æ|r/¦Içh; "" ��;NæSr�¦Iç � ; "� �½;Næ|r9¦Iç T ; "Ý ��;Næ|r9¦Iç U ; "� U�k;?ÝNí �ºk;?ÝNíRü#" º ºh;NæB¦Içh; "" ºk;NæB¦Iç � ; "� ºk;oæB¦Iç T ; "Ý ºÉ;5æB¦Iç U ; "� U

tm6�Y1O-0�¥F\T¦&\¬tL6CENO:#&@U,/6�Y1O-0�q�#&@["30$ 5,903@R03Dº¥Ir!QV#&*: o,`ô�6�<&@96� 1<&*:6� ¬6�Q1QF@9#Cab*:%�68,/*-#& H,/#6A;90$"3#& 1DDF03@9*T>868,/*T>&0�\tu.10�,�6�Y1O-0e*:;["$#& 1;R,9@941"W,/0$Dº;9#k,/.76l,�;R#&%'0e#�qf,9.10�6�O:<&0$Y1@/6�*-;`;9*:%'Q1O-*-n70$D�\�i�,`,/.10e,9#&Q

#�qP,/.10[,/6�Y1O:0=(_0';90$0�68 0�aFQF@903;R;9*-#& )(+*T,/.)6e254103;B,/*:#� %�6�@9÷ë\[tu.1*-;�@90$Q1@90$;903 o,9;M#& 10`#�qP,/.F0254103;B,/*-#& 1;j,/.76l,P6Z;R,/4FDFE`#�që,/.1*-;^,�6�YFO:0�"36� '6� 1;R(v03@$�F 768%�0$O-E&J8(+.768,X*:;^,9.10uO:#N"C68OF03@R@9#&@j"36�41;R03DYoE`,/.10�41;90f#�qh,9.1*:;P6�QFQ1@9#Cab*:%�68,/*-#& �ùeòf#8,/*:"$0�,9.768,v6�O-O7#�qh,9.10f,903@9%';X*: `,/.10f03254768,9*:#& �6�Q1QV0C68@*: �6�"$#&O:41%' �68,f,9.10MO-0$q|,�#�q^,9.10=,/6�Y1O-0�æ�6�O-,9.1#&41<&.hJ7*: �,9.1*:;�"C68;90�JhîUß � .76�;fYs0$03 �%U4FO-,/*-Q1O:*-03D*: o,9#036�"�.«,/0$@9% (+.1*-"�.«;R*:%'Q1O:*Tq�03;U,/.F0�,903@9%';`,/#)Ys0�Q14F,�*: o,/#k,/.F0�,/6�Y1O:08\ ç�\«tu.10$ º 1#�,9*:"$0,/.168,+68,u,9.10�.10C68D�#8qm036�"�.�"3#&O-41%� �,9.103@R0K6�Q1QV0C6�@R;�,/.10�"$#&%'%�#& �q�6�"$,9#&@�,/.76l,u#b"$"341@R;+*: �,/.F00WabQ768 1;9*-#& �#8qL036�"�.�,903@9% 6�Ys#�4F,u,/.10KQV#&*: o,Pê7JF,9.768,+*:;$J

îUß ý ;�8 ý Ý ß ý 9 í õ�ä � àC¦&à � àN;=;=;tu.10+"3#�O:41%' 1;^,/#�,9.10+@9*:<�.5,^#�qs,9.10+O:0Wq|,/%'#&;R,j#� 10�J541 1DF03@j,/.10+.1036�D1*- 1<&;3Jo%�6�÷80�4FQ',9.10utL6CENO:#�@,�68Y1O:08\��X6�"�.`03 o,/@BE[*:;m,/.10u"$#b0W¨�"$*:0$ 5,X#8qV,9.10�,/0$@9% 68,^,/.F0�,/#&Q[#�që,9.10u"3#&@R@90$;9QV#& 1D1*- 1<�"3#&O-41%' *: �,/.10Utm6CENO:#&@Z;R03@R*:03;c0WabQ76� 1;R*:#& A#8qP,9.10M,903@9% ,/#�,9.10UO-0$q|,Z#8qj,/.10U"$#&@9@R03;RQs#& FD1*: 1<e@R#?(K\=¤7#&@0WaF6�%'Q1O-0�J&,/.F0uOS6�;B,j@9#?(©*: U,/.F0�,�6�Y1O-0�"3#�@9@90$;9QV#& 1D1;X,/#Z,9.10utm6?ENO-#&@j;90$@9*:0$;j0WabQ76� F;9*:#� '#8q�º�ÝNí9ü#"�Û

º�ÝbíRü#" ä ºWÝNíLø]ºk;NæÔ¦Içh; ¦¦ îUß�;R8 Ý ßF9 í ø~ºk;NæB¦?ç � ; ¦� îUß � ;R8 � Ý ß � 9 íø�ºk;NæB¦Iç T ; ¦� îUß T ; 8 �T Ý ß T 9 í ø]ºÉ;oæB¦Iç U ; ¦� � îUß U ; 8 U Ý ß U 9 í ø<;=;=;«æz¥F\ ¥&�oç

i tm6?ENO-#&@c,�68Y1O:0U*-;Z;9*-%�QFO-E�6�"3#& o>�03 1*-03 o,K(�6CEA#�qXq�#&@R%�*- 1<dO-*: 1036�@c"$#&%UY1*- 768,9*:#& 1;f#�qPtL6CENO:#�@;90$@9*-03;+#& �6[,903@R% YoEe,/03@R% Y76�;R*:;$\

Page 43: Fundamentals of Computational Fluid Dynamics.pdf

ÎNÐ�çNÐóÇu×uÓcÚ�ËmÍÏè_Ç�˧ÒÔÓ{é ÖZÒÔÑ^Ñ^ÌXÍfÌXÓMÇLÒÔÓqé Ú�Ç^ÈfÌvÙ�ÌvÚ×uѬÉcÓëê ×uÍfÖ�ÌXÍ ¥&¥�_#& 1;R*:D10$@w,9.10`;941% #8q�0C68"�.#�qv,/.10$;90'"3#&O-41%' 1;3\[t§#�%�6lab*:%'*:�$0=,9.10�#�@9D10$@�#�qu6�"$"341@96�"$E

#�qm,/.10w%�0W,/.1#ND�J7(v0MQ1@R#b"$0303D�q�@9#&%µO-0$q|,+,/#'@9*-<&.o,f6� 1D�q�#�@9"308JëY5E�,9.10=QF@9#&QV03@�"�.1#&*-"30w#�qj6FJëY�J6� 1D)"�J�,9.103;R0�;R41%�;K,/#�YV0`�303@R#1\�]Z 10�"36� )0C6�;R*:O-E�;9.1#?(Ï,9.768,�,9.10`;941%';K#�q_,9.10[n7@9;B,w,9.1@90$0"3#�O:41%' 1;+6�@R0��303@R#�*Tqm(v0K;/68,9*:;Bq|E�,/.10K0$2N4168,/*-#&

³´µ ¦ ¦ ¦$w¦ � ¦¦ � ¦

¶ ·¹ ³´µ � �º ¶ ·¹ ä ³´µ ��$ � ¶ ·¹

tu.10w;9#&O-4F,/*-#& e*:;u<�*->&0$ �Y5Eùý�7à��?à�º�ûsäX$Mù ¦&à5$ � à3¦3û�\tu.10w"3#&O-41%� F;�,/.768,+DF#� 1#8,+;941%�,9#��$03@R#�"$#& 1;R,9*-,94F,/0Z,9.10K03@9@R#&@3\

�0=D10$;9*-<& 768,90K,9.10Kn7@9;B,c 1#� 5>86� F*:;9.F*: 1<';941% ,9#dYV0½þNÿ JV6� 1D�@90$q�0$@�,9#*-,�68;�,/.10Ktm6?ENO-#&@+;903@R*:0$;�0$@9@R#&@3\

�! ©,9.1*:;'"C68;90ðþNÿ #N"3"34F@9;�6l,',9.10�nFq|,/.«"$#&O:4F%� Æ*: ¬,/.10�,�68Y1O:0æ�q�#�@',9.1*:;`0WaF6�%'Q1O-0�68O:Ou0$>�03 "3#�O:41%' 1;�(+*:O-Os>86� 1*-;9.�YoE�;REN%'%�0W,/@REFçu6� 1D�#& F0Kn1 1D1;þNÿ ä ¦

îUß ��� �� � ø º� ��� îUß U#8 U Ý ß U 9 í ä î[ß �¦ � 8 U Ý ß U 9 í æz¥F\ ¥!'&ç

òf#8,/0K,/.768,+,9.10UîUß � .16�;cYV030$ �D1*T>b*-D103D�,/.F@9#&41<�.�,/#�%d68÷�0�,/.10=03@R@9#&@u,/0$@9%µ"$#& 1;9*-;R,903 o,C\u�0.76C>&0�ÛR41;R,uDF03@9*T>&0$D�,/.10�q�6�%�*-O:*:6�@j¥lr£Qs#&*- o,_"$03 o,/@96�OhD1*Tgh0$@90$ 1"3*- 1<MQV#&*: o,_#&Qs0$@/68,9#&@Xq�#&@�6M;R03"$#& 1DD10$@9*->868,9*->�0 8 �� Ý ß � 9 í $ ¦

îUß � æ�Ýbí�P�"R$ � ÝNí^ø¬ÝbíRü#"BçXä×\dæzîUß � ç æz¥F\ ¥�?oçtu.10�tm6?ENO-#&@_,�68Y1O:0�q�#&@u6U¥lr£Qs#�*: o,�Y768"�÷5(_6�@RDbr!D1*Tgh0$@90$ 1"3*- 1<[#&QV03@/6l,/#&@�@R03Q1@R03;R03 o,/*- 1<'6=n7@9;B,

D10$@9*->868,9*->�0�*:;u;9.F#I(+ �*: �tm6�Y1O:0K¥b\ � \

8 Ý ß 9 í ø ¦îUß æ�� � ÝNí)P � ø]��"BÝNí)P�"hø~��Ýbí$çXäBù

î[ß�; îUß � ; îUß T ; îUß U ;ÝNí J KNMK � O í J K¦ú¤MK � ú O í J K)ûbMK � û O í J K)übMK � ü O íîUßf; J KNMK � O í ¦� � ;?ÝNí�P � � � � � ;5æSr � ç7; "" � � ;Næ|r � ç � ; "� � � ;NæSr � ç T ; "Ý � � ;Næ|r � ç U ; "� U��"%;?ÝNí�P�" ��" ��"�;5æSr�¦Iç7; "" ��"&;Næ|r�¦?ç � ; "� ��"�;NæSr/¦Iç T ; "Ý ��"%;Næ|r9¦Iç U ; "� U�k;?ÝNí �

tm6�Y1O-0k¥F\ � \ tL6CENO:#&@�,/6�Y1O-0�q�#&@eY76�"�÷o(_6�@9D ¥lr!QV#&*: o,�ô�6�<�@/6� 1<�*S6� ª6�QFQ1@9#Cab*:%�68,/*-#& «,9#©6Ån7@R;R,DF03@9*T>868,/*T>&0�\

Page 44: Fundamentals of Computational Fluid Dynamics.pdf

¥�� Ç^È�ÉZÊcËmÌXÍÏÎ5ЫÑLÒÔÓ�Ò3ËmÌPÕzÖZÒÔÑ^Ñ^ÌXÍ�ÌPÓMÇ^Ì«ÉZÊXÊXÍ�×jØZÒBÙ�Éc˧ÒW×uÓZÚtu.1*-;+,9*:%'0c,/.F0Kn1@9;R,+,9.1@90$0w"$#&O:4F%� 1;u;R41% ,/#`�$03@9#'*-q

³´µ ¦ ¦ ¦� ¦ �� ¦ �

¶ ·¹ ³´µ � ���"� ¶ ·¹ ä ³´µ � ¦� ¶ ·¹(+.1*-"�.«<&*T>&03;�ù¸� � àÃ��"WàÃ��ûKä $ "� ù ¦&à5$f�1à/¥8û�\«�! ©,/.F*:;'"C6�;R0�,9.10�q�#&4F@R,/.Æ"3#�O:41%' ©QF@9#?>N*:D10$;�,/.F0O:036�D1*- 1<U,/@R41 1"C6l,/*:#� �0$@9@R#&@�,/0$@9%�Û

þNÿ ä ¦îUß � $ ?�� �� $ ��"� � î[ß T 8 �T Ý ß T 9 í ä îUß �

¥ 8 �T Ý ß T 9 í æz¥F\ ¥�Doçtu.541;`(_0�.76C>&0�D10$@9*->�03D©6);R03"$#& 1Dbr£#&@9D10$@`Y76�"�÷o(�68@9D«DF*-gs03@90$ 1"30�6�QFQ1@9#Cab*:%�68,/*-#& �#�qc6�n7@9;B,D10$@9*->868,9*->�0�Û 8 Ý ß 9 í $ ¦

� îUß æ�ÝNí)P � $Å�&ÝNí�P�"hø©¥�ÝNíWçjäB\�æ�îUß � ç æz¥F\ � � ç

`�a�ßõao� �×p&iupsr�|�ã£g��v|%j�g�ekiæe��,lBg�n{pRr�pRiutvpue7r��Çâ�ã�|�}�! )<&03 10$@/6�OzJ�6eD1*-gs03@R03 1"$0d6�QFQ1@9#Cab*:%�68,/*-#& �,9#�,9.10`þ�,/.)D103@R*->868,9*->&0`6l,K<&@9*-D)QV#&*- 5,uê�"C6� )YV0"C68;R,�*: e,/0$@9%';u#�q �+ø��Uøð¦K 10$*:<&.5YV#&@9*- 1<[Qs#�*: o,/;+6�;

8 � Ý ß � 9 í ø ��� ¾ P[Ü � � ÝNíRü � äBþNÿ æz¥F\ �1¦Iç

(+.10$@90d,9.10 � � 6�@R0d"$#b0W¨�"$*:0$ 5,9;M,/#�Ys0�D10$,903@9%'*: F03DH,9.1@9#&4F<&.H,/.F0�41;90d#�qutm6?ENO-#&@Mtm6�Y1O-03;=,9#Q1@R#bD14F"30e6�QFQ1@9#Cab*:%�68,/*-#& 1;K#�q�6�<�*->&0$ Å#&@9DF03@3\��_O:036�@9OTE),9.1*:;=Q1@9#N"30$;9;U"36� ÅYV0d41;R03DÅ,/#�n7 1Dq�#&@B(�6�@RD�J5Y76�"�÷o(_6�@9D�JN;9÷80$(v03D�JF#&@j"30$ 5,9@/6�OëQV#&*: o,j#�Qs0$@/68,9#&@9;X#�qh6� oE[#&@RD103@jq�#&@X6� oE[DF03@9*T>868,/*T>&0�\�£,m"3#&41O-DMYV0_"$#&%�QF4F,/0$@L6�4b,/#&%�68,/0$DM68 1DM0�ab,903 1DF03D[,/#f.1*:<&.F03@�D1*:%'03 F;9*:#� 1;3\���#&@R0_*:%'QV#&@R,/6� o,CJ.1#?(v0$>&0$@3Jv*:;U,/.F0�q�6�"$,U,9.768,`*T,U"C68 ÆYV0�q�41@B,/.10$@[<&03 10$@/6�O-*:�$03D�\)�! ¬#&@9D10$@U,/#AD1#A,9.1*:;$JjO:0$,U41;6�Q1QF@9#o6�"�.¬,/.F0�;R41Y¡ÛR03"W,d*- Æ6);RO:*:<�.5,9O-ED1*-gs03@R03 o,`(�6CE�J_,/.76l,`*:;[q�@9#&%¾,/.10�QV#&*: o,`#�q�>N*:0$(�#�q*: o,903@9QV#&O:68,/*-#& Åq�#&@9%U4FOS6�;$\ÿtu.10$;90�q�#&@R%U41O:6�;'6�@90�D1*:;R"341;R;903Dª*- «%�6� oEÆ,90WaN,/;d#& º 541%'03@9*-"C6�O6� 768O-EN;9*-;3\`�a�ßõab` �Ó|��hr�|�i��7p¼|�iuØ��Ùpsr�� goj�p�ÂiÉj�psr�y{ehã£|%j�g£ehiædfehã�÷õiue���g�|�ã£}tu.10=ô�6�<&@/68 1<&*S68 �*: o,/0$@9QV#&OS6l,/*:#� �Qs#�O-EN 1#&%'*S6�OV*:;u<�*->&0$ �YoE

Ýmæ�ßsçjä ��ý ¾ ä �5ý&æ�ßsçÔÝVý æz¥F\ � � ç

Page 45: Fundamentals of Computational Fluid Dynamics.pdf

ÎNÐ�çNÐóÇu×uÓcÚ�ËmÍÏè_Ç�˧ÒÔÓ{é ÖZÒÔÑ^Ñ^ÌXÍfÌXÓMÇLÒÔÓqé Ú�Ç^ÈfÌvÙ�ÌvÚ×uѬÉcÓëê ×uÍfÖ�ÌXÍ ¥!�(+.10$@90��5ý&æ�ßsçu6�@R0wQV#&OTEb F#&%�*:6�O:;P*: eßA#8qLD10$<&@90$0���\vtu.10K"$#& 1;R,9@941"W,/*-#& �#8qL,/.F0��oý&æ�ßsç�"C6� �YV0,�68÷�03 �q�@9#&% ,/.10w;9*-%�Q1O-0Kô�6�<&@/68 1<&*S68 �q�#�@9%U41O:6Mq�#&@+25476�D1@968,/*-"w*- o,/03@RQs#�OS68,9*:#& )æ�#&@u0WaN,/@96�QV#&OS6lr,/*-#& ëçP(+*T,/.� 1#& br£032541*-;9Q76�"$03D�Qs#�*: o,/;

Ýmæ|ßsçPäªÝ�ä æ�ß�"%$Hßsç3æ|ß � $Hßsçæ�ß�"%$�ß�äWç3æ|ß � $Hß�äWç ø¬Ý�" æ�ß�ä7$�ßsç3æ|ß � $�ßsçæ�ß�ä7$�ß�"Rç3æ|ß � $�ß�"9çøZÝ � æ�ß�ä7$�ßsç3æ|ß�"�$�ßsçæ�ß�ä7$�ß � ç3æ|ß�"�$�ß � ç æz¥F\ �o¥oç

òf#8,/*:"$0d,/.168,U,/.F0e"3#N0$¨'"3*-03 o,`#�q�0C6�"�.ÆÝëýd*-;U#& 10�(+.10$ Æß ä ßëý�JP6� FDÅ�303@R#A(+.103 ¬ß©,/6�÷�0$;6� oE�#�,/.10$@ZD1*-;9"3@R0$,90M>86�O:410=*: �,/.10U;R0$,3\��£qj(_0U,/6�÷�0M,9.10Mn7@R;R,c#&@Z;90$"3#& FDAD103@R*->868,/*T>&0=#�qXÝmæ�ßsçWJ*:%'QV#&;90d6� Å032541*-;9Q76�"$03D¬%'03;9.hJv68 1DÅ0$>86�O-4768,/0�,/.10$;90eD10$@9*->868,9*->�03;[68,M,/.10�6�QFQ1@9#&QF@9*S6l,/0dDF*:;Br"3@R0$,90eQs#&*- o,CJL(v0�@903DF03@9*T>&0�,9.10dn7 1*T,/0�DF*-gs03@90$ 1"30�68Q1Q1@9#Cab*:%�68,9*:#& 1;ÉÛR41;B,[Q1@90$;90$ 5,903D�\�¤L*: 1*T,/0D1*Tgh0$@903 F"30';9"�.10$%�0$;=,/.168,w"C6� )Ys0'D10$@9*->�03D)q�@9#&%å�j2ë\§¥F\ � � 6�@90`@90Wq�03@R@903D,/#�6�;=ô§68<&@/6� F<&*S6� 6�Q1QF@9#Cab*:%�68,/*-#& 1;3\

iª<&03 10$@/6�O-*:�368,/*-#& [#�qh,9.10�ô�6�<&@/68 1<&*S68 �68Q1Q1@9#&6�"�.�*-;XY1@9#&4F<&.o,_68Ys#&4b,XY5E`4F;9*: F<{��03@9%'*-,9*S6� *: o,903@9QV#&O:68,/*-#& �\�tm#="3#& F;R,/@R41"$,_6KQs#&OTEN 1#&%'*S6�O5q�#&@XÝmæ�ßsçWJ¡��03@9%'*-,90�q�#&@9%M41OS6�;j4F;90+>�68O:410$;P#8qh,/.F0q�41 1"W,/*-#& A���V�Uy|x|�w�N}W��y �l��xzy ��}"!z�$#u68,v<&*->�03 dQV#&*- 5,9;_*- �;RQ76�"308\v]�4F@v*-O:O:4F;R,/@968,/*-#& [*:;Xq�#&@X,/.10f"C6�;R0*: k(+.1*-"�.�D1*:;R"3@R0$,/0`>86�O:4F03;w#�q�,/.F0'q�41 F"$,/*-#& �68 1DH*T,/;Kn7@9;B,MD10$@9*T>�6l,/*->�0d68@90'41;90$D�J^Q1@R#bD14F"3*: F<,/.F0w0�abQ1@90$;9;9*-#&

ÝLæ|ßsçjä � �oýoæ�ßsçÔÝëýPø � ��ýoæ�ßsç 8 Ý ß 9 ý æz¥F\ �&�5ç

]ZYo>b*-#&41;RO-EU.F*:<&.10$@Br£#&@9D10$@^D10$@9*->868,9*->�03;^"$#&41O:D`YV0u*: 1"$O:41DF03D`6�;^,9.10uQ1@9#�Y1O:0$%�;^DF*:"$,/68,/08\Li "$#&%`rQ1O-0$,/0MD1*:;R"341;R;9*:#� A#�qj,/.10$;90[QV#&O-EN 1#�%�*:6�O:;+"C68 AYs0Mq�#�41 1DA*: �%d6� oE�@90Wq�03@90$ 1"30$;K#& � 541%'03@9*-"C6�O%'0$,/.F#bD1;$J7Y14F,+.10$@90K(_0K 10$03D�#& 1O-E�,/.10K"$#& 1"30$QF,C\

tu.10MQF@90$>N*-#&41;c0�aF6�%�QFO:03;�#�q^6�tm6?ENO-#&@u,�6�Y1O-0="$#& 1;B,/@94F"$,/0$D©}I�$�V éy��Wy|x�Qs#�*: o,�D1*-gs03@R03 1"$0M#&Qbr03@968,/#�@9;�q�@9#&%pô�6�<&@/68 1<&*S68 �*: o,/0$@9QV#&OS6l,/*:#� �q�#&@9%M41OS6�;$\`�_#& 1;R*:D10$@K 10WaN,K,/.10`tm6CEbO-#&@Z,�68Y1O:0Mq�#�@6� Æy|{c�V éy��Wy|x^;9Q16�"30'D1*-gs03@R03 1"$*: 1<�;R"�.103%'0'q�#�@K6�n7@R;R,wD10$@9*->868,9*->�0`6�@9*-;9*: F<�q�@9#&%p,9.10`41;90'#�q_6�f0$@9%'*-,90[*: o,/0$@9QV#&OS68,9*:#& �q�#&@9%M41OS6F\q��6�;90$D#� �j2ë\§¥F\ �&�1J�6e<&03 F03@/68O:*:�368,/*-#& �#�qk�j2ë\m¥b\ �1¦`"36� *: F"3O:4FD10�D103@R*->868,9*->&0$;�68,+ 103*-<&.5Ys#�@9*: F<[Qs#&*- o,/;3JF*�\ 0�\TJ%�� ¾ P'& � � 8 � Ý ß � 9 íRü � ø ��� ¾ P[Ü � � ÝNí9ü � ä<þNÿ æz¥F\ �Â�&ç6� 768O:#&<&#�41;m,9#3�X2ë\o¥b\ �&�F\mif '0�aF6�%�QFO:0vq�#�@9%U41O:6c*:;m*:O-O:41;B,/@/6l,/03DM68,^,9.10�,/#&Q[#8qëtL6�YFO:0u¥F\ ¥F\%�f03@R0 1#�,�#& FO-E�*-;�,/.10KD10$@9*T>�6l,/*->�0K68,�Qs#�*: o,Pê�@R03Q1@R03;90$ o,/03DhJhY14F,f6�O-;9#[*- 1"3O-41D103D�6�@R0wDF03@9*T>868,/*T>&03;+6l,QV#&*: o,/;^êu$ƦK68 1D`ê+ø«¦&Jb(+.F*:"�.�6�O:;R#U%U41;B,uYV0�0WabQ76� 1DF03D�41;9*- 1<[tm6?ENO-#&@+�b0$@9*:0$;u6�YV#&4F,uQV#&*- 5,

Page 46: Fundamentals of Computational Fluid Dynamics.pdf

¥&� Ç^È�ÉZÊcËmÌXÍÏÎ5ЫÑLÒÔÓ�Ò3ËmÌPÕzÖZÒÔÑ^Ñ^ÌXÍ�ÌPÓMÇ^Ì«ÉZÊXÊXÍ�×jØZÒBÙ�Éc˧ÒW×uÓZÚê7\=tu.F*:;�@90$2541*:@R03;Z,/.F0Uq�#&O:O-#I(+*- 1<d<�03 10$@/6�O-*:�C6l,/*:#� �#�qX,/.10[tm6CENO:#&@Z;R03@R*:03;�0�abQ76� 1;R*:#& k<&*T>&03 k*- �j2ë\ë¥F\@?bÛ

8 � Ý ß � 9 íRü1ý ä)( È+*�ï ¾ ä ¦ì%> æ�õbî[ßsç ï ï ß ï Ê 8 � Ý ß � 9-, í æz¥F\ �o�oç

tu.10�D103@R*->868,9*->&0�,903@R%�;[ 1#?(�.76C>&0�"3#N0$¨'"3*-03 o,/;�æ�,9.10�"3#N0$¨'"3*-03 o,'#& Æ,9.10'êQV#&*: o,`*-;U,�6�÷803 6�;`#& 10�,/#);9*-%�QFO:*-q|Ek,9.10�68O:<&0$Y1@/6oç=(+.F*:"�.Æ%U41;R,�YV0�DF0$,/0$@9%'*: 10$D©4F;9*: F<),9.10�tL6CENO:#&@`tm6�Y1O-06�Q1QF@9#o6�"�.�6�;+#&4F,9O:*- 103DeYV03O-#I(K\

� 8 Ý ß�9 í)P�" ø 8 Ý ß�9 í ø]þ 8 Ý ß�9 í9ü#" ø ¦îUß æ��5ÝNí�P�"�ø~��ÝbíLøzº�ÝbíRü#"Bçjä ù

îUß�; îUß � ; îUß T ; îUß U ; îUß V ;ÝNí J KNMK ��O í J K¦ú¤MK � ú O í J K)û¤MK � û O í J K)übMK � ü O í J K/.¤MK � . O í

î[ß�; � J KNMK � O í)P�" � � ;Næ|r9¦Içh; "" � ;Næ|r9¦Iç � ; "� � ;Næ|r�¦?ç T ; "Ý � ;NæSr/¦?ç U ; "� Uî[ß�; JZKNMK ��O í ¦îUß�;Gþ�JLKNMK ��O íRü#" þ þF;NæB¦?çh; "" þ:;NæÔ¦Iç � ; "� þF;NæB¦Iç T ; "Ý þ:;5æB¦Iç U ; "� U��;?ÝNí)P�" � �{;5æ|r/¦Içh; "" ��;NæSr�¦Iç � ; "� �½;Næ|r9¦Iç T ; "Ý ��;Næ|r9¦Iç U ; "� U �{;5æ|r/¦Iç V ; "" � ä�h;?ÝNí �ºk;?ÝNí9ü#" º ºh;NæB¦Içh; "" ºk;NæB¦Iç � ; "� ºk;NæÔ¦Iç T ; "Ý ºÉ;5æB¦Iç U ; "� U ºh;NæB¦Iç V ; "" � ä

tm6�Y1O-0K¥F\ ¥F\XtL6CENO:#&@�,/6�Y1O-0Zq�#&@u"30$ 5,9@/6�O�¥Ir!QV#&*: o,F��03@9%'*-,9*S6� �6�Q1Q1@R#?ab*-%d68,9*:#& �,9#'6[n1@9;R,�D10$@9*T>�6l,/*->�0�\t§#�%�6lab*:%'*:�$0f,/.F0w#�@9D10$@�#8q^6�"$"341@96�"$E�J1(_0w%U41;B,�;/68,9*:;Rq|E�,/.10K@R03OS6l,/*:#�

³´´´´´µ¦ ¦ ¦ � �$w¦ � ¦ ¦ ¦¦ � ¦ $ � �$w¦ � ¦ ¥ ¥¦ � ¦ $�� �

¶ ·····¹ ³´´´´´µ� �º� þ¶ ·····¹ ä ³´´´´´µ

�$w¦���

¶ ·····¹.76C>N*: 1<�,/.10�;9#&O-4F,/*-#& «ù¸�7à��?à�ºIà � à�þ3û_ä "U ù ¥Fà � àN$f¥FàC¦&àC¦$û�\10� 1D10$@M,/.10$;90�"3#& 1DF*-,/*-#& 1;K,/.10�;9* ab,9."3#�O:41%' e;941%';u,/# þNÿ ä îUß U

¦ �8� 8 �V Ý ß V 9 í æz¥F\ �Â'&ç

Page 47: Fundamentals of Computational Fluid Dynamics.pdf

ÎNÐ�çNÐóÇu×uÓcÚ�ËmÍÏè_Ç�˧ÒÔÓ{é ÖZÒÔÑ^Ñ^ÌXÍfÌXÓMÇLÒÔÓqé Ú�Ç^ÈfÌvÙ�ÌvÚ×uѬÉcÓëê ×uÍfÖ�ÌXÍ ¥!'6� 1D�,/.F0w%'0$,9.1#ND�"36� �Ys0K0�aFQF@903;R;90$Dk6�;8 Ý ß 9 í)P�" ø¬��8 Ý ß 9 í ø 8 Ý ß 9 íRü#" $ ¥

î[ß æ�$fÝNí�P�"�ø¬ÝNí9ü#"BçXäB\dæzîUß�UWç æz¥F\ �!?oçtu.1*-;�*-;+6�O:;R#[@90Wq�03@9@R03D�,/#'6�;�632u�o�54}Pq�#&@R%U41OS6b\`�a�ßõa�ß d r�|�tÚj�g�tv|�ã36<y�y�ãIg�tv|%j�g�ehiEe��,df|�Ø87pue7r��Çâ�ã�|�}�£,f*:;+#& 10K,/.1*- 1<`,/#d"$#& 1;B,/@94F"$,f%�0W,/.1#ND1;�41;9*- 1<�,9.10{��03@R%�*T,/*S68 e"3#& 1"$03QF,Z6� 1D�2N4F*-,/0=6� 1#8,/.10$@,/#w*:%'Q1O-03%'03 o,L,9.103% *- �6K"3#�%�Q14b,/03@X"$#bD108\^�! `,/.10uq�#&@R%Ï#�qh6wQV#&*: o,X#&QV03@968,/#�@j*-,X*:;jQF@9#&Y768Y1O-E 1#�,+0W>N*:D10$ 5,�6l,�n7@9;B,�ÛR41;R,+.1#?(B�j2V\1¥F\ ��?U"C6� �YV0K6�Q1Q1O-*:03Dh\��f#?(v0$>&0$@3Jë,/.10�;R*-,94768,/*-#& �*-;�2541*-,900C68;REd,9#U"3#�%�[email protected]$ 1De*-qh(_0�0�aFQF@903;R;u,/.10Z;96�%'0c%'0$,/.F#bD�*- d,/.F0cq�#&@9% #�q§6U%�68,9@9*Ta'#�Qs0$@/68,9#&@3\i Y76� 1DF03D�%d68,9@9* a� 1#8,�68,9*:#& �q�#&@F�j2ë\V¥F\ �!?[*:;

¦� ÁeæÔ¦&à/�1àC¦?çI� � ²Ýeä ¦

� î[ß Á�æ£$w¦&à � àC¦?ç ²ÝMø J ²�)º O æz¥F\ �!Doç*: �(+.1*:"�.kãZ*-@9*-"�.1O:0W,fYV#&41 FD76�@RE�"$#& 1D1*T,/*:#� 1;f.16?>�0UYV0303 A*-%�QV#&;R03D�\ T ��68,9.103%�68,9*:"C68O:O-Ed,/.1*-;f*-;032541*T>86�O:0$ 5,u,9# � � ²Ý�äð�7ù¸Á�æB¦&à/�FàC¦IçÔû P�" � ¦

� îUß Áeæ£$w¦&à � à3¦Iç ²ÝMøÇJ ²�)º O � æz¥F\@� � ç(+.1*-"�.�"36� �YV0K@90$0WabQ1@90$;9;R03D�YoEe,/.F0 � Q1@90$D1*:"W,/#&@Ôr!"3#�@9@90$"$,9#&@Q�`;90$254103 1"$0²9Ý ä ¦

� îUß Á�æ£$w¦&à � àC¦?ç ²ÝMøÇJ ²�)º O� � ²Ý ä �fùýÁeæÔ¦&à/�1àC¦?çÔû P�" ²9Ý æz¥F\@�b¦Iç�ª*-,9.Å@903;RQs0$"$,`,/#�Q1@/6�"W,/*-"C6�Ov*:%'Q1O:0$%�0$ 5,/68,/*-#& �J§,/.10�%'0C68 1*: 1<�#�q+,/.10eQ1@R03D1*-"$,9#&@U*: ,/.1*-;

;90$254103 1"$0k;9.1#&4FO:DºYV0�"3O-0C6�@$\ �£,d;9*:%'Q1OTE¬;/6CEN;;:¬,�68÷�0�,/.F0�>&0$"$,9#&@�6�@9@96CE ²Ý�J+D1*Tgh0$@90$ 1"30�*T,CJ6�D1D�,9.10UYV#&41 1D16�@RE�"3#� 1D1*-,9*:#& F;3J�68 1D�;R,9#&@90=,/.10U@R03;R41O-,�*- �,9.10U*: o,903@9%'03DF*S68,90U6�@R@/6CE ²9ݧ\ctu.10%'0C6� 1*- 1<U#�q§,/.F0�;903"$#& 1D�@9#?(ÿ*:;�%'#&@90c;941YF,9O:08J7;9*: F"30�*-,�*:;�D10$%d68 1D1*: F<U,/.10�0W>�68O:4768,9*:#& d#�qm6� *: o>�03@9;R0M#&QV03@968,/#�@3J7Y14F,f*-,+;B,/*-O:O�"36� �YV0K<&*->�03 �6`;9*-%�QFO:0�*: o,903@9QF@90$,/68,/*-#& �\Pic �*: o>&0$@9;90w%�68,/@R*Ta#&QV03@968,/#&@w*:%'Q1O-*:03;Z,9.10d;R#&O:4b,/*:#� #�qu6�"3#&4FQ1O:0$DH;90W,[#�quO-*: 1036�@K03254768,9*:#& F;3\�tu.103;R0�#&QV03@/6l,/#&@R;6�@R0+>�03@BE�"$#&%'%�#& `*- `n1 1*-,90�DF*-gs03@90$ 1"30f6�Q1QFO:*:"368,/*-#& 1;$\mtu.10WE�6�Q1QV0C6�@X*: `,/.F0+q�#�@9%Ï#�qhY76� 1DF03D%�68,/@R*:"30$;�.16?>N*- 1<�6H;R%d68O:OuY76� FDF(+*:DF,9.�Ju*: Æ,/.1*-;�"36�;90�6),/@R*:D1*:6�<&#& 16�O�\ºtu.F0�0$>86�O-4768,/*-#& ¬#�qùýÁeæB¦&à9�1àC¦Iç!û P�" *-;Mq�#&41 1DÅYoEH%�036� 1;[#�qf6�,/@R*:D1*:6�<&#& 16�O � ;9#&OT>&0$@Q�1Jj(+.1*-"�.Æ*-;U;9*-%�QFO:0`,/#k"3#ND10�J0$¨'"$*:03 o,�,/#'@941 hJs68 1D�(+*-D103OTEe41;90$D�\��! �<&03 10$@/6�OzJ��f0$@9%'*-,/*:6� �#&@�ÜL6�D�<0M6�QFQ1@9#Cab*:%�68,/*-#& 1;u"36� YV0wQF@/6�"W,/*:"36�Oh(+.10$ �,9.10$Ee"36� �Ys0K*:%'Q1O-03%'03 o,/0$DeY5Ed,/.10K41;R0=#�qm0$¨'"$*:03 o,�Y76� FD103D�;9#&OT>&03@R;3\=�> ¬�§�¨[�@©&ª£­¦©���§¤¨G��¥¦�Qªo§¤«¦¢Rª£«¦¬5§¤­¦�Õ¬G�@¬@?ɧ¤¨G�BAL«¦ÒG¬Z G­)¢¤¯�ª£«¦¬[ G�¸§¤�Õ«.¬[©v�Ú«¦ÒG�� u�Õ¬Zª��@Ò[ =�7¥�­¦�ÕÒG�Q©s«¦ÑCAL«)§¤¨ Ð ­¦¬[ D ÐFE DHG ­)§IAZ«¦§�¨�AZ«.ÒG¬[ G­¦¢��@�I©I°

Page 48: Fundamentals of Computational Fluid Dynamics.pdf

¥�? Ç^È�ÉZÊcËmÌXÍÏÎ5ЫÑLÒÔÓ�Ò3ËmÌPÕzÖZÒÔÑ^Ñ^ÌXÍ�ÌPÓMÇ^Ì«ÉZÊXÊXÍ�×jØZÒBÙ�Éc˧ÒW×uÓZÚ`�a�ßõa$J w jLKupsrM� gN��KupsrPOÂw]r�Ø�psrRQ:tSKup+�xpR}�f0$@9%'*-,9*S6� )q�#&@9%';M#�qu,9.10�;R03"3#� 1D¬D103@R*->868,/*T>&0�"36� ¬6�O-;9#�YV0�0C68;9*:OTE)D103@R*->&0$DÅYoE�%'0C6� 1;M#�q�6tm6?ENO-#&@�,�6�YFO:0�\X¤7#&@u0�aF6�%�QFO:0� ��� ²Ý�äå¦ � ù ÁeæB¦�àC¦ � àC¦?çÔû P�" � ¦

îUß � ÁeæÔ¦&àN$ � àC¦Iç ²ÝUø J ²�)º O � æz¥F\@� � ç*:;h\�æ�îUß U çP68 1Dd%�6�÷�0$;_41;R0c#�qh#& 1OTE[,/@9*-D1*S68<&#& 76�OF#&Qs0$@/68,9*:#& F;3\L�£,v;9.F#&41O:D�Ys0�%'03 o,/*-#& 103D',/.76l,,/.F0f;RQ1O:*- 10c68Q1Q1@9#Cab*:%�68,9*:#& `*:;X#& F0�q�#&@R% #�q�6wÜL6�D�<0c%�68,/@R*Ta`D1*Tgh0$@90$ 1"30f#&Qs0$@/68,9#&@3\m�£,_*-;v<�*->&0$ YoE � ��� ²Ýeäÿ��ùýÁeæB¦�à/�1àC¦Iç!û P�" � ¦

îUß � ÁeæB¦�àN$ � àC¦Iç ²ÝMø J ²�¦º O � æz¥F\@��¥oçY14F,M*-,9;=#&@RD103@=#�q+6�"$"341@96�"$E*:;w#& 1OTE \�æzîUß � ç�\f��#?( %U41"�.H,9.1*:;=@903DF41"$,9*:#& �*- �6�"$"341@96�"$E)*-;#�gs;90W,+Y5E�,/.10�*- 1"3@R0C6�;R03D�<&O-#&Y76�OV"3#& o,9*: 541*-,!EdY141*-O-,v*: o,/#`6U;RQ1O:*- 10cn1,u*-;� 1#�,�÷N F#I(+ h\P�0� 1#�,90,/.168,=,9.10';9Q1O-*: 10[n1,=#�qu6�n7@9;B,MDF03@9*T>868,/*T>&0`*:;K*:DF03 o,/*-"C6�Oj,/#�6� oEk#�q�,9.10'0WabQ1@90$;9;R*:#& 1;M*: �X25;$\¥F\ �!?U,/#'¥F\@�b¦&\

i�n1 76�O�(v#&@9D�#& f��03@R%�*T,/*S68 �6�Q1Q1@R#?ab*-%d68,9*:#& F;3\v�_O:036�@9OTE�,/.10WE�.76C>&0=6� �68DF>86� o,�6�<&0K#?>&0$@¥lr£Qs#&*- o,[ô�6�<&@96� 1<&*:6� H;R"�.103%'03;`YV03"C6841;90�#�q+,/.F03*:@=*: 1"$@9036�;90$D©68"3"34F@/6�"WE&\ ��#?(_0W>&03@$J�6�%'#&@90;94FYF,/O-0UQs#�*: o,c*-;f,9.768,c,9.10$E�<&0W,c,/.F*:;c*- 1"3@R0C6�;R0U*: �6�"3"$41@/6�"WE�4F;9*: F<�*: Fq�#�@9%�68,/*-#& e,/.768,c*:;f;R,/*-O:OO:#N"C68Oh,/#[,/.F0wQV#&*- 5,u(+.F03@90K,/.F0wDF03@9*T>868,/*T>&03;�6�@R0KYs0$*: 1<`0$>86�O-4768,903D�\X�! �6�Q1Q1O-*:"C6l,/*:#� �JN,9.1*:;+"36� YV0c6�Db>�68 5,/6�<&0$#&41;v68,PYs#&4F 1D76�@R*:03;P6� FDd*: `,/.F0�>N*:"$*: 1*T,!EU#�qh;R,90303Qd<&@/6�DF*:03 o,9;3\^�£,v*:;X#&Yo>N*:#&4F;3J5#�q"3#�41@9;R0�JF,9.768,Pn1>&0ZQV#&*- 5,v;9"�.F03%'03;u41;R*: 1<Mô§68<&@/6� F<&*S6� �6�Q1QF@9#Cab*:%�68,/*-#& 1;X"C6� dYs0fD103@R*->&0$D�,/.76l,.76C>&0�,/.10+;96�%�0�#&@RD103@X#�q�6�"3"$41@/6�"WE'6�;X,/.10�%�0W,/.1#ND1;X<&*T>&03 '*: Ë�j25;3\b¥F\ ��?w68 1D�¥F\@� � JoYF4F,v,9.10$E(+*:O-O1.76C>&0c6K(+*-D103@X;RQ1@9036�Dd#�qh;9Q768"30c*- 1D1*-"303;$\L�! �Q76�@R,9*:"$41OS6�@$J&,!(_#Mô�6�<&@/68 1<&*S68 [;9"�.10$%�0$;v(+*-,9.,/.F0Z;/6�%'0c#�@9D10$@�#�q§6�"$"341@96�"$E�6�@90Uæ�.10$@90c(v0�*:<& F#&@90�,/.10ZQF@9#&Y1O-03% "3@R0C68,903DeYoEd,9.10ZYV#&41 1D16�@RE"3#� 1D1*-,9*:#& F;3J76�OT,/.1#�41<&.�,/.F*:;u*:;u#� 10K#�qm,9.10KQ1@9*- 1"3*-Q76�O�*-;9;R4103;+*: �6�QFQ1O-EN*: F<`,9.103;R0K;9"�.10$%�0$;�çWÛ ²Ý ß $ ¦

¦ � îUß ÁkÜNæB¦&à5$�?Fà � à�?FàN$w¦Iç ²Ýdä×\ðJ9îUß�U O æz¥F\@�8�5ç�� ²Ý ß � $ ¦

¦ � î[ß � ÁkÜNæ£$w¦&àC¦?�bàN$c¥ � àC¦?�Fà5$=¦Iç ²Ý�ä<\ðJ9îUß�U O æz¥F\@���&ç­�®UT ¸eÃëîAÀP¹$±�ÀWVóÀXÀXÃ'ÀE/ ¶�´YX¦ó�²^¹C²�! �#�@9D10$@f,/#';90$O:0$"$,�6`n7 1*T,/0Wr£D1*-gs03@R03 1"$0=;R"�.103%'0=q�#�@c6'<&*->�03 �68Q1Q1O:*-"C68,9*:#& �#& F0=%U4F;R,fYs0M6�Y1O:0,/#=6�;R;903;R;v,9.10�6�"3"$41@/6�"WE'#�qs,9.10�"C6� 1DF*:D768,90+;9"�.10$%�0$;3\Xtu.10f6�"3"$41@/6�"WE`#�q�68 �#&QV03@968,/#�@j*:;X#�q|,/0$ 0WabQ1@R03;R;903DH*: �,/0$@9%';�#�qP,/.10[#&@RD103@�#8qv,9.10[O:036�D1*: F<e03@9@R#&@c,903@9%pD10$,903@9%'*: F03DAq�@9#&%p6�tL6CENO:#�@,�68Y1O:08\L�ª.1*:O-0�,9.1*:;P*:;_6M41;R0$q�41Os%�036�;941@R0�JN*-,vQ1@9#?>N*:DF03;u6=q�68*:@9OTE[O:*-%�*T,/0$D'DF03;9"$@9*-QF,/*-#& �\j¤741@B,/.10$@*: bq�#&@9%�68,/*-#& 6�Ys#�4F,U,/.F0e03@9@R#&@UYV03.76C>N*:#�@U#�qf6�n7 1*T,/0Wr£D1*-gs03@R03 1"$0�;9"�.F03%'0e"C6� ¬YV0�#&YF,/6�*: 10$D41;R*: 1<'¤7#&41@R*:03@u0$@9@R#&@+6� 76�OTEN;9*:;$\

Page 49: Fundamentals of Computational Fluid Dynamics.pdf

ÎNÐ[Z5ЫÑP×ÓèmÍ+ÒÔÌXÍóÌXÍfÍZ×+ÍóÉcÓfÉ]\RêXÚNÒBÚ ¥�D`�a$JÉaIc 6×y�y�ã£g�tv|%j�g�eki�j�e |^Qõyu|%j�g�|�ã,wzy{psr�|%j�e7ric `68@9Y1*T,/@/68@RE=Qs0$@9*:#ND1*-"Pq�41 F"$,/*-#& ["C68 [Ys0uD10$"3#&%'QV#&;90$D[*: o,/#�*T,/;^¤7#&4F@9*:0$@L"$#&%�QV#& 10$ o,/;3J&(+.F*:"�.6�@R0�*- ',9.10uq�#&@9% þ �[_ � Jo(+.103@R0�`d*-;^,/.10+(�6C>�03 541%UYV03@$\P�£,v*:;^,9.103@R0$q�#&@R0f#8q�*: o,903@90$;R,P,/#K0WaF6�%'*: F0.1#?( (_0$O:OL6�<&*->�03 �n7 1*T,/0�r!D1*Tgh0$@903 F"30U#&QV03@968,/#�@Z6�Q1QF@9#Cab*:%�68,/0$;cD10$@9*->868,9*->�03;Z#�q7þ �a_ � \Z�H0M(+*-O:O"3#� 1"30$ 5,9@/68,90�Jb.103@R0�JF#� �n7@R;R,�DF03@9*T>868,/*T>&0f6�Q1Q1@R#?ab*-%d68,9*:#& F;3J56�OT,/.1#&4F<&.',9.10Z68 76�O-EN;R*:;P*:;P0325476�O-O-E6�Q1QFO:*:"36�Y1O-0c,/#`.1*-<&.103@uDF03@9*T>868,/*T>&03;$\

tu.10w0WaF6�"$,+n7@R;R,�D10$@9*->868,9*->�0�#�q�þ �[_ � *:; þ �[_ � ß äcb$`�þ �[_ � æz¥F\@���oç�£q�(v0d68Q1Q1O-E�J§q�#�@w0�aF6�%�QFO:0�Jm6�;903"$#& 1Dbr£#&@9DF03@M"$03 o,/0$@90$D�D1*-gs03@R03 1"$0d#&QV03@968,/#�@K,9#�ÝNí[ä�þ �[_ ��d J(+.10$@90KßNíuä«ê5îUß�J1(_0w<&0$,

æ�� � ÝVç�í ä ÝNí9ü#"R$ÅÝNí)P�"� îUß

ä þ �[_Ue � � í9ü#"�� $ þ �[_Ue � � í�P�"��� î[ß

ä æ�þ �a_/e � $ þ P �[_Ue � çIþ �a_ �� î[ß

ä ¦� îUß ùTæ�"3#�;S`ëîUß'ø8bo;9*- f`ëîUßsç�$ªæ�"3#&;S`7îUß $gbo;R*: f`7îUßsçÔû þ �[_ �

ä b ;R*: f`7îUßîUß þ �[_ �

ä b$`Lh�þ �[_ � æz¥F\@��'&ç(+.10$@905` h *-;§,9.10_%'#ND1*-n70$Dw(_6C>&0$ N4F%UYs0$@3\jtu.10v%�#ND1*Tn703DK(�6C>�03 541%UYV03@j*-;m;R#Z 76�%'03D=Ys0$"C6�41;R0*-,m6�QFQs036�@9;�(+.103@R0v,9.10P(_6C>&0$ N4F%UYs0$@3Ji`�J86�Q1QV0C6�@R;m*- w,9.10v0�aF6�"$,L0WabQ1@90$;9;R*:#& �\Ltu.N4F;m,/.F0vD10$<&@90$0,/#f(+.1*:"�.[,/.F0�%�#ND1*Tn703Dw(�6C>&0$ 541%UYV03@P6�Q1Q1@R#CaF*-%d6l,/03;§,/.10�6�"$,9476�Ob(_6C>&0$ N4F%UYs0$@X*:;^6Z%'0C68;941@R0#�q§,/.10w6�"$"341@96�"$E�#8qm,9.10w6�Q1Q1@R#?ab*-%d68,9*:#& h\

¤7#&@�,/.10A;R03"$#& 1Dbr£#&@9D10$@�"$03 o,/0$@90$D D1*Tgh0$@903 F"30k#&QV03@/6l,/#&@d,9.10k%�#ND1*Tn703Dº(_6C>&03 541%MYs0$@�*-;<&*T>&03 �YoE

`Lhvä ;9*- f`ëîUßî[ß æz¥F\@�L?oç

òf#8,/0�,/.76l,j` h 6�Q1QF@9#Cab*:%�68,/0$;f`�,/#`;90$"3#& FDbr!#&@RD103@f6�"$"341@96�"$E�Jë6�;+*:;�,/#'YV0�0WabQs0$"$,903D�JV;9*- 1"30;R*: f`7îUßîUß äk`Ó$ ` T î[ß �

� ø W5WNW�j254768,/*-#& ÿ¥F\��Z?¬*-;�Q1O:#�,R,/0$Dð*- ¤m*:<&41@R0k¥F\ �1JZ6�O-#& 1<Å(+*-,9.ÿ;R*:%'*:O:6�@�@R03O:68,/*-#& 1;�q�#&@e,/.F0);B,�6� NrD76�@RDdq�#&41@B,/.br£#&@9DF03@P"303 o,903@90$D�D1*-gs03@R03 1"$0Z;9"�.10$%�0Z6� 1Dd,9.10fq�#&4F@R,/.Nr!#&@RD103@vÜL6�D�<0Z;9"�.10$%�08\Xtu.10

Page 50: Fundamentals of Computational Fluid Dynamics.pdf

� � Ç^È�ÉZÊcËmÌXÍÏÎ5ЫÑLÒÔÓ�Ò3ËmÌPÕzÖZÒÔÑ^Ñ^ÌXÍ�ÌPÓMÇ^Ì«ÉZÊXÊXÍ�×jØZÒBÙ�Éc˧ÒW×uÓZÚ

0 0.5 1 1.5 2 2.5 30

0.5

1

1.5

2

2.5

3

κ x∆

κ* x∆

2 Centralnd

4 Centralth

4 Padeth

¤L*-<&41@90K¥b\ �1Û ��#bD1*Tn703De(_6C>&03 541%MYs0$@fq�#&@�>86�@R*:#&41;u;R"�.103%'03;$\0WabQ1@R03;R;9*:#� ¬q�#�@M,/.10d%�#ND1*-n103DH(_6C>&03 541%MYs0$@'QF@9#?>N*:D10$;U,/.10e68"3"34F@/6�"WEH(+*-,9.�(+.1*:"�.¬6�<�*->&0$ (_6?>�03 541%UYV03@K"$#&%�QV#& 10$ o,�#�qj,/.F0U;9#&O-4F,/*-#& �*-;c@90$;9#&OT>&0$Dkq�#�@f,/.F0U03 o,/*-@90M(_6C>&0$ N4F%UYs0$@K@/6� 1<�06C>86�*:O:6�Y1O:0f*: �6[%�0$;9.�#�qL6`<�*->&0$ �;R*:�$0�J �ml `ëîUß l �j\

�! �<�03 10$@/6�OzJFn7 1*T,/0Wr£D1*-gs03@R03 1"$0K#&Qs0$@/68,9#&@9;u"36� �Ys0�(+@9*T,9,903 �*: e,/.F0Kq�#�@9%æ�� � ç�í+ä æ�� �� çzí^øÿæ�� %� çzí

(+.10$@90�æ�� �� ç�í=*-;�6� )6� o,/*-;REN%�%'0$,9@9*-"M#&QV03@968,/#&@Z6� 1D©æ�� %� çzíw*:;K6�;REN%'%�0W,/@R*:"U#&QV03@968,/#�@3\ U �£qv(v0@90$;R,9@9*:"W,�#&41@u*: o,903@90$;R,+,/#`;R"�.103%'03;f0WaN,/0$ 1D1*: F<'q�@R#&%Ïê½$¬¥[,9#wêZø©¥bJ1,/.10$ æ�� �� Ýsç�íuä ¦

îUß ù¸��"3æ�ÝbíRü#"R$ÅÝNí)P�"Bç�ø~� � æ�ÝNí9ü � $�ÝNí�P � ç�ø]� T æ�ÝbíRü T $�ÝNí)P T ç!û6� 1D

æ�� %� Ýsçzí�ä ¦îUß ù � ä/ÝNíjø � "Wæ�ÝNí9ü#"hø¬Ýbí�P�"Bç�ø � � æ�ÝNí9ü � øÆÝNí�P � ç�ø � T æ�ÝNí9ü T øÆÝNí�P T çÔû

tu.10w"3#&@R@90$;9QV#& 1D1*- 1<`%�#ND1*-n103D�(_6?>�03 541%UYV03@f*:;b$`Lh ä ¦

î[ß ù � äLø � æ � "N"$#&;n`ëîUß[ø � � "3#&; � `7îUßUø � T "3#&;ë¥F`7îUßsçø � b�æ���"b;R*: j`7î[ß[ø]� � ;9*- � `7î[ß[ø]� T ;9*- f¥o`ëîUßsç æz¥F\@�LDoçp > ¬:§¤�£¢¤Ô�©#«¦Ñ�­kª��@¢¤ª£ÒG�@­¦¬5§#Ô�­�§¤¢��rqF«¦®L�£¢b­�§¤«¦¢nsBtN§�¨G��­¦¬.§¤�@©�¯NÔÉÔk�£§�¢¤�@ªR®[­)¢�§��@©Ú«/AG§¤­)�@¬G�Q �Ñ�¢¤«¦Ôcuvsxw-s+yCz E/{­)¬Z F§¤¨G��©�¯NÔÉÔÉ��§¤¢���ª�®[­)¢�§�Ñ�¢�«.Ô|uvs3}~s y z EU{ °

Page 51: Fundamentals of Computational Fluid Dynamics.pdf

ÎNÐ[Z5ЫÑP×ÓèmÍ+ÒÔÌXÍóÌXÍfÍZ×+ÍóÉcÓfÉ]\RêXÚNÒBÚ �1¦�ª.10$ w,9.10^n7 1*T,/0Wr£D1*-gs03@R03 1"$0j#&QV03@/6l,/#&@�*-;�6� o,/*-;REN%'%�0W,/@9*-"uæ�"303 o,903@90$DëçWJl,/.10j%'#ND1*-n70$Dc(_6?>�03 541%[rYV03@_*-;vQF41@90$O-E'@9036�O�\§�ª.103 �,9.10c#&QV03@968,/#�@v*- 1"3O-41D103;_6=;BEb%'%'0$,/@R*:"�"3#&%'QV#& 103 o,3JN,9.10c%'#bDF*-n70$D(_6?>�03 541%UYV03@�*:;`"3#�%�Q1O-0WasJj(+*-,9.Æ,9.10�*:%�6�<&*: 16�@RE)"3#�%�QV#& 10$ 5,'YV03*- 1<k03 o,/*-@903OTEÅ03@R@9#&@$\¬tu.10q�#&41@B,/.br£#&@9DF03@+ÜL68D�<0=;R"�.103%'0K*:;+<&*T>&03 �YoE

æ�� � ÝVç�í)P�"�øÆ�7æ�� � ÝVçzíjøÿæ�� � Ýhç�í9ü#"^ä ¥îUß æ�ÝNíRü#"R$ÅÝbí�P�"Bç

tu.10w%�#ND1*Tn703D�(_6C>&03 541%MYs0$@fq�#&@�,9.1*:;u;R"�.103%'0=;968,/*-;Rn70$; Vb�`�h�þ P �a_/e � ø¬�ob$`Lhmø�b�`�hQþ �[_Ue � ä ¥

îUß æ�þ �[_Ue � $áþ P �[_Ue � ç(+.1*-"�.�<&*T>&0$; b�`�h_ä ¥Hbo;9*- f`7î[ß

æ � ø¬"3#&;S`7îUßsçRîUßtu.10[%'#bD1*Tn703D�(�6C>�03 541%UYV03@KQ1@R#I>N*-D103;K6d4F;90$q�4FOL,/#N#&O�q�#&@Z6�;R;90$;9;9*- 1<eD1*Tgh0$@903 F"30`6�Q1QF@9#Ca5r

*:%�68,9*:#& 1;$\��! ),/.10'"3#� 5,90WaN,U#8q�,/.10'O:*- 10C68@�"3#& o>&0$"$,9*:#& �0$254768,/*-#& �J�,/.10�03@R@9#&@R;="36� HYV0�<�*->&0$ 6dQ1.oEN;9*-"C6�O§*: o,903@9QF@90$,/68,/*-#& �\c�_#& 1;R*:D10$@c#& 1"$0[6�<o68*: �,/.10=O:*: F0C6�@�"3#& o>�03"$,9*:#& A0$254768,/*-#& �*- �,/.F0q�#&@R% Ý Þ ø]� Ý ß ä �#& ¬6�DF#&%d68*: H0�aN,/03 FD1*: 1<Aq�@R#&% $�� ,/#�� \��+03"36�O:OXq�@9#�%Ä�N03"$,9*:#& � \ ¥F\ � ,9.768,`6�;R#&O:4b,/*:#� *: F*-,/*:68,/0$D�YoE�6[.76�@9%'#& 1*-"cq�41 1"W,/*-#& e(+*-,/.e(_6C>&03 541%MYs0$@�`�*-;

ÝLæ|ß�à9ÞRçjä��^æ|ÞRçIþ �[_ � æz¥F\ � � ç(+.10$@90��^æ�ÞRç_;968,/*-;Rn70$;+,9.10=]�ã�� � �� Þ ä¼$fbb�i`���b#&OT>N*: 1<Uq�#&@f�Læ�ÞRçu6� 1D�;94FY1;R,9*-,/4b,/*: F<'*- o,/#ë�j2V\ë¥b\ � � <&*T>&0$;+,9.10K0WaF6�"W,c;R#&O:4F,9*:#& �68;

ÝLæ|ß�à9ÞRçjä��^æ � çIþ �a_ � � P¡� ��£qj;90$"3#& FDbr!#&@RD103@�"30$ o,/03@R03DAD1*Tgh0$@90$ 1"30$;c6�@R0M68Q1Q1O:*-03De,/#',/.10w;9Q168,/*:6�Oh,/0$@9%�J7,/.10Kq�#&O:O-#?(+*: 1<

]�ã��©*-;u#&YF,�68*: 10$D�q�#�@f�^æ�ÞRç�Û � �� Þ äX$fbb� � ;9*- f`ëîUßî[ß � ��äX$fbb�i` h �

�IÍ «¦§���§¤¨[­�§�§¤�£¢¤Ô�©7©�Ò[ªb¨Ï­¦©5u���� Ð z��N� � ­)¢¤��¨[­¦¬[ =�@�I YAN¯½�@��§�§��@¬@?���� Ð3�8� �"�$����� ���L� ­¦¬[ q�£¥�­¦�ÕÒ[­)§��@¬@?u§�¨[�©�¨G�¸Ñ §s�@¬5�Z°

Page 52: Fundamentals of Computational Fluid Dynamics.pdf

� � Ç^È�ÉZÊcËmÌXÍÏÎ5ЫÑLÒÔÓ�Ò3ËmÌPÕzÖZÒÔÑ^Ñ^ÌXÍ�ÌPÓMÇ^Ì«ÉZÊXÊXÍ�×jØZÒBÙ�Éc˧ÒW×uÓZÚ�b#&OT>N*: 1<�,/.F*:;v]�ã��0WaF6�"W,/OTE�æ�;9*- 1"30u(v0Z6�@R0+"3#& 1;R*:D10$@9*- 1<�,/.10�03@R@9#&@jq�@9#�% ,/.10+;RQ768,/*:6�Oë6�Q1QF@9#Ca5r*:%�68,9*:#& �#� 1O-EFç�6� 1D�;R41Y1;R,9*-,94F,/*- 1<`*: o,/#ë�j2ë\s¥b\ � � JF(_0K#&Yb,�6�*-

Ý N4F%�0$@9*:"36�O æ�ß�àRÞRçPäk�^æ � ç£þ �[_ � � P¡��� � æz¥F\ �F¦Iç(+.10$@90�� h *:;P,/.10f 541%�0$@9*-"C6�OLæ�#&@P%'#bD1*Tn703D7çXQ1.16�;90Z;RQs0$03D�Jb(+.1*:"�.e*-;v@R03OS6l,/03D�,/#M,9.10c%'#bDF*-n70$D(_6?>�03 541%UYV03@fYoE � h� ä ` h`¤7#&@�,/.F0=68Ys#?>&0K0�a168%�Q1O-0�J � h� ä ;9*- ]`7îUß`7îUß

tu.10P N4F%�0$@9*:"36�O�QF.76�;90P;9QV030$D=*-;�,/.10X;RQs0$03D=68,�(+.1*:"�.=6u.76�@R%�#& F*:"Lq�41 F"$,/*-#& �*:;�QF@9#&Q768<o68,/0$D 541%'03@9*-"C6�O-O-E�\ �b*- 1"30f� h HZ� l ¦�q�#&@',/.1*-;d0WaF6�%'Q1O-0�J�,/.F0A N4F%�0$@9*:"36�O�;9#&O-4F,/*-#& «Q1@R#&Q76�<&68,/0$;,/#N#e;9O-#?(+O-E&\[�b*: 1"$0ë� h *:;K6�q�41 F"$,/*-#& A#�qP,/.10[(_6C>&03 541%MYs0$@3Jm,9.10[ 541%'03@9*-"C6�O^6�Q1Q1@R#?ab*-%d68,9*:#& *: o,9@9#ND141"30$;dD1*-;9QV03@R;9*:#� �Ju6�OT,/.1#&4F<&.Æ,9.10�#�@9*:<�*: 76�O+ÜXã��Ï*-;� 1#� 1D1*:;RQs0$@9;R*->&08\ÿif;�6H@R03;R41O-,3Ju6(_6?>�0$q�#&@R%¡"3#& 1;R*:;B,/*: F<�#�q�%d6� oEADF*-gs03@90$ o,=(_6C>&03 541%MYs0$@U"3#&%'QV#& 103 o,9;=0W>&03 o,9476�O:OTE)O:#&;R03;K*-,9;#&@R*:<&*- 76�Oëq�#&@9%�\

¤L*:<�41@90u¥b\��c;R.1#?(+;X,9.10u 541%'03@9*-"C6�ObQ1.76�;R0+;9QV0303D[q�#&@m,/.10u;R"�.103%'03;P"3#& F;9*:DF03@90$D`Q1@90W>b*-#&41;RO-E&\tu.10� 541%MYs0$@M#�q_�7�ly|�7x|�K�7}W��èP�H��}W :}W�N��x|�æ�����  ç�YoEk(+.1*-"�.¬6�<&*T>&03 (�6C>&0e*-;=@R03;R#&O->�03D�*-;<&*T>&03 ÅYoE � �RHo`7îUß�\tu.10e@R03;R#&O->N*: F<A0$¨'"3*-03 1"WEÅ#�q�6�;9"�.F03%'0�"36� ¬Ys0d0WabQ1@90$;9;R03D«*- �,/0$@9%';#�q�,/.10¡����  @90$2541*:@R03DÅ,/#)Q1@9#ND141"$0�03@9@R#&@9;[YV03O-#?(µ6A;9QV03"$*-n70$D©O-0$>&0$O�\Ť7#&@[0�aF6�%�QFO:0�JX,/.F0;90$"3#& FDbr!#&@RD103@d"303 o,903@90$DªD1*-gs03@R03 1"$0�;9"�.10$%�0A@R032541*-@903;ô? � ����  ,9#HQ1@R#bD14F"30A6� 0$@9@R#&@d*- Q1.768;90U;RQs0$03DA#�qXO-03;9;�,/.768 � \T¦UQs0$@9"$03 o,C\Ztu.F0Ó�Ir!QV#&*- 5,+q�#&4F@R,/.Nr!#&@RD103@f"303 o,903@90$Dk;9"�.10$%�0[68 1D,/.F0�q�#&41@R,9.br!#�@9D10$@`ÜL6�D�<0�;R"�.103%'0�@9032541*-@90A¦G��68 1Dª¦ � ����  @903;RQs0$"$,9*->&0$O-E�,9#k6�"�.1*-0$>&0�,/.F0;/68%�0�0$@9@9#�@�O-0$>�03O�\

¤7@9#&% ,/.10Zq�#&@R%�#�q&�j2ë\ë¥F\ �F¦&Jb(v0K;90$0K,9.768,u,9.10�@9036�O�Q76�@B,+#�q§,/.10�%'#bDF*-n70$D�(�6C>&0$ 541%UYV03@O:036�D1;',/#Å6� 0$@9@R#&@d*- «,/.10�Q1@9#&Q16�<o68,9*:#& ©;9QV0303DhJ�(+.1*-O:0�,/.10�*:%�6�<&*: 16�@REÅQ16�@R,eO-0C6�DF;�,/#�6� 03@R@9#&@v*: d,9.10�6�%'Q1O-*-,/4FD10+#�q�,/.10c;9#&O-4F,/*-#& �\Ltu.541;�,9.10Z68 5,9*:;BEb%'%'0$,/@R*:"�Qs#�@R,/*-#& d#8q�,/.10Z;RQ768,9*S6�OD1*Tgh0$@903 F"30+#&QV03@/6l,/#&@jD10W,/0$@9%'*: 10$;^,/.10+03@R@9#&@j*- `;9QV0303Dd6� 1D[,/.F0�;BEN%�%'0$,9@9*:"_Qs#&@B,/*-#& U,/.10+0$@9@9#�@*: �6�%'Q1O-*-,/4FD10�\mtu.1*:;+*:;�q�4F@R,/.F03@+D1*:;R"341;R;90$D�*: ��b0$"$,9*:#& )¦&¦&\ � \

­�®£¢ ½ ¹$¿Å±�Àj±�¶AÁ+± ^�+±�Àj´=»^Ã'ÀX² ´w»W¤ ÃëîA¶A·�´MÀP¹$±�²ic;�D1*-;9"$41;9;R03D *- ÿ�b03"W,/*:#� ÿ¥b\ ¥F\ � Jc6¬%�68,9@9*Ta«D1*Tgh0$@903 F"30k#&QV03@/6l,/#&@�*- 1"3#�@9QV#&@/68,903;eYV#�,/.ª,/.F0D1*Tgh0$@903 F"30�68Q1Q1@9#Cab*:%�68,9*:#& k*: ),/.10�*: o,/0$@9*-#&@K#�q�,/.F0dD1#&%�6�*- 68 1DH,/.168,U6l,=,9.10dYV#&41 1D16�@9*-03;3\�! �,9.1*:;f;903"W,/*-#& �Js(v0U"$#& 1;9*-D103@f,/.10=Ys#&4F 1D76�@BE�#&QV03@968,/#�@9;c F0303DF03DAq�#&@�#&41@c%'#ND103O§03254768,9*:#& F;q�#&@+"3#� 5>�03"W,/*:#� A6� 1D�D1*-gs41;9*-#& �\P�! �,9.10="36�;90=#�q^QV03@R*:#ND1*:"�YV#&41 FD76�@RE�"$#& 1D1*T,/*-#& 1;3J7 F#d;9QV03"$*S6�OYV#&41 1D768@REe#&QV03@968,/#�@9;+6�@R0w@R032541*-@903Dh\

Page 53: Fundamentals of Computational Fluid Dynamics.pdf

ÎNЦ¥oЫÖZÒÔÑLÑ^ÌXÍfÌXÓUÇ^Ìó×+ÊXÌXÍ+ÉcË_×+ÍfÚeÉcË8§�×ÓèmÓfÖ�ÉcÍ�ÒÔÌPÚ �o¥

0 0.5 1 1.5 2 2.5 30

0.2

0.4

0.6

0.8

1

1.2

κ x∆

2 Centralnd

4 Centralth

4 Padeth

aa

*_

¤L*-<&41@R0K¥F\��NÛ òf41%'03@R*:"C68OhQ1.768;90w;9QV0303D�q�#&@�>86�@9*-#&41;u;R"�.103%'03;$\`�a�¨�aIc ögKupR�ëgIiups|�r à ekiª©hpRtÚj�g�eki�«­¬:âu|%j�g£ehi�+0$q�03@R@9*- 1<�,9#e�b0$"$,/*-#& � \ ¥FJë,/.F0MYV#&41 1D768@RE�"3#� 1D1*-,9*:#& F;�q�#&@+,/.F0MO:*- 10C68@�"$#& o>&0$"$,/*-#& �0$2N4168,/*-#& "C68 dYV0f0$*-,/.F03@XQs0$@9*-#bD1*-"u#&@X#�q�*- FG7#?(�r!#&4b,9G7#?(«,!ENQV0�\j�! ',/.10�OS68,R,/0$@P"36�;908JF6=ãZ*:@R*:"�.1O-0$,jYV#&41 1DNr6�@BE�"3#� 1D1*-,9*:#& �*:;Z<�*->&0$ )68,Z,/.F0[*: FG7#?(�YV#&41 1D768@RE&J�(+.F*:O:0= 1#e"3#� 1D1*-,9*:#& �*:;Z;RQs0$"3*-n103D)68,�,/.F0#&4F,RG7#?( YV#&41 FD76�@RE�\q��03@90U(v0'6�;9;R41%'0U,/.768,c,/.10U(_6C>&0';9QV0303D ��*:;�QV#&;9*T,/*->�0���,9.N4F;Z,/.10[O-0$q|,Rr.76� FD)YV#&41 FD76�@RE�*:;c,9.10`*: FG7#?(åYs#�41 1D76�@BE&J�6� FDk,9.10`@9*-<&.o,Rr!.16� 1DAYV#&41 1D768@RE�*-;Z,/.10[#�4F,9G7#?(YV#&41 1D768@RE&\Xtu.541;+,/.10�>�03"$,9#&@�#�qL4F 1÷5 1#?(+ 1;f*-;²ÝeäÏù Ý�"�à+Ý � à W5WNW à+Ý�Å=û Æ æz¥F\ � � ç6� 1D�Ý�ä+*:;u;9QV03"$*-n70$D�\

�_#& 1;R*:D10$@^n7@9;B,^,/.10_*: FG7#?(ÆYV#&41 1D768@RE&\m�£,j*:;m"3O-0C6�@L,9.768,^6�;^O:#� 1<�6�;L,9.10�*- 5,903@R*:#&@§D1*-gs03@R03 1"$06�Q1QF@9#Cab*:%�68,/*-#& DF#b0$;M 1#�,M0WaN,/0$ 1DÅYV0$E&#� 1D¬Ýbí�P�"�JL,9.103 H 1#�;9QV03"$*S6�OX,/@R0C68,9%�0$ o,U*:;w@90$2541*:@R03Dq�#&@�,9.1*:;uYV#&41 1D16�@RE�\v¤7#&@u0�aF6�%�QFO:0�Jb(+*-,/.�;R03"3#� 1Dbr!#�@9D10$@f"$03 o,/0$@903D�D1*-gs03@R03 1"$03;+(_0w#&YF,/6�*: � ��²Ý�ä »,²Ý[ø J ²�¦º O æz¥F\ �&¥oç(+*-,9.

» ä $w¦� îUß ³´´´´µ� ¦$w¦ � ¦$w¦ � ¦\ \ \

¶ ····¹ à J ²�)º O ä $w¦� îUß ³´´´´µ

$��� \\\

¶ ····¹ æz¥F\ ���5ç

Page 54: Fundamentals of Computational Fluid Dynamics.pdf

�&� Ç^È�ÉZÊcËmÌXÍÏÎ5ЫÑLÒÔÓ�Ò3ËmÌPÕzÖZÒÔÑ^Ñ^ÌXÍ�ÌPÓMÇ^Ì«ÉZÊXÊXÍ�×jØZÒBÙ�Éc˧ÒW×uÓZÚ�f#?(v0$>�03@3Jc*-q�(v0)4F;90�,/.F0�q�#&41@R,9.br!#�@9D10$@�*: o,/0$@9*-#&@d#&QV03@968,/#�@�<&*->�03 *- C�X2ë\u¥b\��8�FJ+,9.103 ª,/.F06�Q1QF@9#Cab*:%�68,/*-#& e68,PêMäå¦K@9032541*-@90$;f6U>86�O-410Z#�qmÝNí)P � J1(+.F*:"�.�*:;u#&4b,/;9*-D10Z,/.F0wDF#&%d68*: �\���03 1"$06�D1*-gs03@R03 o,w#&Qs0$@/68,9#&@K*:;K@90$2541*:@R03D�6l,cê�ä ¦`(+.1*:"�.0WaN,/0$ 1D1;=#& 1O-E�,/#�êë$ÿ¦&J§(+.F*:O:0[.16?>N*- 1<,/.F0Z6�Q1QF@9#&Q1@R*S68,90f#�@9D10$@_#�q�68"3"34F@/6�"WE&\v�b41"�.�6� �#&QV03@/6l,/#&@$Jb÷5 1#?(+ �6�;_6d�7¢b{d}W��y��9�� #ÀW�l¢N�V�o���W��?���7}W{d}WJP"C6� ©.76C>&0�68 «#&@RD103@`#�qZ6�"3"$41@/6�"WE¬(+.1*:"�.©*:;��l�h}A�l�R�N}W�e :�lè_}W�M,/.768 ©,/.168,'#�qZ,/.F0*: o,903@9*-#&@c;R"�.103%'0�J�68 1DA,/.10U<�O:#&Y768OL6�"$"341@96�"$E�(+*:O:O§03254768OL,/.76l,�#�qj,/.F0[*: o,/0$@9*:#�@c;9"�.F03%'0�\U¤7#&@0WaF6�%'Q1O-0�JF(+*T,/.�q�#&41@B,/.br£#&@9DF03@�"$03 o,/0$@903D�D1*-gs03@R03 1"$03;$J1(_0K"C68 �4F;90�,/.10Zq�#�O:O:#?(+*- 1<=,9.1*:@RDbr!#&@RD103@#&QV03@968,/#&@+6l,Pê[ä�¦&Û

æ�� � Ýsç " ä ¦�&îUß æ�$ � Ý�ä�$¬¥�Ý�"høÆ��Ý � $ÅÝ T ç æz¥F\ �!�&ç

(+.1*-"�.d*:;X036�;9*-O-EUDF03@9*T>&0$Dd41;R*: 1<=6wtm6CENO:#&@j,�68Y1O:08\^tu.10�@903;R41O-,9*: 1<KD1*Tgh0$@90$ 1"30�#&QV03@/6l,/#&@X.76�;X,/.F0q�#&@R%�#�q%�j2V\V¥F\ �&¥U(+*-,9.

» ä $w¦¦ � îUß ³´´´´µ

$f� ¦ � $ �$õ? � ? $=¦¦ $õ? � ? ¦\ \ \

¶¸····¹ à J ²�¦º O ä $w¦¦ � îUß ³´´´´µ

$��&Ý�äÝ�ä� \\\

¶¸····¹ æz¥F\ �&�oç

tu.1*-;f68Q1Q1@9#Cab*:%�68,9*:#& �*-;u<&O:#�Y76�O:OTE`q�#&41@R,9.br!#�@9D10$@+6�"3"$41@/68,90�\i�,=,9.10'#&4F,9G1#I( Ys#�41 1D76�@BE&Jm 1#�YV#&41 FD76�@RE�"3#& 1DF*-,/*-#& k*:;K;9QV03"$*-n70$D�\d�0`%U41;R,M6�Q1QF@9#Ca5r

*:%�68,90 Ý#H ß 68,U 1#bDF0,� (+*-,/.H 1#A*: Fq�#�@9%�68,/*-#& H68Ys#&4b,UÝ�Å�ü#"�\ktu.541;U,/.10e;R03"$#& 1Dbr£#&@9D10$@"30$ o,/03@R03Dbr£D1*-gs03@R03 1"$0=#�Qs0$@/68,9#&@3JN(+.1*:"�.�@90$2541*:@R03;uÝNí9ü#"/J1"C6� F 1#�,uYV0�41;90$D�6l,XêUä ��\Pi Y76�"�÷&r(_6�@9DÆD1*-gs03@R03 1"$0eq�#&@9%U4FOS6�%U4F;R,`YV0�4F;903Dh\��ª*-,/.Æ6A;90$"3#& FDbr!#&@RD103@`*- 5,903@R*:#&@U#�Qs0$@/68,9#&@3Jj,/.F0q�#&O-O:#?(+*: 1<=n7@9;B,Rr!#�@9D10$@�Y16�"�÷o(�6�@RD�q�#&@R%U41O:6U"C6� �YV0w4F;903DhÛ

æ�� � Ýsç Å ä ¦îUß æ�Ý�ÅÙ$�Ý�Å�P�"Rç æz¥F\ �!'&ç

tu.1*-;�QF@9#ND141"30$;�6'D1*Tgh0$@90$ 1"30K#&QV03@968,/#&@�(+*T,/.

» ä $w¦� îUß³´´´´´´´´´µ

� ¦$w¦ � ¦$=¦ � ¦\ \ \$w¦ � ¦$ � �

¶ ·········¹ à J ²�¦º O ä $=¦� îUß³´´´´´´´µ$�Ý�ä�� \\\�

¶ ·······¹ æz¥F\ ��?oç�! d,9.10Z"C68;90Z#�q�6=q�#&41@B,/.br£#&@9D10$@_"$03 o,/0$@903D�*- 5,903@R*:#&@X#&QV03@968,/#&@P,/.10fOS6�;B,v,!(v#[@9#?(+;�#8q » @90$2541*:@R0%'#bD1*Tn7"C6l,/*:#� �\

Page 55: Fundamentals of Computational Fluid Dynamics.pdf

ÎNЦ¥oЫÖZÒÔÑLÑ^ÌXÍfÌXÓUÇ^Ìó×+ÊXÌXÍ+ÉcË_×+ÍfÚeÉcË8§�×ÓèmÓfÖ�ÉcÍ�ÒÔÌPÚ �Â�ic 1#8,/.10$@=68Q1Q1@9#&6�"�.A,/#e,/.10[DF0$>&0$O:#&QF%�0$ 5,w#�qvYV#&41 1D768@RE�;R"�.103%'03;w*:;c*: �,/0$@9%';�#�qv;9Q76�"$0

0WaN,9@/6�QV#&OS6l,/*:#� �\�tu.10vq�#&O-O:#?(+*: F<�q�#&@9%U4FOS6+6�O:O-#?(+;§Ý�Å�ü#"h,/#�Ys0v0WaN,/@96�Qs#�OS68,903DKq�@9#&%ó,9.10v*- o,/03@R*:#&@D768,/6U,/#'6�@9YF*-,/@96�@REd#&@9DF03@+#& �6� �032541*:;RQ76�"$03D�<�@9*:DhÛ

æB¦F$8® P�" ç Ü Ý�Å�ü#"^ä � æz¥F\ ��Doç(+.10$@90�® *-;P,9.10Z;R.1*-q|,_#&Qs0$@/68,9#&@PD10$n7 F03D�YoE¯®wÝbí�äðÝNí9ü#"P68 1Dd,/.F0Z#&@9DF03@_#8q�,/.10�68Q1Q1@9#Cab*:%�6lr,/*-#& �*:;°�ë$º¦&\P¤7#&@�0�aF6�%�QFO:0�Jb(+*-,/.~�dä � (_0w#&YF,/6�*:

æB¦F$ � ® P�" ø�® P � çÔÝ#Å�ü#"^äÿÝ�Å�ü#"&$ � Ý�ÅðøÆÝ�Å�P�"^ä � æz¥F\@' � ç(+.1*-"�.�<&*T>&0$;+,9.10�q�#&O:O-#?(+*: 1<Mn1@9;R,Br!#&@RD103@�6�QFQ1@9#Cab*:%�68,/*-#& d,9#'Ý�Å�ü#"�Û

Ý�Å�ü#"jä � Ý�Å $ÅÝ�Å�P�" æz¥F\@'b¦Iç�b41YF;R,/*T,/4F,9*: 1<�,/.1*-;Z*: o,/#�,/.10[;R03"3#� 1Dbr!#�@9D10$@�"303 o,903@90$DDF*-gs03@90$ 1"30[#�Qs0$@/68,9#&@Z6�QFQ1O:*-03DA68,Z 1#bDF0� <&*->�03;

æ�� � Ýsç Å ä ¦� î[ß æ�Ý#Å�ü#"&$�Ý�Å�P�"Rç¡ä ¦

� î[ß æ � Ý�ÅÙ$�Ý�Å�P�"%$ÅÝ�Å�P�"Ôçä ¦

îUß æ�Ý#ÅÙ$ÅÝ�Å�P�"Bç æz¥F\@' � ç(+.1*-"�.�*-;u*:D10$ 5,9*:"36�Oh,/#ë�j2ë\V¥F\ ��'b\`�a�¨�ao� ögKupÙl gonÏâu}�g£ehi�«­¬:âu|%j�g£ehi�! e;9#�O->N*: 1<U,9.10ZD1*Tgh4F;9*:#� �03254768,9*:#& �(v0�%U41;B,+"3#& F;9*:DF03@uãZ*-@9*:"�.FO:0$,_6� 1D�ò�0341%�6� 1 �YV#&41 1D16�@RE"3#� 1D1*-,9*:#& F;3\Ltu.F0+,9@90368,/%'03 o,j#�qh6KãZ*:@R*:"�.1O-0$,mYs#&4F 1D76�@BE["3#& FD1*-,9*:#& UQF@9#N"3030$D1;P6�O:#� 1<Z,/.10u;96�%'0O:*- 103;c6�;c,9.10U*: bG7#?(åYV#&41 FD76�@RE�q�#&@�,/.10U"$#& o>&0$"$,/*-#& k03254768,9*:#& ADF*:;9"$41;9;R03D)6�YV#?>&0�\��ª*T,/.�,/.F0;90$"3#& FDbr!#&@RD103@�"30$ o,/03@R03D�*: o,/0$@9*:#�@�#&QV03@/6l,/#&@

æ�� ��� Ýsç í ä ¦îUß � æ�ÝNí9ü#"&$ � ÝbíLøÆÝNí)P�"Bç æz¥F\@'�¥oç

1#f%�#ND1*-n1"C68,9*:#& 1;�6�@90P@90$2N4F*:@90$DU 1036�@mYV#&41 FD76�@9*-03;$J8O-0C6�D1*- 1<u,/#�,/.10PD1*-gs03@R03 1"$0_#&QV03@968,/#�@§<�*->&0$ *: Y�j2ë\ë¥F\ � 'b\

¤7#&@M6�òf034F%d6� F �Ys#�41 1D76�@BEH"$#& 1D1*T,/*-#& �J�(_0e68;9;94F%�0d,9.768, ÝÚH ß©*:;w;9QV03"$*-n70$D¬68,�ê)ä� øð¦&JF,9.768,�*:;8 Ý ß 9 Å�ü#" äE8 Ý ß 9 � æz¥F\@'8�5ç

Page 56: Fundamentals of Computational Fluid Dynamics.pdf

�o� Ç^È�ÉZÊcËmÌXÍÏÎ5ЫÑLÒÔÓ�Ò3ËmÌPÕzÖZÒÔÑ^Ñ^ÌXÍ�ÌPÓMÇ^Ì«ÉZÊXÊXÍ�×jØZÒBÙ�Éc˧ÒW×uÓZÚtu.541;+(_0wD103;R*:<& �6� �#&QV03@968,/#&@+6l,+ 1#bDF0{� (+.1*-"�.�*-;u*: e,/.10�q�#&O-O:#?(+*: F<Mq�#&@9%�Û

æ�� ��� Ýhç Å ä ¦îUß � æ��oÝ�Åÿø~��Ý#Å�P�"Bç�ø º

îUß 8 Ý ß 9 Å�ü#" æz¥F\@'��&ç(+.10$@90��ëJ��IJë68 1Dfºc6�@90K"3#� 1;R,/6� o,/;u(+.1*:"�.�"C68 �036�;9*-O-E�Ys0KD10W,/03@R%�*- 103D�41;R*: 1<'6`tL6CENO:#�@�,�6�Y1O-0�J6�;+;9.F#I(+ �*: etm6�Y1O-0=¥b\ �1\

8 � Ý ß � 9 í ø ¦îUß � æ��5ÝNí�P�"�ø~��ÝbíWç�ø º

î[ß 8 Ý ß 9 íRü#" ä×ùîUß�; îUß � ; îUß T ; îUß U ;ÝNí J KNMK � O í J K ú MK � ú O í J K û MK � û O í J K ü MK � ü O í

î[ß � ; JZK ú MK � ú O í ¦�{;3Ýbí�P�" � �{;5æ|r/¦Içh; "" ��;NæSr�¦Iç � ; "� �½;Næ|r9¦Iç T ; "Ý ��;Næ|r9¦Iç U ; "� U�k;?ÝNí �î[ß ;=ºÉ; J K�MK � O í9ü#" º ºk;NæÔ¦Içh; "" ºk;oæB¦Iç � ; "� ºk;NæÔ¦Iç T ; "Ý

tL68Y1O:0K¥F\ �1\jtm6CEbO-#&@�,�68Y1O:0Zq�#&@+ò�0341%�6� 1 �YV#&41 1D768@REe"$#& 1D1*T,/*:#� �\�b#&OT>N*: 1<Uq�#&@F�7J��?Jë6� 1D�ºIJF(_0w#&YF,/6�*: �,9.10�q�#&O:O-#?(+*: 1<U#�Qs0$@/68,9#&@3Û

æ�� ��� Ýsç Å ä ¦¥&îUß � æ � Ý�Å�P�"R$ � Ý�ÅUç�ø �

¥�î[ß 8 Ý ß 9 Å�ü#" æz¥F\@'��oç(+.1*-"�.)QF@9#ND141"30$;�,/.10[D1*Tgh0$@90$ 1"30[#&QV03@968,/#�@Z<&*->�03 k*: 6�j2ë\�¥F\ � DF\=òf#8,/*:"$0M,/.168,Z,/.F*:;�#&QV03@968,/#&@*:;=;90$"3#& 1DNr!#&@RD103@[68"3"34F@/68,90�\��! �,9.10�"C68;90�#�q�6� N4F%�0$@9*:"36�Ov6�Q1Q1@R#?ab*-%d68,9*:#& k,/#�6�òf0$41%d68 1 YV#&41 1D768@RE�"3#� 1D1*-,9*:#& hJF,/.1*-;u*:;+ 10$"303;R;/6�@BE�,9#�#�YF,�6�*- �6'<&O-#&Y76�O-O-E';90$"3#& FDbr!#&@RD103@f6�"$"341@968,/0Kq�#&@Br%U41O:68,/*-#& �\mtu.1*:;+"3#� 5,9@/6�;B,/;+(+*-,9.�,9.10K 541%�0$@9*-"C6�O�YV#&41 FD76�@RE�;9"�.10$%�0$;fD10$;9"$@9*:YV03D�Q1@90W>N*:#&41;RO-E(+.1*-"�.�"36� �YV0K#& 10K#&@RD103@uO-#I(v03@u,9.76� �,/.10K*: o,903@9*-#&@�;R"�.103%'0�\

�H0`"36� H68O:;9#e#�YF,�6�*- A,/.10`#&QV03@968,/#&@�*- 6�j2V\§¥F\@'���41;R*: 1<�,/.F0[;9Q76�"$0�0�aN,/@/68Qs#&O:68,/*-#& �*-D10C6F\�_#& 1;R*:D10$@�6`;R03"$#& 1Dbr£#&@9D10$@fY16�"�÷o(�6�@RDbr!DF*-gs03@90$ 1"30=6�Q1QF@9#Cab*:%�68,/*-#& �6�Q1Q1O-*:0$D�68,+ 1#ND10�� øª¦&Û8 Ý ß 9 Å�ü#" ä ¦

� îUß æ�Ý�Å�P�"&$Å�&Ý�Ūø©¥�Ý�Å�ü#"Rç�ø~\�æzîUß � ç æz¥F\@'�'&ç�b#&OT>N*: 1<Uq�#&@uÝ�Å�ü#"v<&*T>&03;

Ý�Å�ü#"jä ¦¥ È �&Ý�ÅÙ$�Ý�Å�P�"�ø � îUßð8 Ý ß 9 Å�ü#"¤Ê ø]\dæzîUß T ç æz¥F\@'L?oç

Page 57: Fundamentals of Computational Fluid Dynamics.pdf

ÎNв±?ЫÊXÍ�׳§ª\�ÌPÙ�Ú �Â'�b41YF;R,/*T,/4F,9*: 1<©,/.1*-;�*: o,/#º,9.10�;R03"3#� 1Dbr!#�@9D10$@)"$03 o,/0$@90$DåD1*Tgh0$@90$ 1"30Å#&QV03@968,/#�@�q�#&@A6º;R03"$#& 1DD10$@9*->868,9*->�0K6�Q1Q1O-*:03D�68,+ F#bD10½� <&*->�03;

æ�� ��� Ýsç Å ä ¦îUß � æ�Ý�Å�ü#"&$ � Ý�ŪøÆÝ�Å�P�"Rç æz¥F\@'LDoç

ä ¦¥&îUß �,È ¥�Ý�Å�P�"&$Å��Ý�ÅðøÆ�&Ý�Å $ÅÝ�Å�P�"�ø � îUßð8 Ý ß 9 Å�ü#"¤Ê

ä ¦¥&îUß � æ � Ý#Å�P�"&$ � Ý#ÅUç�ø �

¥&îUß 8 Ý ß79 Å�ü#" æz¥F\Õ? � ç(+.1*-"�.�*-;u*:D10$ 5,9*:"36�Oh,/#ë�j2ë\V¥F\�'8�F\­�®/´ µ ÀjÃ;¶·X3±�4 ²¦&\�ãZ0$@9*->�0[6d,/.F*:@9DNr!#&@RD103@�n7 1*-,90Wr£D1*-gs03@R03 1"$0[6�Q1Q1@R#CaF*-%d6l,/*:#� �,/#�6dn7@9;B,KD103@R*->868,/*T>&0=*: �,/.F0q�#&@R%

æ�� � Ýhç�íuä ¦îUß æ��oÝNí)P � ø~��ÝNí�P�"høzºWÝNíLø � ÝNí9ü#"Bç

¤L*- 1De,/.10KO-0C6�D1*- 1<[03@R@9#&@�,903@R%�\� \�ãZ0$@9*->�0K6`n1 1*-,90Wr!DF*-gs03@90$ 1"30K68Q1Q1@9#Cab*:%�68,9*:#& �,9#�6Un7@R;R,�D10$@9*->868,9*->�0�*: e,/.10�q�#&@R%�Væ�� � Ýhç�í)P�"høÿæ�� � Ýhç�íuä ¦

îUß æ���ÝNí)P�"�ø~ºWÝNí^ø � ÝbíRü#"Bç¤L*- 1De,/.10KO-0C6�D1*- 1<[03@R@9#&@�,903@R%�\

¥F\f0�;9*: F<`6U��æ�*- 5,903@R*:#&@/çPQV#&*: o,�%'03;R.�JF(+@R*-,/0c#&4F,�,9.10��I¸X�[%d68,9@9*-"303;_6� 1D�,9.10�Ys#�41 1D76�@BEor"$#& 1D1*T,/*:#� �>&0$"$,9#&@Zq�#&@9%'03D�Y5E�41;9*- 1<d,9.10U;9"�.F03%'0[D103@R*->&0$Dk*: �25410$;R,/*-#& � (+.10$ kYs#�,9.Ý�6� 1D Ý#H ßk68@90�<&*T>&03 �68,Pê[ä � 68 1D�Ý�*:;u<�*->&0$ �6l,Pê[ä �b\

�1\f�+03QV0C68,�25410$;R,/*-#& � (+*T,/. � ä � \�b\�ãZ0$@9*->�0K6`n1 1*-,90Wr!DF*-gs03@90$ 1"30K68Q1Q1@9#Cab*:%�68,9*:#& �,9#�6U,9.1*:@RD�DF03@9*T>868,/*T>&0�*: e,9.10�q�#&@9%æ�� ����� ÝVç�íuä ¦

îUß T æ��oÝNí)P � ø~��ÝNí�P�"�ø~ºWÝNíLø � ÝNí9ü#"hø]þCÝNíRü � ç¤L*- 1De,/.10KO-0C6�D1*- 1<[03@R@9#&@�,903@R%�\

Page 58: Fundamentals of Computational Fluid Dynamics.pdf

�!? Ç^È�ÉZÊcËmÌXÍÏÎ5ЫÑLÒÔÓ�Ò3ËmÌPÕzÖZÒÔÑ^Ñ^ÌXÍ�ÌPÓMÇ^Ì«ÉZÊXÊXÍ�×jØZÒBÙ�Éc˧ÒW×uÓZÚ�F\�ãZ0$@9*->�0K6["3#&%'Q76�"W,=æ�#&@+Üm6�D�<0?ç�n7 1*T,/0�r!D1*Tgh0$@903 F"30K6�Q1QF@9#Cab*:%�68,/*-#& d,/#'6[;90$"3#& FD�D10$@9*->86lr,9*->&0K*- �,/.10�q�#&@R%

� æ�� ��� ÝVçzí)P�"�øÿæ�� ��� ÝVçzíjø~þ5æ�� ��� ÝVçzí9ü#"jä ¦îUß � æ��5ÝNí�P�"�ø~��ÝbíLø]º�ÝNí9ü#"Rç

¤L*- 1De,/.10KO-0C6�D1*- 1<[03@R@9#&@�,903@R%�\'b\�¤L*- 1D�,9.10Z%'#bDF*-n70$Dd(�6C>�03 541%UYV03@uq�#&@X,/.10c#&Qs0$@/68,9#&@_DF03@9*T>&0$D�*- d25410$;R,/*-#& A¦&\XÜjO:#8,_,/.F0@R0C6�O�68 1De*:%�6�<&*- 76�@RE'Q768@R,/;_#�q�` h îUß�>b;$\�`7îUß�q�#&@ �ml `7îUß l �j\P�_#&%'Q76�@R0Z,/.10�@R0C6�OQ768@R,u(+*-,9.e,/.768,�#&Yb,�6�*- 103Deq�@9#�% ,/.F0Kq�#�41@R,9.br!#&@RD103@u"$03 o,/0$@90$D�#&QV03@/6l,/#&@wæ��X2ë\ë¥F\@�8�5ç�\?F\+ifQ1Q1O:*-"C68,9*:#& d#�qm,9.10K;90$"3#& 1DNr!D10$@9*->868,9*->�0w#�Qs0$@/68,9#&@�,/#[,/.F0Kq�4F 1"$,9*:#& �þ �[_ � <&*->�03; � þ �[_ � ß � ä $�` � þ �[_ �ifQ1Q1O:*-"C68,9*:#& d#�q^6`D1*Tgh0$@903 F"30K#&QV03@/6l,/#&@�q�#&@�,9.10K;90$"3#& 1D�D103@R*->868,9*->&0�<�*->&0$;

æ�� ��� þ �a_ í e � ç�íuäX$]` h � þ �[_ �,9.N4F;wDF0$n7 1*- 1<e,/.10[%'#ND1*-n70$D�(�6C>�03 541%UYV03@�` h q�#�@K6�;903"$#& 1D)D103@R*->868,9*->&0`68Q1Q1@9#Cab*:%�6lr,9*:#& �\�¤L*- 1D,9.10�%'#bDF*-n70$D)(_6C>&03 541%MYs0$@`q�#�@w,9.10d;R03"3#� 1Dbr!#�@9D10$@U"30$ 5,903@R03D¬D1*-gs03@R03 1"$0#&QV03@968,/#�@`q�#�@�6k;90$"3#& FDºD103@R*->868,9*->&08Jv,9.10� F#& 1"3#�%�Q768"$,'q�#&41@R,9.br!#�@9D10$@'#�Qs0$@/68,9#&@�æ��j2ë\¥F\@���&ç�J16� FD�,/.10�"$#&%�Q16�"$,�q�#�41@R,9.br!#&@RD103@_#&Qs0$@/68,9#&@_DF03@9*T>&0$D�*- e254103;B,/*:#� ��F\XÜjO:#�,f` h îUß>N;3\S`7îUß�q�#&@ �ml `7îUß l �j\DF\�¤L*- 1D©,9.10�<&@R*:Dbr£Qs#�*: o,/;Ôr!QV03@Br�(�6C>�03O:0$ 1<�,9. æ����� �çU@R032541*:@R03%'03 o,�,9#Å6�"�.1*-0$>&0�6HQ1.76�;R0;RQs0$03D�03@9@R#&@uO:0$;9;�,9.76� � \T¦KQs0$@9"30$ o,�q�#�@�;9* ab,9.br!#�@9D10$@u 1#& 1"$#&%�Q16�"$,+68 1D�"3#&%'Q76�"W,+"303 Nr,903@90$D�68Q1Q1@9#Cab*:%�68,9*:#& 1;v,/#'6Un7@9;B,cD10$@9*T>�6l,/*->�0�\

¦ � \f�_#& F;9*:DF03@v,9.10fq�#�O:O:#?(+*- 1<K#& 10Wr£;9*-D103D�D1*-gs03@R03 1"$*: 1<=;9"�.10$%�0$;3JF(+.1*-"�.e6�@R0fn7@R;R,Rr/Jb;R03"$#& 1Dbr/J6� FD�,9.1*:@RDbr!#&@RD103@$JF@R03;9QV03"W,/*T>&03OTEVÛ

æ�� � ÝVç�íuäÏæ�ÝNí7$ÅÝbí�P�"Bç�H�îUßæ�� � ÝVçzíuäÏæ�¥�ÝNíh$���Ýbí�P�"høÆÝNí)P � ç�H1æ � î[ßsç

æ�� � Ýhç�íuä æÔ¦&¦CÝNíh$«¦=?�ÝNí)P�"hø~D�ÝNí)P � $ � ÝNí)P T ç�H1æz��î[ßsç¤L*- 1D�,/.F0e%�#ND1*-n103D�(_6?>�03 541%UYV03@`q�#&@U036�"�.Æ#�q+,/.10$;90�;9"�.10$%�0$;3\¬ÜjO:#�,M,/.10e@R0C6�Ou68 1D*-%d6�<�*: 76�@BE�Q768@R,/;M#�qf` h îUßÆ>N;$\�`7îUßÆq�#�@ �¹l `7î[ß l �j\�ãZ0$@9*->�0�,9.10d,!(v#AO:0C68D1*: 1<,903@9%';u*: e,9.10�,/@94F 1"C68,9*:#& �0$@9@9#�@+q�#�@u0C6�"�.�;9"�.10$%�08\

Page 59: Fundamentals of Computational Fluid Dynamics.pdf

Chapter 4

THE SEMI-DISCRETE

APPROACH

One strategy for obtaining �nite-di�erence approximations to a PDE is to start by

di�erencing the space derivatives only, without approximating the time derivative.

In the following chapters, we proceed with an analysis making considerable use of

this concept, which we refer to as the semi-discrete approach. Di�erencing the space

derivatives converts the basic PDE into a set of coupled ODE's. In the most general

notation, these ODE's would be expressed in the form

d~u

dt= ~F (~u; t) (4.1)

which includes all manner of nonlinear and time-dependent possibilities. On occasion,

we use this form, but the rest of this chapter is devoted to a more specialized matrix

notation described below.

Another strategy for constructing a �nite-di�erence approximation to a PDE is

to approximate all the partial derivatives at once. This generally leads to a point

di�erence operator (see Section 3.3.1) which, in turn, can be used for the time advance

of the solution at any given point in the mesh. As an example let us consider the

model equation for di�usion@u

@t= �

@2u

@x2

Using three-point central-di�erencing schemes for both the time and space derivatives,

we �ndu(n+1)j � u

(n�1)j

2h= �

24u(n)j+1 � 2u

(n)j + u

(n)j�1

�x2

35

or

u(n+1)j = u

(n�1)j +

2h�

�x2

hu(n)j+1 � 2u

(n)j + u

(n)j�1

i(4.2)

51

Page 60: Fundamentals of Computational Fluid Dynamics.pdf

52 CHAPTER 4. THE SEMI-DISCRETE APPROACH

Clearly Eq. 4.2 is a di�erence equation which can be used at the space point j to

advance the value of u from the previous time levels n and n � 1 to the level n + 1.

It is a full discretization of the PDE. Note, however, that the spatial and temporal

discretizations are separable. Thus, this method has an intermediate semi-discrete

form and can be analyzed by the methods discussed in the next few chapters.

Another possibility is to replace the value of u(n)j in the right hand side of Eq. 4.2

with the time average of u at that point, namely (u(n+1)j + u

(n�1)j )=2. This results in

the formula

u(n+1)j = u

(n�1)j +

2h�

�x2

24u(n)j+1 � 2

0@u(n+1)j + u

(n�1)j

2

1A+ u

(n)j�1

35 (4.3)

which can be solved for u(n+1) and time advanced at the point j. In this case, the

spatial and temporal discretizations are not separable, and no semi-discrete form

exists.

Equation 4.2 is sometimes called Richardson's method of overlapping steps and

Eq. 4.3 is referred to as the DuFort-Frankel method. As we shall see later on, there

are subtle points to be made about using these methods to �nd a numerical solution

to the di�usion equation. There are a number of issues concerning the accuracy,

stability, and convergence of Eqs. 4.2 and 4.3 which we cannot comment on until we

develop a framework for such investigations. We introduce these methods here only to

distinguish between methods in which the temporal and spatial terms are discretized

separately and those for which no such separation is possible. For the time being, we

shall separate the space di�erence approximations from the time di�erencing. In this

approach, we reduce the governing PDE's to ODE's by discretizing the spatial terms

and use the well-developed theory of ODE solutions to aid us in the development of

an analysis of accuracy and stability.

4.1 Reduction of PDE's to ODE's

4.1.1 The Model ODE's

First let us consider the model PDE's for di�usion and biconvection described in

Chapter 2. In these simple cases, we can approximate the space derivatives with

di�erence operators and express the resulting ODE's with a matrix formulation. This

is a simple and natural formulation when the ODE's are linear.

Page 61: Fundamentals of Computational Fluid Dynamics.pdf

4.1. REDUCTION OF PDE'S TO ODE'S 53

Model ODE for Di�usion

For example, using the 3-point central-di�erencing scheme to represent the second

derivative in the scalar PDE governing di�usion leads to the following ODE di�usion

model

d~u

dt=

�x2B(1;�2; 1)~u+ ~(bc) (4.4)

with Dirichlet boundary conditions folded into the ~(bc) vector.

Model ODE for Biconvection

The term biconvection was introduced in Section 2.3. It is used for the scalar con-

vection model when the boundary conditions are periodic. In this case, the 3-point

central-di�erencing approximation produces the ODE model given by

d~u

dt= �

a

2�xBp(�1; 0; 1)~u (4.5)

where the boundary condition vector is absent because the ow is periodic.

Eqs. 4.4 and 4.5 are the model ODE's for di�usion and biconvection of a scalar in

one dimension. They are linear with coe�cient matrices which are independent of x

and t.

4.1.2 The Generic Matrix Form

The generic matrix form of a semi-discrete approximation is expressed by the equation

d~u

dt= A~u� ~f(t) (4.6)

Note that the elements in the matrix A depend upon both the PDE and the type of

di�erencing scheme chosen for the space terms. The vector ~f(t) is usually determined

by the boundary conditions and possibly source terms. In general, even the Euler

and Navier-Stokes equations can be expressed in the form of Eq. 4.6. In such cases

the equations are nonlinear, that is, the elements of A depend on the solution ~u and

are usually derived by �nding the Jacobian of a ux vector. Although the equations

are nonlinear, the linear analysis presented in this book leads to diagnostics that are

surprisingly accurate when used to evaluate many aspects of numerical methods as

they apply to the Euler and Navier-Stokes equations.

Page 62: Fundamentals of Computational Fluid Dynamics.pdf

54 CHAPTER 4. THE SEMI-DISCRETE APPROACH

4.2 Exact Solutions of Linear ODE's

In order to advance Eq. 4.1 in time, the system of ODE's must be integrated using a

time-marching method. In order to analyze time-marching methods, we will make use

of exact solutions of coupled systems of ODE's, which exist under certain conditions.

The ODE's represented by Eq. 4.1 are said to be linear if F is linearly dependent on

u (i.e., if @F=@u = A where A is independent of u). As we have already pointed out,

when the ODE's are linear they can be expressed in a matrix notation as Eq. 4.6 in

which the coe�cient matrix, A, is independent of u. If A does depend explicitly on

t, the general solution cannot be written; whereas, if A does not depend explicitly on

t, the general solution to Eq. 4.6 can be written. This holds regardless of whether or

not the forcing function, ~f , depends explicitly on t.

As we shall soon see, the exact solution of Eq. 4.6 can be written in terms of

the eigenvalues and eigenvectors of A. This will lead us to a representative scalar

equation for use in analyzing time-marching methods. These ideas are developed in

the following sections.

4.2.1 Eigensystems of Semi-Discrete Linear Forms

Complete Systems

An M �M matrix is represented by a complete eigensystem if it has a complete set

of linearly independent eigenvectors (see Appendix A) . An eigenvector, ~xm, and its

corresponding eigenvalue, �m, have the property that

A~xm = �m~xm or

[A� �mI]~xm = 0 (4.7)

The eigenvalues are the roots of the equation

det[A� �I] = 0

We form the right-hand eigenvector matrix of a complete system by �lling its columns

with the eigenvectors ~xm:

X =h~x1 ; ~x2 : : : ; ~xM

iThe inverse is the left-hand eigenvector matrix, and together they have the property

that

X�1AX = � (4.8)

where � is a diagonal matrix whose elements are the eigenvalues of A.

Page 63: Fundamentals of Computational Fluid Dynamics.pdf

4.2. EXACT SOLUTIONS OF LINEAR ODE'S 55

Defective Systems

If anM�M matrix does not have a complete set of linearly independent eigenvectors,

it cannot be transformed to a diagonal matrix of scalars, and it is said to be defective.

It can, however, be transformed to a diagonal set of blocks, some of which may be

scalars (see Appendix A). In general, there exists some S which transforms any

matrix A such that

S�1AS = J

where

J =

26666664

J1J2

. . .

Jm. . .

37777775

and

J (n)m

=

266664�m 1

�m. . .. . . 1

�m

377775

1......

n

The matrix J is said to be in Jordan canonical form, and an eigenvalue with multi-

plicity n within a Jordan block is said to be a defective eigenvalue. Defective systems

play a role in numerical stability analysis.

4.2.2 Single ODE's of First- and Second-Order

First-Order Equations

The simplest nonhomogeneous ODE of interest is given by the single, �rst-order

equation

du

dt= �u+ ae�t (4.9)

where �, a, and � are scalars, all of which can be complex numbers. The equation

is linear because � does not depend on u, and has a general solution because � does

not depend on t. It has a steady-state solution if the right-hand side is independent

of t, i.e., if � = 0, and is homogeneous if the forcing function is zero, i.e., if a = 0.

Although it is quite simple, the numerical analysis of Eq. 4.9 displays many of the

fundamental properties and issues involved in the construction and study of most

popular time-marching methods. This theme will be developed as we proceed.

Page 64: Fundamentals of Computational Fluid Dynamics.pdf

56 CHAPTER 4. THE SEMI-DISCRETE APPROACH

The exact solution of Eq. 4.9 is, for � 6= �,

u(t) = c1e�t +

ae�t

�� �

where c1 is a constant determined by the initial conditions. In terms of the initial

value of u, it can be written

u(t) = u(0)e�t + ae�t � e�t

�� �

The interesting question can arise: What happens to the solution of Eq. 4.9 when

� = �? This is easily found by setting � = � + �, solving, and then taking the limit

as �! 0. Using this limiting device, we �nd that the solution to

du

dt= �u+ ae�t (4.10)

is given by

u(t) = [u(0) + at]e�t

As we shall soon see, this solution is required for the analysis of defective systems.

Second-Order Equations

The homogeneous form of a second-order equation is given by

d2u

dt2+ a1

du

dt+ a0u = 0 (4.11)

where a1 and a0 are complex constants. Now we introduce the di�erential operator

D such that

D �

d

dt

and factor u(t) out of Eq. 4.11, giving

(D2 + a1D + a0) u(t) = 0

The polynomial in D is referred to as a characteristic polynomial and designated

P (D). Characteristic polynomials are fundamental to the analysis of both ODE's and

O�E's, since the roots of these polynomials determine the solutions of the equations.

For ODE's, we often label these roots in order of increasing modulus as �1, �2, � � �, �m,

Page 65: Fundamentals of Computational Fluid Dynamics.pdf

4.2. EXACT SOLUTIONS OF LINEAR ODE'S 57

� � �, �M . They are found by solving the equation P (�) = 0. In our simple example,

there would be two roots, �1 and �2, determined from

P (�) = �2 + a1�+ a0 = 0 (4.12)

and the solution to Eq. 4.11 is given by

u(t) = c1e�1t + c2e

�2t (4.13)

where c1 and c2 are constants determined from initial conditions. The proof of this

is simple and is found by substituting Eq. 4.13 into Eq. 4.11. One �nds the result

c1e�1t(�21 + a1�1 + a0) + c2e

�2t(�22 + a1�2 + a0)

which is identically zero for all c1, c2, and t if and only if the �'s satisfy Eq. 4.12.

4.2.3 Coupled First-Order ODE's

A Complete System

A set of coupled, �rst-order, homogeneous equations is given by

u01 = a11 u1 + a12 u2

u02 = a21 u1 + a22 u2 (4.14)

which can be written

~u0

= A~u ; ~u = [u1; u2]T ; A = (aij) =

"a11 a12a21 a22

#

Consider the possibility that a solution is represented by

u1 = c1 x11e�1t + c2 x12e

�2t

u2 = c1 x21e�1t + c2 x22e

�2t (4.15)

By substitution, these are indeed solutions to Eq. 4.14 if and only if"a11 a12a21 a22

# "x11x21

#= �1

"x11x21

#;

"a11 a12a21 a22

# "x12x22

#= �2

"x12x22

#(4.16)

Notice that a higher-order equation can be reduced to a coupled set of �rst-order

equations by introducing a new set of dependent variables. Thus, by setting

u1 = u0 ; u2 = u ;

we �nd Eq. 4.11 can be written

u01 = �a1u1 � a0u2

u02 = u1 (4.17)

which is a subset of Eq. 4.14.

Page 66: Fundamentals of Computational Fluid Dynamics.pdf

58 CHAPTER 4. THE SEMI-DISCRETE APPROACH

A Derogatory System

Eq. 4.15 is still a solution to Eq. 4.14 if �1 = �2 = �, provided two linearly independent

vectors exist to satisfy Eq. 4.16 with A = �. In this case

�� 0

0 �

� �1

0

�= �

�1

0

�and

�� 0

0 �

� �0

1

�= �

�0

1

provide such a solution. This is the case where A has a complete set of eigenvectors

and is not defective.

A Defective System

If A is defective, then it can be represented by the Jordan canonical form

"u01u02

#=

"� 0

1 �

# "u1u2

#(4.18)

whose solution is not obvious. However, in this case, one can solve the top equation

�rst, giving u1(t) = u1(0)e�t. Then, substituting this result into the second equation,

one �ndsdu2

dt= �u2 + u1(0)e

�t

which is identical in form to Eq. 4.10 and has the solution

u2(t) = [u2(0) + u1(0)t]e�t

From this the reader should be able to verify that

u3(t) =�a + bt+ ct2

�e�t

is a solution to 264u01u02u03

375 =

264�

1 �

1 �

375264u1u2u3

375

if

a = u3(0) ; b = u2(0) ; c =1

2u1(0) (4.19)

The general solution to such defective systems is left as an exercise.

Page 67: Fundamentals of Computational Fluid Dynamics.pdf

4.2. EXACT SOLUTIONS OF LINEAR ODE'S 59

4.2.4 General Solution of Coupled ODE's with Complete Eigen-

systems

Let us consider a set of coupled, nonhomogeneous, linear, �rst-order ODE's with

constant coe�cients which might have been derived by space di�erencing a set of

PDE's. Represent them by the equation

d~u

dt= A~u� ~f(t) (4.20)

Our assumption is that the M �M matrix A has a complete eigensystem1 and can

be transformed by the left and right eigenvector matrices, X�1 and X, to a diagonal

matrix � having diagonal elements which are the eigenvalues of A, see Section 4.2.1.

Now let us multiply Eq. 4.20 from the left by X�1 and insert the identity combination

XX�1 = I between A and ~u. There results

X�1d~u

dt= X�1AX �X�1~u�X�1~f(t) (4.21)

Since A is independent of both ~u and t, the elements in X�1 and X are also indepen-

dent of both ~u and t, and Eq. 4.21 can be modi�ed to

d

dtX�1~u = �X�1~u�X�1~f(t)

Finally, by introducing the new variables ~w and ~g such that

~w = X�1~u ; ~g(t) = X�1~f(t) (4.22)

we reduce Eq. 4.20 to a new algebraic form

d~w

dt= �~w � ~g(t) (4.23)

It is important at this point to review the results of the previous paragraph. Notice

that Eqs. 4.20 and 4.23 are expressing exactly the same equality. The only di�erence

between them was brought about by algebraic manipulations which regrouped the

variables. However, this regrouping is crucial for the solution process because Eqs.

1In the following, we exclude defective systems, not because they cannot be analyzed (the example

at the conclusion of the previous section proves otherwise), but because they are only of limited

interest in the general development of our theory.

Page 68: Fundamentals of Computational Fluid Dynamics.pdf

60 CHAPTER 4. THE SEMI-DISCRETE APPROACH

4.23 are no longer coupled. They can be written line by line as a set of independent,

single, �rst-order equations, thus

w0

1 = �1w1 � g1(t)...

w0

m= �mwm � gm(t)...

w0

M= �MwM � gM(t) (4.24)

For any given set of gm(t) each of these equations can be solved separately and then

recoupled, using the inverse of the relations given in Eqs. 4.22:

~u(t) = X~w(t)

=MXm=1

wm(t)~xm (4.25)

where ~xm is the m'th column of X, i.e., the eigenvector corresponding to �m.

We next focus on the very important subset of Eq. 4.20 when neither A nor ~f has

any explicit dependence on t. In such a case, the gm in Eqs. 4.23 and 4.24 are also

time invariant and the solution to any line in Eq. 4.24 is

wm(t) = cme�mt +

1

�mgm

where the cm are constants that depend on the initial conditions. Transforming back

to the u-system gives

~u(t) = X~w(t)

=MXm=1

wm(t)~xm

=MXm=1

cme�mt ~xm +

MXm=1

1

�mgm~xm

=MXm=1

cme�mt ~xm +X��1X�1~f

=MXm=1

cme�mt ~xm + A�1~f

| {z }Transient

| {z }Steady-state

(4.26)

Page 69: Fundamentals of Computational Fluid Dynamics.pdf

4.3. REAL SPACE AND EIGENSPACE 61

Note that the steady-state solution is A�1~f , as might be expected.

The �rst group of terms on the right side of this equation is referred to classically

as the complementary solution or the solution of the homogeneous equations. The

second group is referred to classically as the particular solution or the particular

integral. In our application to uid dynamics, it is more instructive to refer to these

groups as the transient and steady-state solutions, respectively. An alternative, but

entirely equivalent, form of the solution is

~u(t) = c1e�1t ~x1 + � � �+ cme

�mt ~xm + � � �+ cMe�M t ~xM + A�1~f (4.27)

4.3 Real Space and Eigenspace

4.3.1 De�nition

Following the semi-discrete approach discussed in Section 4.1, we reduce the partial

di�erential equations to a set of ordinary di�erential equations represented by the

generic form

d~u

dt= A~u� ~f (4.28)

The dependent variable ~u represents some physical quantity or quantities which relate

to the problem of interest. For the model problems on which we are focusing most

of our attention, the elements of A are independent of both u and t. This permits

us to say a great deal about such problems and serves as the basis for this section.

In particular, we can develop some very important and fundamental concepts that

underly the global properties of the numerical solutions to the model problems. How

these relate to the numerical solutions of more practical problems depends upon the

problem and, to a much greater extent, on the cleverness of the relator.

We begin by developing the concept of \spaces". That is, we identify di�erent

mathematical reference frames (spaces) and view our solutions from within each.

In this way, we get di�erent perspectives of the same solution, and this can add

signi�cantly to our understanding.

The most natural reference frame is the physical one. We say

If a solution is expressed in terms of ~u, it is said

to be in real space.

There is, however, another very useful frame. We saw in Sections 4.2.1 and 4.2 that

pre- and post-multiplication of A by the appropriate similarity matrices transforms A

into a diagonal matrix, composed, in the most general case, of Jordan blocks or, in the

Page 70: Fundamentals of Computational Fluid Dynamics.pdf

62 CHAPTER 4. THE SEMI-DISCRETE APPROACH

simplest nondefective case, of scalars. Following Section 4.2 and, for simplicity, using

only complete systems for our examples, we found that Eq. 4.28 had the alternative

formd~w

dt= �~w � ~g

which is an uncoupled set of �rst-order ODE's that can be solved independently for

the dependent variable vector ~w. We say

If a solution is expressed in terms of ~w, it is said to

be in eigenspace (often referred to as wave space).

The relations that transfer from one space to the other are:

~w = X�1~u

~g = X�1~f

~u = X~w

~f = X~g

The elements of ~u relate directly to the local physics of the problem. However, the

elements of ~w are linear combinations of all of the elements of ~u, and individually

they have no direct local physical interpretation.

When the forcing function ~f is independent of t, the solutions in the two spaces

are represented by~u(t) =

Xcme

�mt ~xm +X��1X�1~f

and

wm(t) = cme�mt +

1

�mgm ; m = 1; 2; � � � ;M

for real space and eigenspace, respectively. At this point we make two observations:

1. the transient portion of the solution in real space consists of a linear combination

of contributions from each eigenvector, and

2. the transient portion of the solution in eigenspace provides the weighting of

each eigenvector component of the transient solution in real space.

4.3.2 Eigenvalue Spectrums for Model ODE's

It is instructive to consider the eigenvalue spectrums of the ODE's formulated by

central di�erencing the model equations for di�usion and biconvection. These model

ODE's are presented in Section 4.1. Equations for the eigenvalues of the simple

Page 71: Fundamentals of Computational Fluid Dynamics.pdf

4.3. REAL SPACE AND EIGENSPACE 63

tridiagonals,B(M : a; b; c) and Bp(M : a; b; c), are given in Appendix B. From Section

B.1, we �nd for the model di�usion equation with Dirichlet boundary conditions

�m =�

�x2

��2 + 2 cos

�m�

M + 1

��

=�4�

�x2sin2

m�

2(M + 1)

!; m = 1; 2; � � � ;M (4.29)

and, from Section B.4, for the model biconvection equation

�m =�ia

�xsin

�2m�

M

�m = 0; 1; � � � ;M � 1

= �i��ma m = 0; 1; � � � ;M � 1 (4.30)

where

��m=

sin�m�x

�xm = 0; 1; � � � ;M � 1 (4.31)

is the modi�ed wavenumber from Section 3.5, �m = m, and �x = 2�=M . Notice

that the di�usion eigenvalues are real and negative while those representing periodic

convection are all pure imaginary. The interpretation of this result plays a very

important role later in our stability analysis.

4.3.3 Eigenvectors of the Model Equations

Next we consider the eigenvectors of the two model equations. These follow as special

cases from the results given in Appendix B.

The Di�usion Model

Consider Eq. 4.4, the model ODE's for di�usion. First, to help visualize the matrix

structure, we present results for a simple 4-point mesh and then we give the general

case. The right-hand eigenvector matrix X is given by26664sin (x1) sin (2x1) sin (3x1) sin (4x1)

sin (x2) sin (2x2) sin (3x2) sin (4x2)

sin (x3) sin (2x3) sin (3x3) sin (4x3)

sin (x4) sin (2x4) sin (3x4) sin (4x4)

37775

The columns of the matrix are proportional to the eigenvectors. Recall that xj =

j�x = j�=(M + 1), so in general the relation ~u = X ~w can be written as

uj =MXm=1

wm sinmxj ; j = 1; 2; � � � ;M (4.32)

Page 72: Fundamentals of Computational Fluid Dynamics.pdf

64 CHAPTER 4. THE SEMI-DISCRETE APPROACH

For the inverse, or left-hand eigenvector matrix X�1, we �nd

26664sin (x1) sin (x2) sin (x3) sin (x4)

sin (2x1) sin (2x2) sin (2x3) sin (2x4)

sin (3x1) sin (3x2) sin (3x3) sin (3x4)

sin (4x1) sin (4x2) sin (4x3) sin (4x4)

37775

The rows of the matrix are proportional to the eigenvectors. In general ~w = X�1~u

gives

wm =MXj=1

uj sinmxj ; m = 1; 2; � � � ;M (4.33)

In the �eld of harmonic analysis, Eq. 4.33 represents a sine transform of the func-

tion u(x) for an M -point sample between the boundaries x = 0 and x = � with the

condition u(0) = u(�) = 0. Similarly, Eq. 4.32 represents the sine synthesis that

companions the sine transform given by Eq. 4.33. In summary,

For the model di�usion equation:

~w = X�1~u is a sine transform from real space to (sine) wave

space.

~u = X~w is a sine synthesis from wave space back to real

space.

The Biconvection Model

Next consider the model ODE's for periodic convection, Eq. 4.5. The coe�cient

matrices for these ODE's are always circulant. For our model ODE, the right-hand

eigenvectors are given by

~xm = ei j (2�m=M);j = 0; 1; � � � ;M � 1

m = 0; 1; � � � ;M � 1

With xj = j ��x = j � 2�=M , we can write ~u = X ~w as

uj =M�1Xm=0

wmeimxj ; j = 0; 1; � � � ;M � 1 (4.34)

Page 73: Fundamentals of Computational Fluid Dynamics.pdf

4.3. REAL SPACE AND EIGENSPACE 65

For a 4-point periodic mesh, we �nd the following left-hand eigenvector matrix

from Appendix B.4:

26664w1

w2

w3

w4

37775 =

1

4

266641 1 1 1

1 e�2i�=4 e�4i�=4 e�6i�=4

1 e�4i�=4 e�8i�=4 e�12i�=4

1 e�6i�=4 e�12i�=4 e�18i�=4

3777526664u1u2u3u4

37775 = X�1~u

In general

wm =1

M

M�1Xj=0

uje�imxj ; m = 0; 1; � � � ;M � 1

This equation is identical to a discrete Fourier transform of the periodic dependent

variable ~u using an M -point sample between and including x = 0 and x = 2� ��x.

For circulant matrices, it is straightforward to establish the fact that the relation~u = X~w represents the Fourier synthesis of the variable ~w back to ~u. In summary,

For any circulant system:

~w = X�1~u is a complex Fourier transform from real space to

wave space.

~u = X~w is a complex Fourier synthesis from wave space

back to real space.

4.3.4 Solutions of the Model ODE's

We can now combine the results of the previous sections to write the solutions of our

model ODE's.

The Di�usion Equation

For the di�usion equation, Eq. 4.27 becomes

uj(t) =MXm=1

cme�mt sinmxj + (A�1f)j; j = 1; 2; � � � ;M (4.35)

where

�m =�4�

�x2sin2

m�

2(M + 1)

!(4.36)

Page 74: Fundamentals of Computational Fluid Dynamics.pdf

66 CHAPTER 4. THE SEMI-DISCRETE APPROACH

With the modi�ed wavenumber de�ned as

��m=

2

�xsin

��m�x

2

�(4.37)

and using �m = m, we can write the ODE solution as

uj(t) =MXm=1

cme���

m

2t sin�mxj + (A�1f)j; j = 1; 2; � � � ;M (4.38)

This can be compared with the exact solution to the PDE, Eq. 2.37, evaluated at the

nodes of the grid:

uj(t) =MXm=1

cme���m

2t sin�mxj + h(xj); j = 1; 2; � � � ;M (4.39)

We see that the solutions are identical except for the steady solution and the

modi�ed wavenumber in the transient term. The modi�ed wavenumber is an approx-

imation to the actual wavenumber. The di�erence between the modi�ed wavenumber

and the actual wavenumber depends on the di�erencing scheme and the grid resolu-

tion. This di�erence causes the various modes (or eigenvector components) to decay

at rates which di�er from the exact solution. With conventional di�erencing schemes,

low wavenumber modes are accurately represented, while high wavenumber modes (if

they have signi�cant amplitudes) can have large errors.

The Convection Equation

For the biconvection equation, we obtain

uj(t) =M�1Xm=0

cme�mtei�mxj ; j = 0; 1; � � � ;M � 1 (4.40)

where

�m = �i��ma (4.41)

with the modi�ed wavenumber de�ned in Eq. 4.31. We can write this ODE solution

as

uj(t) =M�1Xm=0

cme�i�

matei�mxj ; j = 0; 1; � � � ;M � 1 (4.42)

Page 75: Fundamentals of Computational Fluid Dynamics.pdf

4.4. THE REPRESENTATIVE EQUATION 67

and compare it to the exact solution of the PDE, Eq. 2.26, evaluated at the nodes of

the grid:

uj(t) =M�1Xm=0

fm(0)e�i�matei�mxj ; j = 0; 1; � � � ;M � 1 (4.43)

Once again the di�erence appears through the modi�ed wavenumber contained in

�m. As discussed in Section 3.5, this leads to an error in the speed with which various

modes are convected, since �� is real. Since the error in the phase speed depends on

the wavenumber, while the actual phase speed is independent of the wavenumber,

the result is erroneous numerical dispersion. In the case of non-centered di�erencing,

discussed in Chapter 11, the modi�ed wavenumber is complex. The form of Eq. 4.42

shows that the imaginary portion of the modi�ed wavenumber produces nonphysical

decay or growth in the numerical solution.

4.4 The Representative Equation

In Section 4.3, we pointed out that Eqs. 4.20 and 4.23 express identical results but in

terms of di�erent groupings of the dependent variables, which are related by algebraic

manipulation. This leads to the following important concept:

The numerical solution to a set of linear ODE's (in which A is

not a function of t) is entirely equivalent to the solution obtained

if the equations are transformed to eigenspace, solved there in

their uncoupled form, and then returned as a coupled set to real

space.

The importance of this concept resides in its message that we can analyze time-

marching methods by applying them to a single, uncoupled equation and our con-

clusions will apply in general. This is helpful both in analyzing the accuracy of

time-marching methods and in studying their stability, topics which are covered in

Chapters 6 and 7.

Our next objective is to �nd a \typical" single ODE to analyze. We found the

uncoupled solution to a set of ODE's in Section 4.2. A typical member of the family

is

dwm

dt= �mwm � gm(t) (4.44)

The goal in our analysis is to study typical behavior of general situations, not partic-

ular problems. For such a purpose Eq. 4.44 is not quite satisfactory. The role of �m is

clear; it stands for some representative eigenvalue in the original A matrix. However,

Page 76: Fundamentals of Computational Fluid Dynamics.pdf

68 CHAPTER 4. THE SEMI-DISCRETE APPROACH

the question is: What should we use for gm(t) when the time dependence cannot be

ignored? To answer this question, we note that, in principle, one can express any one

of the forcing terms gm(t) as a �nite Fourier series. For example

�g(t) =Xk

akeikt

for which Eq. 4.44 has the exact solution:

w(t) = ce�t +Xk

akeikt

ik � �

From this we can extract the k'th term and replace ik with �. This leads to

The Representative ODE

dw

dt= �w + ae�t

(4.45)

which can be used to evaluate all manner of time-marching methods. In such evalua-

tions the parameters � and � must be allowed to take the worst possible combination

of values that might occur in the ODE eigensystem. The exact solution of the repre-

sentative ODE is (for � 6= �):

w(t) = ce�t +ae�t

�� �(4.46)

4.5 Problems

1. Consider the �nite-di�erence operator derived in question 1 of Chapter 3. Using

this operator to approximate the spatial derivative in the linear convection equa-

tion, write the semi-discrete form obtained with periodic boundary conditions

on a 5-point grid (M = 5).

2. Consider the application of the operator given in Eq. 3.52 to the 1-D di�usion

equation with Dirichlet boundary conditions. Write the resulting semi-discrete

ODE form. Find the entries in the boundary-condition vector.

3. Write the semi-discrete form resulting from the application of second-order cen-

tered di�erences to the following equation on the domain 0 � x � 1 with

boundary conditions u(0) = 0, u(1) = 1:

@u

@t=

@2u

@x2� 6x

Page 77: Fundamentals of Computational Fluid Dynamics.pdf

4.5. PROBLEMS 69

4. Consider a grid with 10 interior points spanning the domain 0 � x � �. For

initial conditions u(x; 0) = sin(mx) and boundary conditions u(0; t) = u(�; t) =

0, plot the exact solution of the di�usion equation with � = 1 at t = 1 with

m = 1 and m = 3. (Plot the solution at the grid nodes only.) Calculate the

corresponding modi�ed wavenumbers for the second-order centered operator

from Eq. 4.37. Calculate and plot the corresponding ODE solutions.

5. Consider the matrix

A = �Bp(10;�1; 0; 1)=(2�x)

corresponding to the ODE form of the biconvection equation resulting from the

application of second-order central di�erencing on a 10-point grid. Note that

the domain is 0 � x � 2� and �x = 2�=10. The grid nodes are given by

xj = j�x; j = 0; 1; : : : 9. The eigenvalues of the above matrix A, as well as the

matrices X and X�1, can be found from Appendix B.4. Using these, compute

and plot the ODE solution at t = 2� for the initial condition u(x; 0) = sinx.

Compare with the exact solution of the PDE. Calculate the numerical phase

speed from the modi�ed wavenumber corresponding to this initial condition

and show that it is consistent with the ODE solution. Repeat for the initial

condition u(x; 0) = sin 2x.

Page 78: Fundamentals of Computational Fluid Dynamics.pdf

70 CHAPTER 4. THE SEMI-DISCRETE APPROACH

Page 79: Fundamentals of Computational Fluid Dynamics.pdf

Chapter 5

FINITE-VOLUME METHODS

In Chapter 3, we saw how to derive �nite-di�erence approximations to arbitrary

derivatives. In Chapter 4, we saw that the application of a �nite-di�erence approxi-

mation to the spatial derivatives in our model PDE's produces a coupled set of ODE's.

In this Chapter, we will show how similar semi-discrete forms can be derived using

�nite-volume approximations in space. Finite-volume methods have become popu-

lar in CFD as a result, primarily, of two advantages. First, they ensure that the

discretization is conservative, i.e., mass, momentum, and energy are conserved in a

discrete sense. While this property can usually be obtained using a �nite-di�erence

formulation, it is obtained naturally from a �nite-volume formulation. Second, �nite-

volume methods do not require a coordinate transformation in order to be applied on

irregular meshes. As a result, they can be applied on unstructured meshes consisting

of arbitrary polyhedra in three dimensions or arbitrary polygons in two dimensions.

This increased exibility can be used to great advantage in generating grids about

arbitrary geometries.

Finite-volume methods are applied to the integral form of the governing equations,

either in the form of Eq. 2.1 or Eq. 2.2. Consistent with our emphasis on semi-discrete

methods, we will study the latter form, which is

d

dt

ZV (t)

QdV +

IS(t)

n:FdS =

ZV (t)

PdV (5.1)

We will begin by presenting the basic concepts which apply to �nite-volume strategies.

Next we will give our model equations in the form of Eq. 5.1. This will be followed

by several examples which hopefully make these concepts clear.

71

Page 80: Fundamentals of Computational Fluid Dynamics.pdf

72 CHAPTER 5. FINITE-VOLUME METHODS

5.1 Basic Concepts

The basic idea of a �nite-volume method is to satisfy the integral form of the con-

servation law to some degree of approximation for each of many contiguous control

volumes which cover the domain of interest. Thus the volume V in Eq. 5.1 is that of a

control volume whose shape is dependent on the nature of the grid. In our examples,

we will consider only control volumes which do not vary with time. Examining Eq.

5.1, we see that several approximations must be made. The ux is required at the

boundary of the control volume, which is a closed surface in three dimensions and a

closed contour in two dimensions. This ux must then be integrated to �nd the net

ux through the boundary. Similarly, the source term P must be integrated over the

control volume. Next a time-marching method1 can be applied to �nd the value of

ZVQdV (5.2)

at the next time step.

Let us consider these approximations in more detail. First, we note that the

average value of Q in a cell with volume V is

�Q � 1

V

ZVQdV (5.3)

and Eq. 5.1 can be written as

Vd

dt�Q +

ISn:FdS =

ZVPdV (5.4)

for a control volume which does not vary with time. Thus after applying a time-

marching method, we have updated values of the cell-averaged quantities �Q. In order

to evaluate the uxes, which are a function of Q, at the control-volume boundary, Q

can be represented within the cell by some piecewise approximation which produces

the correct value of �Q. This is a form of interpolation often referred to as recon-

struction. As we shall see in our examples, each cell will have a di�erent piecewise

approximation to Q. When these are used to calculate F(Q), they will generally

produce di�erent approximations to the ux at the boundary between two control

volumes, that is, the ux will be discontinuous. A nondissipative scheme analogous

to centered di�erencing is obtained by taking the average of these two uxes. Another

approach known as ux-di�erence splitting is described in Chapter 11.

The basic elements of a �nite-volume method are thus the following:

1Time-marching methods will be discussed in the next chapter.

Page 81: Fundamentals of Computational Fluid Dynamics.pdf

5.2. MODEL EQUATIONS IN INTEGRAL FORM 73

1. Given the value of �Q for each control volume, construct an approximation to

Q(x; y; z) in each control volume. Using this approximation, �nd Q at the

control-volume boundary. Evaluate F(Q) at the boundary. Since there is a

distinct approximation to Q(x; y; z) in each control volume, two distinct values

of the ux will generally be obtained at any point on the boundary between two

control volumes.

2. Apply some strategy for resolving the discontinuity in the ux at the control-

volume boundary to produce a single value of F(Q) at any point on the bound-

ary. This issue is discussed in Section 11.4.2.

3. Integrate the ux to �nd the net ux through the control-volume boundary

using some sort of quadrature.

4. Advance the solution in time to obtain new values of �Q.

The order of accuracy of the method is dependent on each of the approximations.

These ideas should be clari�ed by the examples in the remainder of this chapter.

In order to include di�usive uxes, the following relation between rQ and Q is

sometimes used: ZVrQdV =

ISnQdS (5.5)

or, in two dimensions, ZArQdA =

ICnQdl (5.6)

where the unit vector n points outward from the surface or contour.

5.2 Model Equations in Integral Form

5.2.1 The Linear Convection Equation

A two-dimensional form of the linear convection equation can be written as

@u

@t+ a cos �

@u

@x+ a sin �

@u

@y= 0 (5.7)

This PDE governs a simple plane wave convecting the scalar quantity, u(x; y; t) with

speed a along a straight line making an angle � with respect to the x-axis. The

one-dimensional form is recovered with � = 0.

Page 82: Fundamentals of Computational Fluid Dynamics.pdf

74 CHAPTER 5. FINITE-VOLUME METHODS

For unit speed a, the two-dimensional linear convection equation is obtained from

the general divergence form, Eq. 2.3, with

Q = u (5.8)

F = iu cos � + ju sin � (5.9)

P = 0 (5.10)

Since Q is a scalar, F is simply a vector. Substituting these expressions into a two-

dimensional form of Eq. 2.2 gives the following integral form

d

dt

ZAudA+

ICn:(iu cos � + ju sin �)ds = 0 (5.11)

where A is the area of the cell which is bounded by the closed contour C.

5.2.2 The Di�usion Equation

The integral form of the two-dimensional di�usion equation with no source term and

unit di�usion coe�cient � is obtained from the general divergence form, Eq. 2.3, with

Q = u (5.12)

F = �ru (5.13)

= � i@u

@x+ j

@u

@y

!(5.14)

P = 0 (5.15)

Using these, we �ndd

dt

ZAudA =

ICn:

i@u

@x+ j

@u

@y

!ds (5.16)

to be the integral form of the two-dimensional di�usion equation.

5.3 One-Dimensional Examples

We restrict our attention to a scalar dependent variable u and a scalar ux f , as in

the model equations. We consider an equispaced grid with spacing �x. The nodes of

the grid are located at xj = j�x as usual. Control volume j extends from xj ��x=2

to xj +�x=2, as shown in Fig. 5.1. We will use the following notation:

xj�1=2 = xj ��x=2; xj+1=2 = xj +�x=2 (5.17)

Page 83: Fundamentals of Computational Fluid Dynamics.pdf

5.3. ONE-DIMENSIONAL EXAMPLES 75

j j+1j-1 j+2j-2

j-1/2 j+1/2

∆ x

L RL R

Figure 5.1: Control volume in one dimension.

uj�1=2 = u(xj�1=2); fj�1=2 = f(uj�1=2) (5.18)

With these de�nitions, the cell-average value becomes

�uj(t) �1

�x

Z xj+1=2

xj�1=2

u(x; t)dx (5.19)

and the integral form becomes

d

dt(�x�uj) + fj+1=2 � fj�1=2 =

Z xj+1=2

xj�1=2

Pdx (5.20)

Now with � = x� xj, we can expand u(x) in Eq. 5.19 in a Taylor series about xj(with t �xed) to get

�uj � 1

�x

Z �x=2

��x=2

24uj + �

@u

@x

!j

+�2

2

@2u

@x2

!j

+�3

6

@3u

@x3

!j

+ : : :

35 d�

= uj +�x2

24

@2u

@x2

!j

+�x4

1920

@4u

@x4

!j

+O(�x6) (5.21)

or

�uj = uj +O(�x2) (5.22)

where uj is the value at the center of the cell. Hence the cell-average value and the

value at the center of the cell di�er by a term of second order.

5.3.1 A Second-Order Approximation to the Convection Equa-

tion

In one dimension, the integral form of the linear convection equation, Eq. 5.11, be-

comes

�xd�uj

dt+ fj+1=2 � fj�1=2 = 0 (5.23)

Page 84: Fundamentals of Computational Fluid Dynamics.pdf

76 CHAPTER 5. FINITE-VOLUME METHODS

with f = u. We choose a piecewise constant approximation to u(x) in each cell such

that

u(x) = �uj xj�1=2 � x � xj+1=2 (5.24)

Evaluating this at j + 1=2 gives

fLj+1=2 = f(uLj+1=2) = uLj+1=2 = �uj (5.25)

where the L indicates that this approximation to fj+1=2 is obtained from the approx-

imation to u(x) in the cell to the left of xj+1=2, as shown in Fig. 5.1. The cell to the

right of xj+1=2, which is cell j + 1, gives

fRj+1=2 = �uj+1 (5.26)

Similarly, cell j is the cell to the right of xj�1=2, giving

fRj�1=2 = �uj (5.27)

and cell j � 1 is the cell to the left of xj�1=2, giving

fLj�1=2 = �uj�1 (5.28)

We have now accomplished the �rst step from the list in Section 5.1; we have de�ned

the uxes at the cell boundaries in terms of the cell-average data. In this example,

the discontinuity in the ux at the cell boundary is resolved by taking the average of

the uxes on either side of the boundary. Thus

fj+1=2 =1

2(fLj+1=2 + fRj+1=2) =

1

2(�uj + �uj+1) (5.29)

and

fj�1=2 =1

2(fLj�1=2 + fRj�1=2) =

1

2(�uj�1 + �uj) (5.30)

where f denotes a numerical ux which is an approximation to the exact ux.

Substituting Eqs. 5.29 and 5.30 into the integral form, Eq. 5.23, we obtain

�xd�uj

dt+

1

2(�uj + �uj+1)�

1

2(�uj�1 + �uj) = �x

d�uj

dt+

1

2(�uj+1 � �uj�1) = 0 (5.31)

With periodic boundary conditions, this point operator produces the following semi-

discrete form:

d~�u

dt= � 1

2�xBp(�1; 0; 1)~�u (5.32)

Page 85: Fundamentals of Computational Fluid Dynamics.pdf

5.3. ONE-DIMENSIONAL EXAMPLES 77

This is identical to the expression obtained using second-order centered di�erences,

except it is written in terms of the cell average ~�u, rather than the nodal values, ~u.

Hence our analysis and understanding of the eigensystem of the matrix Bp(�1; 0; 1)is relevant to �nite-volume methods as well as �nite-di�erence methods. Since the

eigenvalues of Bp(�1; 0; 1) are pure imaginary, we can conclude that the use of the

average of the uxes on either side of the cell boundary, as in Eqs. 5.29 and 5.30, can

lead to a nondissipative �nite-volume method.

5.3.2 A Fourth-Order Approximation to the Convection Equa-

tion

Let us replace the piecewise constant approximation in Section 5.3.1 with a piecewise

quadratic approximation as follows

u(�) = a�2 + b� + c (5.33)

where � is again equal to x � xj. The three parameters a, b, and c are chosen to

satisfy the following constraints:

1

�x

Z��x=2

�3�x=2u(�)d� = �uj�1

1

�x

Z �x=2

��x=2u(�)d� = �uj (5.34)

1

�x

Z 3�x=2

�x=2u(�)d� = �uj+1

These constraints lead to

a =�uj+1 � 2�uj + �uj�1

2�x2

b =�uj+1 � �uj�1

2�x(5.35)

c =��uj�1 + 26�uj � �uj+1

24

With these values of a, b, and c, the piecewise quadratic approximation produces

the following values at the cell boundaries:

uLj+1=2 =1

6(2�uj+1 + 5�uj � �uj�1) (5.36)

Page 86: Fundamentals of Computational Fluid Dynamics.pdf

78 CHAPTER 5. FINITE-VOLUME METHODS

uRj�1=2 =1

6(��uj+1 + 5�uj + 2�uj�1) (5.37)

uRj+1=2 =1

6(��uj+2 + 5�uj+1 + 2�uj) (5.38)

uLj�1=2 =1

6(2�uj + 5�uj�1 � �uj�2) (5.39)

using the notation de�ned in Section 5.3.1. Recalling that f = u, we again use the

average of the uxes on either side of the boundary to obtain

fj+1=2 =1

2[f(uLj+1=2) + f(uRj+1=2)]

=1

12(��uj+2 + 7�uj+1 + 7�uj � �uj�1) (5.40)

and

fj�1=2 =1

2[f(uLj�1=2) + f(uRj�1=2)]

=1

12(��uj+1 + 7�uj + 7�uj�1 � �uj�2) (5.41)

Substituting these expressions into the integral form, Eq. 5.23, gives

�xd�uj

dt+

1

12(��uj+2 + 8�uj+1 � 8�uj�1 + �uj�2) = 0 (5.42)

This is a fourth-order approximation to the integral form of the equation, as can be

veri�ed using Taylor series expansions (see question 1 at the end of this chapter).

With periodic boundary conditions, the following semi-discrete form is obtained:

d~�u

dt= � 1

12�xBp(1;�8; 0; 8;�1)~�u (5.43)

This is a system of ODE's governing the evolution of the cell-average data.

5.3.3 A Second-Order Approximation to the Di�usion Equa-

tion

In this section, we describe two approaches to deriving a �nite-volume approximation

to the di�usion equation. The �rst approach is simpler to extend to multidimensions,

while the second approach is more suited to extension to higher order accuracy.

Page 87: Fundamentals of Computational Fluid Dynamics.pdf

5.3. ONE-DIMENSIONAL EXAMPLES 79

In one dimension, the integral form of the di�usion equation, Eq. 5.16, becomes

�xd�uj

dt+ fj+1=2 � fj�1=2 = 0 (5.44)

with f = �ru = �@u=@x. Also, Eq. 5.6 becomes

Z b

a

@u

@xdx = u(b)� u(a) (5.45)

We can thus write the following expression for the average value of the gradient of u

over the interval xj � x � xj+1:

1

�x

Z xj+1

xj

@u

@xdx =

1

�x(uj+1 � uj) (5.46)

From Eq. 5.22, we know that the value of a continuous function at the center of a given

interval is equal to the average value of the function over the interval to second-order

accuracy. Hence, to second-order, we can write

fj+1=2 = � @u

@x

!j+1=2

= � 1

�x(�uj+1 � �uj) (5.47)

Similarly,

fj�1=2 = � 1

�x(�uj � �uj�1) (5.48)

Substituting these into the integral form, Eq. 5.44, we obtain

�xd�uj

dt=

1

�x(�uj�1 � 2�uj + �uj+1) (5.49)

or, with Dirichlet boundary conditions,

d~�u

dt=

1

�x2B(1;�2; 1)~�u+

�~bc�

(5.50)

This provides a semi-discrete �nite-volume approximation to the di�usion equation,

and we see that the properties of the matrix B(1;�2; 1) are relevant to the study of

�nite-volume methods as well as �nite-di�erence methods.

For our second approach, we use a piecewise quadratic approximation as in Section

5.3.2. From Eq. 5.33 we have

@u

@x=

@u

@�= 2a� + b (5.51)

Page 88: Fundamentals of Computational Fluid Dynamics.pdf

80 CHAPTER 5. FINITE-VOLUME METHODS

with a and b given in Eq. 5.35. With f = �@u=@x, this gives

fRj+1=2 = fLj+1=2 = � 1

�x(�uj+1 � �uj) (5.52)

fRj�1=2 = fLj�1=2 = � 1

�x(�uj � �uj�1) (5.53)

Notice that there is no discontinuity in the ux at the cell boundary. This produces

d�uj

dt=

1

�x2(�uj�1 � 2�uj + �uj+1) (5.54)

which is identical to Eq. 5.49. The resulting semi-discrete form with periodic bound-

ary conditions is

d~�u

dt=

1

�x2Bp(1;�2; 1)~�u (5.55)

which is written entirely in terms of cell-average data.

5.4 A Two-Dimensional Example

The above one-dimensional examples of �nite-volume approximations obscure some

of the practical aspects of such methods. Thus our �nal example is a �nite-volume

approximation to the two-dimensional linear convection equation on a grid consisting

of regular triangles, as shown in Figure 5.2. As in Section 5.3.1, we use a piecewise

constant approximation in each control volume and the ux at the control volume

boundary is the average of the uxes obtained on either side of the boundary. The

nodal data are stored at the vertices of the triangles formed by the grid. The control

volumes are regular hexagons with area A, � is the length of the sides of the triangles,

and ` is the length of the sides of the hexagons. The following relations hold between

`, �, and A.

` =1p3�

A =3p3

2`2

`

A=

2

3�(5.56)

The two-dimensional form of the conservation law is

d

dt

ZAQdA+

ICn:Fdl = 0 (5.57)

Page 89: Fundamentals of Computational Fluid Dynamics.pdf

5.4. A TWO-DIMENSIONAL EXAMPLE 81

05

4

3

2

1

a

bc

d

e f

lp

Figure 5.2: Triangular grid.

where we have ignored the source term. The contour in the line integral is composed

of the sides of the hexagon. Since these sides are all straight, the unit normals can

be taken outside the integral and the ux balance is given by

d

dt

ZAQ dA+

5X�=0

n� �Z�Fdl = 0

where � indexes a side of the hexagon, as shown in Figure 5.2. A list of the normals

for the mesh orientation shown is given in Table 5.1.

Side; � Outward Normal;n

0 (i�p3 j)=2

1 i

2 (i+p3 j)=2

3 (�i+p3 j)=2

4 �i5 (�i�

p3 j)=2

Table 5.1. Outward normals, see Fig. 5.2.

i and j are unit normals along x and y, respectively.

Page 90: Fundamentals of Computational Fluid Dynamics.pdf

82 CHAPTER 5. FINITE-VOLUME METHODS

For Eq. 5.11, the two-dimensional linear convection equation, we have for side �

n� �Z�Fdl = n� � (i cos � + j sin �)

Z `=2

�`=2u�(�)d� (5.58)

where � is a length measured from the middle of a side �. Making the change of

variable z = �=`, one has the expression

Z `=2

�`=2u(�)d� = `

Z 1=2

�1=2u(z)dz (5.59)

Then, in terms of u and the hexagon area A, we have

d

dt

ZAu dA+

5X�=0

n� � (i cos � + j sin �)

"`Z 1=2

�1=2u(z)dz

#�

= 0 (5.60)

The values of n� � (i cos � + j sin �) are given by the expressions in Table 5.2. There

are no numerical approximations in Eq. 5.60. That is, if the integrals in the equation

are evaluated exactly, the integrated time rate of change of the integral of u over the

area of the hexagon is known exactly.

Side; � n� � (i cos � + j sin �)

0 (cos � �p3 sin �)=2

1 cos �

2 (cos � +p3 sin �)=2

3 (� cos � +p3 sin �)=2

4 � cos �

5 (� cos � �p3 sin �)=2

Table 5.2. Weights of ux integrals, see Eq. 5.60.

Introducing the cell average, ZAu dA = A�up (5.61)

and the piecewise-constant approximation u = �up over the entire hexagon, the ap-

proximation to the ux integral becomes trivial. Taking the average of the ux on

either side of each edge of the hexagon gives for edge 1:

Z1u(z)dz =

�up + �ua

2

Z 1=2

�1=2dz =

�up + �ua

2(5.62)

Page 91: Fundamentals of Computational Fluid Dynamics.pdf

5.5. PROBLEMS 83

Similarly, we have for the other �ve edges:Z2u(z)dz =

�up + �ub

2(5.63)

Z3u(z)dz =

�up + �uc

2(5.64)

Z4u(z)dz =

�up + �ud

2(5.65)

Z5u(z)dz =

�up + �ue

2(5.66)

Z0u(z)dz =

�up + �uf

2(5.67)

Substituting these into Eq. 5.60, along with the expressions in Table 5.2, we obtain

Ad�up

dt+

`

2[(2 cos �)(�ua � �ud) + (cos � +

p3 sin �)(�ub � �ue)

+(� cos � +p3 sin �)(�uc � �uf)] = 0 (5.68)

or

d�up

dt+

1

3�[(2 cos �)(�ua � �ud) + (cos � +

p3 sin �)(�ub � �ue)

+(� cos � +p3 sin �)(�uc � �uf)] = 0 (5.69)

The reader can verify, using Taylor series expansions, that this is a second-order

approximation to the integral form of the two-dimensional linear convection equation.

5.5 Problems

1. Use Taylor series to verify that Eq. 5.42 is a fourth-order approximation to Eq.

5.23.

2. Find the semi-discrete ODE form governing the cell-average data resulting from

the use of a linear approximation in developing a �nite-volume method for the

linear convection equation. Use the following linear approximation:

u(�) = a� + b

Page 92: Fundamentals of Computational Fluid Dynamics.pdf

84 CHAPTER 5. FINITE-VOLUME METHODS

where b = �uj and

a =�uj+1 � �uj�1

2�x

and use the average ux at the cell interface.

3. Using the �rst approach given in Section 5.3.3, derive a �nite-volume approx-

imation to the spatial terms in the two-dimensional di�usion equation on a

square grid.

4. Repeat question 3 for a grid consisting of equilateral triangles.

Page 93: Fundamentals of Computational Fluid Dynamics.pdf

Chapter 6

TIME-MARCHING METHODS

FOR ODE'S

After discretizing the spatial derivatives in the governing PDE's (such as the Navier-Stokes equations), we obtain a coupled system of nonlinear ODE's in the form

d~u

dt= ~F (~u; t) (6.1)

These can be integrated in time using a time-marching method to obtain a time-

accurate solution to an unsteady ow problem. For a steady ow problem, spatialdiscretization leads to a coupled system of nonlinear algebraic equations in the form

~F (~u) = 0 (6.2)

As a result of the nonlinearity of these equations, some sort of iterative method is

required to obtain a solution. For example, one can consider the use of Newton'smethod, which is widely used for nonlinear algebraic equations (See Section 6.10.3.).

This produces an iterative method in which a coupled system of linear algebraic

equations must be solved at each iteration. These can be solved iteratively usingrelaxation methods, which will be discussed in Chapter 9, or directly using Gaussian

elimination or some variation thereof.Alternatively, one can consider a time-dependent path to the steady state and use

a time-marching method to integrate the unsteady form of the equations until the

solution is su�ciently close to the steady solution. The subject of the present chapter,

time-marching methods for ODE's, is thus relevant to both steady and unsteady owproblems. When using a time-marching method to compute steady ows, the goal is

simply to remove the transient portion of the solution as quickly as possible; time-accuracy is not required. This motivates the study of stability and sti�ness, topics

which are covered in the next two chapters.

85

Page 94: Fundamentals of Computational Fluid Dynamics.pdf

86 CHAPTER 6. TIME-MARCHING METHODS FOR ODE'S

Application of a spatial discretization to a PDE produces a coupled system of

ODE's. Application of a time-marching method to an ODE produces an ordinary

di�erence equation (O�E ). In earlier chapters, we developed exact solutions to our

model PDE's and ODE's. In this chapter we will present some basic theory of linear

O�E's which closely parallels that for linear ODE's, and, using this theory, we will

develop exact solutions for the model O�E's arising from the application of time-

marching methods to the model ODE's.

6.1 Notation

Using the semi-discrete approach, we reduce our PDE to a set of coupled ODE'srepresented in general by Eq. 4.1. However, for the purpose of this chapter, we need

only consider the scalar case

du

dt= u0 = F (u; t) (6.3)

Although we use u to represent the dependent variable, rather than w, the readershould recall the arguments made in Chapter 4 to justify the study of a scalar ODE.Our �rst task is to �nd numerical approximations that can be used to carry out the

time integration of Eq. 6.3 to some given accuracy, where accuracy can be measuredeither in a local or a global sense. We then face a further task concerning the numerical

stability of the resulting methods, but we postpone such considerations to the nextchapter.

In Chapter 2, we introduced the convention that the n subscript, or the (n) su-

perscript, always points to a discrete time value, and h represents the time interval

�t. Combining this notation with Eq. 6.3 gives

u0n= Fn = F (un; tn) ; tn = nh

Often we need a more sophisticated notation for intermediate time steps involvingtemporary calculations denoted by ~u, �u, etc. For these we use the notation

~u0n+� =

~Fn+� = F (~un+�; tn + �h)

The choice of u0 or F to express the derivative in a scheme is arbitrary. They are

both commonly used in the literature on ODE's.The methods we study are to be applied to linear or nonlinear ODE's, but the

methods themselves are formed by linear combinations of the dependent variable and

its derivative at various time intervals. They are represented conceptually by

un+1 = f��1u

0

n+1; �0u0

n; ��1u

0

n�1; � � � ; �0un; ��1un�1; � � ��

(6.4)

Page 95: Fundamentals of Computational Fluid Dynamics.pdf

6.2. CONVERTING TIME-MARCHING METHODS TO O�E'S 87

With an appropriate choice of the �0s and � 0s, these methods can be constructed

to give a local Taylor series accuracy of any order. The methods are said to be

explicit if �1 = 0 and implicit otherwise. An explicit method is one in which the new

predicted solution is only a function of known data, for example, u0n, u0

n�1, un; and

un�1 for a method using two previous time levels, and therefore the time advance is

simple. For an implicit method, the new predicted solution is also a function of the

time derivative at the new time level, that is, u0n+1. As we shall see, for systems of

ODE's and nonlinear problems, implicit methods require more complicated strategiesto solve for un+1 than explicit methods.

6.2 Converting Time-Marching Methods to O�E's

Examples of some very common forms of methods used for time-marching general

ODE's are:

un+1 = un + hu0n

(6.5)

un+1 = un + hu0n+1 (6.6)

and

~un+1 = un + hu0n

un+1 =1

2[un + ~un+1 + h~u0

n+1] (6.7)

According to the conditions presented under Eq. 6.4, the �rst and third of these are

examples of explicit methods. We refer to them as the explicit Euler method and the

MacCormack predictor-corrector method,1 respectively. The second is implicit andreferred to as the implicit (or backward) Euler method.

These methods are simple recipes for the time advance of a function in terms of its

value and the value of its derivative, at given time intervals. The material presentedin Chapter 4 develops a basis for evaluating such methods by introducing the concept

of the representative equation

du

dt= u0 = �u+ ae�t (6.8)

written here in terms of the dependent variable, u. The value of this equation arises

from the fact that, by applying a time-marching method, we can analytically convert

1Here we give only MacCormack's time-marching method. The method commonly referred to as

MacCormack's method, which is a fully-discrete method, will be presented in Section 11.3

Page 96: Fundamentals of Computational Fluid Dynamics.pdf

88 CHAPTER 6. TIME-MARCHING METHODS FOR ODE'S

such a linear ODE into a linear O�E . The latter are subject to a whole body of

analysis that is similar in many respects to, and just as powerful as, the theory of

ODE's. We next consider examples of this conversion process and then go into the

general theory on solving O�E's.

Apply the simple explicit Euler scheme, Eq. 6.5, to Eq. 6.8. There results

un+1 = un + h(�un + ae�hn)

or

un+1 � (1 + �h)un = hae�hn (6.9)

Eq. 6.9 is a linear O�E , with constant coe�cients, expressed in terms of the depen-dent variable un and the independent variable n. As another example, applying theimplicit Euler method, Eq. 6.6, to Eq. 6.8, we �nd

un+1 = un + h��un+1 + ae�h(n+1)

�or

(1� �h)un+1 � un = he�h � ae�hn (6.10)

As a �nal example, the predictor-corrector sequence, Eq. 6.7, gives

~un+1 � (1 + �h)un = ahe�hn

�1

2(1 + �h)~un+1 + un+1 �

1

2un =

1

2ahe�h(n+1) (6.11)

which is a coupled set of linear O�E's with constant coe�cients. Note that the �rstline in Eq. 6.11 is identical to Eq. 6.9, since the predictor step in Eq. 6.7 is simply

the explicit Euler method. The second line in Eq. 6.11 is obtained by noting that

~u0n+1 = F (~un+1; tn + h)

= �~un+1 + ae�h(n+1) (6.12)

Now we need to develop techniques for analyzing these di�erence equations so thatwe can compare the merits of the time-marching methods that generated them.

6.3 Solution of Linear O�E's With Constant Co-

e�cients

The techniques for solving linear di�erence equations with constant coe�cients is as

well developed as that for ODE's and the theory follows a remarkably parallel path.This is demonstrated by repeating some of the developments in Section 4.2, but for

di�erence rather than di�erential equations.

Page 97: Fundamentals of Computational Fluid Dynamics.pdf

6.3. SOLUTION OF LINEAR O�E'S WITH CONSTANT COEFFICIENTS 89

6.3.1 First- and Second-Order Di�erence Equations

First-Order Equations

The simplest nonhomogeneous O�E of interest is given by the single �rst-order equa-

tion

un+1 = �un + abn (6.13)

where �, a, and b are, in general, complex parameters. The independent variable is

now n rather than t, and since the equations are linear and have constant coe�cients,

� is not a function of either n or u. The exact solution of Eq. 6.13 is

un = c1�n +

abn

b� �

where c1 is a constant determined by the initial conditions. In terms of the initialvalue of u it can be written

un = u0�n + a

bn � �n

b� �

Just as in the development of Eq. 4.10, one can readily show that the solution of thedefective case, (b = �),

un+1 = �un + a�n

is

un =hu0 + an��1

i�n

This can all be easily veri�ed by substitution.

Second-Order Equations

The homogeneous form of a second-order di�erence equation is given by

un+2 + a1un+1 + a0un = 0 (6.14)

Instead of the di�erential operator D �d

dtused for ODE's, we use for O�E's the

di�erence operator E (commonly referred to as the displacement or shift operator)and de�ned formally by the relations

un+1 = Eun ; un+k = Ekun

Further notice that the displacement operator also applies to exponents, thus

b� � bn = bn+� = E�� bn

Page 98: Fundamentals of Computational Fluid Dynamics.pdf

90 CHAPTER 6. TIME-MARCHING METHODS FOR ODE'S

where � can be any fraction or irrational number.

The roles of D and E are the same insofar as once they have been introduced to

the basic equations the value of u(t) or un can be factored out. Thus Eq. 6.14 can

now be re-expressed in an operational notion as

(E2 + a1E + a0)un = 0 (6.15)

which must be zero for all un. Eq. 6.15 is known as the operational form of Eq. 6.14.

The operational form contains a characteristic polynomial P (E) which plays the same

role for di�erence equations that P (D) played for di�erential equations; that is, its

roots determine the solution to the O�E. In the analysis of O�E's, we label these

roots �1, �2, � � �, etc, and refer to them as the �-roots. They are found by solving theequation P (�) = 0. In the simple example given above, there are just two � rootsand in terms of them the solution can be written

un = c1(�1)n + c2(�2)

n (6.16)

where c1 and c2 depend upon the initial conditions. The fact that Eq. 6.16 is asolution to Eq. 6.14 for all c1 ; c2 and n should be veri�ed by substitution.

6.3.2 Special Cases of Coupled First-Order Equations

A Complete System

Coupled, �rst-order, linear homogeneous di�erence equations have the form

u(n+1)

1 = c11u(n)

1 + c12u(n)

2

u(n+1)

2 = c21u(n)

1 + c22u(n)

2 (6.17)

which can also be written

~un+1 = C~un ; ~un =hu(n)

1 ; u(n)

2

iT; C =

�c11 c12c21 c22

�The operational form of Eq. 6.17 can be written

�(c11 � E) c12

c21 (c22 � E)

� �u1u2

�(n)= [C � E I ]~un = 0

which must be zero for all u1 and u2. Again we are led to a characteristic polynomial,

this time having the form P (E) = det [C � E I ]. The �-roots are found from

P (�) = det

�(c11 � �) c12

c21 (c22 � �)

�= 0

Page 99: Fundamentals of Computational Fluid Dynamics.pdf

6.4. SOLUTION OF THE REPRESENTATIVE O�E'S 91

Obviously the �k are the eigenvalues of C and, following the logic of Section 4.2,

if ~x are its eigenvectors, the solution of Eq. 6.17 is

~un =2X

k=1

ck(�k)n~xk

where ck are constants determined by the initial conditions.

A Defective System

The solution of O�E's with defective eigensystems follows closely the logic in Section

4.2.2 for defective ODE's. For example, one can show that the solution to264 �un+1

un+1

un+1

375 =264 �1 �

1 �

375264 �ununun

375is

�un = �u0�n

un =hu0 + �u0n�

�1i�n

un =

"u0 + u0n�

�1 + �u0n(n� 1)

2��2

#�n (6.18)

6.4 Solution of the Representative O�E's

6.4.1 The Operational Form and its Solution

Examples of the nonhomogeneous, linear, �rst-order ordinary di�erence equations,produced by applying a time-marching method to the representative equation, aregiven by Eqs. 6.9 to 6.11. Using the displacement operator, E, these equations can

be written

[E � (1 + �h)]un = h � ae�hn (6.19)

[(1� �h)E � 1]un = h � E � ae�hn (6.20)

"E �(1 + �h)

�12(1 + �h)E E �

12

# "~u

u

#n

= h �

"112E

#� ae�hn (6.21)

Page 100: Fundamentals of Computational Fluid Dynamics.pdf

92 CHAPTER 6. TIME-MARCHING METHODS FOR ODE'S

All three of these equations are subsets of the operational form of the representative

O�E

P (E)un = Q(E) � ae�hn (6.22)

which is produced by applying time-marching methods to the representative ODE, Eq.

4.45. We can express in terms of Eq. 6.22 all manner of standard time-marching meth-

ods having multiple time steps and various types of intermediate predictor-corrector

families. The terms P (E) and Q(E) are polynomials in E referred to as the charac-

teristic polynomial and the particular polynomial, respectively.

The general solution of Eq. 6.22 can be expressed as

un =KXk=1

ck(�k)n + ae�hn �

Q(e�h)

P (e�h)(6.23)

where �k are the K roots of the characteristic polynomial, P (�) = 0. When determi-nants are involved in the construction of P (E) and Q(E), as would be the case for

Eq. 6.21, the ratio Q(E)=P (E) can be found by Kramer's rule. Keep in mind that

for methods such as in Eq. 6.21 there are multiple (two in this case) solutions, onefor un and ~un and we are usually only interested in the �nal solution un. Notice also,the important subset of this solution which occurs when � = 0, representing a time

invariant particular solution, or a steady state. In such a case

un =KXk=1

ck(�k)n+ a �

Q(1)

P (1)

6.4.2 Examples of Solutions to Time-Marching O�E's

As examples of the use of Eqs. 6.22 and 6.23, we derive the solutions of Eqs. 6.19 to

6.21. For the explicit Euler method, Eq. 6.19, we have

P (E) = E � 1� �h

Q(E) = h (6.24)

and the solution of its representative O�E follows immediately from Eq. 6.23:

un = c1(1 + �h)n + ae�hn �h

e�h � 1� �h

For the implicit Euler method, Eq. 6.20, we have

P (E) = (1� �h)E � 1

Q(E) = hE (6.25)

Page 101: Fundamentals of Computational Fluid Dynamics.pdf

6.5. THE �� � RELATION 93

so

un = c1

�1

1� �h

�n+ ae�hn �

he�h

(1� �h)e�h � 1

In the case of the coupled predictor-corrector equations, Eq. 6.21, one solves for the

�nal family un (one can also �nd a solution for the intermediate family ~u), and there

results

P (E) = det

"E �(1 + �h)

�12(1 + �h)E E �

12

#= E

�E � 1� �h�

1

2�2h2

Q(E) = det

�E h

�12(1 + �h)E 1

2hE

�=

1

2hE(E + 1 + �h)

The �-root is found from

P (�) = �

�� � 1� �h�

1

2�2h2

�= 0

which has only one nontrivial root (� = 0 is simply a shift in the reference index).The complete solution can therefore be written

un = c1

�1 + �h+

1

2�2h2

�n+ ae�hn �

1

2h�e�h + 1 + �h

�e�h � 1� �h�

1

2�2h2

(6.26)

6.5 The �� � Relation

6.5.1 Establishing the Relation

We have now been introduced to two basic kinds of roots, the �-roots and the �-roots.The former are the eigenvalues of the A matrix in the ODE's found by space di�er-

encing the original PDE, and the latter are the roots of the characteristic polynomial

in a representative O�E found by applying a time-marching method to the repre-sentative ODE. There is a fundamental relation between the two which can be used

to identify many of the essential properties of a time-march method. This relation is�rst demonstrated by developing it for the explicit Euler method.

First we make use of the semi-discrete approach to �nd a system of ODE's and

then express its solution in the form of Eq. 4.27. Remembering that t = nh, one can

write

u(t) = c1�e�1h

�n~x1 + � � �+ cm

�e�mh

�n~xm + � � �+ cM

�e�Mh

�n~xM + P:S: (6.27)

Page 102: Fundamentals of Computational Fluid Dynamics.pdf

94 CHAPTER 6. TIME-MARCHING METHODS FOR ODE'S

where for the present we are not interested in the form of the particular solution

(P:S:). Now the explicit Euler method produces for each �-root, one �-root, which

is given by � = 1 + �h. So if we use the Euler method for the time advance of the

ODE's, the solution2 of the resulting O�E is

un = c1(�1)n ~x1 + � � �+ cm(�m)

n ~xm + � � �+ cM(�M)n ~xM + P:S: (6.28)

where the cm and the ~xm in the two equations are identical and �m = (1 + �mh).Comparing Eq. 6.27 and Eq. 6.28, we see a correspondence between �m and e�mh.

Since the value of e�h can be expressed in terms of the series

e�h = 1 + �h +1

2�2h2 +

1

6�3h3 + � � �+

1

n!�nhn + � � �

the truncated expansion � = 1+ �h is a reasonable3 approximation for small enough�h.

Suppose, instead of the Euler method, we use the leapfrog method for the time

advance, which is de�ned by

un+1 = un�1 + 2hu0n

(6.29)

Applying Eq. 6.8 to Eq. 6.29, we have the characteristic polynomial P (E) = E2�

2�hE � 1, so that for every � the � must satisfy the relation

�2m� 2�mh�m � 1 = 0 (6.30)

Now we notice that each � produces two �-roots. For one of these we �nd

�m = �mh +

q1 + �2

mh2 (6.31)

= 1 + �mh +

1

2�2mh2 �

1

8�4mh4 + � � � (6.32)

This is an approximation to e�mh with an error O(�3h3). The other root, �mh �q

1 + �2mh2, will be discussed in Section 6.5.3.

2Based on Section 4.4.3The error is O(�2h2).

Page 103: Fundamentals of Computational Fluid Dynamics.pdf

6.5. THE �� � RELATION 95

6.5.2 The Principal �-Root

Based on the above we make the following observation:

Application of the same time-marching method to all of the equations in

a coupled system linear ODE's in the form of Eq. 4.6, always produces

one �-root for every �-root that satis�es the relation

� = 1 + �h+1

2�2h2 + � � �+

1

k!�khk +O

�hk+1

�where k is the order of the time-marching method.

(6.33)

We refer to the root that has the above property as the principal �-root, and designateit (�m)1. The above property can be stated regardless of the details of the time-

marching method, knowing only that its leading error is O�hk+1

�. Thus the principal

root is an approximation to e�h up to O�hk�.

Note that a second-order approximation to a derivative written in the form

(�tu)n =1

2h(un+1 � un�1) (6.34)

has a leading truncation error which is O(h2), while the second-order time-marching

method which results from this approximation, which is the leapfrog method:

un+1 = un�1 + 2hu0n

(6.35)

has a leading truncation error O(h3). This arises simply because of our notation

for the time-marching method in which we have multiplied through by h to get an

approximation for the function un+1 rather than the derivative as in Eq. 6.34. The

following example makes this clear. Consider a solution obtained at a given time T

using a second-order time-marching method with a time step h. Now consider the

solution obtained using the same method with a time step h=2. Since the error per

time step is O(h3), this is reduced by a factor of eight (considering the leading term

only). However, twice as many time steps are required to reach the time T . Therefore

the error at the end of the simulation is reduced by a factor of four, consistent with

a second-order approximation.

6.5.3 Spurious �-Roots

We saw from Eq. 6.30 that the �� � relation for the leapfrog method produces two

�-roots for each �. One of these we identi�ed as the principal root which always

Page 104: Fundamentals of Computational Fluid Dynamics.pdf

96 CHAPTER 6. TIME-MARCHING METHODS FOR ODE'S

has the property given in 6.33. The other is referred to as a spurious �-root and

designated (�m)2. In general, the ��� relation produced by a time-marching scheme

can result in multiple �-roots all of which, except for the principal one, are spurious.

All spurious roots are designated (�m)k where k = 2; 3; � � �. No matter whether a

�-root is principal or spurious, it is always some algebraic function of the product �h.

To express this fact we use the notation � = �(�h).

If a time-marching method produces spurious �-roots, the solution for the O�E in

the form shown in Eq. 6.28 must be modi�ed. Following again the message of Section4.4, we have

un = c11(�1)n

1~x1 + � � �+ cm1(�m)

n

1~xm + � � �+ cM1(�M)

n

1~xM + P:S:

+c12(�1)n

2~x1 + � � �+ cm2(�m)

n

2~xm + � � �+ cM2(�M)n

2~xM

+c13(�1)n

3~x1 + � � �+ cm3(�m)

n

3~xm + � � �+ cM3(�M)

n

3~xM

+etc., if there are more spurious roots (6.36)

Spurious roots arise if a method uses data from time level n � 1 or earlier toadvance the solution from time level n to n + 1. Such roots originate entirely fromthe numerical approximation of the time-marching method and have nothing to do

with the ODE being solved. However, generation of spurious roots does not, in itself,make a method inferior. In fact, many very accurate methods in practical use forintegrating some forms of ODE's have spurious roots.

It should be mentioned that methods with spurious roots are not self starting.

For example, if there is one spurious root to a method, all of the coe�cients (cm)2in Eq. 6.36 must be initialized by some starting procedure. The initial vector ~u0does not provide enough data to initialize all of the coe�cients. This results becausemethods which produce spurious roots require data from time level n � 1 or earlier.

For example, the leapfrog method requires ~un�1 and thus cannot be started using

only ~un.

Presumably (i.e., if one starts the method properly) the spurious coe�cients are

all initialized with very small magnitudes, and presumably the magnitudes of thespurious roots themselves are all less than one (see Chapter 7). Then the presence of

spurious roots does not contaminate the answer. That is, after some �nite time the

amplitude of the error associated with the spurious roots is even smaller then whenit was initialized. Thus while spurious roots must be considered in stability analysis,

they play virtually no role in accuracy analysis.

6.5.4 One-Root Time-Marching Methods

There are a number of time-marching methods that produce only one �-root for each

�-root. We refer to them as one-rootmethods. They are also called one-step methods.

Page 105: Fundamentals of Computational Fluid Dynamics.pdf

6.6. ACCURACY MEASURES OF TIME-MARCHING METHODS 97

They have the signi�cant advantage of being self-starting which carries with it the

very useful property that the time-step interval can be changed at will throughout

the marching process. Three one-root methods were analyzed in Section 6.4.2. A

popular method having this property, the so-called �-method, is given by the formula

un+1 = un + hh(1� �)u0

n+ �u0

n+1

iThe �-method represents the explicit Euler (� = 0), the trapezoidal (� = 1

2), and the

implicit Euler methods (� = 1), respectively. Its �� � relation is

� =1 + (1� �)�h

1� ��h

It is instructive to compare the exact solution to a set of ODE's (with a completeeigensystem) having time-invariant forcing terms with the exact solution to the O�E'sfor one-root methods. These are

~u(t) = c1�e�1h

�n~x1 + � � �+ cm

�e�mh

�n~xm + � � �+ cM

�e�Mh

�n~xM + A�1~f

~un = c1(�1)n ~x1 + � � �+ cm(�m)

n ~xm + � � �+ cM(�M )n ~xM + A�1~f (6.37)

respectively. Notice that when t and n = 0, these equations are identical, so that allthe constants, vectors, and matrices are identical except the ~u and the terms inside

the parentheses on the right hand sides. The only error made by introducing the time

marching is the error that � makes in approximating e�h.

6.6 Accuracy Measures of Time-Marching Meth-

ods

6.6.1 Local and Global Error Measures

There are two broad categories of errors that can be used to derive and evaluate time-marching methods. One is the error made in each time step. This is a local error such

as that found from a Taylor table analysis, see Section 3.4. It is usually used as the

basis for establishing the order of a method. The other is the error determined at theend of a given event which has covered a speci�c interval of time composed of many

time steps. This is a global error. It is useful for comparing methods, as we shall see

in Chapter 8.It is quite common to judge a time-marching method on the basis of results found

from a Taylor table. However, a Taylor series analysis is a very limited tool for �ndingthe more subtle properties of a numerical time-marching method. For example, it is

of no use in:

Page 106: Fundamentals of Computational Fluid Dynamics.pdf

98 CHAPTER 6. TIME-MARCHING METHODS FOR ODE'S

� �nding spurious roots.

� evaluating numerical stability and separating the errors in phase and amplitude.

� analyzing the particular solution of predictor-corrector combinations.

� �nding the global error.

The latter three of these are of concern to us here, and to study them we make use of

the material developed in the previous sections of this chapter. Our error measuresare based on the di�erence between the exact solution to the representative ODE,given by

u(t) = ce�t +ae�t

�� �(6.38)

and the solution to the representative O�E's, including only the contribution from

the principal root, which can be written as

un = c1(�1)n+ ae�hn �

Q(e�h)

P (e�h)(6.39)

6.6.2 Local Accuracy of the Transient Solution (er�; j�j ; er!)

Transient error

The particular choice of an error measure, either local or global, is to some extent

arbitrary. However, a necessary condition for the choice should be that the measurecan be used consistently for all methods. In the discussion of the �-� relation we

saw that all time-marching methods produce a principal �-root for every �-root that

exists in a set of linear ODE's. Therefore, a very natural local error measure for the

transient solution is the value of the di�erence between solutions based on these two

roots. We designate this by er� and make the following de�nition

er� � e�h � �1

The leading error term can be found by expanding in a Taylor series and choosingthe �rst nonvanishing term. This is similar to the error found from a Taylor table.

The order of the method is the last power of �h matched exactly.

Page 107: Fundamentals of Computational Fluid Dynamics.pdf

6.6. ACCURACY MEASURES OF TIME-MARCHING METHODS 99

Amplitude and Phase Error

Suppose a � eigenvalue is imaginary. Such can indeed be the case when we study the

equations governing periodic convection which produces harmonic motion. For such

cases it is more meaningful to express the error in terms of amplitude and phase.

Let � = i! where ! is a real number representing a frequency. Then the numerical

method must produce a principal �-root that is complex and expressible in the form

�1 = �r + i�i � ei!h (6.40)

From this it follows that the local error in amplitude is measured by the deviation of

j�1j from unity, that is

era = 1� j�1j = 1�q(�1)2r + (�1)

2i

and the local error in phase can be de�ned as

er! � !h� tan�1 [(�1)i=(�1)r)] (6.41)

Amplitude and phase errors are important measures of the suitability of time-marching

methods for convection and wave propagation phenomena.The approach to error analysis described in Section 3.5 can be extended to the

combination of a spatial discretization and a time-marching method applied to the

linear convection equation. The principal root, �1(�h), is found using � = �ia��,where �� is the modi�ed wavenumber of the spatial discretization. Introducing the

Courant number, Cn = ah=�x, we have �h = �iCn���x. Thus one can obtain

values of the principal root over the range 0 � ��x � � for a given value of theCourant number. The above expression for er! can be normalized to give the error

in the phase speed, as follows

erp =er!

!h= 1 +

tan�1 [(�1)i=(�1)r)]

Cn��x(6.42)

where ! = �a�. A positive value of erp corresponds to phase lag (the numerical phase

speed is too small), while a negative value corresponds to phase lead (the numerical

phase speed is too large).

6.6.3 Local Accuracy of the Particular Solution (er�)

The numerical error in the particular solution is found by comparing the particularsolution of the ODE with that for the O�E. We have found these to be given by

P:S:(ODE) = ae�t �1

(�� �)

Page 108: Fundamentals of Computational Fluid Dynamics.pdf

100 CHAPTER 6. TIME-MARCHING METHODS FOR ODE'S

and

P:S:(O�E) = ae�t �Q(e�h)

P (e�h)

respectively. For a measure of the local error in the particular solution we introducethe de�nition

er� � h

(P:S:(O�E)

P:S:(ODE)

� 1

)(6.43)

The multiplication by h converts the error from a global measure to a local one, so

that the order of er� and er� are consistent. In order to determine the leading errorterm, Eq. 6.43 can be written in terms of the characteristic and particular polynomials

as

er� =co

�� ��

n(�� �)Q

�e�h

�� P

�e�h

�o(6.44)

where

co = limh!0

h(�� �)

P�e�h

�The value of co is a method-dependent constant that is often equal to one. If theforcing function is independent of time, � is equal to zero, and for this case, many

numerical methods generate an er� that is also zero.

The algebra involved in �nding the order of er� can be quite tedious. However,

this order is quite important in determining the true order of a time-marching method

by the process that has been outlined. An illustration of this is given in the section

on Runge-Kutta methods.

6.6.4 Time Accuracy For Nonlinear Applications

In practice, time-marching methods are usually applied to nonlinear ODE's, and itis necessary that the advertised order of accuracy be valid for the nonlinear cases as

well as for the linear ones. A necessary condition for this to occur is that the localaccuracies of both the transient and the particular solutions be of the same order.

More precisely, a time-marching method is said to be of order k if

er� = c1 � (�h)k1+1 (6.45)

er� = c2 � (�h)k2+1 (6.46)

where k = smallest of(k1; k2) (6.47)

Page 109: Fundamentals of Computational Fluid Dynamics.pdf

6.6. ACCURACY MEASURES OF TIME-MARCHING METHODS 101

The reader should be aware that this is not su�cient. For example, to derive all of

the necessary conditions for the fourth-order Runge-Kutta method presented later

in this chapter the derivation must be performed for a nonlinear ODE. However, the

analysis based on a linear nonhomogeneous ODE produces the appropriate conditions

for the majority of time-marching methods used in CFD.

6.6.5 Global Accuracy

In contrast to the local error measures which have just been discussed, we can also

de�ne global error measures. These are useful when we come to the evaluation of

time-marching methods for speci�c purposes. This subject is covered in Chapter 8

after our introduction to stability in Chapter 7.

Suppose we wish to compute some time-accurate phenomenon over a �xed intervalof time using a constant time step. We refer to such a computation as an \event".Let T be the �xed time of the event and h be the chosen step size. Then the required

number of time steps, is N, given by the relation

T = Nh

Global error in the transient

A natural extension of er� to cover the error in an entire event is given by

Er� � e�T � (�1(�h))N (6.48)

Global error in amplitude and phase

If the event is periodic, we are more concerned with the global error in amplitude andphase. These are given by

Era = 1�

�q(�1)2r + (�1)

2i

�N(6.49)

and

Er! � N

"!h� tan�1

(�1)i(�1)r

!#= !T �N tan�1 [(�1)i=(�1)r] (6.50)

Page 110: Fundamentals of Computational Fluid Dynamics.pdf

102 CHAPTER 6. TIME-MARCHING METHODS FOR ODE'S

Global error in the particular solution

Finally, the global error in the particular solution follows naturally by comparing the

solutions to the ODE and the O�E. It can be measured by

Er� � (�� �)Q�e�h

�P�e�h

� � 1

6.7 Linear Multistep Methods

In the previous sections, we have developed the framework of error analysis for time

advance methods and have randomly introduced a few methods without addressingmotivational, developmental or design issues. In the subsequent sections, we introduce

classes of methods along with their associated error analysis. We shall not spend muchtime on development or design of these methods, since most of them have historicorigins from a wide variety of disciplines and applications. The Linear Multistep

Methods (LMM's) are probably the most natural extension to time marching of thespace di�erencing schemes introduced in Chapter 3 and can be analyzed for accuracyor designed using the Taylor table approach of Section 3.4.

6.7.1 The General Formulation

When applied to the nonlinear ODE

du

dt= u0 = F(u; t)

all linear multistep methods can be expressed in the general form

1Xk=1�K

�kun+k = h1X

k=1�K

�kFn+k (6.51)

where the notation for F is de�ned in Section 6.1. The methods are said to be linear

because the �'s and �'s are independent of u and n, and they are said to be K-step

because K time-levels of data are required to marching the solution one time-step, h.

They are explicit if �1 = 0 and implicit otherwise.

When Eq. 6.51 is applied to the representative equation, Eq. 6.8, and the result is

expressed in operational form, one �nds0@ 1Xk=1�K

�kEk

1Aun = h

0@ 1Xk=1�K

�kEk

1A(�un + ae�hn) (6.52)

Page 111: Fundamentals of Computational Fluid Dynamics.pdf

6.7. LINEAR MULTISTEP METHODS 103

We recall from Section 6.5.2 that a time-marching method when applied to the repre-

sentative equation must provide a �-root, labeled �1, that approximates e�h through

the order of the method. The condition referred to as consistency simply means that

� ! 1 as h ! 0, and it is certainly a necessary condition for the accuracy of any

time marching method. We can also agree that, to be of any value in time accuracy,

a method should at least be �rst-order accurate, that is � ! (1 +�h) as h! 0. One

can show that these conditions are met by any method represented by Eq. 6.51 ifXk

�k = 0 andXk

�k =Xk

(K + k � 1)�k

Since both sides of Eq. 6.51 can be multiplied by an arbitrary constant, these methodsare often \normalized" by requiring X

k

�k = 1

Under this condition co = 1 in Eq. 6.44.

6.7.2 Examples

There are many special explicit and implicit forms of linear multistep methods. Two

well-known families of them, referred to as Adams-Bashforth (explicit) and Adams-Moulton (implicit), can be designed using the Taylor table approach of Section 3.4.

The Adams-Moulton family is obtained from Eq. 6.51 with

�1 = 1; �0 = �1; �k = 0; k = �1;�2; � � � (6.53)

The Adams-Bashforth family has the same �'s with the additional constraint that

�1 = 0. The three-step Adams-Moulton method can be written in the following form

un+1 = un + h(�1u0

n+1 + �0u0

n+ ��1u

0

n�1 + ��2u0

n�2) (6.54)

A Taylor table for Eq. 6.54 can be generated as

un h � u0n

h2 � u00n

h3 � u000n

h4 � u0000n

un+1 1 1 12

16

124

�un �1�h�1u

0

n+1 ��1 ��1 ��112 ��1

16

�h�0u0

n��0

�h��1u0

n�1 ���1 ��1 ���112 ��1

16

�h��2u0

n�2 �(�2)0��2 �(�2)1��2 �(�2)2��212 �(�2)3��2

16

Table 6.1. Taylor table for the Adams-Moulton three-step linear multistep method.

Page 112: Fundamentals of Computational Fluid Dynamics.pdf

104 CHAPTER 6. TIME-MARCHING METHODS FOR ODE'S

This leads to the linear system266641 1 1 1

2 0 �2 �4

3 0 3 12

4 0 �4 �32

3777526664�1�0��1��2

37775 =266641

1

1

1

37775 (6.55)

to solve for the �'s, resulting in

�1 = 9=24; �0 = 19=24; ��1 = �5=24; ��2 = 1=24 (6.56)

which produces a method which is fourth-order accurate.4 With �1 = 0 one obtains264 1 1 1

0 �2 �40 3 12

375264 �0��1��2

375 =264 1

11

375 (6.57)

giving

�0 = 23=12; ��1 = �16=12; ��2 = 5=12 (6.58)

This is the third-order Adams-Bashforth method.

A list of simple methods, some of which are very common in CFD applications,is given below together with identifying names that are sometimes associated withthem. In the following material AB(n) and AM(n) are used as abbreviations for the

(n)th order Adams-Bashforth and (n)th order Adams-Moulton methods. One canverify that the Adams type schemes given below satisfy Eqs. 6.55 and 6.57 up to theorder of the method.

Explicit Methods

un+1 = un + hu0n

Euler

un+1 = un�1 + 2hu0n

Leapfrog

un+1 = un +12hh3u0

n� u0

n�1

iAB2

un+1 = un +h12

h23u0

n� 16u0

n�1 + 5u0n�2

iAB3

Implicit Methods

un+1 = un + hu0n+1 Implicit Euler

un+1 = un +12hhu0n+ u0

n+1

iTrapezoidal (AM2)

un+1 = 13

h4un � un�1 + 2hu0

n+1

i2nd-order Backward

un+1 = un +h12

h5u0

n+1 + 8u0n� u0

n�1

iAM3

4Recall from Section 6.5.2 that a kth-order time-marching method has a leading truncation error

term which is O(hk+1).

Page 113: Fundamentals of Computational Fluid Dynamics.pdf

6.7. LINEAR MULTISTEP METHODS 105

6.7.3 Two-Step Linear Multistep Methods

High resolution CFD problems usually require very large data sets to store the spatial

information from which the time derivative is calculated. This limits the interest

in multistep methods to about two time levels. The most general two-step linear

multistep method (i.e., K=2 in Eq. 6.51), that is at least �rst-order accurate, can be

written as

(1 + �)un+1 = [(1 + 2�)un � �un�1] + hh�u0

n+1 + (1� � + ')u0n� 'u0

n�1

i(6.59)

Clearly the methods are explicit if � = 0 and implicit otherwise. A list of methods

contained in Eq. 6.59 is given in Table 6.2. Notice that the Adams methods have� = 0, which corresponds to ��1 = 0 in Eq. 6.51. Methods with � = �1=2, which

corresponds to �0 = 0 in Eq. 6.51, are known as Milne methods.

� � ' Method Order

0 0 0 Euler 11 0 0 Implicit Euler 11=2 0 0 Trapezoidal or AM2 21 1=2 0 2nd Order Backward 23=4 0 �1=4 Adams type 21=3 �1=2 �1=3 Lees Type 21=2 �1=2 �1=2 Two{step trapezoidal 25=9 �1=6 �2=9 A{contractive 20 �1=2 0 Leapfrog 20 0 1=2 AB2 20 �5=6 �1=3 Most accurate explicit 31=3 �1=6 0 Third{order implicit 35=12 0 1=12 AM3 31=6 �1=2 �1=6 Milne 4

Table 6.2. Some linear one- and two-step methods, see Eq. 6.59.

One can show after a little algebra that both er� and er� are reduced to 0(h3)

(i.e., the methods are 2nd-order accurate) if

' = � � � +1

2

The class of all 3rd-order methods is determined by imposing the additional constraint

� = 2� �5

6

Finally a unique fourth-order method is found by setting � = �' = ��=3 = 16.

Page 114: Fundamentals of Computational Fluid Dynamics.pdf

106 CHAPTER 6. TIME-MARCHING METHODS FOR ODE'S

6.8 Predictor-Corrector Methods

There are a wide variety of predictor-corrector schemes created and used for a variety

of purposes. Their use in solving ODE's is relatively easy to illustrate and understand.

Their use in solving PDE's can be much more subtle and demands concepts5 which

have no counterpart in the analysis of ODE's.

Predictor-corrector methods constructed to time-march linear or nonlinear ODE's

are composed of sequences of linear multistep methods, each of which is referred to

as a family in the solution process. There may be many families in the sequence, andusually the �nal family has a higher Taylor-series order of accuracy than the inter-

mediate ones. Their use is motivated by ease of application and increased e�ciency,

where measures of e�ciency are discussed in the next two chapters.A simple one-predictor, one-corrector example is given by

~un+� = un + �hu0n

un+1 = un + hh�~u0

n+� + u0n

i(6.60)

where the parameters �; � and are arbitrary parameters to be determined. One

can analyze this sequence by applying it to the representative equation and using

the operational techniques outlined in Section 6.4. It is easy to show, following theexample leading to Eq. 6.26, that

P (E) = E��

hE � 1� ( + �)�h� ���2h2

i(6.61)

Q(E) = E�� h � [�E� + + ���h] (6.62)

Considering only local accuracy, one is led, by following the discussion in Section 6.6,to the following observations. For the method to be second-order accurate both er�and er� must be O(h3). For this to hold for er�, it is obvious from Eq. 6.61 that

+ � = 1 ; �� =1

2

which provides two equations for three unknowns. The situation for er� requires some

algebra, but it is not di�cult to show using Eq. 6.44 that the same conditions also

make it O(h3). One concludes, therefore, that the predictor-corrector sequence

~un+� = un + �hu0n

un+1 = un +1

2h

��1

�~u0n+� +

�2�� 1

�u0n

�(6.63)

is a second-order accurate method for any �.

5Such as alternating direction, fractional-step, and hybrid methods.

Page 115: Fundamentals of Computational Fluid Dynamics.pdf

6.9. RUNGE-KUTTA METHODS 107

A classical predictor-corrector sequence is formed by following an Adams-Bashforth

predictor of any order with an Adams-Moulton corrector having an order one higher.

The order of the combination is then equal to the order of the corrector. If the order

of the corrector is (k), we refer to these as ABM(k) methods. The Adams-Bashforth-

Moulton sequence for k = 3 is

~un+1 = un +1

2hh3u0

n� u0

n�1

iun+1 = un +

h

12

h5~u0

n+1 + 8u0n� u0

n�1

i(6.64)

Some simple, speci�c, second-order accurate methods are given below. The Gazdag

method, which we discuss in Chapter 8, is

~un+1 = un +1

2hh3~u0

n� ~u0

n�1

iun+1 = un +

1

2hh~u0n+ ~u0

n+1

i(6.65)

The Burstein method, obtained from Eq. 6.63 with � = 1=2 is

~un+1=2 = un +1

2hu0

n

un+1 = un + h~u0n+1=2 (6.66)

and, �nally, MacCormack's method, presented earlier in this chapter, is

~un+1 = un + hu0n

un+1 =1

2[un + ~un+1 + h~u0

n+1] (6.67)

Note that MacCormack's method can also be written as

~un+1 = un + hu0n

un+1 = un +1

2h[u0

n+ ~u0

n+1] (6.68)

from which it is clear that it is obtained from Eq. 6.63 with � = 1.

6.9 Runge-Kutta Methods

There is a special subset of predictor-corrector methods, referred to as Runge-Kutta

methods,6 that produce just one �-root for each �-root such that �(�h) corresponds

6Although implicit and multi-step Runge-Kutta methods exist, we will consider only single-step,

explicit Runge-Kutta methods here.

Page 116: Fundamentals of Computational Fluid Dynamics.pdf

108 CHAPTER 6. TIME-MARCHING METHODS FOR ODE'S

to the Taylor series expansion of e�h out through the order of the method and then

truncates. Thus for a Runge-Kutta method of order k (up to 4th order), the principal

(and only) �-root is given by

� = 1 + �h +1

2�2h2 + � � �+

1

k!�khk (6.69)

It is not particularly di�cult to build this property into a method, but, as we pointed

out in Section 6.6.4, it is not su�cient to guarantee k'th order accuracy for the solution

of u0 = F (u; t) or for the representative equation. To ensure k'th order accuracy, the

method must further satisfy the constraint that

er� = O(hk+1) (6.70)

and this is much more di�cult.

The most widely publicized Runge-Kutta process is the one that leads to the

fourth-order method. We present it below in some detail. It is usually introduced inthe form

k1 = hF (un; tn)

k2 = hF (un + �k1; tn + �h)

k3 = hF (un + �1k1 + 1k2; tn + �1h)

k4 = hF (un + �2k1 + 2k2 + �2k3; tn + �2h)

followed by

u(tn + h)� u(tn) = �1k1 + �2k2 + �3k3 + �4k4 (6.71)

However, we prefer to present it using predictor-corrector notation. Thus, a scheme

entirely equivalent to 6.71 is

bun+� = un + �hu0n

~un+�1 = un + �1hu0

n+ 1hbu0n+�

un+�2 = un + �2hu0

n+ 2hbu0n+� + �2h~u

0

n+�1

un+1 = un + �1hu0

n+ �2hbu0n+� + �3h~u

0

n+�1+ �4hu

0

n+�2(6.72)

Appearing in Eqs. 6.71 and 6.72 are a total of 13 parameters which are to be

determined such that the method is fourth-order according to the requirements in

Eqs. 6.69 and 6.70. First of all, the choices for the time samplings, �, �1, and �2, are

not arbitrary. They must satisfy the relations

� = �

�1 = �1 + 1

�2 = �2 + 2 + �2 (6.73)

Page 117: Fundamentals of Computational Fluid Dynamics.pdf

6.9. RUNGE-KUTTA METHODS 109

The algebra involved in �nding algebraic equations for the remaining 10 parameters

is not trivial, but the equations follow directly from �nding P (E) and Q(E) and then

satisfying the conditions in Eqs. 6.69 and 6.70. Using Eq. 6.73 to eliminate the �'s

we �nd from Eq. 6.69 the four conditions

�1 + �2 + �3 + �4 = 1 (1)

�2� + �3�1 + �4�2 = 1=2 (2)

�3� 1 + �4(� 2 + �1�2) = 1=6 (3)

�4� 1�2 = 1=24 (4)

(6.74)

These four relations guarantee that the �ve terms in � exactly match the �rst 5 terms

in the expansion of e�h. To satisfy the condition that er� = O(k5), we have to ful�llfour more conditions

�2�2 + �3�

21 + �4�

22 = 1=3 (3)

�2�3 + �3�

31 + �4�

32 = 1=4 (4)

�3�2 1 + �4(�

2 2 + �21�2) = 1=12 (4)

�3��1 1 + �4�2(� 2 + �1�2) = 1=8 (4)

(6.75)

The number in parentheses at the end of each equation indicates the order thatis the basis for the equation. Thus if the �rst 3 equations in 6.74 and the �rstequation in 6.75 are all satis�ed, the resulting method would be third-order accurate.

As discussed in Section 6.6.4, the fourth condition in Eq. 6.75 cannot be derivedusing the methodology presented here, which is based on a linear nonhomogenous

representative ODE. A more general derivation based on a nonlinear ODE can be

found in several books.7

There are eight equations in 6.74 and 6.75 which must be satis�ed by the 10

unknowns. Since the equations are overdetermined, two parameters can be set arbi-

trarily. Several choices for the parameters have been proposed, but the most popular

one is due to Runge. It results in the \standard" fourth-order Runge-Kutta method

expressed in predictor-corrector form as

bun+1=2 = un +1

2hu0

n

~un+1=2 = un +1

2hbu0

n+1=2

un+1 = un + h~u0n+1=2

un+1 = un +1

6hhu0n+ 2

�bu0n+1=2 + ~u0

n+1=2

�+ u0

n+1

i(6.76)

7The present approach based on a linear inhomogeneous equation provides all of the necessary

conditions for Runge-Kutta methods of up to third order.

Page 118: Fundamentals of Computational Fluid Dynamics.pdf

110 CHAPTER 6. TIME-MARCHING METHODS FOR ODE'S

Notice that this represents the simple sequence of conventional linear multistep meth-

ods referred to, respectively, as

Euler Predictor

Euler Corrector

Leapfrog Predictor

Milne Corrector

9>>>=>>>; � RK4

One can easily show that both the Burstein and the MacCormack methods given by

Eqs. 6.66 and 6.67 are second-order Runge-Kutta methods, and third-order methods

can be derived from Eqs. 6.72 by setting �4 = 0 and satisfying only Eqs. 6.74 and the

�rst equation in 6.75. It is clear that for orders one through four, RK methods of orderk require k evaluations of the derivative function to advance the solution one timestep. We shall discuss the consequences of this in Chapter 8. Higher-order Runge-

Kutta methods can be developed, but they require more derivative evaluations thantheir order. For example, a �fth-order method requires six evaluations to advance

the solution one step. In any event, storage requirements reduce the usefulness ofRunge-Kutta methods of order higher than four for CFD applications.

6.10 Implementation of Implicit Methods

We have presented a wide variety of time-marching methods and shown how to derive

their � � � relations. In the next chapter, we will see that these methods can have

widely di�erent properties with respect to stability. This leads to various trade-

o�s which must be considered in selecting a method for a speci�c application. Ourpresentation of the time-marching methods in the context of a linear scalar equation

obscures some of the issues involved in implementing an implicit method for systems

of equations and nonlinear equations. These are covered in this Section.

6.10.1 Application to Systems of Equations

Consider �rst the numerical solution of our representative ODE

u0 = �u+ ae�t (6.77)

using the implicit Euler method. Following the steps outlined in Section 6.2, we

obtained

(1� �h)un+1 � un = he�h � ae�hn (6.78)

Page 119: Fundamentals of Computational Fluid Dynamics.pdf

6.10. IMPLEMENTATION OF IMPLICIT METHODS 111

Solving for un+1 gives

un+1 =1

1� �h(un + he�h � ae�hn) (6.79)

This calculation does not seem particularly onerous in comparison with the applica-

tion of an explicit method to this ODE, requiring only an additional division.

Now let us apply the implicit Euler method to our generic system of equations

given by

~u0 = A~u� ~f(t) (6.80)

where ~u and ~f are vectors and we still assume that A is not a function of ~u or t. Now

the equivalent to Eq. 6.78 is

(I � hA)~un+1 � ~un = �h~f(t + h) (6.81)

or

~un+1 = (I � hA)�1[~un � h~f(t+ h)] (6.82)

The inverse is not actually performed, but rather we solve Eq. 6.81 as a linear system

of equations. For our one-dimensional examples, the system of equations which mustbe solved is tridiagonal (e.g., for biconvection, A = �aBp(�1; 0; 1)=2�x), and henceits solution is inexpensive, but in multidimensions the bandwidth can be very large. In

general, the cost per time step of an implicit method is larger than that of an explicitmethod. The primary area of application of implicit methods is in the solution of

sti� ODE's, as we shall see in Chapter 8.

6.10.2 Application to Nonlinear Equations

Now consider the general nonlinear scalar ODE given by

du

dt= F (u; t) (6.83)

Application of the implicit Euler method gives

un+1 = un + hF (un+1; tn+1) (6.84)

This is a nonlinear di�erence equation. As an example, consider the nonlinear ODE

du

dt+

1

2u2 = 0 (6.85)

Page 120: Fundamentals of Computational Fluid Dynamics.pdf

112 CHAPTER 6. TIME-MARCHING METHODS FOR ODE'S

solved using implicit Euler time marching, which gives

un+1 + h1

2u2n+1 = un (6.86)

which requires a nontrivial method to solve for un+1. There are several di�erent

approaches one can take to solving this nonlinear di�erence equation. An iterative

method, such as Newton's method (see below), can be used. In practice, the \initialguess" for this nonlinear problem can be quite close to the solution, since the \initial

guess" is simply the solution at the previous time step, which implies that a lineariza-

tion approach may be quite successful. Such an approach is described in the next

Section.

6.10.3 Local Linearization for Scalar Equations

General Development

Let us start the process of local linearization by considering Eq. 6.83. In order to

implement the linearization, we expand F (u; t) about some reference point in time.Designate the reference value by tn and the corresponding value of the dependent

variable by un. A Taylor series expansion about these reference quantities gives

F (u; t) = F (un; tn) +

@F

@u

!n

(u� un) +

@F

@t

!n

(t� tn)

+1

2

@2F

@u2

!n

(u� un)2 +

@2F

@u@t

!n

(u� un)(t� tn)

+1

2

@2F

@t2

!n

(t� tn)2 + � � � (6.87)

On the other hand, the expansion of u(t) in terms of the independent variable t is

u(t) = un + (t� tn)

@u

@t

!n

+1

2(t� tn)

2

@2u

@t2

!n

+ � � � (6.88)

If t is within h of tn, both (t � tn)k and (u � un)

k are O(hk), and Eq. 6.87 can be

written

F (u; t) = Fn +

@F

@u

!n

(u� un) +

@F

@t

!n

(t� tn) +O(h2) (6.89)

Page 121: Fundamentals of Computational Fluid Dynamics.pdf

6.10. IMPLEMENTATION OF IMPLICIT METHODS 113

Notice that this is an expansion of the derivative of the function. Thus, relative to the

order of expansion of the function, it represents a second-order-accurate, locally-linear

approximation to F (u; t) that is valid in the vicinity of the reference station tn and

the corresponding un = u(tn). With this we obtain the locally (in the neighborhood

of tn) time-linear representation of Eq. 6.83, namely

du

dt=

@F

@u

!n

u+

Fn �

@F

@u

!n

un

!+

@F

@t

!n

(t� tn) +O(h2) (6.90)

Implementation of the Trapezoidal Method

As an example of how such an expansion can be used, consider the mechanics ofapplying the trapezoidal method for the time integration of Eq. 6.83. The trapezoidalmethod is given by

un+1 = un +1

2h[Fn+1 + Fn] + hO(h2) (6.91)

where we write hO(h2) to emphasize that the method is second order accurate. Using

Eq. 6.89 to evaluate Fn+1 = F (un+1; tn+1), one �nds

un+1 = un +1

2h

"Fn +

@F

@u

!n

(un+1 � un) + h

@F

@t

!n

+O(h2) + Fn

#+hO(h2) (6.92)

Note that the O(h2) term within the brackets (which is due to the local linearization)is multiplied by h and therefore is the same order as the hO(h2) error from the

Trapezoidal Method. The use of local time linearization updated at the end of each

time step, and the trapezoidal time march, combine to make a second-order-accurate

numerical integration process. There are, of course, other second-order implicit time-

marching methods that can be used. The important point to be made here is that

local linearization updated at each time step has not reduced the order of accuracy of

a second-order time-marching process.

A very useful reordering of the terms in Eq. 6.92 results in the expression

"1�

1

2h

@F

@u

!n

#�un = hFn +

1

2h2 @F

@t

!n

(6.93)

which is now in the delta form which will be formally introduced in Section 12.6. In

many uid mechanic applications the nonlinear function F is not an explicit function

Page 122: Fundamentals of Computational Fluid Dynamics.pdf

114 CHAPTER 6. TIME-MARCHING METHODS FOR ODE'S

of t. In such cases the partial derivative of F (u) with respect to t is zero and Eq. 6.93

simpli�es to the second-order accurate expression

"1�

1

2h

@F

@u

!n

#�un = hFn (6.94)

Notice that the RHS is extremely simple. It is the product of h and the RHS of

the basic equation evaluated at the previous time step. In this example, the basic

equation was the simple scalar equation 6.83, but for our applications, it is generally

the space-di�erenced form of the steady-state equation of some uid ow problem.

A numerical time-marching procedure using Eq. 6.94 is usually implemented asfollows:

1. Solve for the elements of h~Fn, store them in an array say ~R, and save ~un.

2. Solve for the elements of the matrix multiplying �~un and store in some appro-

priate manner making use of sparseness or bandedness of the matrix if possible.Let this storage area be referred to as B.

3. Solve the coupled set of linear equations

B�~un = ~R

for �~un. (Very seldom does one �nd B�1 in carrying out this step).

4. Find ~un+1 by adding �~un to ~un, thus

~un+1 = �~un + ~un

The solution for ~un+1 is generally stored such that it overwrites the value of ~unand the process is repeated.

Implementation of the Implicit Euler Method

We have seen that the �rst-order implicit Euler method can be written

un+1 = un + hFn+1 (6.95)

if we introduce Eq. 6.90 into this method, rearrange terms, and remove the explicitdependence on time, we arrive at the form"

1� h

@F

@u

!n

#�un = hFn (6.96)

Page 123: Fundamentals of Computational Fluid Dynamics.pdf

6.10. IMPLEMENTATION OF IMPLICIT METHODS 115

We see that the only di�erence between the implementation of the trapezoidal method

and the implicit Euler method is the factor of 12 in the brackets of the left side of

Eqs. 6.94 and 6.96. Omission of this factor degrades the method in time accuracy by

one order of h. We shall see later that this method is an excellent choice for steady

problems.

Newton's Method

Consider the limit h ! 1 of Eq. 6.96 obtained by dividing both sides by h and

setting 1=h = 0. There results

@F

@u

!n

�un = Fn (6.97)

or

un+1 = un �

" @F

@u

!n

#�1

Fn (6.98)

This is the well-known Newton method for �nding the roots of a nonlinear equation

F (u) = 0. The fact that it has quadratic convergence is veri�ed by a glance at Eqs.6.87 and 6.88 (remember the dependence on t has been eliminated for this case). By

quadratic convergence, we mean that the error after a given iteration is proportional

to the square of the error at the previous iteration, where the error is the di�erencebetween the current solution and the converged solution. Quadratic convergence is

thus a very powerful property. Use of a �nite value of h in Eq. 6.96 leads to linearconvergence, i.e., the error at a given iteration is some multiple of the error at the

previous iteration. The reader should ponder the meaning of letting h ! 1 for the

trapezoidal method, given by Eq. 6.94.

6.10.4 Local Linearization for Coupled Sets of Nonlinear Equa-

tions

In order to present this concept, let us consider an example involving some sim-ple boundary-layer equations. We choose the Falkner-Skan equations from classical

boundary-layer theory. Our task is to apply the implicit trapezoidal method to theequations

d3f

dt3+ f

d2f

dt2+ �

0@1� df

dt

!21A = 0 (6.99)

Here f represents a dimensionless stream function, and � is a scaling factor.

Page 124: Fundamentals of Computational Fluid Dynamics.pdf

116 CHAPTER 6. TIME-MARCHING METHODS FOR ODE'S

First of all we reduce Eq. 6.99 to a set of �rst-order nonlinear equations by the

transformations

u1 =d2f

dt2; u2 =

df

dt; u3 = f (6.100)

This gives the coupled set of three nonlinear equations

u01 = F1 = �u1 u3 � ��1� u22

�u02 = F2 = u1

u03 = F3 = u2 (6.101)

and these can be represented in vector notation as

d~u

dt= ~F (~u) (6.102)

Now we seek to make the same local expansion that derived Eq. 6.90, except thatthis time we are faced with a nonlinear vector function, rather than a simple nonlinearscalar function. The required extension requires the evaluation of a matrix, called

the Jacobian matrix.8 Let us refer to this matrix as A. It is derived from Eq. 6.102

by the following process

A = (aij) = @Fi =@uj (6.103)

For the general case involving a third order matrix this is

A =

26666666664

@F1

@u1@F1

@u2@F1

@u3

@F2

@u1@F2

@u2@F2

@u3

@F3

@u1@F3

@u2@F3

@u3

37777777775(6.104)

The expansion of ~F (~u) about some reference state ~un can be expressed in a way

similar to the scalar expansion given by eq 6.87. Omitting the explicit dependency

on the independent variable t, and de�ning ~F n as ~F (~un), one has9

8Recall that we derived the Jacobian matrices for the two-dimensional Euler equations in Section

2.29The Taylor series expansion of a vector contains a vector for the �rst term, a matrix times a

vector for the second term, and tensor products for the terms of higher order.

Page 125: Fundamentals of Computational Fluid Dynamics.pdf

6.11. PROBLEMS 117

~F (~u) = ~F n + An

�~u� ~un

�+O(h2) (6.105)

where t� tn and the argument for O(h2) is the same as in the derivation of Eq. 6.88.

Using this we can write the local linearization of Eq. 6.102 as

d~u

dt= An

~u+

�~F n � An

~un

�| {z }\constant"

+O(h2) (6.106)

which is a locally-linear, second-order-accurate approximation to a set of couplednonlinear ordinary di�erential equations that is valid for t � tn + h. Any �rst- or

second-order time-marching method, explicit or implicit, could be used to integratethe equations without loss in accuracy with respect to order. The number of times,

and the manner in which, the terms in the Jacobian matrix are updated as the solutionproceeds depends, of course, on the nature of the problem.

Returning to our simple boundary-layer example, which is given by Eq. 6.101, we

�nd the Jacobian matrix to be

A =

264 � u3 2�u2 �u11 0 00 1 0

375 (6.107)

The student should be able to derive results for this example that are equivalent to

those given for the scalar case in Eq. 6.93. Thus for the Falkner-Skan equations the

trapezoidal method results in266641 + h

2(u3)n ��h(u2)nh2 (u1)n

�h2 1 0

0 �h2 1

37775264 (�u1)n(�u2)n(�u3)n

375=h

264 � (u1u3)n � �(1� u22)n(u1)n(u2)n

375We �nd ~un+1 from �~un+~un, and the solution is now advanced one step. Re-evaluate

the elements using ~un+1 and continue. Without any iterating within a step advance,the solution will be second-order-accurate in time.

6.11 Problems

1. Find an expression for the nth term in the Fibonacci series, which is given

by 1; 1; 2; 3; 5; 8; : : : Note that the series can be expressed as the solution to a

di�erence equation of the form un+1 = un + un�1. What is u25? (Let the �rst

term given above be u0.)

Page 126: Fundamentals of Computational Fluid Dynamics.pdf

118 CHAPTER 6. TIME-MARCHING METHODS FOR ODE'S

2. The trapezoidal method un+1 = un +1

2h(u0

n+1 + u0n) is used to solve the repre-

sentative ODE.

(a) What is the resulting O�E?

(b) What is its exact solution?

(c) How does the exact steady-state solution of the O�E compare with the

exact steady-state solution of the ODE if � = 0?

3. The 2nd-order backward method is given by

un+1 =1

3

h4un � un�1 + 2hu0

n+1

i(a) Write the O�E for the representative equation. Identify the polynomials

P (E) and Q(E).

(b) Derive the �-� relation. Solve for the �-roots and identify them as principalor spurious.

(c) Find er� and the �rst two nonvanishing terms in a Taylor series expansionof the spurious root.

(d) Perform a �-root trace relative to the unit circle for both di�usion and

convection.

4. Consider the time-marching scheme given by

un+1 = un�1 +2h

3(u0

n+1 + u0n+ u0

n�1)

(a) Write the O�E for the representative equation. Identify the polynomialsP (E) and Q(E).

(b) Derive the �� � relation.

(c) Find er�.

5. Find the di�erence equation which results from applying the Gazdag predictor-

corrector method (Eq. 6.65) to the representative equation. Find the �-� rela-tion.

6. Consider the following time-marching method:

~un+1=3 = un + hu0n=3

�un+1=2 = un + h~u0n+1=3=2

un+1 = un + h�u0n+1=2

Page 127: Fundamentals of Computational Fluid Dynamics.pdf

6.11. PROBLEMS 119

Find the di�erence equation which results from applying this method to the

representative equation. Find the �-� relation. Find the solution to the di�er-

ence equation, including the homogeneous and particular solutions. Find er�and er�. What order is the homogeneous solution? What order is the particular

solution? Find the particular solution if the forcing term is �xed.

7. Write a computer program to solve the one-dimensional linear convection equa-tion with periodic boundary conditions and a = 1 on the domain 0 � x � 1.

Use 2nd-order centered di�erences in space and a grid of 50 points. For the

initial condition, use

u(x; 0) = e�0:5[(x�0:5)=�]2

with � = 0:08. Use the explicit Euler, 2nd-order Adams-Bashforth (AB2), im-

plicit Euler, trapezoidal, and 4th-order Runge-Kutta methods. For the explicitEuler and AB2 methods, use a Courant number, ah=�x, of 0.1; for the other

methods, use a Courant number of unity. Plot the solutions obtained at t = 1compared to the exact solution (which is identical to the initial condition).

8. Repeat problem 7 using 4th-order (noncompact) di�erences in space. Use only

4th-order Runge-Kutta time marching at a Courant number of unity. Show

solutions at t = 1 and t = 10 compared to the exact solution.

9. Using the computer program written for problem 7, compute the solution at

t = 1 using 2nd-order centered di�erences in space coupled with the 4th-order

Runge-Kutta method for grids of 100, 200, and 400 nodes. On a log-log scale,

plot the error given by vuuut MXj=1

(uj � uexactj )2

M

where M is the number of grid nodes and uexact is the exact solution. Find the

global order of accuracy from the plot.

10. Using the computer program written for problem 8, repeat problem 9 using4th-order (noncompact) di�erences in space.

11. Write a computer program to solve the one-dimensional linear convection equa-

tion with in ow-out ow boundary conditions and a = 1 on the domain 0 �x � 1. Let u(0; t) = sin!t with ! = 10�. Run until a periodic steady state

is reached which is independent of the initial condition and plot your solution

Page 128: Fundamentals of Computational Fluid Dynamics.pdf

120 CHAPTER 6. TIME-MARCHING METHODS FOR ODE'S

compared with the exact solution. Use 2nd-order centered di�erences in space

with a 1st-order backward di�erence at the out ow boundary (as in Eq. 3.69)

together with 4th-order Runge-Kutta time marching. Use grids with 100, 200,

and 400 nodes and plot the error vs. the number of grid nodes, as described in

problem 9. Find the global order of accuracy.

12. Repeat problem 11 using 4th-order (noncompact) centered di�erences. Use a

third-order forward-biased operator at the in ow boundary (as in Eq. 3.67). At

the last grid node, derive and use a 3rd-order backward operator (using nodes

j�3, j�2, j�1, and j) and at the second last node, use a 3rd-order backward-

biased operator (using nodes j�2, j�1, j, and j+1; see problem 1 in Chapter3).

13. Using the approach described in Section 6.6.2, �nd the phase speed error, erp,

and the amplitude error, era, for the combination of second-order centered dif-ferences and 1st, 2nd, 3rd, and 4th-order Runge-Kutta time-marching at a

Courant number of unity. Also plot the phase speed error obtained using exact

integration in time, i.e., that obtained using the spatial discretization alone.Note that the required �-roots for the various Runge-Kutta methods can be

deduced from Eq. 6.69, without actually deriving the methods. Explain yourresults.

Page 129: Fundamentals of Computational Fluid Dynamics.pdf

� � ��� ����

� � � � ��� ��� � � � � ��� � � ���� � � � �

�����! "�$#&%('*)"�,+- ".0/&.21( 3154768/&%(9".:'2.:/<;�.26= "�$.:/&>?�!#@6A.2BDC"':�E "1�#=F" ".0G��!#86&%('H%( ?)I)"�$CJ�$ ")"6K1( �/&>?�C-%(#L/&.:M!F"'2%(#NC">"�$ "1�BD�! "1� O9J�$.2 "�PM$1� "6A.:)"�!#8�!)RQ�S< O/&>?��M!%(6A�31(4K/A>"�3 "1� "':.2 "�!%(#UTWVWXZY[6\1(4.2 ]/A�!#A�$68/^.: P_"F".2)`)?;a -%5Bb.:M!6!c*6L/d%(9".:'2.0/<;I.:6e1(4f/&�$ P)".268M!F"686A�!)g.2 h/A�!#ABD6E1(4Z+?ij�!)kCl1�.2 ]/&6^%5 ")%5/8/&#&%5M$/&1(#A6!QmS< �/&>"�$6A�K/A�!#8Bb6W%b68;a68/A�!Bn.:6m6A%(.2)o/&1p9l�e68/&%(9"':�K.2 �%qM!�$#8/&%(.2 �)?1�Bq%5.2 U.:4rcs4t#A1�Bu .:/A>".2 \/&>"%5/v)"1(Bq%(.: Rc-6A1(Bb�w "1�#ABx154y.:/A6m681�'2F?/A.21� U.26m%(' u %z;a6W%5/8/&#&%5M$/&�$)o/A1b/&>?�K6&%5Bb�@+?ij�!)Cl1�.2 ]/zQ|{}>"�!68�W%(#A�~.2BDCl1�#8/&%( ]/�%5 ")q.: �/A�!#8�!68/A.2 "�KM!1� "M$�!C?/A6!cj9"F?/ u �v)"1w "1(/�) u �!'2'l1� q/A>"�!B�.: /&>?.26 u 1�#A�sQHTvF"#y9-%(68.2M}M$1� "M!�$#A D.26 u .0/&>E/&.:Bb���<)"�$CJ�$ ")"�! ]/�TWVWX}Y�6*%( ?)pTW�^XgY[6*.2 u >".2Md>^/&>?�M!1a�$�DM$.2�! ]/@Bb%5/&#8.2M!�$6=%(#A�^.: ")"�!Cl�! ?)"�! ]/w1(4�9l1(/A>��I%( ")����|6A�$�p�a�!M$/A.21� ��"Q��jQE��� u .:'2'�#8�$4t�$#/&1^68F"Md>�Bb%5/&#8.2M$�!6Z%(6��,���(�������l�(����Q���>-%(C?/A�!#A6~�D%( ")o E)"�$G(�!'21(CJ�$)U/A>"�=#A�!C?#A�!68�! ]/d%�/&.:G(�w4t1�#8Bb61(4�TWVWX}Y�6e�(�! "�$#&%5/A�!)`4t#A1�B¡/A>"�N9-%(68.2MN¢*VWX}Y�6K9�;�/&>"�N68�!BD.2)".:6AM$#A�$/A�N%(C"C?#A1]%(Md>£c*%( ")h/&>?�! /&>?�vTW�^X}Y�6����! "�$#&%5/A�!)D4t#A1�B¤/A>"�m#8�!C"#8�!68�! ]/d%5/A.:G(�WTWVWX}Y�6H9];q%5C"C"'2.:Mz%5/A.21� E154£/&.:Bb���<Bb%(#AMd>?.2 "�BD�$/&>?1j)"6$Qy{}>"�!68�K�$¥aF"%5/&.:1� "6~%(#A�W#8�!C"#8�!68�! ]/&�$)�9];

¦y§�¦ �©¨Oª §�b« §¬|­ �8® ­�¯ Q:°±®

%( ")§�-²z³J´ ¨Oµ §�-²W« §¶ ² ­�¯ Q·�(®

#A�$6ACl�!M,/&.:G(�!'0;�Q}¸-1�#~%^1� "�,�¹68/A�!C�BD�$/A>"1j)£c"/&>"�@'º%5/8/&�$#74t1�#ABx.:6~1(9?/d%(.: "�!)U9];U%(C"C"'0;a.2 "�b%^/A.2BD�,�Bb%(#AMd>".: "�pBD�$/A>"1j)�/A1p/&>"�E�(�! "�$#A.2MET=VWX»4t1�#AB¼.2 �%N4½%5.2#A'0;\68/A#&%(.:��>]/A4t1�# u %(#8)©Bq%5 " "�!#$QK¸-1�#�,i?%(BDC"':�(c-/&>"�@�,ijC"':.2M$.:/mXyF"'2�$#~BD�$/A>"1a)�'2�!%()"6}/&1q¾ ¨À¿=ÁÃÂ-ª cl%( ") §¶ ² ¨ §¬Ä­½Å  ®�Q~Æo�$/A>"1a)"6.2 ]G(1�':Ga.2 ?�Z/ u 1~1�#ÇBb1�#8�y68/A�!C"6ÈMz%( w%(' u %z;a6Ç9J� u #A.0/A/A�! @.2 W/&>"�y4t1�#8BÀ1(4?Xy¥lQ ¯ Q��}9�;v.2 ]/&#81j)"F?M!.2 ?� "� u )?�!Cl�! ")"�$ ]/WG(%5#A.º%59"'2�$6!Q~Ém1(/A�e%(':6A1D/&>-%5/m1� "'0;UBb�,/&>"1a)"6�.: u >".:Md>�/&>?�w/&.:Bb�w%( ")�6AC-%(M$�)".:6AM!#8�$/A.2Êz%�/&.21( "67%(#8�m/A#A�z%�/&�!)N68�!C-%5#&%5/A�!':;bMz%5 N9J� u #8.:/8/&�! q.2 N%( q.2 ]/&�$#ABD�!)".2%5/&�m6A�!BD.0�¹)".268M!#8�$/&�4t1�#8BË68F"Md>P%(6EXy¥sQ ¯ Q:°�QU{}>"�q4tF?'2':;]�¹)".268M!#A�,/&�^4t1�#ABUc�Xy¥sQ ¯ Q·��%5 ")I/&>?�N%(6A681jM$.º%5/A�!)h6L/d%(9?.2'2.0/<;)"�,+- ".:/A.21� ?6Z%( ")o%( -%('0;j68.26Z%(#8�=%(C"C"':.2M!%(9"'2�m/&1D%('2'£Bb�,/&>"1a)"6!Q

°Ì�(Í

Page 130: Fundamentals of Computational Fluid Dynamics.pdf

°Ì�5� Î�ÏmÐ�ÑvÒÄÓ*ÔxÕ±ÖÃ×ÇÒ"Ð�Ø�ÙrÚÛÙ!ÒZÜÞÝ}ßPÚÛÙrà�ÓyÐvÔá×ÇÜ*×ÇÒÄÓHâ�×ãpä±å æèçWéIçWê©ë�çWê©ìZçîíDê ï�ð�ç ñÀò!ó^çWê©ôÄõUôÈï�çWö

TvF"#e)"�,+- ".0/&.21( "6e1(4~68/&%(9".:'2.:/<;�%(#8�p9-%(68�!)P�! ]/A.2#A�$':;�1� h/&>?�N9J�$>-%zGj.:1�#e1(4Z/A>"�N>"1�BD1����$ "�!1�F?6C-%(#L/&6m1(4HXy¥a6$Q ¯ Q0°e%( ?) ¯ Q·�aQ�{}>"�e6L/d%(9?.2'2.0/<;N1(4HXy¥sQ ¯ Q0°e)"�$CJ�$ ")"6W�$ �/A.2#8�!':;U1� o/&>"�w�!.2�(�! "6L;j6r�/&�$B ´ 1(4 ª QD{}>"�b6L/d%(9?.2'2.0/<;�154}Xy¥sQ ¯ Q·�NMz%( 31(4f/A�! �%('2681U9l�D#A�!'2%5/&�$)©/&1\/&>"�D�!.:���! "6L;a68/&�$B¡1(4.:/A6KBb%5/&#8.0iJQ�÷~1 u �,G��!#$c�.: I/&>?.26KM!%(6A�p/A>"�p68.:/&F"%5/&.:1� I.:6K "1(/e¥aF?.:/&�b6A1©68.2BDC"'2�D6A.: "M!�5cy.2 h1�F?#%(C"C?'2.2M!%5/&.:1� "6Z/&1NC-%5#8/&.2%('È)".:øJ�!#8�! ]/&.2%('Ä�$¥�F-%5/&.:1� "6 ­ �!6ACl�!M$.º%(':':;U>];aCJ�$#A9l1�'2.:Me1� "�$6d®,cÇ%p6L/d%(9?.2'2.0/<;)"�,+- ".:/A.21� �Mz%( �)"�$CJ�$ ")�1� ©9J15/&>�/&>?�e/&.2BD�e%5 ")©6AC-%5M!�^)".:øJ�!#8�! "M$.2 "�?Q@{}>?.26v.:6v)".268M!F"686A�$)�.: �j�$M$/&.:1� ¯ Q��?Qy�� -%('0;a6A.26Z1(4È/&>?�!6A�@�!.:���! ?68;a68/A�!BD6m>-%56~/A>"�=.2BDCJ1�#L/d%( ]/Z%5)")"�!)o%()?G5%( ]/&%(���W/&>-%�/.:/e��.:G(�!6D%( P�!6L/&.2Bb%5/A�N1(4m/A>"���8�(�rùe%5/ u >".:Md>Ã%©6A1('2F?/A.21� P%(C?C"#A1]%5Md>"�!6D%�68/&�!%()?;]�<6L/d%5/A�\.:4m%68;a6L/&�!Bú.26w68/d%59"'2�5Q©��1� "68.2)"�$#&%5/A.21� u .2':'H9l�p��.0G��$ I/&1�Bb%5/A#A.2M$�!6=/&>-%�/e>-%zG��N9l1(/A>hM!1�BDC"':�$/&�%( ")^)"�,4t�!M,/&.:G(�}�!.:���! "6L;a68/&�$Bb6$cj68�!�~�j�$M$/A.21� ^�"Q��jQ�Í?c u .:/A>^%W#A�!BD.2 ?)"�!#È/&>-%5/H%vM$1�BDC"'2�,/&�76L;j6L/&�$BMz%5 I9l�p%(#89".:/A#&%(#8.2':;oM!':1�6A�^/&1�%o)"�,4t�!M,/&.:G(�q1� ?�(c|.: u >?.2Md>hM!%(6A�bC"#&%(M,/&.:Mz%('H%(C"C?'2.2M!%5/&.:1� "6WM!%( Bb%(�(�W/&>?�@C?#A1�Cl�!#L/&.2�$6}1(4È/&>"�='º%�/A/&�$#Z%(C"Cl�z%(#7/A1b)?1�Bb.: -%5/A�(Q

S¹4 ª %( ") µ %(#A�=68/&%5/&.:1� -%(#L;�c u �KM!%( Rcs.2 N/&>?�!1�#L;U%5/~'2�z%568/zc-�$68/A.2Bb%5/&�W/&>?�!.2#}4tF" ?)-%(BD�! ]/d%('C"#81�CJ�$#8/A.2�!6$Q�¸-1�#@�,i?%(BDC"'2�5c|.: `�j�$M$/&.:1� h�"Q�Í?Q�� u �q4t1�F" ")�4t#A1�Bè1�F"#@BD1j)"�$'7TWVWX}Y[6w4t1�#@)".:4º�4tF"68.21� o%( ")oCJ�$#A.21a)".:MWM!1� ]G��$M$/A.21� u >"%5/�M$1�F"':)�9l�w��i?Cl�!M,/&�$)�4t1�#Z/&>"�@�!.:���! ]G5%('2F?�@68CJ�$M$/A#AF"BD61(4�C"#&%5M$/&.:Mz%('|C">];j68.2M!%('*C"#A1�9?'2�!BD6WM!1( �/&%(.2 ?.2 "�p/A>"�!68�bC">?�! "1�BD�! "%?cÄ68�!�D¸|.:�"QR�"Q0°�QE{}>"�$6A�q��i��Cl�!M$/&%5/&.:1� "6�%(#A�~#A�,4t�!#8#A�!)b/&1@Bq%( ];E/A.2BD�!6H.2 ^/&>"�Z4t1�'2':1 u .2 "�@%( -%5':;a6A.:6H154Û68/&%(9".2':.:/<;KC"#A1�Cl�!#L/&.:�!6!Q{}>"�,;U%(#A�=.2BDCl1�#8/&%( ]/7�! ?1�F"��>\/&1^9l�@68F"BDBq%(#8.2Ê$�!)\9];p/&>"�W4t1�':'21 u .2 ?�"û

ü ¸-1�#v)?.:øJF"6A.:1� ©)"1�BD.2 -%�/&�!)�_"1 u 6W/A>"�bý"�¹�!.2�(�! ]G5%('2F"�$6�/&�$ ")�/&1\'2.:�E%('21( "�q/&>?�D ?�!�]%5/A.:G(�#8�z%('Ç%�ij.:6!Q

ü ¸-1�#HCJ�$#A.:1j)".:MmM$1� ]G��$M$/&.:1� j�¹)"1�BD.2 -%5/A�!)D_-1 u 6�/&>"�Wý"�¹�!.2�(�! ]G5%('2F"�$6H/A�! ")p/A1K':.2�m%('21� ?�w/&>?�.:Bq%(�(.2 -%(#L;b%�ij.26!Q

S< þBq%5 �;k.: �/A�!#8�!68/A.2 "�`M!%(6A�$6!cZ/&>"���!.2�(�! ]G5%('2F"�$6q1(4W/A>"��Bb%5/&#8.2M$�!6D.2 þXy¥�6!Q ¯ Q:°©%5 ") ¯ Q��%(#8�p6AF?�DM$.2�! ]/e/A1©)"�$/A�!#8Bb.: "�b/A>"�p68/&%(9".:'2.:/<;(Q�S< `C"#8�$Ga.21(F"6eMd>-%(Cj/&�!#86!c u �N)"�!68.2�� -%�/&�!)h/A>"�!68��!.:���! ]G5%(':F"�!6o%(6�ý-ÿ¼%( ?)��"ÿ 4t1�#UXy¥a6$Q ¯ Q:°�%( ") ¯ Q·�acW#A�!68CJ�$M$/A.:G��$':;(cw%5 ") u � u .:'2'v+- ?) .:/M!1( �G(�! ".:�! ]/e/A1��,i?%(BD.2 ?�D/A>"�q6L/d%(9".:'2.0/<;©1(47G5%(#8.21�F"6@BD�$/&>?1j)"[email protected] �9J15/&>�/A>"�qM$1�BDC"'2��iIýP%5 ")M!1(BbC"':�,i���C"'2%( "�$6!Q

��������� ���������������������� �������!"��#$�����&%'��($�)�+*��-,/.��01��%2.3!4%657�&84��%6���9���3� 3:�� %�&�4*&;

Page 131: Fundamentals of Computational Fluid Dynamics.pdf

Õ±Ö�<?ÖgÙràmÏ�Ó*Ô~ÓHàEÒg×ÇÒ?ÐvØ�ÙrÚÛÙ!ÒZÜÀÝ}ßOÝ$=WÓ?> × °Ì�1@ãpä)A BÇê©ð�çDC*çvêNïFEpï�GIH©ò'Jzò$ïRõ íLKNMnæ ñPO8ôQSRUTSR&V WYXDZN[]\_^U`9Z3\_^�acb÷m�$#A� u �36L/d%5/A��/&>"��6L/d%( ")"%(#A)»68/&%(9".:'2.:/<;gM!#8.:/A�!#A.:1� F"68�!) 4t1�#p1�#8)".2 -%5#8;g)".:øJ�!#8�! ]/&.2%('v�!¥�F-%Ì�/&.:1� "6$Q

¸s1(#b%h�,���(�������l�(���\Bq%�/&#A. i ª c}Xy¥lQ ¯ Q0°o.:6\�f�9d-ù,�dù,�-��e �©�,�¹��f'e2ù^.04rc u >?�! §¬ .26M!1� "6L/d%( ]/!c §�o#A�$Bq%(.: "679l1�F" ")?�!)�%567��g h Q ­�¯ Q�Í�®

Ém15/&�W/&>-%�/Z.2 ">"�$#A�$ �/~6L/d%(9".:'2.0/<;q)"�$CJ�$ ")"6~1� "'0;p1� \/&>"�W/A#&%( "68.2�$ �/Z681�'2Fj/&.21( U154Ä/A>"�wT=VWX}Y[6!QQSRUTSRUT [YaciPjlk�Z�`9Znmo^�pqZrbDs tusv`9ZriPsS¹4-%ZBb%5/&#8.0iW>"%(6|%ZM!1(BbC"':�$/A�H�$.2���$ "68;a6L/&�!BUc�%5'2'�1(4?.:/A6È�$.2���$ ]G��!M,/&1�#86�%(#8�*'2.2 ?�z%(#8':;v.: ")"�$CJ�$ ")"�! ]/!c%( ")\/&>?�wBb%5/&#8.0iqMz%( U9l�w)".2%(��1� "%('2.:Ê!�!)q9�;U%^6A.:Bb.:'º%(#8.:/<;^/&#A%( "6L4t1�#ABb%5/&.:1� RQ�S< o6AF"Md>�%DM!%(6A�@.:/4t1�':'21 u 6=%5/@1� "M$�D4t#81�B¡Xy¥sQÄ jQ·� ¯ cÇ4t1(#@��i?%(BbC?'2�(cÛ/A>-%5/=/&>"�qTWVWX}Y�6@%(#8�b.: ">"�!#8�! ]/&'0;©68/&%(9"':�D.04%( ")U1� "'0;p.04 w ­ ý"ÿ}®yx{z 4t1�#Z%(':'}| ­�¯ Q��]®{}>".:6b6L/d%5/A�!6b/A>-%5/!c�4t1�#D.2 ">"�$#A�$ �/q68/&%(9".2':.:/<;(c�%(':'}1(4v/A>"��ý �$.2���$ �G5%(':F"�!6DBeF"6L/p':.2�N1� Rc�1�#D/A1/&>?�q'2�,4f/K154rcÄ/&>?�q.2Bb%(��.: -%(#L;©%�[email protected] 3/&>"�bM!1�BDC"':�,iIý`C"'º%( ?�(Q\S< "6ACl�!M,/&.: "�©¸|.:�"QÛ�"Q0°�c u �p6A�$�/&>"%5/w/A>".26@M!#8.:/A�!#A.:1� 3.26@6&%5/A.268+"�!)I4t1�#=/&>?�qBD1j)"�$'HTWVWXZY[6K#8�!C"#8�!68�! ]/&.: "��9l1(/&>h)?.:øJF"6A.:1� I%5 ")9".:M!1� ]G��$M$/A.21� RQ}S¹/m6A>?1�F"'2)o9J�@�!BDC">-%56A.2Ê$�!) ­ %(6~.:/~.26m%( U.2BDCJ1(#8/d%5 �/ZC?#&%(M,/&.2M!%('ÇM!1� ?6A.2)?�!#&%�/&.21( .2 UM!1( �G(�!M,/&.21( j�<)"1(Bb.: -%5/&�$)o6L;a68/&�$Bb6&®Z/A>-%5/~/&>"�@6ACl�!M$.º%('ÇMz%56A�=4t1�# u >?.2Md>©ý ¨�~l� .26=�f���4e��9�aù��.2 D/&>"�m)"1�Bb%(.2 D1(4Û6L/d%(9?.2'2.0/<;�QÄS< q/&>".:6�M!%(6A��.:/�.26*/&#AF?�m/&>"%5/ §�N)"1a�!6� "1(/�)"�!M!%z;N%(6H��g h cj9"Fj/ "�$.:/&>?�!#~)"1j�$6�.0/m�(#A1 u c£681b/&>?�e%(9l1±G��KM$1� ")".0/&.:1� o.:6mBD�$/!QZ¸|.2 "%('2'0; u �K "1(/A�w/A>-%5/~4t1�#vTWVWX}Y[6u .:/A>ÃM$1�BbC?'2�$/A�\�!.2�(�! "6L;j6L/&�$Bb6D/&>"�o�!.2�(�! ]G��$M$/&1(#A6qC?'º%z;P "1I#81�'2�\.: g/&>?�o.: ">"�!#8�! ]/p6L/d%(9?.2'2.0/<;M!#8.:/A�!#A.:1� RQQSRUTSR�� ��Z3�)Z3��`�^U�yZnm�^�pcZrbDsvt/s�`�Zri�sS< 31�#A)"�$#W/&1\F" ")"�$#A6L/d%( ")3/&>"�D68/&%(9".:'2.:/<;o1(47TWVWXZY[6W/&>-%�/w>"%±G(�b)?�$4t�!M,/&.0G��D�!.2�(�! "6L;j6L/&�$Bb6$c u �.2 ?6ACl�!M$/�/&>"�� -%5/&F?#A��154Û/&>"�$.2#H6A1�':F?/&.:1� "6H.2 p�$.2���$ "6AC-%5M!�(Q*¸-1�#*/&>?.26 u �v)"#A% u 1( q/&>"�m#A�$6AF"'0/&67.: �j�$M$/&.:1� "6=�"Q��jQ�ÍU%5 ")��$6ACl�!M$.º%(':':;�1( IXy¥�6!QÇ�"Q0°��p/&1U�"Q0°��N.2 ©/&>-%�/w68�!M,/&.21( RQ^S< I%( 3�!.:���! ?6AC-%(M$�#A�$'º%5/A�!)�/A1N)"�$4t�$M$/&.0G��^68;a6L/&�!BD6W/&>"�e4t1(#AB¼1(4*/&>"�E#8�!C"#8�!6A�$ ]/d%5/A.:G��D�!¥�F-%�/&.21( ©Md>-%( "���$6W4t#A1�B %6A.: "��':���!¥�F-%�/&.21( p/&1^%��(1�#A)"%( N9"'21aMd�sQ*¸-1�#���i"%5BbC"':�(cj.2 "6L/&�z%5)U154|Xy¥sQ"�"Q[��@e%K/<;aC".:Mz%('l4t1�#AB�1(4/&>?�@>?1�Bb1(���! "�$1�F"6ZC-%(#L/ZBb.:��>]/}9l���� ��� ´� � �� � �

�-�  ¨ ��� ý ° ý° ý

�-�  ��� �R´� �� ��-� 

Page 132: Fundamentals of Computational Fluid Dynamics.pdf

°Ì�(  Î�ÏmÐ�ÑvÒÄÓ*ÔxÕ±ÖÃ×ÇÒ"Ð�Ø�ÙrÚÛÙ!ÒZÜÞÝ}ßPÚÛÙrà�ÓyÐvÔá×ÇÜ*×ÇÒÄÓHâ�×4t1�# u >".:Md>o1( "�W+- ")"6Z/&>"�=681�'2F?/A.21�

�R´ ­ �8® ¨ �R´ ­ z]®&¡"¢�£� � ­ �8® ¨ ¤ � � ­ z�® Á �R´ ­ z�®r�U¥¦¡"¢)£� � ­ �8® ¨ § � � ­ z]® Á � � ­ z]®<� Á °

� �R´ ­ z]®<� �&¨ ¡"¢�£ ­�¯ Q�@(®S< "6ACl�!M,/&.: "�w/A>".26*6A1('2F?/A.21� Rc u �~6A�$�m/&>"%5/*4t1�#y6AF"Md>qMz%(68�!6HM!1� ")?.:/&.:1� ¯ Q[�wBeF?68/H9J�ZBD1j)?.:+-�$)/&1E/A>"�W4t1�#AB w ­ ý"ÿ7®S©ªz 4t1�#Z%5'2'«| ­�¯ Q� �®

6A.: "M!�74t1(#�C"F"#8�}.2Bb%(��.2 "%(#8;@ýÛc]� � %( ")E� � u 1(F"'2)E��#81 ugu .0/&>"1�Fj/�9l1�F" ") ­ ':.2 "�!%(#A'0;=1�#�¥�F-%()?#&%5/L�.2M!%('2'0;?®y.04Û� � ­ z�®­¬¨ zK1�#7�R´ ­ z]®l¬¨ zjQy{}>"�!1�#8�$/A.2Mz%5'2':;E/A>".26�M!1� ?)".:/A.21� b.26�68F?�DM!.:�! ]/}4t1�#�6L/d%(9?.2'2.0/<;.2 D/&>"��6A�! ?6A�v1(4Ä��/d%5/A�!BD�! ]/ ¯ Q�ÍK68.2 "M$�m��®"¡°¯²± ³�± £ g z@%(6y��g h 4t1�#7%5'2's "1� j�¹Ê!�$#A1µ´!Q*÷~1 u �,G��!#$c.2 `C?#&%(M,/&.2M!%('7%5C"C"'2.:Mz%5/A.21� ?6w/&>?�NM!#A.0/&�$#A.21( hBq%z;I9J� u 1�#8/A>"'2�$6A6E68.2 "M$�p/&>"�$#A�\Bq%z;�9J�\%�G(�!#L;'º%5#A���m��#A1 u /&>N154È/A>"�vCl1�':;a "1(Bb.2%('s9J�,4t1�#A��/A>"�v��i?Cl1� "�$ ]/&.º%5'·¶L/d%5�(�!6}1±G(�!#�¸D%( ?)N9"#A.: "��67%59J1�Fj//&>?�N)"�!M!%±;(QP¸-F"#8/A>"�!#8Bb1�#8�(c*1� k%©M!1�BDC"F?/A�!#E68F"Md>Ã%©��#81 u /&>PBb.:��>]/E)"�$68/&#81±;h/&>"�N681�'2Fj/&.21( C"#81jM$�!6A6~9l�$4t1�#8�W.:/ZM!1(F"'2)\9l�=/A�!#8Bb.: -%5/&�$)RQ

Ém1(/A��/&>"%5/�/&>?�768/&%(9".2':.:/<;=M$1� ")".0/&.21( ¯ Q� bù&¹ �4e����aùd�R/&>"�}.:Bq%(�(.2 -%(#L;=%�ij.26 u >".2Md>E/A�! ")"6Ä/&1W9l�1aM!M!F?C".2�$)b9];e/A>"�Z�!.2�(�! ]G5%('2F"�$6*#A�!'2%5/&�$)E/&1=9".2M$1� ]G��$M$/&.:1� DC"#A1�9?'2�!BD6!Q|÷m1 u �$G��$#!cjM!1� ")?.:/&.:1� ¯ Q� .26*1(4£'2.0/A/&':�71�#* "1@C"#&%5M$/&.:Mz%('-.:BbCl1�#L/d%( "M$�}.:4£6A.2�( ".:+-M!%( ]/�%(Bb1(F" ]/&6*1(4R)?.26A68.2C-%�/&.21( b%5#A�ZC"#A�$6A�$ �/!Q

ãpä�º »«¼©ö çlC*òzì·GIJ½Epï�G?H©ò"Jzò$ïRõ íLKnM¿¾ ñ O8ôQSR��$R&V WYXDZN[]\_^U`9Z3\_^�acb{}>"�KTW�DXgM!1�BDC-%( ".:1� p/&1b�a/&%5/&�$Bb�$ ]/ ¯ Q�ÍE.26

¸s1(#w%©�,�¹�(�½�����l�(���^Bq%5/A#A. i µ c�Xy¥sQ ¯ Q·�\.26^��� Àqù,�����A�1eÁe �N�,�¹��f'e2ùW.:4rc u >"�! §¶ .26M!1� "6L/d%( ]/!c §�"²^#8�!Bb%(.2 ?679J1(F" ")"�$)�%(6 Å g h Q ­�¯ Q ¯ ®

���~68�!�Z/&>-%�/� �F"BD�!#8.2M!%('"68/&%(9".:'2.:/<;K)"�!Cl�! ?)"6�1( "':;E1( ^/A>"�Z/&#&%5 "6A.:�! ]/H6A1�':F?/&.:1� E1(4£/A>"�mTW�DXgY�6$Q{}>".:6~)?�$+- ".0/&.:1� N1(4Ä68/d%59".2':.:/<;b.26}6A1(Bb�,/&.2BD�!6}#8�$4t�$#A#A�$)U/A1q%56Z%(68;aBDC?/&1(/A.2MW1�#7/A.2BD�W68/&%(9".2':.:/<;(Q

��6 u �v6L/d%5/A�!)N%�/�/A>"��9l�!��.: " ".: "�w154R/&>".:6�Md>"%(C?/&�$#!c"6L/d%(9?.2'2.0/<;E)"�,+- ".:/A.21� ?6�%5#A�� ?1(/�F? ".2¥�F"�5Q��)?�$+- ".0/&.:1� h1(4f/A�! hF"68�!)P.2 h�7¸�V '2.0/&�$#&%5/AF"#A�D68/A�!BD6K4t#A1�B¡/A>"�p)"�,G��!':1�C"BD�! ]/E1(4~¢*VWXÞ6A1��'2Fj/&.21( "6p/&>-%�/o)?1g "15/o ?�!M!�$6A6A%(#A.:':; 4t1�':'21 u /&>"�36A�$Bb.:)".268M!#8�$/&��#81�F?/&�5Q S< 6AF?Md>ÀMz%(68�!6U.:/\.:6%(C"C?#A1�C"#8.º%5/A�N/&13M!1� "68.2)"�$#b68.2BeF?':/d%5 "�!1�F?6A':;�/&>"�U�$øJ�!M,/&6b1(4v9l1(/&>P/&>?�U/A.2BD�\%( ")Ã68C-%(M$��%(Cj�C"#81±ij.:Bq%5/A.21� ?6!Q��À/A.2BD�,�<68C-%(M$�v)"1�Bb%(.2 N.:67+?ij�!)o%( ")\68/&%(9".:'2.:/<;b.26})?�$+- "�$)o.: N/&�!#8Bb6}154 u >-%�/>-%(C?CJ�$ "6�/&1K6A1�BD�� "1(#AB�1(4R/&>?�v6A1�':F?/&.:1� u .0/&>".: b/A>".26�)"1�Bb%(.2 b%(6�/A>"�vBD�!6A>q.2 ]/&�$#8G5%('26���1w/A1Ê!�$#A1b%5/Z6A1(Bb�=M!1( "68/&%( ]/m#A%5/&.:1"Q|���=)".268M!F"686~/A>".26}Cl1�.2 ]/Z1(4ÈGa.2� u .2 o�j�$M$/A.21� ¯ Q[�"Q

Page 133: Fundamentals of Computational Fluid Dynamics.pdf

Õ±Ö�ÂaÖáÒÈÙLâoÓqÃ�×?ÑJÐ@Î�Ó ×ÇÒ?ÐvØ�ÙrÚÇÙ!ÒZÜgÐvà/=�Î}Ý}à�Ä�Ó*ÔlÅZÓHàKÎ�ÓÝZß Ý}�^Ó?> × °Ì� ¯QSR��$RUT [YaciPjlk�Z�`9Znmo^�pqZrbDs tusv`9ZriPs��1� "68.2)"�$#y%�68�$/y1(4JTW�^XPY�6��(1ÌG(�!#8 "�!)D9];e%�M$1�BDC"'2�,/&���$.2���$ "68;a6L/&�!BUQ�{}>"��68/d%59".2':.:/<;=M!#8.:/A�!#A.:1� Rc%(M$M!1�#8)".2 "�U/&1U/&>"�bM!1� ")?.:/&.:1� 36A�$/e.2 �X*¥sQ ¯ Q ¯ cÄ4t1�':'21 u 6@%5/K1( "M!�q4t#81�Bè%o6L/&F")j;I1(4}X*¥sQ| ?Q·�°�%( ")�.0/&6WM!1(BbC-%5 ".21� �4t1(#vBeF"'0/&.2C?'2�?�l�<#A1a1(/A6!cÛXy¥sQÇ ?Q�Í� ?Q^��':�z%(#8':;�cJ4t1�#W6AF"Md>368;a6L/&�!BD6w%N/A.2BD�,�Bb%(#AMd>".: "�EBD�$/&>?1j)\.26} �F"BD�!#8.2M!%('2'0;q6L/d%(9"':�=.:4Ä%( ")U1� "'0;p.:4Æ ­ �"ÿ}® ® Æ xÞ° 4t1�#Z%(':'�|�%( ?)oÇ ­�¯ Q ��®{}>".:6UM$1� ")".0/&.:1� »68/d%�/&�!6N/A>-%5/zcm4t1�#N �F"Bb�$#A.:Mz%('W6L/d%(9".:'2.0/<;�cm%('2'v154w/A>"�È� �$.2���$ �G5%(':F"�!6 ­ 9J1(/A>C"#8.2 "M$.2C-%('�%( ")36AC"F"#8.21�F?6!cÇ.:4H/&>"�$#A�b%(#A�^%5 �;?®WBeF"6L/w':.2�e1( �1�#=.: "6A.:)"�e/&>"�^F" ?.:/=M!.:#AM$'2�E.2 �/&>?�M!1(BbC"':�,i��J�<C"'2%( "�5Q

{}>".26*)"�,+- ".0/&.21( E1(4£6L/d%(9?.2'2.0/<;=4t1�#HTW�DXgY�6*.26yM$1� "68.268/A�! ]/ u .:/A>^/A>"�Z68/&%(9".2':.:/<;@)"�,+- ".:/A.21� e4t1(#TWVWX}Y�6$Q|����%(.2 v/A>"��68�! "68.:/A.:G��HMz%56A�*1jM$M!F"#86È4t1(#Ç/A>"�*CJ�$#A.:1j)".:M,�¹M!1� ]G��$M$/A.21� =BD1j)"�$' u >".:Md>KC"'2%(M!�$6/&>?�ɶ8M!1�#8#A�$M$/ʸ\':1jM!%5/&.:1� �1(4*/&>?�EC"#A.: "M!.:C-%('Ë�_Ìa#A1a1(/WC"#8�!M$.26A�$':;�1� ©/&>"�EF" ?.:/WM$.2#AM$'2� u >?�!#A�^/&>?�6A1('2F?/A.21� =.26È1� "'0;W "�$F?/&#A%('2'0;W68/&%(9"'2�5Q|¸-F"#L/&>"�$#!c�4t1�#È%mM!1(BbC"':�$/A�H�$.2���$ "68;a6L/&�!BUc5/A>"�H�!.2�(�! ]G��$M$/&1(#A6C"'2%±;q "1D#A1�':�W.2 p/&>?�@ �F"BD�!#8.2M!%('R68/&%(9".:'2.:/<;q%(686A�!686ABD�! ]/zQ

QSR��$R�� ��Z3�)Z3��`�^U�yZnm�^�pcZrbDsvt/s�`�Zri�s{}>"�*)".:6AM!F?6A6A.:1� =4t1�#£/&>?�!6A�H68;a6L/&�!BD6ÈC-%(#&%5'2'2�$'26l/&>"�y)".:6AM$F"6A68.21� =4t1�#Û)"�,4t�!M$/A.:G(��TWVWX}Y[6!QÄX�i?%(BD.2 ?�Xy¥sQÄ jQ:°��U%( ")3 "1(/A�b.0/&6=6A.:Bb.:'º%(#8.:/<; u .:/A>IXy¥sQ ¯ Q @jQD���D6A�!�D/&>-%�/@4t1(#@)?�$4t�!M,/&.0G��qT=�^X}Y[6w/&>?�#A�$¥�F".2#8�!)UBb1a)".:+"Mz%5/A.21� q/A1 ¯ Q �E.:6Æ ­ �"ÿ7® ® Æ © ° 4t1�#Z%(':'�|�%5 ")�Ç ­�¯ Q ��®6A.: "M!��)"�$4t�$M$/&.0G��v6L;a68/&�$Bb6})?1e "1(/���F-%(#A%( ]/&�!��9J1�F? ")"�!)? "�!686Z4t1(# Æ � Æ ¨ °�ca4t1�#���i"%5BbC"':�m.: NXy¥sQ¯ Q @e.:4 Æ � Æ ¨ °w%5 ")o�$.:/A>"�!#Z� � ­ z]®71�#}�R´ ­ z]®D¬¨ z u �@���$/Z':.2 "�!%(#71�#}¥�F-%()?#&%5/A.2M=��#A1 u /A>RQãpä�Í Î òzö ç/Ï�E\é�GeìZçÐEpï�G?H©ò"Jzò$ïRõÑGeê©ë Ò�íDêÔÓDçlCyó^çWê©ìZçáí�KoM¿¾ ñPO8ôÕ �$/UF"6U "1 u ��i"%5Bb.: "�©/&>"��M!1( "M!�$C?/�154K6L/d%(9".:'2.0/<; .2 %`)".0ø£�$#A�! ]/ u %±;(Q�S< »/&>"��C"#8�$Ga.21(F"6)".:6AM!F?6A6A.:1� u �=M!1( "6A.:)"�!#8�!)�.: \6A1�BD�W)"�$/&%(.2'J/&>"�W4t1�':'21 u .2 "�e%(C"C"#81]%(Md>Rû°�QZ{}>"�w¢*VWX}Y�6m%(#A�@M!1( �G(�!#L/&�!)o/&1qT=VWX}Y[6m9];U%(C?C"#A1zij.2Bb%5/&.: "�e/&>?�w68C-%(M!�w)"�!#8.:G5%5/A.:G��$6Z1� %e+- ".0/&�WBD�!68>RQ

�jQZS< ">?�!#A�$ ]/�6L/d%(9".:'2.0/<;q1(4È/&>?�KTWVWX}Y[6~.:6}�!6L/d%(9"':.268>"�!)U9];N��F-%(#A%( ]/&�$�!.2 ?�^/A>-%5//w ­ ýl®yx{z?QÍ?QZ{}.:Bb���<Bb%(#AMd>pBD�$/A>"1a)"6Z%(#A�W)?�$G��$'21�Cl�!) u >".:Md>o��F"%(#&%( ]/A�!�v/&>"%5/ Æ � ­ ý  ® Æ xÞ°w%5 ")N/&>".:6.:67/d%(�5�! o/A1^9J�W/&>?�@M$1� ")".0/&.:1� p4t1�#} �F"BD�!#A.:Mz%('£68/d%59".2':.:/<;�Q

Page 134: Fundamentals of Computational Fluid Dynamics.pdf

°Ì�1� Î�ÏmÐ�ÑvÒÄÓ*ÔxÕ±ÖÃ×ÇÒ"Ð�Ø�ÙrÚÛÙ!ÒZÜÞÝ}ßPÚÛÙrà�ÓyÐvÔá×ÇÜ*×ÇÒÄÓHâ�×{}>".:6L�a�±ùd�m��F-%(#A%( ]/&�!�w/&>-%5/W%p68/d%�/&.21( -%(#8;U6L;j6L/&�$BocÛ���$ "�!#A%5/&�$)©4t#A1�B %N¢*VWX 1� ©681�BD�6Ör¹jù��6AC"%(M!�bBb�$6A>Rc u .2'2'|>-%zG��p%U �F"Bb�$#A.:Mz%('y681�'2F?/A.21� �/&>"%5/@.26@9J1�F? ")"�!)I%(6=� ¨ Å Â g h Qp{}>".:6�a�±ùd�w�£���Ä�(F-%(#&%5 �/A�!�K/A>-%5/�)"�!68.2#&%59"'2�@6A1�':F?/&.:1� "6m%(#A�K���! "�$#&%5/A�!)�.: �/&>?�w/&.:Bb�@Bb%(#AMd>�C?#A1aM!�!686%(6Z9l1(/&>N/&>?�=/A.2BD�W%( ")U6AC"%(M!�@Bb�$6A>\.2 ]/A�!#8G5%(':6Z%(C"C"#81]%(Md>UÊ!�$#A1"Q

Ém1 u '2�,/�F"6m)"�$+" "�e68/&%(9".:'2.:/<;p.2 o/A>"�w/A.2BD�,�¹6AC-%(M$�w68�! "68�(Q�¸|.2#868/mM!1� "6L/&#8F"M$/=%^+- ".0/&�w/A.2BD�,�6AC"%(M!�@)"1�Bb%(.2 N'0;a.2 "� u .:/A>".2 ×zLxªØ�x½Ùþ%( ")Úz�xþ�yx{Û@Q���1±G��$#m/&>?.26})"1�Bb%(.: u .0/&>U%^��#A.:)/&>"%5/Z.26}�$¥aF?.26AC"%(M!�$)�.2 \9l1(/&>\/&.:Bb�v%( ")\6AC-%5M!�w%( ")\+?iN/&>?�@BD�!68>��8�(�½���v9];N/A>"�=�!¥�F-%5/A.21� �

Ü ² ¨ �E��µØ

Ém��ia/*#A�!)?F"M!�}1�F?#*TW�DX3%(C"C?#A1zij.2Bb%5/&.:1� K1(4-/A>"�}¢*VWX©/&1=%�/ u 15�<':�$G��$' ­ .�Q[�(Q0c(/ u 1W/A.2BD�,�<C?'º%( "�$6d®4t1�#8BeF"'º%e.: p/&>"�W4t1�#8B 1(4|Xy¥lQ ¯ Q·�jQy{}>?�w>"1(Bb1��(�! "�$1�F"6ZC-%(#L/Z1(4Ä/A>".2674t1(#ABeF"'2%e.26§�-²z³J´ ¨ µ §�-² ­�¯ Q0°�z]®

Xy¥sQ ¯ Q0°�z\.26=6&%5.2)�/A1o9l�q6L/d%(9?'2�^.:47%( ];�9l1�F" ?)"�!)�.2 ".0/&.º%5'ÄG��$M$/A1�#!c §�_ÝzcÄC"#A1a)"F"M$�!6K%U9l1�F" ")?�!)6A1('2F?/A.21� �G(�!M$/A1�#!c §�-²?cÈ%(6W/A>"�^Bb�$6A>36A>"#8.2 "��6W/&1UÊ!�$#A1\4t1�#=%\+ji?�$) Ü ²jQD{}>?.26=.26v/A>"�^M!'º%56A6A.:Mz%(')"�,+- ".:/A.21� @1(4-6L/d%(9?.2'2.0/<;�QÇS¹/Ä.26È1(4f/&�$ K#A�,4t�!#8#A�!)e/A1�%56 Õ %�i@1�# Õ %�i���ÞZ.2Md>]/&BK;(�!#Ä68/d%59".2':.:/<;�QÄ��':�z%(#8':;%(6}/&>?�@BD�!68>o.: ]/&�!#LG5%('26}��1^/&1^Ê$�!#A1?cs/A>"�= �F"Be9l�!#Z1(4È/&.2BD�W68/A�!C"6$c²ß�csBeF"6L/m�(1^/A1^.2 ?+- ?.:/<;N.: 1�#8)"�!#H/&1eM$1ÌG(�!#7/A>"�v�! ]/A.2#A�~+?ij�!)\)"1�Bb%(.: Rc�6A1e/&>?��M!#8.:/A�!#A.:1� q.: ¯ Q ¯ .26�%K "�$M!�!686&%(#L;pM$1� ")".0/&.21( 4t1�#7/A>".26}6L/d%(9".:'2.0/<;qM$#A.:/A�!#8.21� RQ

{}>"�~6A.2�( ".:+-M!%( "M$�}1(4J/A>".26y)?�$+- ".0/&.:1� ^1(4£6L/d%(9?.2'2.0/<;w%(#A.:6A�!6y/A>"#A1�F?��>�àÛ�"¹âá �Lã�d-ùd���&ù4ÀEc u >?.2Md>68/&%5/&�$6~/A>-%5/!c".:4|%E aF?Bb�$#A.2M!%('RBD�$/A>"1j)\.:6��,�¹��f'e2ù ­ .: \/A>"�=6A�$ "6A�w1(4 Õ %�i"®}%( ")Y�d���?�,�2�,�<ù,�-�£/&>?�! .:/�.26L�d����ä(ù,��åaù,�-�½Q�� Bb�,/&>"1a)�.26L�d���?�,�2�,�rù,�-�È.:4*.0/�C?#A1a)"F"M!�$6W "1N�!#8#A1�# ­ .: �/&>"�K{|%z;a'21�#m6A�$#A.2�$66A�$ "6A�z®�.2 D/&>"�m'2.:Bb.0/*%(6*/&>"�mBb�$6A>p68C-%(M!.: "�e%5 ")q/&>?�m/&.:Bb�Z6L/&�!Cq��1w/A1KÊ!�$#A1 ­ u .:/A> Ü ²@+ji?�$)Rc".: /&>?�~>];aCl�!#A9l1�':.2M}Mz%56A�±®�Qy{}>".26*.:6�4tF"#8/A>"�!#*)".:6AM!F?6A6A�$)p.2 b�j�$M$/A.21� ¯ Q��?Q��»BD�$/&>?1j)^.266�d����ä(ù,�+åaù,�-�.:4|.:/~M!1( �G(�!#8���!6�/A1D/A>"�K��i?%(M$/m6A1�':F?/&.:1� o%(6~/A>"�@Bb�$6A>�68C-%(M$.2 "�q%( ")o/A.2BD�=68/&�$C���1D/&1DÊ!�$#A1p.: /&>?.26}Bb%( " "�$#!Q � ��'2�!%(#A'0;�c?/A>".26}.:6Z%( \.2BDCJ1(#8/d%5 �/7C"#A1�Cl�!#L/<;�Q

��C"C?':;a.2 "�^68.2BDC"'2�v#8�!M$F"#A68.21� \/&1DXy¥sQ ¯ Q:°�zjc u �W+- ?)§�-² ¨Àµ

² §�_Ý%( ")^F"68.2 "�vG(�!M,/&1�#H%( ")^Bb%5/&#8.0iuæ?�¹ "1�#ABD6 ­ 6A�$�~�mC"Cl�! ")". iE�v®�%( ")E/&>"�$.2#�.: "�!¥�F-%5'2.:/<;@#8�!'º%�/&.21( "6!cu �w>-%zG(� Æ¦Æ §�-² Æ¦Æ ¨ Æ¦Æ µ ² §�_Ý Æ¦Æ x ÆçÆ µ ² ÆçÆ�è�Æ¦Æ §�²Ý Æ¦Æ x ÆçÆ µ Æ¦Æ ² è�Æ¦Æ §�²Ý Æ¦Æ ­�¯ Q0°�°Ì®é ������*��)�+� !c����)002*+!�0*+�������r�ê!�*��'ë"01��*�ì°!�:����Ë0*�!4ì: ��($&í"�S.���î���*���%'��*��)�+� !c($�Êë$ì1��%����.��&.u�ê!4*�02�4*��4ì°!�:����0*�!4ì: ��($�+ï2���D�4��+�2��(y!�.��&:v.���î1ï°�� !4%D�&ð'ï2�)�+� !4%�;ñ�ò %6�+��qó�ô�õö: �-����*����+ï2*+��÷"�+���ø�!4*�.úù����°ûÊü�ýçþ'ü�� �ï°���.uø����+�6�ÿø�!c�&%�����*���: ë·.���î1�&*+�&%'�3(y���)%� %��'�;��3�&*+�Ëø��*����ê��*���!S�c%"ï(S��*�� �&�):�+!4: ï��+� !4%Iù��)�2û�ü�ý¦þ����"þâ�+!y�+�����,����U���!�:�ï�+� !4%u!4�v������²õ�3;�v�)�+��*�ø��âø�� : :�*+���ê��*��+!y�+�2�%"ï(S��*�� �&�):�+!4: ï��+� !4%µù����°ûÊü�ýçþ����'þË��!·�y��+���4.�ë/ÿ�����+��+!4: ï��+� !4%v;

Page 135: Fundamentals of Computational Fluid Dynamics.pdf

Õ±Ö�ÂaÖáÒÈÙLâoÓqÃ�×?ÑJÐ@Î�Ó ×ÇÒ?ÐvØ�ÙrÚÇÙ!ÒZÜgÐvà/=�Î}Ý}à�Ä�Ó*ÔlÅZÓHàKÎ�ÓÝZß Ý}�^Ó?> × °Ì�°��j.: "M!�W/&>?�@.: ".:/A.º%('l)-%5/&%eG��!M,/&1�#Z.:6}9J1�F? ")"�!)£cs/A>"�=6A1�':F?/&.:1� pG��$M$/A1�#m.:6}9J1(F" ")"�$)o.04

Æ¦Æ µ Æ¦Æ xÞ° ­�¯ Q0°Ì��®

u >"�$#A� Æ¦Æ µ ÆçÆ #A�$C"#A�$6A�$ �/A6K%5 �; æ?�< "1(#AB¼1(4 µ Qw{}>".26W.:6v1(4f/&�$ �F"6A�$)I%(6=%o�4�� ª�,��ù,�-�|M$1� ")".0/&.21( 4t1�#}6L/d%(9".:'2.0/<;�Q

Ém1 u»u �� "�!�$)p/&1K#8�!'2%5/&�~/&>"�m68/d%59".2':.:/<;E)"�,+- ".0/&.21( "6���.0G��$ p.2 qX*¥�6$Q ¯ Q��e%( ") ¯ Q � u .:/&>D/&>-%�/��.0G��! I.2 hXy¥sQ ¯ Q:°Ì�aQoS< PXy¥�6!Q ¯ Q �o%( ") ¯ Q��?cÄ68/d%59".2':.:/<;©.:6K#A�$'º%5/A�!)3/&1�/A>"�U���-ù��,�½�8�1e��8���(�Á�]�=1(4µ cÈ.�Q��5Q:cÈ.:/A6W�!.:���! ]G5%('2F?�D154�Bb%�ij.2BeF?BnBb%(�� ".0/&F")"�5Q^S< IXy¥sQ ¯ Q:°±�jcÇ68/d%59".2':.:/<;o.26=#A�$'º%5/A�!)�/&1U%æ?�¹ "1�#AB¼1(4 µ QwS¹/W.:6vM!':�z%(#m/&>-%5/e�ÿd-ù��,���f�<ù,���½���(�&ùE�Ád-ùK�!�1Àqù��Ëd-ù,�I�Ád-ùK���-ù��,�½�A�1eÄ�8���(�Á���e�2�D��½�4�-ù����<�£���)À��{ u 1©4½%(M,/&6E%59J1�Fj/e/&>"�q#A�!'2%5/&.:1� I9l�$/ u �!�$ g68CJ�$M$/A#&%('7#A%()".:.�%( ?)`Bq%5/A#A. i3 "1�#ABD6E%(#8� u �!'2'�� "1 u Rû

°�QZ{}>"�@6ACl�!M,/&#A%('Ç#&%()".:F"6Z1(4y%^Bb%5/&#8.0iN.:6Z.:/&6uÙ � ?1�#AB u >"�$ o/A>"�wBb%5/A#A.0ip.26Z "1�#8Bq%5'�c?.�Q��5Q:c.0/}M!1�BDBeF?/A�!6 u .:/A>\.:/&67/A#&%( ?6ACl1�6A�5Q

�jQZ{}>"�=68CJ�$M$/&#A%('Ç#&%()?.2F"6}.:67/&>"�Le2����ù,� f,�2�a�²�=1(4�%('2'J "1�#8Bb6$Q¸-F"#8/A>"�!#8Bb1(#A�(c u >"�$ N¾.:6� ?1�#ABb%('�c�/A>"��68�!M$1� ")N.2 ?�!¥�F-%(':.:/<;E.: pXy¥sQ ¯ Q:°(°�9l�!M!1(Bb�$67%( p�$¥�F-%('0�.:/<;(Q�S< �/A>".26mMz%(68�(cÛXy¥sQ ¯ Q0°Ì�b9l�!M$1�Bb�$6�9l1(/&>© ?�!M!�$6A6A%(#8;�%( ")©6AFj�bM$.2�$ �/�4t1�#�6L/d%(9".:'2.0/<;�Q~¸-#A1�B/&>?�!6A�D#A�$'º%5/A.21� ?6 u �D)"#&% u / u 1�.:BbCl1�#L/d%( ]/WM$1� "M!':F"6A.:1� "6@%(9l1�F?/=/&>?�D �F"BD�!#8.2M!%('y68/&%(9".2':.:/<;o1(4BD�$/&>?1j)"6}F?6A�!)U/&1^6A1(':G��@¢*VWX}Y�6$Q

ü {}>"�^6L/d%(9".:'2.0/<;�M$#A.:/A�!#8.º%p.2 3Xy¥�6!Q ¯ Q��\%( ") ¯ Q0°Ì�N%(#A�^.2)?�! ]/&.:Mz%('|4t1(#W68/d%�/&.21( -%(#8;o68;a6L/&�!BD6u >"�$ `/&>"�p�(1ÌG(�!#8 ".2 "�©Bb%5/A#A.0i3.:6K "1(#ABb%('�Qo{}>".26w.2 "M$'2F")"�$6e68;aBDBb�,/&#8.2M(c�%(68;aBDBb�,/&#A.:M(c%( ?) M$.2#8M!F"'2%( ]/NBq%�/&#A.:M!�$6!Q¤{}>"�$6A�3M!#8.:/&�$#A.2%h%(#A��9l1(/&>þ ?�!M!�$6A6A%(#8;O%( ")»68F?�DM!.2�$ ]/U4t1(#BD�$/A>"1j)?6*/A>-%5/����! ?�!#&%�/&�~6AF"Md>pBb%5/A#A.2M$�!6*%( ?)q)"�$CJ�$ ")p6A1('2�!'0;eF"Cl1� D/&>"�~�!.:���! ]G5%('2F?�!6*1(4/A>"�=Bq%5/A#A.:M!�!6$Q

ü S¹4�/A>"�K68CJ�$M$/A#&%('È#&%()?.2F"6~1(4~�(�-�=��1±G��$#A ".: "�pBb%5/&#8.0i\.:6m�(#A�z%�/&�!#Z/&>"%( �1� "�5cl/A>"�KBD�$/A>"1a).:6qF" "6L/d%(9?'2��9];þ%5 �;gM!#8.:/A�!#A.:1� RQÀ{}>�F"6p4t1(#q���$ "�!#A%('�Bb%5/&#8.2M$�!6!c}/A>"��6ACl�!M,/&#A%('�#A%()".2F?6M$1� ")".0/&.21( N.26} "�$M!�!686&%(#L;��W9"F?/~ "1(/~68F?�DM!.2�$ ]/~4t1(#}68/d%59".2':.:/<;�Q

���r���+ï2�4:�: ël�+�2�$%�&���&�+�4*+ël��!�%2.����+� !4%?� â���2��������$�01�&���+*��):�*���.�� ï2Ë!)��� ì1�y: �&�â�+�2�4%ú!�*��&ð'ï2�):���!��� !#"%$ 5'&�÷2ìï��������3.���ÿ����%2���+� !4%D���%!)�3��*+���+�����4:��ê!4*�!4ï2*�0ï*�0°!'�������*��4;

Page 136: Fundamentals of Computational Fluid Dynamics.pdf

°±Í�z Î�ÏmÐ�ÑvÒÄÓ*ÔxÕ±ÖÃ×ÇÒ"Ð�Ø�ÙrÚÛÙ!ÒZÜÞÝ}ßPÚÛÙrà�ÓyÐvÔá×ÇÜ*×ÇÒÄÓHâ�×ãpä�( »«¼©ö çlC*òzì·GIJ½Epï�G?H©ò"Jzò$ïRõ Ò�íDê©ì~çWé�ï�ôxòzê ïyð�ç Ò�íbö éöJ$ç*)

+ Ï-,NJ'Geê�çQSR�.SR&V /1032ªaua�` W \�4���Z3s52ªZrk64Ë`�^U�yZ `�a `�XDZ87�bl^U` [ ^�\��3k�Z�»>"�,/&>"�$#�1�#* "1(/*/A>"�m68�!BD.0�¹)".268M!#A�,/&�~%(C"C?#A1]%(Md> u %56H/&%(�(�$ q/&1=+- ")D/&>"�~)".:øJ�!#8�! "M$.2 "�w%(C"C?#A1zi��.2Bb%5/A.21� p154�%E6A�,/~1(4�¢*VWX}Y[6!c-/&>"�W+- "%('Û)".:øJ�!#8�! "M$�=�!¥�F-%5/A.21� "6ZM!%( o9l�W#A�$C"#A�$6A�$ �/A�!)�9];

§�-²z³J´ ¨ µ §�-²W« §¶ ²¸-F"#8/A>"�!#8Bb1(#A�~.:4 µ >-%(6�%wM!1(BbC"':�$/A�:97�$.2���$ "68;a68/A�!BUcj/A>"��681�'2F?/A.21� D/&1@/&>"�m>"1�BD1����! ?�!1�F"6�C-%(#L/Mz%5 �%(' u %z;a6Z9J�=��i?C?#A�!686A�$)©%(6

§�-² ¨ Ü ´�� ²´ §ØR´ Á è�è�è Á Ü ÿq� ²ÿ §Ø-ÿ Á è�è�è Á Ü<; � ²; §Ø ;u >"�$#A�=/&>"�­�"ÿ»%(#8�W/&>"�W�$.2���$ �G5%(':F"�!6Z1(4 µ QyS¹4|/&>?�@68�!BD.0�¹)".268M!#A�,/&�W%5C"C"#A1�%(Md>��2��F"68�!)Rc u �wM!%( +- ")\%w#A�!'2%5/&.:1� q9l�$/ u �!�$ N/&>"�D��%5 ")q/&>?�=ý\�$.2���$ ]G(%5'2F"�$6!Qy{}>".:676A�$#8G��$6Z%(6}%wG(�!#L;pM!1( �G(�! ".:�! ]/��F".:)"�W%(67/A1 u >"�!#8� u �=Bb.:��>]/7��i?Cl�!M,/Z/&>"�­�J�¹#A1a1(/&6�/A1E'2.:��#A�$'º%5/A.:G(�v/&1e/&>?�WF" ".:/7M!.2#8M!':�v.2 N/&>?�M!1(BbC"':�,iÉ�J�¹C"'º%5 "�(Q\¸-1�#W/&>?.26@#A�z%56A1� u � u .:'2'yC"#81jM$�!�$)I/&1U/&#&%5M!�b/A>"�D'21aM!F"6@1(47/A>"� �J�¹#A1a1(/&6%(6�%D4tF" "M,/&.:1� �1(4�/A>"�KC"%(#&%(BD�$/A�!#�ý  4t1�#Z/&>?�K�!¥�F-%�/&.21( "6�BD1j)?�!'2.: "�^)".:øJF"68.21� �%( ")�Cl�!#8.21a)".2MM!1( �G(�!M,/&.21( >=ÌQ?A@CBEDGFH@JILK�MONPN�Q�R�BSKTKVU�R>BWN¸|.:��F"#A� ¯ Q:°E68>"1 u 6W/&>"�E��i"%5M$/W/&#A%(M!�E154H/A>"�µ�J�¹#A1a1(/v.04�.0/v.:6v���! ?�!#&%�/&�!)39];ö¡ ¢�X #A�!C?#A�!68�! ]/&.: "��!.0/&>"�$#^)".:øJF"6A.:1� k1�#^9".2M$1� ]G��!M,/&.:1� RQ S< g9J1(/A>gM!%(6A�$6b/A>"� ü #A�!C?#A�!68�! ]/&6b/&>"�U68/&%(#8/A.2 "��G5%('2F"�u >"�$#A� Â`¨ z�%5 ")]� ¨ °(Q\¸s1(#@/A>"�q)".0ø£F?6A.21( �BD1j)?�!'�c|ý  .26@#A�z%5'�%( ?)I "�$�]%5/&.0G��5Qo�m6w/&>?�Bb%(�� ".0/&F")"�*1(4Jý  .2 ?M!#A�!%(6A�$6!c�/A>"��/A#&%(M$��#A�$C"#A�$6A�$ �/A.2 "�m/&>"��)".2686A.2C"%5/&.:1� wBD1a)"�!'�>"�!%()"6|/A1 u %(#8)"6/&>?�@1(#A.2�(.2 p%56�ý Âp¨ g «Dh QHTv N/&>"�=1(/A>"�!#}>"%( ")Rc"4t1�#�/&>"�=9".:M!1� ]G��$M$/A.21� \BD1j)"�$'�c"ý Âp¨{�'Y�Â.26K%(' u %z;a6e.2Bb%(��.: -%(#8;(Q\��6K/A>"�pBb%(�� ".0/&F")"�D1(4 Y� .: "M!#8�z%(68�!6!cy/A>"�b/A#&%(M$�p#A�$C"#A�$6A�! ]/A.2 "�©/&>?�9".:M!1� ]G��$M$/A.21� bBb1a)"�!'"/A#&%zG��$'26�%(#A1(F" ")^/&>"�~M!.:#AM!F?BD4t�$#A�! ?M!�~1(4£/A>"�mF? ".:/HM!.:#AM$'2�(c u >".:Md>q.0/* "�$G(�!#'2�!%zG��!6$QD���^BeF"6L/w9l�^Mz%(#8�$4tF"'y.: �.2 ]/&�$#AC"#8�$/&.: "� � u >"�! �.:/=.26W#8�!C"#8�!68�! ]/&.: "�o¡:Z\[ X Q^{}>"�E4½%(M,//&>"%5/�.0/?e ��ùd�^���p/A>"�KF" ?.:/mM!.2#8M!':�@BD�z%5 "6�1� ?':;N/&>"%5/�/A>"�N�1À]�²e �f�����aù}1(4�/&>?�K#A�$C"#A�$6A�$ �/&%5/&.:1� �.:6M!1(#A#A�$M$/!c£.:/Z/A�!'2':6mF?6� "1(/A>".2 ?�q1(4�/A>"�^��d?���±ù7�!#8#A1�# ­ 6A�$�eXy¥sQR ?Q[�"°Ì®�QZ{}>"�KC">"%(6A�e�$#A#81�#m#8�!'2%5/&�$6/&1E/A>"�_�-�±�,�f�����������^/&>?�@F? ".:/ZM$.2#AM$'2�5Q` ����·+ïì�aÿ�&����!)��.���ê�&���+� 84�S���b�4�&%2+ë"��+�&($��2�4Ëì1����%µ��..�*��&����.�;cô2*+!�({%!�øÉ!�%úø��yø���: :_!4(S�����êï*������*.���+��ï2��� !4%6!)� �+���3+0°�������):v�&�4+�4;ced *&÷�����ë4!4ïµ: �bf4�4÷ �+�2�u02�4*��4(y���+�&*hgI�ê!�*Ai,��&.I8��4:�ï���!4�kj��&ð'ï2�4:_��!mln�·�4%2.�oâ�ê!4*�����/.�-î�ï2+��� !4%L�4%2.ì����!�%'8��&���+� !4%/�&�4+�&&÷�*+���01�&���+� 84�&:�ë�;

Page 137: Fundamentals of Computational Fluid Dynamics.pdf

Õ±Öqp�ÖÃàsr|â�Ó*ÔZÙ,Î|ÐvÚP×ÇÒ?ÐvØ�ÙrÚÇÙ!ÒZÜÀÎ}Ý}àeÎ�Ó*Ñ�Ò|×oÙrà ÒÄÏ�ÓáÎ}ÝZâ�Ñ*ÚÇÓutN��Ã�Ñ*ÚÛÐvà�Ó °±Íj°v]QCR>wyxz{N|F}@�ILF:@�wyN~wyNEK�MO@��GFÉm1 u '2�,/vF"6WM$1�BbC"%(#A�K/A>"�E�,i?%(M,/­�J�<#81j15/�/&#A%(M!�$6 u .:/A>©6A1�BD�K/&>"%5/=%(#8�EC"#A1a)"F"M$�!)�9];©%(M,/&F-%('/&.:Bb���<Bb%(#AMd>?.2 "�EBD�$/A>"1j)?6!Q7{Ä%(9"':� ¯ Q0°@6A>"1 u 6�/A>"�eý?�U�3#A�$'º%5/A.21� ?6Z4t1(#m%^G5%(#A.:�$/<;\1(4|Bb�,/&>"1a)"6!Q¸|.:��F"#A�$6 ¯ Q·�K%5 ") ¯ Q�ÍK.2':'2F"6L/&#A%5/&�}/&>?��#A�$6AF"'0/&67C?#A1a)"F"M!�$)N9];bG5%(#8.21�F"6HBD�$/&>?1j)"6 u >"�! p/A>"�$;q%(#8�%(C"C?'2.2�$)�/&1b/&>"�eBD1a)"�!'|TWVWXZY[6�4t1�#�)".:øJF"6A.:1� �%5 ")©CJ�$#A.:1j)".:M,�¹M!1� ]G��$M$/A.21� Rc£Xy¥a6$QR�"Q[�N%( ")©�?Q�@jQS¹/W.:6v.2BDC"'2.:�!)U/&>-%5/�/&>"�E9l�!>-%zGa.21(#v6A>"1 u �.26m/<;jC?.2Mz%5'�1(4 u >-%5/ u .:'2'È>-%(C"Cl�! �.04y/&>"�EBD�$/A>"1j)?6%(#8�7%(C"C?'2.2�$)@/A1v)".0ø£F"68.21� a� ­ 1�#È)".2686A.2C"%5/&.:1� j�L®R)"1(Bb.: -%5/&�$)w1(#ÄCl�!#8.21a)".2MHM!1� ]G(�!M$/A.21� a�<)"1�BD.2 "%5/&�$)C"#81�9"'2�$Bb6K%(6 u �!':'�%(6 u >-%5/E)"1a�!6K>-%(C"Cl�! `.: I/&>"�qBb1a)"�!'HMz%56A�!6$Q�Æo1�68/e1(4}/&>"�q.2BDCJ1�#L/d%( ]/Cl1�6A68.29".:'2.:/A.2�$67%(#8�WM!1±G��$#A�!)�9�;q/&>"�=.2':'2F"6L/&#A%5/&.:1� "6!Q

° �©«þ°Z«Pý Â�¨ z X|ijC"'2.:M!.0/~X*F?'2�!#� � � «k��ý  �©«þ° ¨ z Õ �z%(C?4t#81��Í � � « ­ ° Á �� ý  ®�� Á ´� ý Â�¨ z �_�}�� � � « ­ ° Á �U�´ � ý  ®�� � Á ´ =´ � ý  �©« 9´ � ý Âo¨ z �_�7Í@ �G��°Z«ký  ®|«þ° ¨ z S<BDC"'2.:M!.:/7XyF"'2�$#  � ­ °~« ´� ý  ®|« ­ ° Á ´� ý  ® ¨ z {È#&%5CJ�$Ê!1�.:)-%('¯ � � ­ °~« �� ý  ®|« � � � Á ´� ¨ z �5 ?)�T��7%(Md� u %5#A)� � � ­ °~« 9´ � ý  ®�« ­ ° Á��´ � ý  ®�� Á ´´ � ý Â�¨ z �WÆ�Í� � � « ­ ° Á ´ �´ � ý ÂbÁ ´ 9� � ý �  � ®�� Á ´´ � ý  ­ ° Á 9� ý  ® ¨ z �_�}Æ�Í°�z � � « ­ ° Á �(ý  ®�� � Á � � ý  �©« ´� ý Â�¨ z �@%(Ê$)-%(�°�° �©«þ°Z«Pý  « ´� ý �  � ¨ z ÞL�@�°Ì� �©«þ°Z«Pý  « ´� ý �  � « ´= ý �  � « ´� � ý>�  � ¨ z ÞL�W�°±Í � � ­ °~« ´� ý  ®|« � � ý  ��« ­ ° Á ´� ý  ® ¨ z Æo.:'2 "�W�(/A>

{Ä%(9"':� ¯ Q0°�QH�j1�BD�@ýb« �ÉÞ~�$'º%5/A.21� ?6R���v]QCxGz'��BE��K}vmDOz'N�UT��N�K�MO@C�¸|.:��F"#A� ¯ Q��N6A>"1 u 6K#8�!68F"':/A6@4t1�#W/A>"�b��ijC"'2.:M!.:/@XyF"':�!#@Bb�,/&>"1a)RQD�»>"�! �F"6A�$)I4t1�#=)".2686A.:C-%5/&.:1� j�)"1�BD.2 "%5/&�$)KMz%56A�!6y.0/�.:6Ä6L/d%(9"':��4t1�#È/&>"�7#A%( "���*�L� xþý  x/z?Q ­'� 68F-%('2'0;W/&>"��Bq%(�( ".:/AF")"�H1(4JýD>-%56/&1K9J�m�!68/A.2Bb%5/&�$)p%( ?)p1(4f/&�$ p.:/�.26*4t1�F" ?)p9];b/A#A.º%5'J%5 ")p�!#8#A1�#&®,Q|�»>?�! NF"68�!)p4t1�#�9".2M$1� ]G��!M,/&.:1� /&>?�l�J�*/&#A%(M!�v4½%(':'26�1�F?/&68.2)"�v/A>"�=F" ".0/}M!.:#AM!':��4t1�#Z%(':'J+- ?.:/&�  cs%5 ")N/&>"�WBD�$/A>"1j)\>-%56} "1^#&%( "�(�1(4Ä68/&%(9".2':.:/<;b.2 N/&>?.26}Mz%56A�(Q� ��?AN�R>xOI�U�@�����NEK�Mk@C�{}>".:6N.26\%I/ u 15�<#81j1(/pBb�,/&>"1a)Rc~6A.2 ?M!�©/&>"�$#A��%(#8��/ u 1 ��Y[6NC"#A1a)"F"M$�!) 9];þ�$G(�!#8;OýÛQ �»>?�! %(C"C?'2.2�$)h/&1©)".:6A68.2C-%5/A.21� I)"1�BD.2 -%5/A�!)hC?#A1�9"':�!BD6 u �U68�!�N4t#A1(B ¸|.:�"Q ¯ Q·��/A>-%5/e/A>"�NC"#A.: "M!.:C-%('

Page 138: Fundamentals of Computational Fluid Dynamics.pdf

°±Í]� Î�ÏmÐ�ÑvÒÄÓ*ÔxÕ±ÖÃ×ÇÒ"Ð�Ø�ÙrÚÛÙ!ÒZÜÞÝ}ßPÚÛÙrà�ÓyÐvÔá×ÇÜ*×ÇÒÄÓHâ�×

h= οο

- oo,σ = e σ = ei h

oo,

a) Diffusion b) Convection

λ

ωhωhλ hλ

Ι(σ) Ι(σ)

(σ) (σ)RR

h= 0λ h= 0ω

¸|.2��F?#A� ¯ Q0°�û*X|i?%(M$/Z/&#A%(M!�$6m154Ë�J�¹#A1a1(/&6�4t1�#}Bb1a)"�$'R�!¥�F-%5/A.21� ?6!Q#A1a1(/@.26=6L/d%(9"':�E4t1�#@%o#&%5 "���^1(4Zý  c|9"Fj/@/A>"�D6AC"F"#8.21�F?6w#81j1(/@.:6@ ?1(/zQpS< 34½%(M$/!cÈ/A>"�D6AC"F"#8.21�F?6#A1a1(/W6L/d%(#L/&6W1� �/A>"�EF" ".0/WM!.:#AM$'2�E%( ?)�4½%('2':6�1�F?/A6A.:)"�E1(4H.:/m4t1�#^�1eÁe7w ­ ý  ®l©�z?Qe÷~1 u �$G(�!#$cÇ4t1(#9".:M!1� ]G��$M$/A.21� �Mz%56A�!6$c u >"�! Iý3.:6*�²�j�&ù^�ÁÀD��å(�f�l�(����cJ/A>"�EBb�,/&>"1a)©.26� "1(/=1� "'0;�6L/d%(9?'2�(c£9"F?/=.:/%(':6A1©C"#81j)"F?M!�!6^%��þ/A>-%5/e4½%(':'26wC"#A�$M!.268�!'0;h1� h/A>"�NF" ".0/EM!.:#AM!':�q.: h/&>"�N#A%( "��� z x Y� x¡°�Q��6 u %(6^CJ1(.2 ]/&�$)k1(F?/D%(9l1ÌG(�(c*/&>".:6E)"1a�!6^ "1(/^BD�z%( £c*/A>-%5/E/A>"�\Bb�,/&>"1a)`.26 u .0/&>"1�Fj/^�!#A#81�#!Q��'0/&>"1(F"��>o/A>"�=+-��F"#8�K6A>?1 u 6m/&>-%5/~/&>?�!#A�w.26m%b#A%( "���@1(4 Y� .: u >".:Md>�/&>?�K'2�!%(C?4t#81��bBD�$/A>"1a)C"#81j)"F?M!�!6H "1=�!#8#A1�#*.: b%5BbC"':.:/AF")"�(c5.:/*6A%±;a6H "1(/A>".2 "�@%(9l1�F?/y/A>"�Z�!#8#A1�#*.2 ���d?���±ù,Q�Æo1�#8�~.:6y6&%(.:)%(9l1�F?/}/A>".26}.: ���>"%(C?/&�$#u�?QB>����N|BW@��O�C���HU��ON�U����kR�w�F�����R�F:MOI�@JU�K�M���NEK�MO@��{}>".:6E.26^%(':6A13%�/ u 15�¹#A1a1(/EBD�$/A>"1j)P9"Fj/zcHF" "'2.:�(�p/A>"�\'2�z%5C?4t#A1��©68Md>"�!BD�(cH/&>"�N68C"F"#8.21�F"6^#81j1(/68/&%(#8/A6@%5/W/&>"�D1�#8.2��.: Rc£#A%5/&>"�$#W/&>-%( 31� ©/&>?�DF? ".:/=M$.2#AM$'2�5cÈ68�!�D¸|.:�"Q ¯ Q��jQE{}>"�$#A�$4t1(#A�(cÇ/&>?�!#A�^.:6%o#A%( "���D1(4}#8�z%('H "�$�]%5/&.0G��qý  4t1(# u >".:Md>I/&>?�qBD�$/&>?1j) u .2':'y9J�b68/d%59"'2�5QN{}>"�q+-��F?#A�D6A>"1 u 6/&>"%5/}/&>"�=#A%( "���W�$ ")"6 u >"�! �ý  © «@°W� z^6A.: "M!�@%5/}/A>-%5/ZCl1�.2 ]/7/A>"�=6AC"F?#A.21(F"6Z#A1a1(/}'2�!%zG��!6Z/&>?�M!.:#AM$'2�^%( ") Æ � � Æ 9l�!M$1�Bb�$6=��#A�!%5/&�$#=/A>-%( 31� "�5Qq{}>"�D6A.0/&F-%5/A.21� ©.:6=¥aF?.:/&�^)".0ø£�$#A�$ �/ u >"�$ I/&>?�ý?�<#A1a1(/W.:6vC"F"#8�^.2Bb%(��.2 "%(#8;(Q@S< �/&>"%5/=Mz%(68�D%(6 Y� .: "M!#8�z%(68�!6@% u %z;©4t#81�BnÊ$�!#A1N/A>"�^6AC"F"#8.21�F?6#A1a1(/K#A�!Bb%(.: "6K.: "6A.:)"�q/&>?�pM!.:#AM!':�N%( ")`#8�!Bb%(.2 ?6K68/&%(9"':�q4t1�#E%�#A%( "���N154 Y� Q3÷~1 u �$G(�!#$c�/&>?�C"#8.2 "M$.2C-%('H#A1a1(/@4½%('2':6w1(F?/&68.2)"�q/A>"�pF" ?.:/eM$.2#8M!'2�D4t1�#E%(':' Y�Â�  z?cy%( ")h4t1(#w/&>?�N9".2M$1� ]G��!M,/&.:1�

Page 139: Fundamentals of Computational Fluid Dynamics.pdf

Õ±Öqp�ÖÃàsr|â�Ó*ÔZÙ,Î|ÐvÚP×ÇÒ?ÐvØ�ÙrÚÇÙ!ÒZÜÀÎ}Ý}àeÎ�Ó*Ñ�Ò|×oÙrà ÒÄÏ�ÓáÎ}ÝZâ�Ñ*ÚÇÓutN��Ã�Ñ*ÚÛÐvà�Ó °±Í(Í

σ1

σ1

λ h=-2

σ1

σ1

σ2

σ2

λ h=-1

σ1σ2

σ2 σ1

a) Euler Explicit

b) Leapfrog

c) AB2

h = 1ω

ConvectionDiffusion

¸|.:��F"#A� ¯ Q·�jûy{È#&%5M!�!6Z1(4â�J�¹#A1a1(/&674t1�#7G5%(#8.21�F?6}Bb�,/&>"1a)"6!QBD1j)"�$'R�!¥�F-%�/&.21( \/A>"�=Bb�,/&>"1a)\.26}F" ?68/d%59"'2�W4t1�#Z%(':'  Q

�A��¡hU�R¢x�N|£E@��'�OR>z#��N�K�MO@C�{}>"�7/A#&%(Cl�!Ê$1�.2)-%5'jBD�$/A>"1j)K.26�%�G(�!#L;eCl1�C"F"'2%(#|1� ?��4t1�#|#8�z%(681� "6�/A>-%5/*%(#8�7C-%(#L/&.2%('2'0;W.2':'2F"6L/&#&%�/&�!).2 3¸|.:�"Q ¯ Q�Í?QES¹/A6­�J�<#81j1(/A6v4½%('2'Ä1� 31�#W.2 "68.2)"�e/A>"�^F" ".0/=M!.2#8M!':�e4t1�#W9J15/&>©/&>"�^)".:6A68.2C-%5/A.2 "�\%5 ")/&>?�qCl�!#A.:1j)?.2MEM!1( �G(�!M,/&.2 ?��Mz%(68�N%( ")£c|.2 �4½%(M,/zc��f�m�2�^�,�¹��f'e2ùL¤z���b�1eÁe�ä��1e��sùd�N�6¤Ký  ¤z�����Ëda����dýÀ�f�t�±ù4e ¤q�2�\�f�9d-ù,�&ù,�-�+e ���,����f'e2ù,Q �(F"6L/D'2.2�5�q/&>?�U':�z%(Cj4t#A1��©BD�$/A>"1j)P.0/E>-%(6e/A>"�\Mz%(C-%59".2':.:/<;31(4C"#81j)"F?M!.2 ?�I1� "'0;`C">-%56A���$#A#81�#b4t1�#E/A>"��Cl�!#8.21a)".2MNM$1� ]G��!M,/&.: "�`Mz%(68�(c}9"Fj/b/A>"�!#8��.26b%�Bb%�¥81�#)".0ø£�$#A�! ?M!�~9J�,/ u �$�! p/&>?�Z/ u 1e68.2 "M$�Z/A>"�Z/&#&%5CJ�$Ê!1�.:)-%('-BD�$/&>?1j)DC"#A1a)"F"M$�!6H "1e%5BbC"':.:/AF")"�7�$#A#A1(#4t1�#@�(�-� Y�Âs¦ "1(/¥8F"6L/�%E':.2BD.:/&�$)p#&%5 "���W9l�$/ u �!�! �zLx Y� xÞ°�Q

Page 140: Fundamentals of Computational Fluid Dynamics.pdf

°±Í(� Î�ÏmÐ�ÑvÒÄÓ*ÔxÕ±ÖÃ×ÇÒ"Ð�Ø�ÙrÚÛÙ!ÒZÜÞÝ}ßPÚÛÙrà�ÓyÐvÔá×ÇÜ*×ÇÒÄÓHâ�×NJ��§�R>£��kR>����NEK�MO@��{}>"�*�=%(Ê!)-%5�WBb�,/&>"1a) u %56H)?�!6A.:�� "�$)D/A1WC"#A1a)"F"M$�~':1 u C?>-%(6A�Z�$#A#A1(#!Q*�j.: "M!�}.0/&6�Md>"%(#&%(M,/&�$#A.26L/&.:MCl1�':;a "1�BD.º%5'|4t1�#­� .26@%UM!F"9".:M ­ {|%(9?'2� ¯ Q:°(cÄ "1?Q�°�z�®,cÈ.:/@BeF"6L/e>-%zG��D/ u 1�6AC"F"#8.21�F?6K#A1a1(/A6w.: %()")?.:/&.:1� �/A1\/A>"�EC"#8.2 "M$.2C-%('Ä1� "�5Qe{}>"�!68�q%5#A�E6A>?1 u 3.2 �¸Ä.2�"Q ¯ Q�ÍjQKS< 39J1(/A>�/&>"�^)".:6A68.2C-%5/A.21� %( ")o9".2M$1� ]G��$M$/&.:1� �M!%(6A�$6!c£%b6AC?F"#A.:1�F"6~#A1a1(/~'2.2BD.:/A6�/&>?�w6L/d%(9".:'2.0/<;�Q7¸-1�#}/A>"�K)".:6A68.2C-%5/A.2 "�^M!%(6A�5c%p6AC?F"#A.:1�F"6v#81j1(/�'2�!%±G(�!6v/A>"�eF" ".0/WM!.:#AM$'2� u >?�! �ý  ©¤« ´� cÛ%5 ")�4t1�#m/A>"�E9".:M!1� ]G��$M$/A.2 "�NM!%(6A�5cu >"�$ Y�¨  � � Q*Ém1(/A�=/A>-%5/Z9l1(/&>\68C"F"#A.:1�F"6Z#A1a1(/A6Z%(#A�='21aMz%�/&�!)U%5/}/A>"�=1�#A.:��.2 u >"�! �ý ¨ z?QIe©ª�k����N|BW@��G����R��O�¬«k@�DkU�K�MC���HU��kN|Us­�DG�k�JNW��®PDkKVKVRy��NEK�Mk@C�GF3©u­�®~¯°R��O�±­�®P²{È#&%(M$�!6\1(4=/&>"�ö�l�<#A1a1(/A6q4t1�#q/A>"��6A�!M$1� ")j�b%5 ")þ4t1�F"#8/A>j�<1(#A)"�$#ÔÞ~F? "���,���WF?/A/&%hBb�,/&>"1a)"6\%(#8�6A>?1 u Ã.2 g¸|.2�"Q ¯ Q�ÍjQ {}>"�o+"��F"#A�$6b68>"1 u /&>-%�/q9l1(/&>kBD�$/&>?1j)"6b%(#8�o6L/d%(9"':�N4t1�#D%�#&%5 "���\1(4ý  u >"�$ 3ý  .26m#A�!%('�%( ?)� "�!��%5/&.0G��(c£9"F?/v/A>-%5/�/A>"�e#A%( "���e154*68/d%59".2':.:/<;N4t1�#6Þ*�W�p.:6���#8�z%5/A�!#!c��1�.: "�w%('2BD1�68/H%5'2'"/&>?� u %±;^/A1@�L�aQ �?c u >"�$#A�!%(6SÞL�@�@.26H'2.:Bb.0/&�$)e/&1@�r�jQyTv D/&>"�m1(/&>"�$#�>"%( ")b4t1(#9".:M!1� ]G��$M$/A.21� öÞL�@�^.:6mF? "68/&%(9"'2�=4t1�#m%('2' Y� c u >"�$#A�z%56lÞ*�W�b#A�!Bb%(.: "6Z.2 "68.2)"�=/&>"�@F" ".0/�M$.2#8M!'2�4t1�#cz�x Y� x ��³ �aQ*Tv "�vMz%5 p6A>"1 u /&>"%5/�/A>"�lÞL�W�K68/&%(9".:'2.:/<;e'2.2BD.:/*.:6�%59J1�Fj/ Æ ý Â Æ ©»�´���@4t1(#%(':'£M!1(BbC"':�,ioý  4t1(# u >".2Md>Úw ­ ýJ®Sx{z?QQSR�.SRUT µ$`>4A¶l^�k�^U`1tF�)ac\·µ/i¸4�k�kT¹»ºS¹/H.26*.2 ]/A�!#A�$68/A.2 "�=/&1@C"F"#86AF"�~/&>"�~¥�F"�!6L/&.21( q1(4£68/d%59".2':.:/<; u >?�! b/A>"�Z/&.2BD�}68/A�!Cb6A.2Ê$�(c  ca.:6*6ABb%('2'6A1b/&>-%5/�%(M$M!F"#A%(M$;o1(4*%(':'Û/&>"�eý"�¹#A1a1(/&6~.26~1(4y.:BbCl1�#8/&%( "M$�(Qm�j.:/AF-%5/A.21� "6}4t1�# u >".:Md>�/&>".:6m.:6m "15//&>?�@M!%(6A�@%(#8�=M!1� "68.2)"�$#A�$)�.2 U��>"%(C?/&�$#6�jQ�8��z'�5�'�OF<K�R � ��z'��K�¼��':'|M$1� ]G��! ]/A.21� -%5'|/&.:Bb���<Bb%(#AMd>".: "�qBD�$/A>"1a)"6vC"#81j)"F?M!�^%NC"#A.: "M!.:C-%('È#A1a1(/v/A>-%5/W.:6�G��$#8;©M$'21�68�/&1 ¡ ¢�X 4t1(#p6ABb%('2'~G5%('2F"�$6\1(4Eý  Q {}>"�!#8�$4t1�#8�(cv1( »/A>"��9-%(68.26N1(4@/&>"��C"#8.2 "M$.2C-%5'�#A1a1(/!cm/&>?�68/&%(9".:'2.:/<;b1(4|%EBb�,/&>"1a)N/&>-%5/Z.:6}#A�$¥aF?.2#A�$)U/A1^#A�!681�':G(�K%e/A#&%( "68.2�$ �/Z681�'2Fj/&.21( N1ÌG(�!#m%E#A�!'2%5/&.0G��$':;6A>?1�#8/m/&.2BD�@6AC-%( �Bq%z;U9J�K%qBD1j1(/~.:6A6AF?�(QW�aF"Md>©Mz%(68�!6W%5#A�w/<;aC".0+-�!)©9];\/&>?�e�_�}�b%( ")öÞL�@�BD�$/&>?1j)"6 u >"�$ �/&>"�,;�%5#A�w%(C"C"':.2�!)\/&1q%b9".:M!1� ]G(�!M$/A.21� �C"#A1�9?'2�!BUQ}¸|.:��6!Q ¯ Q��5Mw%( ") ¯ Q�Í�4y6A>"1 u/&>"%5/m4t1(#~9l1(/A>�BD�$/&>?1j)"6}/A>"�KC"#8.2 "M$.2C-%5'R#A1a1(/Z4½%('2':6}1�F?/A6A.2)?�@/A>"�wF? ".:/~M!.:#AM$'2�@%( ")o.26~F" "68/&%(9"':�4t1�#m%('2' Y� QZ÷~1 u �$G(�!#$cR.:4Ä/&>"�=/&#A%( "6A.:�! ]/v681�'2Fj/&.21( U154y.2 ]/&�$#A�$68/vM!%( �9l�@#A�!681�':G(�!)©.: �%D'2.2BD.:/A�!) �F"Be9l�!#*1(4l/&.:Bb�76L/&�$C"6H/A>-%5/H%(#8�}6ABb%('2'j.2 E/&>?�~68�! "68�m154J/A>"�}+-��F"#8�(c]/&>"�Z�$#A#A1(#yMz%(F"68�!)b9�;K/&>".:6.2 ?68/d%59".2':.:/<;DBq%z;N9l�W#A�$'º%5/A.:G(�!':;qF" ".:BbCl1�#8/&%( ]/zQ�S¹4È/&>?�w#81j1(/7>-%()\4½%('2':�! N.2 ?6A.2)?�v/&>"�=M!.:#AM$'2�v/&>?�BD�$/&>?1j) u 1�F"':)�>-%zG��E9l�!�$ �)"�!M$'º%(#8�!)�6L/d%(9"':�e9"F?/W%( ��!#8#A1�#�1(4y/&>"�K6&%(BD� ÀD��å(�-�f�����aù u 1�F"':)>-%zG��~9l�!�! bM!1�BDBD.:/A/A�!)Rc�¥8F"68/H.2 E/A>"�Z1�C"Cl1�6A.0/&�})".:#A�!M,/&.:1� RQ�¸-1�#�/A>".26y#8�z%(681� b/A>"�Z�_�}�=%( ")^/&>?�ÞL�w�eBD�$/A>"1j)?6~>"%±G(�w9l1(/A>U9l�!�$ �F"68�!)o.2 \6A�$#A.21(F"6Z¥aF"%( ]/&.:/&%5/&.0G��=68/AF")".:�!6Z.2 ]G�1(':Ga.2 "�^Cl�!#8.21a)".2MM!1( �G(�!M,/&.21( RQþ{}>".26D��.2 ")k1(4�.2 "6L/d%(9".:'2.0/<;h.26^#8�$4t�!#8#A�$)g/&1�%(6DBb.:'2)P.2 ?68/d%59".2':.:/<;I%( ")Ã.:6^ "1(/b%6A�$#A.:1�F"6ZC"#A1(9"'2�$B�F" ")?�!#Z/&>"�=M!.:#AM$F"Bb6L/d%( ?M!�!6Z)".:6AM$F"6A68�!)RQ

Page 141: Fundamentals of Computational Fluid Dynamics.pdf

Õ±Öqp�ÖÃàsr|â�Ó*ÔZÙ,Î|ÐvÚP×ÇÒ?ÐvØ�ÙrÚÇÙ!ÒZÜÀÎ}Ý}àeÎ�Ó*Ñ�Ò|×oÙrà ÒÄÏ�ÓáÎ}ÝZâ�Ñ*ÚÇÓutN��Ã�Ñ*ÚÛÐvà�Ó °±Í�@

σ1σ1

σ1

σ1

σ2

σ3

σ1σ1

σ1

σ1

σ2

σ3

d) Trapezoidal

e) Gazdag

f) RK2

g) RK4

λ h=- οο h = 2/3ω

λ h=-2

λ h=-2.8 h = 2 2ω

Diffusion Convection

¸|.:��F"#8� ¯ Q�Íjûy{Ä#A%(M!�$6m1(4â�J�¹#A1a1(/&6�4t1(#ZG5%(#8.21�F?67Bb�,/&>"1a)"6 ­ M$1� ]/zY[)s®,Q

Page 142: Fundamentals of Computational Fluid Dynamics.pdf

°±Í�  Î�ÏmÐ�ÑvÒÄÓ*ÔxÕ±ÖÃ×ÇÒ"Ð�Ø�ÙrÚÛÙ!ÒZÜÞÝ}ßPÚÛÙrà�ÓyÐvÔá×ÇÜ*×ÇÒÄÓHâ�×½ R¢K�R�F�K�U�@�xGMO��B¨���OF<K�R � �'z���K�¼{}>"�$#A�~.26*%WBeF"Md>bBb1�#8�}6A�$#A.21(F"6*68/d%59".2':.:/<;wC"#A1�9?'2�!B4t1�#y6ABb%(':'  /A>-%5/HMz%( D9l�~9?#A1�F"�(>�/H%59J1�Fj/9];K/A>"�7�,ij.:68/&�$ "M!�Z1(4sM$�!#L/d%(.: e/<;jCl�!6y154s6AC"F"#8.21�F?6�#A1a1(/&6$QyTv "�}1(4-/A>"�79l�!6L/*.2'2':F"68/A#&%5/A.21� ?6È154-/&>".:6��.2 ")o1(4yC"#81�9"':�!B 6L/&�!BD6m4t#81�B %bM$#A.0/&.2M!%('R6L/&F")?;o1(4Ä/&>"�wBb1�6L/m%(M!M$F"#&%5/A�(cJ�,ijC"'2.:M!.0/zc"/ u 15�<6L/&�!C£c'2.: "�z%5#7BeF"'0/&.26L/&�$CNBb�,/&>"1a) ­ 6A�$�w{Ä%(9"':� ¯ Q0°Ì®,û

�-²±³J´ ¨ «~���-² Á @��s² ¯ ´ Á � ÂA¾ �5� �² Á � �² ¯ ´6¿ ­�¯ Q0°±Í]®Tv "�NMz%5 g68>"1 u c�F"68.2 "�©/A>"�NBb�,/&>"1a)"6E��.0G��$ k.: g�j�!M,/&.21( g jQ� ?cy/A>-%5/e/A>".26EBD�$/A>"1j)P.:6K/&>".:#A)j�1�#8)"�!#�%(M!M$F"#&%5/A�K9l1(/&>o.2 U/&�!#8Bb6~1(4�¡VÀ ¢ %( ")ö¡VÀ:Áacl6A1q4t#81�B %( ©%5M!M!F?#&%(M,;oCl1�.: �/m1(4�Ga.:� u .:/~.:6%5/8/&#&%5M$/&.0G��5Qy÷m1 u �$G��$#!c-':�$/�F"67.2 ?6ACl�!M$/�.:/A6�6L/d%(9".:'2.0/<;E�$G(�! N4t1�#*G��!#L;p68Bq%(':'"G5%('2F"�$6�1(4Çý  Qy{}>".:6Mz%5 3�!%(6A.:':;U9l�^%(M!M$1�BbC?'2.268>"�!)�9�;�68/AF")?;a.2 "�\.0/&6vMd>-%5#&%(M,/&�!#8.26L/&.2MKCJ1�'0;a "1�BD.º%(' u >"�$ Iý  g z?Q¸-#A1�B X*¥sQ ¯ Q0°±Íb.0/~4t1('2'21 u 6}/&>"%5/Z4t1�#vý Â\¨ z?c� ­'à ® ¨ à � Á � à « @jQ7¸l%5M$/&1(#A.2 ?�s ­ �Ç® ¨ zu �q+- ")»Â ­ �Û® ¨ ­ ��«À°Ì® ­ � Á @(® ¨ z?QU{}>"�!#8�N%(#A�D/ u 1o�J�<#81j1(/A6!���£´,c|/A>"�qC?#A.2 ?M!.2C"%('*1� "�(c�!¥�F-%5'R/&1U°�c-%( ")×� � c-%^6AC"F?#A.21(F"6}1� "�5c-�!¥�F-%('Û/&1e��@´Ä%Ä

S< g1(#A)"�$#e/&1��$G5%(':F-%5/&�p/A>"�NM!1( "6A�$¥aF?�! "M$�!6p1(4~/&>?.26e#8�!6AF?':/zcH1� "�NBKF"68/DF" ")?�!#A6L/d%( ?)g>"1 uBD�$/&>?1j)"6 u .0/&>\6AC?F"#A.:1�F"6Z#A1a1(/&6 u 1�#8�p.2 \C"#A%(M$/A.2M!�5Qy�I�W�� "1 u /A>-%5/}/&>?�$;U%(#8�W "1(/Z6A�$':4Ä68/&%(#8/L�.2 ?�"cl%( ")�/A>"�K68CJ�$M!.º%5'ÈC?#A1aM!�!)?F"#A�$6vMd>"1�68�! �/&1b68/&%(#8/m/&>"�$B¼.: ".:/A.º%(':.2Ê$��/&>"�wM!1a�$�DM!.:�! ]/&6m1(4y/&>?�6AC?F"#A.:1�F"6Z#A1a1(/&6$c-/&>"� Ü ÿ ® 4t1�#/Ç   °w.: �Xy¥sQl ?Q�Í( ?Q�S¹4Ä/&>"�=6L/d%(#L/&.2 ?�bC"#81jM$�!686m.:6 u �!':'Û)"�!68.2�� ?�!)/&>?�!6A�bM!1a�$�DM!.:�! ]/&6K%(#A�^4t1�#8M!�!)3/&1U9J�^G��$#8;�6ABb%('2'�cÇ%( ")�.:4H/&>"�bBb�,/&>"1a)�.:6=68/d%59"'2�5cÈ/A>"�$;3���,/6ABb%(':'2�!# u .0/&>g.2 "M$#A�z%56A.2 ?� Å Q»÷m1 u �,G��$#!cZ.:4m/&>"�UBq%5�� ".:/AF")"�\1(4�1� "�U1(4v/&>?�o68C"F"#A.:1�F"6�� .:6�!¥�F-%5'Ä/&1�@jcl1� "�KM!%( �68�!�e)".:6&%(6L/&�$#�.26~.2BDBD.2 "�$ �/~9l�!M!%(F"6A� ­ @�® ´�ÝLÅ °�zWÆ!QmX�G��$ �%^G��$#8;o6ABb%('2'.2 ?.:/&.2%('"G5%('2F?�m1(4 Ü ÿ ® .26�¥aF?.2Md��':;b1±G��!# u >"�!':Bb�$)RQH�jF"Md>\BD�$/A>"1j)?67%(#8�vMz%(':'2�$)qMz%�/d%(6L/&#A1(C">".2M!%('2'0;F" "6L/d%(9?'2�@%( ")U%(#8� u 1�#L/&>"':�!6A6Z4t1�#}BD1�68/!c".:4È "15/~%('2'�c?M!1(BbC"Fj/d%5/A.21� "6$Q

�8��z'�kNPR��O�����OR>w�F�K�¼�x�NÇwyNEK�Mk@C�GFS¹4 u �w.: "6ACl�!M,/m/A>"� �J�<#81j1(/Z/A#&%(M$�!6~1(4|/A>"�wBKF"':/A.2C"':�v#A1a1(/~Bb�,/&>"1a)"6~.2 o¸|.2�(6!Q ¯ Q��b%5 ") ¯ Q�Í?c u �+- ")�/&>?�!B /A1\9J�E1(4H/ u 1U/<;aCl�!6!QDTv "�e/<;aCl�^.26v/<;aC".:+"�!)�9];�/&>"�^':�z%(C?4t#81��NBD�$/&>?1j)RQwS< ©/&>".:6Mz%56A�Z%v6AC?F"#A.:1�F"6y#A1a1(/�4½%5'2'26}���p�Ád-ù·�a�-�f���,�f�Ê�4e2ù u >"�$  g z?QÄ{}>"�Z1(/&>"�$#|/<;aCJ�}.:6��,ij�$BbC"':.:+-�$)9];�/&>"�p�5 ")j�¹1�#A)"�$#K�m)-%(BD6L�6��%(6A>?4t1(#8/&>I%( ")��@%(Ê$)-%(�oBb�,/&>"1a)"6!QUS< I/A>".26@Mz%(68�p%(':'*6AC"F"#8.21�F?6#A1a1(/A674½%('2'*���©�ÿd-ùE����� å(�f� u >"�!  g z?Q

{}>"�m4t1(#ABD�!#y/<;aCJ�~.26*#A�,4t�!#8#A�!)b/&1w%(6�%�È��Áe �£ùLÈ3ù,�Ád-�'�(QH�j.2 "M$�~%5/�':�z%(6L/H1� "�~6AC"F"#8.21�F?6�#81j1(/4t1�#�%\Æo.2': "�KBD�$/A>"1j)�%(' u %z;j6W6L/d%(#L/&6v1( �/&>"�eF? ".:/WM$.2#8M!'2�5cJ/A>"�eBD�$/&>?1j)�.:6v'2.:�(�$':;N/&1N9l�!M$1�BD�F" "6L/d%(9?'2�v4t1�#7681�BD�vM!1�BDC"':�,iNýo%(6  C"#A1aM!�$�!)"6~% u %±;q4t#A1�B�Ê!�$#A1"QHTv N/&>"�W9"%(6A.:671(4Ä%e{|%z;a'21(#6A�$#A.:�!6v��i?C"%( "6A.:1� RcR>?1 u �$G(�!#$cÇ/A>"�!68�EBb�,/&>"1a)"6�%(#A�e�(�! "�$#&%(':':;\/&>"�KBb1�6L/W%(M$M!F"#A%5/&�K.2 "681(4½%(#v%56/&>?�$;NBD.2 ".:Bb.:Ê!�w�ÿd-ùµ�d�±ù{ ª�,��ù,�-�£.: N/&>"�='2�!%()".: "�e/&�$#AB�4t1�#·¡VÀ £ Q{}>"�3'º%5/8/&�!#b/<;jCl��.26N#8�$4t�!#8#A�$) /A1g%56\%( ÊÉu�]�1ÀK�ËÈ3ù,�Ád-�'�(Q��j.2 ?M!�©4t1�#p/&>?�!6A��BD�$/A>"1j)?6%(':'|6AC?F"#A.:1�F"6WBD�$/&>?1j)"6�68/d%5#8/@%5/v/A>"�E1�#8.2��.: �4t1�# ©¨ z?c£/A>"�$;�>-%zG��D%p��F-%(#A%( ]/&�$�!)3#&%( "�(�e1(4

Page 143: Fundamentals of Computational Fluid Dynamics.pdf

Õ±ÖªÌ]ÖkàÍr|âoÓHÔZÙ,Î|ÐvÚP×ÛÒ"Ð�Ø�ÙrÚÛÙ!ÒZÜÞÎ}Ý}àeÎ�Ó*Ñ�Ò|×UÙrà�ÒÄÏmÓÞÎ}ÝZâ�Ñ*ÚÈÓut¤ý�ÎèÑ*ÚÛÐvàmÓZ°zÍ ¯68/&%(9".:'2.:/<;=4t1�#y68Bq%5'2'?�$ "1�F"�(>  Qy÷~1 u �,G��!#$cj1( ^/A>"�Z9-%(68.26y1(4s/&>?�~Bb%(�� ?.:/&F?)"��1(4l/&>?�}M!1a�$�DM!.:�! ]/.2 e/A>"�}'2�!%()".: "�v{Ä%±;a':1�#�6A�$#A.:�!6y�!#8#A1�#�/A�!#8Boc(/A>"�$;K6AF?øJ�!#$c�#A�!'2%5/&.0G��$':;w6ACl�z%(��.2 ?�"c(4t#A1(B¤%(M$M!F"#A%(M$;(Q

¸-1�#\%`��.:G(�! O%(Bb1(F" ]/\1(4KM$1�BDC"F?/d%�/&.21( -%(' u 1�#8�lcm/&>"��1�#8)"�!#\1(4K%(M!M$F"#&%5M$;þ1(4@/&>?��/ u 1/<;aCJ�$6|.:6È�(�! "�$#&%(':':;v�$¥�F".:G5%(':�! ]/zc5%( ")@68/&%(9".2':.:/<;�#A�!¥�F".:#A�$Bb�$ �/A6Ä.: e�7¸|VÃ%(C"C?'2.2M!%5/&.:1� "6R�(�! "�$#&%(':':;1±G��$#A#A.:)"�W/&>"� ­ F"6AF"%('2'0;q68Bq%(':'f®y.2 "M$#A�!%(6A�=.2 \%5M!M!F?#&%(M,;NC"#A1±Ga.2)?�!)\9];\%EM!1a�$�DM!.:�! ]/ u .:/A>U':1 u �$#Bb%(�� ".0/&F")"�5Q

ãpä�Ï »«¼©ö çlC*òzì·GIJ½Epï�G?H©ò"Jzò$ïRõ Ò�íDê©ì~çWé�ï�ôxòzê ïyð�ç Ò�íbö éöJ$ç*)Ð�Ñ ,NJ'GKê�ç

QSR�Ò$R&V µ$`>4A¶l^�k�^U`1tF�)ac\¬ÓH4�\�pqZÕÔ$R{}>"��#A�!%(6A1( /A1k6L/&F")j;þ68/&%(9".2':.:/<;P4t1�#N68Bq%(':'mG5%(':F"�!6N1(4  .:6p4½%(.2#8':;k�z%568; /A1kM$1�BDC"#A�$>"�! ")£Q¢y#A�$6AF"Bb%(9"'0; u �^%(#A�e68�!�$�a.: "�\/&1N#A�$6A1�'0G��E681�Bb�w/&#&%5 "6A.:�! ]/@%( ")Rc£6A.2 ?M!�e/&>?�^%(M!M$F"#&%(M,;©1(4*/&>?�/&#A%( "68.2�! ]/W681�'2Fj/&.21( �4t1�#v%5'2'È1(4H1�F"#vBD�$/A>"1j)?6v)"�!Cl�! ?)"6=1� �/&>"�K6ABb%('2': "�!686v1(4y/&>?�e/&.2BD�,�¹68/A�!CRcu �q6A�$�!�©/&1oBq%5�(�^/&>"�D6A.:Ê!�D1(47/&>?.26=68/A�!C`%(6@6ABb%(':'*%(6wCl1�686A.29?'2�(QpTv �/&>?�q1(/A>"�!#@>-%( ")£cÄ/&>?�M!1(68/~1(4È/&>"�WM$1�BbC?F?/d%5/A.21� N�(�! "�$#&%(':':;b)"�!Cl�! ")?6m1� \/&>?�W aF?Be9J�$#Z1(4|6L/&�$C"6~/&%(�(�$ U/A1^M!1�BDC"F?/A�%p6A1('2F?/A.21� RcR%( ")©/&1NBD.2 ".:Bb.:Ê!�W/&>?.26 u � u .26A>©/A1UBb%(�5�K/&>"�^6L/&�!C�68.2Ê!�^%56W'º%(#8���E%(6WCl1�6A68.29"':�(QS< o/A>"�@M!1�BDC"#A1(Bb.:6A�(c-6L/d%(9?.2'2.0/<;pM!%( �C"'2%z;\%DC"%(#8/!Q7��68.2)"�=4t#A1�B�#AF"':.2 "�^1�F?/mMz%�/d%(6L/&#A1(C">".2M!%('2'0;F" "6L/d%(9?'2��Bb�,/&>"1a)"6$cv>"1 u �,G��$#!c=/&>"��6A.0/&F-%�/&.21( .: u >".2Md> %('2'v154w/A>"�3/A#&%( ?6A.2�$ ]/U/A�!#8Bb6U%(#8�#A�$6A1�'0G��$)oM$1� "68/A.:/AF?/&�$6�%E#&%�/&>"�$#~BD.2 ?1�#�#81�'2�W.: U6L/d%(9?.2'2.0/<;qM$1� "68.2)"�$#&%5/A.21� "6$Q��;U4½%(#m/A>"�eBD1�68/�.2BDCJ1�#L/d%( ]/�%(6ACl�!M,/W1(4* �F"BD�!#8.2Mz%5'Ä6L/d%(9".:'2.0/<;\1jM$M!F"#86WF" ")"�$#vM!1� ?)".:/A.21� "6u >"�$ Rû

ü Tv "�b>-%(6K.: ">"�$#A�! ]/A':;368/&%(9"'2�5c|M$1�F"C"':�!)h6L;j6L/&�$Bb6 u .0/&>hý9Ìa�$.2���$ ]G(%5'2F"�$6K>-%zGa.2 "� u .2)"�$':;68�!C-%(#A%5/&�$)oBb%(�� ?.:/&F?)"�!6$Q

���

ü ����6A�$�!�g1� "':;P/A1I+- ")»%h6L/&�z%5)?;]�<68/&%5/&��6A1�':F?/&.:1� F"68.2 "�`%�C-%5/&> /A>-%5/q.2 "M$'2F")"�$6q/&>?�F" u %( ]/&�$)�/&#A%( "6A.:�! ]/zQ

S< g9l1(/A>`1(4m/A>"�!68�\Mz%(68�!6E/&>"�$#A�\�,ij.:68/^.2 h/A>"�\�!.:���! "6L;a68/&�$Bb6^#8�!'º%�/&.:G(�!'0;I'2%(#A���bG(%5'2F"�$6e1(4Æ ý Â Æ %(6A681jM$.º%5/A�!) u .0/&>U�!.:���! ]G��$M$/A1�#A6~/&>-%5/ u � u .268>U/A1q)"#8.:G(�@/A>"#A1�F?��>U/A>"�K681�'2Fj/&.21( UC?#A1aM!�!686u .:/A>"1�F?/N%( ]; #A�$�]%(#8)»4t1(#q/&>"�$.2#b.2 ")".0Ga.2)"F-%5'�%(M$M!F"#A%(M$; .2 þ�!.:���! ?6AC-%(M$�(Q {}>".26N68.:/&F"%5/&.:1� Ã.:6/&>?�eBq%�¥81�#�BD1(/&.0G5%5/&.:1� N4t1�#m/A>"�e68/AF")?;�1(4* �F"Bb�$#A.:Mz%('È68/&%(9".2':.:/<;(Q�S¹/v':�z%()?6�/&1q/A>"�e68F"9|¥8�!M,/=1(468/A.:øJ "�!686Z)".268M!F"686A�!)�.2 N/&>"�= "��ia/mMd>"%(C?/&�$#!Q

Page 144: Fundamentals of Computational Fluid Dynamics.pdf

°±Í�� Î�ÏmÐ�ÑvÒÄÓ*ÔxÕ±ÖÃ×ÇÒ"Ð�Ø�ÙrÚÛÙ!ÒZÜÞÝ}ßPÚÛÙrà�ÓyÐvÔá×ÇÜ*×ÇÒÄÓHâ�×QSR�Ò$RUT 7 bD��acb_Ö­^U`�^�ayb_4�k�µ$`>4A¶l^�k&^�`�tØ×�Ù±0�µ$`¢4A¶lk�Z8Ú Z�`�XDaÛÖlsS< ">"�$#A�$ �/=6L/d%(9?.2'2.0/<;\1(4*%q68�$/W154�T=VWX}Y[6 u %(6v)"�,+- "�!)�.: ©�j�$M$/&.:1� ¯ Q��q%( ?)Rc£4t1�#~M!1�F?C"'2�$)©6A�$/A6u .:/A>E%vM!1(BbC"':�$/A���!.:���! ?68;a68/A�!BUc].:/|%(Bb1(F" ]/&�!)e/A1�/&>?�7#A�$¥aF?.2#A�$Bb�$ ]/�/&>-%�/�/&>"��#A�z%5'?C-%(#L/&6�154l%('2'ýq�!.:���! ]G5%(':F"�!6*BeF"6L/H'2.2��1� Rc�1�#y/&1=/&>"�Z':�$4f/*1(4rc]/&>?�~.:Bq%5��.2 -%5#8;K%�ij.26y.2 ^/&>?�~M$1�BDC"'2��iDýqC"'2%( "�(Q{}>".:6}6A�!#LG��$6�%(67%( \�,ijM!�$'2'2�$ ]/Z#A�$4t�$#A�$ "M!�W4t#&%5Bb�~/&1^)".268M!F"686Z%( ")\)"�,+- "�W/&>"�W�(�! "�$#&%('R6L/d%(9?.2'2.0/<;4t�z%�/&F"#8�!6Z1(4È/&.2BD�,�¹Bq%5#AMd>".: "�eBD�$/&>?1j)"6$Q*¸-1�#}�,i?%(BDC"'2�5c u �w6L/d%(#L/ u .0/&>N/&>?�@)?�$+- ".0/&.:1� Rû

�à �F"BD�!#8.2M!%('�Bb�,/&>"1a)K.:6c�a���d���²�(�f�������l�1eÁe �~�,�¹��f'e2ùÇ.04-.:/È.:6|68/&%(9"':�H4t1�#Ä%(':'?TWVWX}Y[6/&>"%5/~%(#A�=.: ">"�!#8�! ]/&'0;N68/&%(9"':�(Q

�nBD�$/A>"1j) u .:/A>g/A>".26DC"#A1(CJ�$#8/<;k.26^6&%5.2)g/A1I9l�~Ém���,����f'e2ù,Q �¼BD�$/&>?1j)k.26 ª]Ü ���,�¹��f'e2ù^.04/&>?�D#8�!��.:1� �1(4�68/d%59".2':.:/<;oM!1� ]/d%5.2 "6v/A>"�^ "�!�]%�/&.:G(�^#A�z%5'*%�ij.26W.2 ©/A>"�^M!1�BDC"'2��i3ý  C"'2%( "�5cÄ%5 ")Ý ���,����f'e2ù~.:4*.0/vM$1� ]/d%(.: "6�/&>?�e�! ]/&.:#A�e.:Bq%5��.2 -%5#8;U%�ij.26$Q���;©%5C"C"':;a.: "�N%b4½%(.:#A'0;\6A.2BDC"':�w/&�$68/v4t1(#�~�¹68/&%(9".2':.:/<;K.2 b/A�!#8Bb6H1(4ÛCl1�6A.0/&.0G��~#A�z%5's4tF? "M$/A.21� "6H/&1@/&>"�mM!'º%56A6H1(4R/ u 15�<6L/&�!C Õ Æ�Æ3Y�6���.:G(�! p.: �j�$M$/&.:1� U ?Q @1�?c"1� ?�=+" ")"6Z/&>"�$6A�@Bb�,/&>"1a)"67/&1^9l�=�~�<6L/d%(9?'2�W.:4|%( ")\1� ?':;p.04

Þ}ßáà Á °� ­�¯ Q0°z��®

â ß « °� ­�¯ Q0°@�®â x Þ Á à « °

� ­�¯ Q0°± ]®�á6A�,/m154|�Z�<68/&%(9"':�W.2BDC"'2.:M!.:/�BD�$/&>?1j)"6}.:6}6A>"1 u o.2 \{|%59"'2� ¯ Q��jQ

Þ â à Æo�,/&>"1a) Tv#8)"�!#° z z S<BDC"':.2M!.0/7XyF"':�!# °°�ã�� z z {Ä#A%(Cl�!Ê!1(.2)-%(' �° °�ã�� z �5 ")oTä�7%(Md� u %(#A) �ÍEã5� z «@°�ã5� ��)-%(BD6}/<;aCJ� �°�ã(Í «w°�ã�� «@°�ã(Í Õ �$�!6 �°�ã�� «w°�ã�� «@°�ã�� { u 15�<6L/&�!CU/&#A%(CJ�$Ê!1�.:)-%(' �@Wã1� «w°�ã(  «��Wã1� �Z�<M$1� ]/&#&%5M$/&.0G�� �

{|%(9?'2� ¯ Q��jQH�j1�BD�WF" "M$1� ")".0/&.:1� -%(':':;D68/&%(9"'2� ­ �~�<6L/d%(9?'2�±®H.2BDC"'2.:M!.:/�BD�$/&>?1j)"6$QÉm15/&.2M$�v/&>-%�/Z "1� "�=1(4È/&>"�$6A�=BD�$/&>?1j)"6}>"%(6~%( U%(M!M$F"#&%(M,;\>".2�(>"�!#7/A>-%( \6A�$M!1� ")a�<1�#8)"�!#$QHS¹/~M!%( 9l�DC?#A1±G��$)�/&>"%5/=/&>"�^1�#8)"�!#=1(4�%( 3�~�<6L/d%(9?'2� Õ Æ�Æ �A�(�-�£���Wù&¹ �dùdù��U������cÈ%( ")£cÇ4tF?#8/&>?�!#ABD1�#8�/&>"%5/U1(4E%(':'=�5 ")a�<1�#8)"�!#$cv�~�¹68/d%59"'2�©BD�$/A>"1j)?6\/A>"��/&#&%5CJ�$Ê!1�.:)-%('vBD�$/A>"1j)»>-%56U/A>"��6ABb%('2':�!68//&#8F" "M!%5/&.:1� \�!#A#81�#!Q

Page 145: Fundamentals of Computational Fluid Dynamics.pdf

Õ±ÖªÌ]ÖkàÍr|âoÓHÔZÙ,Î|ÐvÚP×ÛÒ"Ð�Ø�ÙrÚÛÙ!ÒZÜÞÎ}Ý}àeÎ�Ó*Ñ�Ò|×UÙrà�ÒÄÏmÓÞÎ}ÝZâ�Ñ*ÚÈÓut¤ý�ÎèÑ*ÚÛÐvàmÓZ°zÍ��Þ~�,/&F"#8 ".2 ?�p/&1p/&>?�E68/d%59".2':.:/<;N/&�$68/=F"68.2 "�NCl1�68.:/&.0G��e#8�z%('È4tF" "M,/&.21( "6W1� "�eM!%( �6A>"1 u /&>-%�/=%

/ u 15�<6L/&�!C Õ Æ�Æè.:6 ª]Ü �<68/&%(9"':�W.:4|%( ")\1� "'0;p.:4Þ}ßáà Á °

� ­�¯ Q0° ¯ ®â ß « °� ­�¯ Q0°��]®zLx Þ « à ­�¯ Q0°��]®

¸-1�#�+-#868/L�<1�#8)"�!#@%(M$M!F"#A%(M$;(cÈ/A>"�E.2 "�$¥�F-%('2.0/&.:�!6 ¯ Q0° ¯ /A1 ¯ Q:°��\%(#8�E'2�$6A6=68/A#A.2 ?���! ]/W/&>"%( ¯ Q:°z�p/A1¯ Q0°± ?Q*¸-1�#}68�!M!1( ")j�<1(#A)"�$#�%(M$M!F"#A%(M$;(cs>"1 u �,G��!#$cl/A>"�=C-%(#A%(Bb�,/&�$#A6 ­�Þ|å â å�à ®�%(#A�=#8�!'º%�/&�!)\9];N/&>?�M!1( ")".:/A.21� à ¨ â « Þ Á °

�%( ")\/&>?�=/ u 1D6A�$/A6m154|.: "�!¥�F-%(':.:/A.2�!6�#A�$)"F"M!�=/&1^/&>?�@6A%(BD�W6A�$/ u >".:Md>o.:6

â x � Þ «þ° ­�¯ Q��1z]®â ß « °� ­�¯ Q��j°Ì®

÷m�$ "M!�5cj/ u 15�<6L/&�$CRc?68�!M!1( ")j�<1(#A)"�$#7%(M$M!F"#A%5/&� Õ Æ�Æ�Y�6�/&>-%5/�%(#8�m�Z�<68/&%(9"':�m%5 ") ª*Ü �<6L/d%(9"':�Z6A>-%(#8�/&>?�q6&%5Bb� ­nàhå â å�Þ ®=C-%5#&%(BD�$/A�!#@6AC-%(M$�(QU��'0/&>"1�F?��>�/A>"�q1�#8)"�!#@1(4Z%5M!M!F?#&%(M,;I1(4}%( h�~�¹68/&%(9"'2�BD�$/&>?1j)DMz%( ? "1(/7��ijM!�!�$)p/ u 1?c ª*Ü �<6L/d%(9?'2� Õ Æ�ƼBD�$/&>?1j)"6H�,ij.:68/ u >?.2Md>q>"%±G(�v%( q%(M!M$F"#&%5M$;D1(4%(#89".:/A#&%(#8.2':;D>".:��>\1�#A)?�!#!Q

S¹/N>-%(6q9J�$�! »6A>"1 u þ/&>"%5/p4t1�#q%hBb�,/&>"1a)Ã/&1I9J��S��¹68/&%(9"'2��.:/pBKF"68/p%('2681h9J���~�<6L/d%(9?'2�(Q{}>"�$#A�$4t1(#A�(cs "1E4tF"#L/&>"�$#Z)".268M!F"686A.21( o.:6} "�!M$�!6A6A%(#8;\4t1�#7/A>"�=6ACl�!M$.º%('ÛM!%(6A�=1(4ÄS��<6L/d%(9".:'2.0/<;�QS¹/D.26e "15/b)?.:�DM!F"'0/e/&1�C"#81±G��N/&>-%�/bBD�$/A>"1a)"6E>-%zGa.2 "�3%©Md>-%(#A%(M$/A�!#A.:68/A.2MNCl1�':;a "1�BD.º%5'*4t1(#

u >".:Md>�/&>"�EM$1j�,�bM$.2�$ �/v1(4*/&>"�e>?.2��>"�$68/W1(#A)"�$#�/&�$#AB¼.2 ©X».26mF" ".:/<;´ÆWMz%5 © "�$G(�!#W9l�eF" "M$1� ")". �/&.:1� -%(':':;�68/d%59"'2�5QN{}>".26w.2 "M$'2F")"�$6K%5'2'y�,ijC"':.2M$.:/@Bb�,/&>"1a)"6K%( ")IC?#A�!)?.2M$/A1�#L�¹M!1�#8#A�$M$/&1(#wBD�$/A>"1j)?6Bb%()"�vF"CN154Ç�,ijC"'2.:M!.0/76A�$¥�F"�! "M$�!6$Q}�jF"Md>\BD�$/A>"1j)?6}%(#A��#A�$4t�$#A#8�!)N/&1"ca/&>"�$#A�,4t1�#A�5c-%(6ú�d���²�(�f�½��������1eÁe �E�,�¹��f'e2ù�Bb�,/&>"1a)"6$QQSR�Ò$R�� µ$`>4A¶l^�k�^U`1tÑ[]ayby`9a1æD\�s ^&b¿`�XDZ [Yaci jlk�Z�çéè1ÔÕê k64�bDZcR�OG(�!#L;pM!1( �G(�! ".:�! ]/ u %±;b/&1eC?#A�!68�! ]/}/&>?��68/&%(9".:'2.:/<;^C?#A1�Cl�!#L/&.2�$6�1(4È%@/&.2BD�,�¹Bq%5#AMd>".: "�wBD�$/A>"1a).26E/A1IC"':1(/^/&>"�U'21aM!F"6^1(4�/&>"�UM!1�BDC"':�,igý  4t1�# u >".2Md> Æ � Æ ¨ °�c768F"Md>Ã/A>-%5/D/&>"�U#A�$6AF"'0/&.2 ?�M!1( �/A1�F"#e�(1j�$6K/&>"#81�F"��>�/&>"�pCl1�.: �/Eý Âk¨ zjQ©÷m�$#A� Æ � Æ #8�$4t�!#86e/&1�/A>"�pBb%�ij.2BeF?Bè%(9"6A1('2F?/A�G5%('2F?��1(4l%5 �;ú��c5C"#A.: "M!.:C-%('�1�#|68C"F"#8.21�F"6$c5/A>-%5/�.:6�%~#A1a1(/Ä/A1�/&>?��Md>-%(#A%(M$/A�!#8.268/A.2M�CJ1�'0;a "1�BD.º%('(4t1(#ë d *7�&�)%$ì1�r($�4.��r�&ð'ï2�):2�+!�ï2%�-�ÿëyì"ë$�Ë�+*���8"���):2%2!4*�(S�4:��bì&�)�+� !4% " .��8"���� !4%$ì"ëS����!�%2ÿ���)%'�²� %2.��&0°�&%2.���%'��!)�jSg3&�;3�����0*�!"!)�9�ê!4: :�!�ø3��ê*�!4( �+�2��� �4���r�+�°���3����q��!"��#$�����&%'��3!4�_�ï2���l�$01!4: ë"%!4(S���):v�4*+��+ï($3!4��8Ê�4*+� !4ï°��!�(qì� %2�)�+� !4%2�!4� 0*�!�.�ï2�U���!)���): :��-���*�!'!4��&;

Page 146: Fundamentals of Computational Fluid Dynamics.pdf

°z��z Î�ÏmÐ�ÑvÒÄÓ*ÔxÕ±ÖÃ×ÇÒ"Ð�Ø�ÙrÚÛÙ!ÒZÜÞÝ}ßPÚÛÙrà�ÓyÐvÔá×ÇÜ*×ÇÒÄÓHâ�×

λí

h)

λí

h)

c) Euler Implicit

1

Stable

Unstable

b) Trapezoid Implicit

λî

h)

λî

h)

Stable Unstable

λï

h)

λï

h)

1

a) Euler Explicit

Stable

Unstable

θ = 0ð θ = 1/

ñ2ò θ = 1

I

R

I

R R

I(((

( ( (

óôöõW÷¢ø�ù�ú´ûýü>þhÿ������>ô��%ô����� ����� S÷>ø����� Wø����¢ù������ù����� ! û��õWô#"Wù��%$'&�û)(*���� ����� �+��,�{ø� �� ÿ´ù�-���ô� �� ú|û/.����0�1�� ��2 ��>ù3��ô� ¢ù3 ��4���>ô��5-6 ����� S÷>ø����¢ù3��÷���ù:ø�ô�-7�����ù����8 ! �ô��9�:�������%ù�+��>ô��%ù� ��;���>ù2 ����>ù:ø�<Aô���ô���÷��8�:�=�1���öù3û?> ù�ø�ù@�{ù:øA�� Çô��6<B���>ù<ø�ù@�� Wø�ù1<5�1�C��,����D6EGFHEf�JILK=MON-�PMOQ�R ûST�U>ô�-7���V�W�=���>ô��öô#�9-6 ��X�� W÷>ø:�T�� Wø,�Y �����ù@Z!U��%ô�-<ô��T���� �ô��[U��%ô�-:ô#�\��ù����� ! 8�5�3ø�ùÛô����ö÷��W�eø��O�eù6 Hô��óô%õ>û�ú´ûýü�<8+��¢ô�-=�Ëô��] >ù:ø ô�"Sù6 %�{ø� ��^���>ù_ ��>ù`��ø: ! ��a�����ù����� ! õWô#"Wù��¨ô��Pÿ´ù6-@�eô� ��cb´ûed´ûýü>ûf�gYh'i�gYjlkOmCn*gVk2o�p4qsrJtvu�tGixwyo�i{z|g4}smóô%õ>û�ú´ûýü��~�:�� �+��3���>ù��:�����>ô��öô��2-6 ����� S÷>ø��� Wø����¢ù�ù@Z!U��%ô�-<ô�����÷��öù<ø���ù����� ! û](�����>ù��� ����� �+Ûô��>õ�+5 [+��7!�*ô���ô�����U>ô�-6���4 ��B�������W�=���¢ô��öô#�[-6 ����� S÷>ø����� Wø�ù@Z!U��%ô�-<ô��]��ù����� ! 8�:þ� û�S]�>ù_-� ����� W÷>øÛù���-6�� ���ù��3�9�0�>ô#�eù_UY Wø:��ô� ��L ��l���¢ù��%ù��G�W��0���#�|-6 ��[U��%ù@Z�$Y&!�U������>ù3û� û�S]�>ù�ø ù:õWô� ��% ��B�W�=���¢ô��öô#�sô�� EGN?�@Ev��� ���>ù_�' S÷��� 0�SøW�<V���8 %���>ù:ø ù��� Wø ù�<Jô��#ô��]-6 ��� >ô���ô� ������nû

�� �+hù�"Sù:ø6<����>ô����Tù@���� � ~ô���-6�%÷� >ù6���� 2U0�3ø:�� 1�)���>ù�ô��~�SõWô����Sø:%�{Z¢ô��C�{ù@Z!-:ù�U8���� Wø����>ùA Sø�ôöõSô��V����� ?�: �ô��mô��_÷����W�=�����%ù9�� Wø3���>ùC�~ � >ù��B�>ô�-6 ���"Wù�-���ô� ��?U>ø: ����öù��Pû_�������8 W÷>õ���� ù�"Wù<ø�����ù`Z!U��öô�-:ô����ù����8 ! ��]�:�0�Sø ù_���>ô��� >ù��0-<ôöù���-���{ùSûýõ>û�<8��� � <���� � �`<���ù@"Wù:ø����4 ����>ù:ø:�a 8 [�8 ����'ù3û\õ>û#<��%ù7��U8�{ø: Wõ�<� ���6 0�3õ�<��a�_.8<��a�müX�@<Y��ù<ùHóôöõ��<û�ú|ûed��1�� °ú´û�b¢û��a ��eô�-:ù�ô���U0�SøW�eô�-:÷����Søa���0�1�����>ùA���>ôöø: !���1�� �� W÷>øW���!�* Wø� ¢ù:ø]�Û÷��>õWù`�P�m÷8�:�=�9��ù����8 ! ���<�óô%õ>û>ú|û/b8<¢ô���-��ö÷� >ù��9U' WøW�eô� ��2 ��|���¢ùmô��~�SõWô����Sø:[�OZ´ô�� W÷8�]�� 2� ������� ���� c� �X� �O� <�ø�ù���U�ù6-���ô�"Sù6��Sûf�gYh'i�gYjlkOmCn*gVkLjlhsu�gYhl}stGi{t�gYhl�0rvrG� m�i���¡sr�o¢tvwyqBrvtvu�t�iAwyo�i{z|g4}smóô%õ>ûkú´ûýü�-C���8 {+������>ùx�W�=���>ô��öô#�¢-6 ��X�� W÷>ø��� Wø����>ùTô��~U8�öô�-<ô��3��÷��öù<ø���ù����� � �ûx(*��ô�����U>ô�-6���) ���~����2�:�����>ô��öô��~-6 ��X�� W÷>ø:���� Sø�÷���-6 ��� >ô���ô� ��������#x�:�=�1���öùmô��~U��%ô�-<ô��T�Tù@���� � ��<û5�a ��eô�-:ù����0�1�]���¢ù��ù����8 ! °ô����W�=���8�öù9�� Wø����>ùHù6���eô%ø�ù}ø��1�>õWùx ��5-6 ��[U��öù`Z£$Y&?���0�1���v����� MOQ�¤�¥@Ev��� ���>ùx�Y W÷��� 0�3ø:Wû

Page 147: Fundamentals of Computational Fluid Dynamics.pdf

¦�§©¨�§«ª2¬B­c®T¯�°@±B²�³ ´4µ�²3¶�°P³4°6µ�·¸±]¹]ª9±\®,º3µB´�°Pª»µs¼�®¸±]¹�­�º,³l®\½ $Y¾ º,³4²�ª�® � ü �

óGôöõW÷>ø ù�ú´û/d´þØÿ������>ô��%ô��2�� ����� W÷¢ø����� Wø]�� ���ùmù@Z!U��%ô�-<ô��]��ù����� ! 8�:û

StableRegions

RK1

RK2

RK3

RK4

1.0

2.0

3.0

-1.0-2.0-3.0

R( h)

I( h)

λ

λ

óôöõS÷>ø�ù^ú´û�b¢þØÿ������>ô��öô����� ����� W÷>ø����� Wø��Û÷��>õWù`�P�m÷8�:�=�C�Tù@���� � ��<û

Page 148: Fundamentals of Computational Fluid Dynamics.pdf

� ü � ±\¼�²3º�µs®,¯¿¦�§À´|µ�²3¶�°P³4°6µ�·¸¹]Á ³4°Pª3®)²�¯Â´|·,´|µs®T­¢´

1.0

2.0

Unstable

a) 2nd Order Backward Implicit

Stable Outside

Unstable

b) Adams Type

Stable Outside

I( h)

R( h)

I( h)

R( h)

λ

λ

λ

λ1.0

1.0

1.02.0 2.0

2.0

3.0 4.0

óôöõW÷¢ø�ù�ú´ûbú´þhÿ������>ô��%ô����� ����� S÷>ø����� Wø����¢ù � ÷��8-6 ��� ¢ô��eô� ��0������[�:�������%ùmô��[U��öô�-:ô��5��ù����8 ! ��<ûS]�>ô��9�Tù6�����9���0�1�9���>ùL�Tù@���� � �ô��9��÷��Tù<ø�ô�-7������£�:�������öù �@Ã��@NÅÄBÆ0�@N«¤�Æ0��Ç5È�ÉxÊ ¥2¤GÆ8Ë�¤�EG¤�E�¥D@�@EGN�Ì�Q�¥����c¤M%EGN0¤�ÍÌ�R�Ë�¤�~Ë�R��xEGN8Æ0�@R��@N0¤vFHI�Q�N8¥@¤ÍË�D6F�� û}ÿ! ���ùC ����>ù:ømô��~U��%ô�-<ô��*÷���-6 ��� >ô���ô� ��������#�:�������%ù[��ù����� � ���+Ûô����?���¢ù[������ù[U¢ø� �U�ù:øW�£�Sø�ùx���8 {+�� ô�� óôöõ¢ûCú´ûbú´û[(�;�����\ ��T���>ù���ù�-6����ù�����¢ù^ô����3õWô��0�3ø:~�OZ´ô���ô��]U0�Sø:�a ��l���¢ù ¥@¤ÍË�D6F�� ø�ù:õSô� ���û�� ��B�����W÷���-� ��� >ô#�eô� ��0�����#3�W�=���8�öùT�Tù@���� � ��l�Sø�ùT�:�������%ùØô����: ���ùhø ù:õWô� ����4+��>ù:ø ù5���>ù�Î�Ï��]ÐÑ����¢ù�?�Sø ù}ô����eù<õWø��O�eô��¢õL�Sø�ù}ô����>ù<ø�ù6������~÷8���:�������öù3û9S]�>ùx-6������� ô�-}ù`Z��1�~U��%ù9 ����L�Tù@���� � ¢���0�O�ô����:�=�1���öù MON0FHI +��>ù6�Ò���¢ùÇõWù6�>ù<ø��1��ô��>õ«Î�Ï��]ÐÑ�%�Sø�ù¢���>ù6�[��ù���"Wù���ô����¢ù:ø�ù�������À�:�������öùËô��2���¢ù�eø���U�ù6�6 Sô� 0������ù����� ! Ó<#ônûýùSû#<����>ùc��U�ù6-<ôÔ���a-7��� ù¢ ������>ù¢�����ù����� ! «�� Wøx+��>ô�-=�Õ�«Ö ×Ø ûÙS]�>ù�:�����>ô��öô��A�' S÷��� 0�SøWC�� Wø)���>ô��5-6����ùLô��,�:�� �+��Íô��Tóôöõ¢û|ú´û\ü���û\S]�>ùa�' S÷��� 0�SøWHô��)���¢ù]ô��~�SõWô��0�SøW�OZ´ô������� ����>ù~�|÷8�Tù<ø�ô�-6���,�Tù@���� � yô����W�=���8�öùx�� Wø9$Y&;��|ô��¢õc ��y Wø��� c���>ù��%ù��G�� ������¢ô����OZ´ô��:ûS�+5 ~ ����>ù:ø���ù����� ! 8�����0�1���0�7"Sù����>ô��]U>ø: �U�ù:ø:�L�Sø�ù����¢ù_�+5 1�*�:�eù�Uc��ø���U�ù6�� Wô� 0�1���Tù@���� �

Ú0Û�Ü × Ö Ú0Û1Ý ×�Þ &,ß Ú0àÛ�Ü × Þ Ú0àÛ1Ý ×Pá���� c�C�Tù@���� � % >÷>ù��� [âCù:ù��Ú0Û�Ü × Ö Ú0Û1Ý ×�Þ �. & ß Ú àÛ7Ü × Þ Ú àÛ Þ Ú àÛOÝ ×Pá�� 1�eô�-<ù����0�O���Y ����� 1�s���>ù6� ù���ù����� ! 8���Sø�ù_ ��l���>ù�ãPô����>ù���U�ùSû

f�gYh'i�gYjlkOmCn*gVkLu�gYhl}stGi{t�g'h|�0rvr��äm�i���¡srvo�tJw�qBrvtJu�tGiAwyo�i{zlg�}småS÷��W�C�-ù�-7�S÷8��ù%�¢��ù����8 ! �ô���ô��~U��%ô�-<ô��_ � |ù6�9�8 ��9��ù7���;���0�1��ô���ô���÷��8-6 ��� ¢ô��eô� ��0��������W�=���8�öùSûS�+5 ¨ô����%÷��:��ø��1��ô� ����� ��)���>ô����Sø�ù9�:�� �+��°ô��Çóô%õ>û ú´û/æ´û�Î��¢ù9 ��)���¢ù6��ù}ô��3���¢ù9�3 0�1�~�P�Wãc W÷8���� ��.Sø: !� Wø: >ù:ø3�Tù@���� � Å�v�� >ûAæ8<�Ss�����%ù�ú´û � ��ûA���� ����>ù:ømô��3���>ù}ü1���!�* Wø� >ù<ø�ãPô����>ù9��ù����� ! ÇõSô�"Wù����2���¢ù�UY Wô��X�� �U-ù<ø��1�� Wø

Ú0Û�Ü × Ö Ú0Û1Ý ×�Þ �. & ß Ú àÛ7Ü × Þ ü Ú àÛ Þ Ú àÛOÝ ×á���� ����� �+��°ô��¢Ss�����%ù}ú´û � ������ >û � .¢û3(*�mô��3�W�=�����%ù MON0FHI �� Wø�$�Öç� �vè +��>ù6�?é%ê è ê � .¢û(*�����W�=���>ô��öô#�~�Y W÷��8 0�Sø:sô���"Sù:ø:2��ô���ô����Sø,�� C���0�O���� Wø����¢ù��öù7�1U8�{ø� WõC��ù����� � £�v��ù<ù�óGôöõ>û¢ú´û/d1�V��û

Page 149: Fundamentals of Computational Fluid Dynamics.pdf

¦�§�¦�§ÀÁT¹x¬s¯�°P®,¯¸´|µ8²�¶�°P³4°6µ�·Å²�ªa²�³l·)´!°W´ � ü�.

Stable

I( h)

-1.0-2.0-3.0

1.0

2.0

3.0

λ

a) AM3

I( h)

1.0

2.0

3.0

λ

R( h)λ R( h)λ

Stableonly onImag Axis

b) Milne 4th Order

óôöõS÷>ø�ù^ú´û�æ¢þØÿ������>ô��öô����� ����� W÷>ø����� Wø����>ù � -� ��� >ô#�eô� ��0������[�:�������öùmô��~U8�öô�-<ô��5�Tù@���� � ��<ûë2ì@ë íLî[ï�ðTñ�ò�ðôó2õ\öA÷�ñ7ø7ñ�õÓù úüû¢öAø�ù�ý\ñ7ý�5��v�Søs���>ù��[ ��:�BU' �U>÷��Ô�3øs�� Wø:�þ 1�V�:�=�1�>ô��%ô������0�1�����ô��s�� Wøs�|÷8�Tù<ø�ô�-6���8�:-=�>ù6��ù6��ô��s���>ù�ó0 W÷>ø ôöù:ø Wø|"� ��9�*ù:÷8�����8�9��U�U¢ø� ���-=� û\S]�>ô��s���0�1�����ô��Gô��O÷8��÷0������_-6�Sø�ø ôöù6 � W÷8�s ��AUY Wô��X�s �U�ù:ø��1�� Wø:�B�1�� ô��� � |ù6���� ��� >ù6U�ù6�� ä ��;����ô����eù:ø:�Tù� >ôÔ�O�eùx�:���SõWù� 1�aÎ�Ï���ÐÑ�:û?ÿ ¤vR@EÍK@¤vFHIc¥��0��Ë��OEGN�Ì ô��A��U�U��%ôöù6� ����#y�� � >ô�� ù<ø�ù���-:ù���U�U¢ø� 7Z´ô��~�1�eô� ����9 ����,Ï���ÐÑ�C���0�O�~U¢ø� � >÷�-:ùcÎ��x�]Ð�� ÄBÆ�EÍK=ÆÅË�R��%FHEGNÓ��Ë�R�Æ8Ë�Ã��[NÓML¥��8Ë�K=�LMOR[¤JE���[ÃOË�R`IOEGN�Ì£K=M�� �ÕK@EÍ�@N0¤G¥���Ë�NY��Æ8Ë�Ã��m�0�@R`EÍM6��EÍK�D@MOQ!NY��Ë�R`I£K=MONY��EG¤vEÍMON8¥ û��(�;U>ø���-���ô�-6���,��U�U��%ô�-6�1�eô� ��°ô��^ô��� ��G�eù��y÷�� ù6 ä�1�9�PõS÷>ô� >ùx�� Wø�ù6�W�eô����1��ô��>õL���>ù~+5 Wø:���>ô��¢ù6���� ���x�Tù@���� � ��� Sø��[ Wø�ùmõSù6�>ù<ø����lU>ø� ����öù��~�<û�(*�a��ù<ø:"Wù��������x�v�3ôöø��#Íø ù6�öô������%ù NÓ�=K=�=¥=¥6Ë�R@I �W�=���¢ô��öô#�-6 ��� >ô���ô� ��Ó<8�>÷8�Lô#�Ûô��]��L�� [�Tù6������� ¥@Q��ÒK@EÍ�@N0¤ ��>ùSû��������� ���������! #"%$�&('*)+$,�.-0/�'*�Î��>ùc���21Sù��� 0�O�=�£�{ø: �� �43P�!U¢ô�-7�1�65£U' Wô����Tô��«���>ù87� {+¿�>ù6�� À���� ÷���ù������>ô����1�~-� ����:����������¢ø� W÷>õ��� W÷8�~�eô���ùc���� Ò��U���-:ù��1-6-6 Sø� >ô��>õy�� ����>ù��1����÷8�~U8��ô� ��8�ÍõWô�"Sù6�Ò�1�' �"Wù3û¸S]�>ù6�Õ ��¢ùô��[UY ���ù��9�¢��U��1�eô����5���Sø��[ ��>ô�-����x�1��ô��>ô#�eô����\"1���ö÷>ù� ��;���>ù��Tù���� ����  �1�91X�9���>ù;:|÷¢ù6�:��ô� �� þ>�ô����kô��������[U��öô#�e÷� ¢ù�õWø: �+ Wø3 >ù�-7�7~ô��c��ô���ù=<äS]�>ùC�����W+1ù<ømô��a >ù���ù:ø:�Tô��>ù6 ¢��c�0�� >ô��>õ����¢ù-6 ��� >ô���ô� ��8��÷��� >ù<ø�+��¢ô�-=�

Ú � >.?9@:�)ÖBADCDEGFHAJILK�M �nú´û ��� �ô��9�¢�� ��%÷8�eô� ��y�� ¢���>ù ��E N��@R��@NÓK=� ùJ:�÷0�1��ô� ��Ó<,+��¢ù:ø�ù8O»ô���ø ù7�������� PO*�Q>Å�öô%ù6��ô��;���¢ù�ø����>õSùéCêROS�T>�êVU�ûhÿ´ô���-<ù�<8�� Sø����>ù�õWù6�¢ù:ø��1���eù:ø:�c<

ÚXW Û7ÜZY\[] Ü_^ ÖBA C W E ÜZYa` E [ FHA ILK W M Ü_^b` M [ ÖRA C Ya` E FHA ILK ^c` M F ÚXW ÛD[]d�e.fHg�h\iHj�kmlXnopg�qsrDtujvl,tufHw�h\i�tuxmtuxyh\g0z%g{f�x\tu|=j�kyt}h~n�x~n�fTt}f�t�h�tun���r�n��u�Hj+�Hk�g����}j���g�f�n�fTt}f=��fHt�h�j�x\��n�zvj|=g{��n�t}fZ�

Page 150: Fundamentals of Computational Fluid Dynamics.pdf

� üWü ±\¼�²3º�µs®,¯¿¦�§À´|µ�²3¶�°P³4°6µ�·¸¹]Á ³4°Pª3®)²�¯Â´|·,´|µs®T­¢´���¢ù�:�÷0�����eô#� Ú,W Û=[] ô��5-� ��[�~ ��x�� �ù�"Sù:ø:[�eù<ø�� ���8 2-7���~�-ùa�v��-��� Wø�ù� � W÷!�Vû\(�����>ùLø�ù6�~�Sô��>ô��>õù@Z!U>ø ù6�:��ô� ����6<0+hù��0�8 ����>ù��eù:ø:��A C ` E +��>ô�-=�%+1ù�ø ù6U>ø ù6��ù���������\<����|÷8�:þ�8�4ADC ` ES]�>ù���<V��ô��8-:ùpA CDE Ö ß A C ` E á Û ÖR� Û <>ô#�Ûô��]-6�%ù7�Sø����0�1�

óV Sø]�|÷8�Tù<ø�ô�-6�����W�=���>ô��öô#�(� ���Xê � �nú´û � .������ Å���>ù�U>ø� ����öù�� ô��C�� ;�: ���"Sù��� Wøx���¢ù��\ÐÑ��U>ø: ! ¢÷�-:ù� �� ���� õWô#"Wù6�Å�Tù@���� � �1�� �<����~��>ù�-:ù6�:���SøW£-6 ��� ¢ô��eô� ��¢�� Wø��W�=���>ô��öô#��<��~�21Sùx� ÷>ø�ùC�����1�7<kô������>ùC+� Wø:�:��UY ���� ô����%ùC-6 ��9�¢ô��0�1��ô� �� ��sU0�Sø����Tù@�eù<ø��6<0-� ��� >ô#�eô� ��¨ú´û � .}ô��]���O�eô��W��ù6 _��û��������� ��)����������y� ��¡v�. S]�>ùxU>ø: !-<ù6 >÷>ø ùx-7���£�-ù��:����ù}ù@Z!U��Ô�3ô��>ù� £��Çù`Z8���~U8�öù6�<ûx�� ���� ô� >ù<ø����_�2��ø��W��ù`Z8���~U8�öù9���¢ù�0�>ô#�eù5 >ô¢�-ù:ø ù6��-<ù]��U�U>ø: 7Z¢ô����O�eô� ��_�� 3���¢ù��~ � >ù��� ¢ô¢�-÷���ô� ���ù{:|÷��1�eô� ��T1X�� �+��x���\�Ûô�-=���Sø� ��: ���ÐÑ���ù����8 ! ; 1�� {"Sù:ø:�Ô��U�U¢ô��>õ¢�W�eù�U��:û£S]�>ô���+����A�Tù��X��ô� ��¢ù6 »ô��»ÿ´ù6-@�eô� ���ü>û � ���� »õWô#"Wù�� ���C�!:Jûü>û � þ

Ú W Û�Ü × [] Ö Ú W ÛOÝ × [] Þ¤£ � �T@�T> Ø ß Ú W Û=[] Ü ×c¥ � Ú W Û=[] Þ Ú W ÛD[] Ý × á �nú´û � üX�ÿ´÷��8�:�eô#�e÷8��ô� ��% ��B�!:Jû�ú´û ��� ô����� [�!:�û-ú´û � ü}õWô#"Wù������>ù�ø�ù��Ô�1��ô� ����Ö�� Ý × ÞP£ � �T@�T> Ø ß A ILK ` M ¥ � Þ A Ý ILK ` M á Wø � Ø Þ§¦ ü £ �T@�Q> Ø � � ¥ -� ���O*�T>'�%¨© ª%« ¬� �

� ¥ � Ö é �nú´û � d��

S]��÷����y:JûGú´û ��� ô��_�%�� ��%÷8�eô� ��� ����y:JûOú´û � ü ô��~� ô��_� ø� � ��� ����y:JûOú´û � d´ûxS]�>ùx�+5 Pø: ! ����� ��ú´û � dC�Sø�ù � ×�­ Ø Ö ¥�® � � ® Ø Þ ��{ø� �� +��>ô�-=� ô#��ô��C-6�öù6�SøA���0�1�C ��¢ù�� ���Cô��x����+��7���¯ � û£>yù2���� �<,���>ù<ø�ù��� Sø�ù�<)���0�1�x��;���¢ùó0 W÷>ø ôöù:ø]�W�=���¢ô��öô#�~��ù6�W�7<V�Ûô�-=�0�Sø: ��� ���Ð��a��ù����8 ! % ��s �"Wù:ø:�Ô��U8U>ô��>õx�W�eù6U8�*ô��L÷8���:�������öù��� Wø��1��� £ <O����8 8�T@�û°v±²q³�2g��Hf�|Hj�|=fHj9x\x~t´xmk�j�µJ�Htuk\j9|Tt}f¶n�·S¸�¹Lº²»yh\tu��j�|=g{�¼n�tuf¾½#h\iHj�z%g{f�|=t}h\tug�f�t´xmg�qLh\j�f¿�Hk�j�x\jvfJh\j9|Qn�x�À ÁSÀGÂÃGĶÅ�Æ¢Ç~ÈaÉ �

Page 151: Fundamentals of Computational Fluid Dynamics.pdf

¦�§´Ê�§ ±]¹]ª3´!°W´|µs®,ª9±�· � ü�d�3�L�1�� ����¢ù:øsù`Z8���~U8�öù�-6 ���� ô� >ù<ø����¢ùc�0�>ô#�eù`� >ô�� ù<ø�ù6�8-:ù¢�1U�U>ø� 7Z´ô��~�1��ô� �� �� Wøx���>ù¢�[ � >ù6��>ô�-6 ���"Wù�-���ô� ��¨ùJ:�÷0�1��ô� ��

Ú W Û�Ü × [] Ö Ú W ÛD[] ¥§Ë �T@� �T> ß Ú W ÛD[] Ü ×³¥ Ú W ÛD[] Ý × á �nú´û � b��(�%���>ô��]-7��� ù �cÖ � ¥ Ë �T@�T> F � F�� ô���O*�T>�{ø� �� +��>ô�-=� ô��^ô��_-6�%ù7�Sø_�����1�Ì� ���³¯ � �� Wø������)�� ����:ù<ø� Ë ���8 ÍO�û2S]��÷��A+hù��0�7"Sù2���� 1���>ù<ø�0�>ô#�eù`� >ô�� ù<ø�ù6�8-:ù_��U�U¢ø� 7Z´ô��~�1�eô� ��2���0�O�7<���2���>ù^óV S÷>ø�ô%ù:ø��W�=���>ô��öô#�~��ù6�:�6<�ô���÷��8�:�=�1���öù��� Wø��1�X-=�� Wô�-:ù_ ��l���>ù��{ø ù:ù_U0�Sø����Tù@�eù<ø��:û�������ÏÎ ÐÑ�³¡v�bÒ#"v)~ÓÔÒ#)�ÕÍ"%'*$./�¡%�yÓ�ÒVÖ �bÒ_'S"v$,�. S]�>ùL÷��� >ù<ø��#´ô��>õ������ ÷��[U8�eô� ��Hô��[��ó0 W÷¢ø�ôöù<ø\�:�����>ô��öô��A���0�1�����ô��Øô��\���0�O�)���>ù�× �~�1�eø ô#Z'<� >ù���ù:øP���ô��>ù� �+��>ù������¢ù� >ô�� ù<ø�ù���-:ô��>õ��:-=�>ù6��ù�ô��aU¢÷8�]ô��c���>ù��� Sø��¿ ��\�y:Jû ú´û � <Jô���-:ô%ø�-:÷8�Ô�����Vû�ÿ´÷�-=���ù:ô��¢õ~���¢ùA-7�1��ù�<Y���>ùØA ILK�M ô��¢�!:Jû�ú´û ��� ø�ù6U¢ø�ù6� ù6�����_�1� �@E#Ì��@N0Ã��=K@¤MOR ��\���¢ùA�:��W�eù6��<��1�� ����¢ù�+5 }ù@Z8���[U��öù��.Ù ÷��W�]U>ø�ù���ù��X��ù6 � W÷8���öô��¢ù3�A� ô��[U��öùaU>ø: !-<ù6 >÷>ø ù3�� WøT�0�� >ô��>õA���¢ù �@E#Ì��@N0ÃOË�FHQ0�=¥ �����¢ù�-<ôöø�-<÷��Ô�1�X���~�1��ø�ô�-<ù6���� Wø:�Tù� c�����U8U��öô�-7�1��ô� ��L ��s���>ù��+5 ���ù����� ! 8���� [���>ù��~ � >ù6�ÓU>ø� �����öù��~�<ûAS]�>ùx-=�� Sô�-:ùC 1�~�ä�� Wø����>ùC�:�����>ô��öô���U0�3ø�����ù���ù:ømô��¢���>ùHó0 W÷>ø ôöù:ø����0���#!� ô���<Ó���>ù<ø�ù@�� Wø�ù1<ô����� ��a������-�-:ô� ¢ù6���Vû)(*�Ûô��#ù@Z8��-@��������>ù������Tù��?+hù_�0�7"Wù_��ù:ù6� ÷�� ô��>õHô��%�����' ��l W÷>ø�U>ø ù�"|ô� S÷�� >ô���-:÷8����ô� �����<0�>÷8���Sø�ø ô�"Sù6 c�1�]�{ø� ��»�[ ¢ô¢�-ù:ø�ù�����U-ù<ø���U�ù6-@�eô#"WùSû(*��+1ùÍù`Z8���Tô��>ù~���>ù�U¢ø�ù6-<ù6 >ô��>õÇù@Z8���[U��%ù6���{ø: �� ���>ù~"´ô%ù�+�UY Wô����A ��]-:ô%ø�-<÷��Ô�����A���1��ø�ô�-:ù6����� ¢���>ùA� ù6��ô#�* >ô��:-:ø�ù@�eùA��U�U>ø: ���-=��<Ó���>ù�ø ù6��÷8�����3U>ø�ù���ù6����ø��1���>ù<ø3 ���"|ô� S÷���-6 ���-6�%÷���ô� ����:û3S]�>ù��U���-:ù� >ô�� ù<ø�ù���-:ô��>õ�ô��2�Lô�-=�0�Sø� 8�� ���ÐÑ�]��ù����8 ! 2U¢ø� � >÷�-:ù������>ù��~�1��ø�ô#Z;Ú�F�Û�Ü�� � ? ¥ � ? � �)+��>ù:ø ùÚLô��)��UY ���ô#�eô�"Sù���-6���Ô�3ø\-6 |ù{Ý[-:ô%ù6���VûuóJø: ��þ�3U�U�ù6�� ¢ô#Zx�;+hù]�0�� C���0�O�\���>ùÛù<ôöõWù��X"1���%÷>ù6�B ��V���>ô���~�1�eø ô#Z~�Sø ù_ø�ù6���Ó�>ù<õ��1��ô�"Wù���÷��9��ù:ø��<û5���öù7�3ø����<����>ù3��ô���ù@��~�Sø:-=�>ô��>õ^ô��5�-ù<ô��>õA-7�Sø ø�ôöù� L W÷8���X���¢ùT�%ù7��U!�{ø� Wõ]��ù����� ! ����8 �<��{ø� ��·óôöõ>ûVú´û/d!<����>ô��4�Tù@���� � �ô��C÷����W�=���8�öù\�� Wø Ë�FGF ù:ô%õWù6��"1���ö÷¢ù6��+Ûô�����>ù<õ��1�eô#"Wù^ø�ù6���4U0�SøW���:û�Î������>ù� 1���>ù<ø��0�1�� �<0���>ù_�:U0��-:ù����O�eø�ô©Z�ô��c�!:Jû-ú´û � b�ô���Û�Ü�� ¥ � ?=é_? � �@<���� %�1-6-6 Sø� >ô��>õ9�� 9��U�U�ù6�� >ô©Z%�3<!���>ô����~�1�eø ô#Z~�0����U¢÷>ø�ùmô����SõSô��0�SøWHù:ô%õWù6��"1���ö÷¢ù6�:û,�a �+1ù@"Wù:ø�<ô��9���>ô��B-7��� ù����>ù�ù@Z!U��%ô�-<ô��)��÷��%ù:ø)��ù����� ! }ô��\��ù:ô��¢õm÷���ù� [�� Wø\���>ù��eô��Tù`��~�Sø�-=�A���� �<���-�-6 Wø: >ô��¢õ�� �óô%õ>û�ú|û\ü�<����>ô��]��ù����� � ¨ô�������+��7��L÷8���:�������öù��� Wø]� ÷�-=��-� ��� >ô#�eô� ����:ûë2ì�Þ ß^î[û�ý\ñ7ýsõBò�ûáà]ù�� ���� ô� >ù<ø]���>ù_�[ ! >ù���ùJ:�÷0�O�eô� ��%�� Sø] >ô¢�-÷���ô� ������0���#���ô��â Úâ @ Ö £ â Ø Úâ > Ø �nú´û � ú��

Page 152: Fundamentals of Computational Fluid Dynamics.pdf

� ü�b ±\¼�²3º�µs®,¯¿¦�§À´|µ�²3¶�°P³4°6µ�·¸¹]Á ³4°Pª3®)²�¯Â´|·,´|µs®T­¢´ã������Wù6�Sø�����ù��� Sø�ùA-� ��[U>÷8�eù<ø����-ù�-7����ù9�7"1�Sô��������%ù[� ���8� é8<Jô��c�v�1-��`�`<ÓâCù@+Ûô��_óhûÓ�Ûô�-=�0�3ø� ��: ��U>ø: �U' ���ù6 ¢���Tù@���� � c�� Sø*ô��X��ù:õWø��1�eô��>õ�ùJ:�÷0�1��ô� ����a ��)���>ô�����U-ù3ûa> ùAU>ø ù6� ù6���eù� £�¢ô��3��ù����� � ô����!:Jû�ü>û � �1�� ��1�0������<ù6 ¨ô����]�W�=���¢ô��öô#����2���>ù^ó0 W÷>ø�ô%ù:ø]��ù����� ! ô��¨ÿ´ù6-@�eô� ��~ú´ûbú´û(�?�Lô�-=�0�Sø: ��� ��ÓÐ��a�eô���ù�<V���¢ùA-6 ���-:ù�U8�_ ��)��÷���ù:ø ô�-7�1�Gô����:�����>ô��%ô��~+������8 ���1X�� �+���û_�a �+��ù�"Sù:ø�<����>ù5-6 ���-<ù6U8�uô��³:|÷¢ô��eù5-6�%ù7�Sø|�� � 0�7����� A+hù��� �+�1X�� �+ ô��[�Tù� >ôÔ�1��ù6�#3�����1�B�¢ô��\�1U�U>ø� ���-=�+5 W÷��� ~�-ùL÷����W�=���8�öùSû)��������ù6��ô#�* >ô��:-:ø ù��eù���ù����� ! Tô��T-7�1����ù*ù`Z8U¢ø�ù6�:��ù� ¨ô����~�1�eø ô#Z9�� ��=�O�eô� �����]���¢ù��W��:�eù��¿ ��\Î_Ï��]ÐÑ�:þáã!ä

Úã @ Ö £�T> Ø ÛL� � ? ¥ � ? � �äÚ Þ

ä� ®�å � �nú´û � æ��

+Ûô����Å���>ùc�%ù7��U!�{ø� Wõ?��ù����8 ! ÷���ù� À�� WøC���>ù��eô��TùL�~�Sø�-=� ûÕÎ_÷>ø��1�0������ ô��Hô��«���>ô���������U8�eù<øø�ù@"Wù6���öù� y���0�O�����>ô���ô�����÷���ù:ø�ô�-7������Ë÷����:�������%ù~� ô���-<ù~���¢ù2$8��ø: ! ����_ ������ � < � � < � ���Sø�ù~������ø ù7������� c�>ù:õ��1�eô#"Wù����� ����>ù���U>÷¢ø�ô� S÷����Y��ø� � ��Ûô��%���>ù��öù7�1U8�{ø� Wõ[��ù����8 ! ô��Û÷��8�:�=�1���öù_�� Wøa�����Ó��÷�-=�-7�1��ù6��<V��ù:ù�óô%õ>û�ú´û/d1��ûS]�>ù��Tù@���� � ä+����H÷�� ù6 Å�X«�Ûô�-=���Sø� ��: ��ä�� Wø9+hù7�1���>ù:ø[U>ø�ù� >ô�-@�eô� ���<T����  ���>ô��9�v��-��[-6����� �+ ��ùa���: W÷>ø:-:ùa ��Ó�: ���ù]�öù�"|ô#�Wû\(�~�����8U>ø� ������>ô��%ô���<��� �+hù�"Wù<ø6<8���>ù��0���� [-7�1��-:÷8�Ô�1��ô� ����]�����¢ù ����#¢�1U�U>ø� ���-=�£��"1�Sô��Ô���8�öù��1�����¢ùx��ô���ù��]+1ù<ø�ùx�� ���-6�Sø�ø ôöù� ¢�v�Sø_ù6�8 W÷>õ����� ù`Z8�¢ô��>ô#���:��ø����>õSùU��>ù��� ���ù6�0�´ûs> ù]-6 W÷��� �<� 1�V-6 W÷>ø:��ù1<|÷8��ù����>ù � �� �� Wø: >ù:ø)�Û÷��>õSù@�P�m÷8�:�=�3��ù����� � A�� _ô����eù:õSø��1��ù�!:Jû�ú´û � æc� ô���-<ùsô#��ô����W�=�����%ù~�� Wø^ø�ù6���T�>ù:õ��O�eô�"SùL$4Ð��<ûc(*��ô���<B�� �+hù�"Wù<ø6<,-6 ��� >ô���ô� ��������#¢�:�������%ù���� c�� Wøa���>ô��a-7�1��ù�+hùC�Sø ù�ø��1���¢ù:ø3� ù�"Sù:ø�ù���c�öô��Tô#�eù6 �ô��c��ô���ù��W�eù�U���ô��<ù�������>ù�ø�ù{:|÷¢ôöø�ù��Tù�����T@�êæ�T> Ø{ç � � £ ��ûS]�>ù:ø ù��Sø ù3�~����[+��7����� ������¢ô�U>÷����1�eù]���>ù3��÷���ù:ø ô�-7�1�Y�W�=���¢ô��öô#�C ��l���%õ� Wø ô����8�~�<ûBÎ��>ù� �����¢ù6� ô��5�� �ô�����ø� � >÷�-:ù��Tô©Z´ù6 ���ô���ù3���8 L��U0��-<ù� >ô�� ù<ø�ù6�8-:ô��¢õ�<8��U' ��:��ô��>ô��%ô��C+hù��0�7"Wù��� 1��Wù@�-6 �����ô� >ù:ø ù6 �ûØó0 Wø�ù@Z8���[U��%ù�<8+hù�ô����eø� � >÷�-<ù6 %���>ù�Ï_÷�ó0 WøW�:��óJø����#13ù6�Ó��ù����� � ¨ô��c���0��U8��ù:øÛü>þÚXW Û�Ü × [] Ö ÚXW Û1Ý × [] Þ � £ �T@�Q> ØÍèé ÚXW ÛD[] Ý × ¥ ��êë ÚXW Û7Ü × [] Þ ÚXW Û1Ý × []� ìí Þ ÚXW Û=[] Ü ×aîï

ô��%+��>ô�-=�c���¢ù�-<ù6���eø����l��ù:ø:� ô��%���>ù���U0�1-:ùA ¢ù:ø�ô#"1�1�eô#"Wù�ô��c�!:�ûJü>û � ��������ù:ù��Ëø ù6U�����-:ù� ��� ô�����7"Wù<ø��SõWù_"1���ö÷¢ù_�1�]�+� [ >ô�� ù<ø�ù6�����eô��Tù3�öù�"Sù6���:ûT�� �+ �%ù��ð � � £ �T@�Q> Ø �nú´û ��� �

���� ¨ø�ù6�Sø�ø����>õWù���ù:ø:�~�� � Þ ð � Ú W Û�Ü × [] Öç� � ¥ ð � Ú W ÛOÝ × [] Þ ðpñeÚ W ÛD[] Ý × Þ Ú W Û=[] Ü ×�òS]�>ù<ø�ù}ô����� 2 ���"|ô� S÷���Î�Ï��Õ�-ù@�+1ù<ù6�����>ùA�0����ô�-T�,Ï��Ù���� ����>ô��a�0�0���\Î0�x��û��Lù6��-<ù�<Ó���>ù:ø ùô��a�� Íô����eù:ø:�Tù� >ôÔ�O�eùA$���ø� � ��a�:�eø ÷�-���÷>ø�ù��� sô�����U�ù6-@�Vû�(���:��ù7�� ¢ ��>ù9U>ø: !-<ù:ù6 8�_ô��[�Tù� >ôÔ�O�eù6�#~�� ���¢ùp�Y��ø� � ����:û

Page 153: Fundamentals of Computational Fluid Dynamics.pdf

¦�§´Ê�§ ±]¹]ª3´!°W´|µs®,ª9±�· � üEúS]�>ù[��ô��[U��%ù6�:��+��7?�� %-7�Sø ø:����>ô��_ W÷8�^ô����X?��ù7�1���_ ������>ù�óV S÷>ø�ô%ù:ø��:�����>ô��öô��¢���0���#���ô��ô�����ø� � >÷�-:ù� Pô��Pÿ´ù6-@�eô� ��Ëú|û ú´û)S]�¢ô����öù6�� ����1�� ��8-:ù_��

� � Þ ð �%��Öç� � ¥ ð �%� Ý × Þ ð ß9A ILK ` M Þ A Ý ILK ` M á Wø � � Þ ð �%� Ø ¥ � ð ��-� ��{�\ó_�T>'� ¥ � � ¥ ð �)Ö éS]�>ù��� ��%÷8�eô� ��L ��l���>ù0:�÷0�� ¢ø��1��ô�-mô��

��Ö ð -� ��GO*�Q>C� � � ¥ ð Ø ��ô�� Ø O*�T>� Þ ðS]�>ù<ø�ù[�Sø�ù � ãô�Y��ø� � ����������B ��,+��>ô�-=�y�Sø ù2ê � �� Sø�����Çø�ù6��� ð ô��¢���>ù}ø����>õWùxé�ê ð êöõ·ûS]�>ô��a��ù7�1�������0�O�a���>ù_�Tù@���� � ô�� Q�NÓK=MONY��EG¤JEÍMONYË�FGFHI9¥@¤ÍË�D6F���÷S]�>ù5���' �"SùØø ù6� ÷����|� ù:ù6�[�4�� � Ûõ� ! � ��� ���ù\�eø ÷>ù�<O��ô���-:ù)+hùT����"SùT�� S÷��� ����^÷���-6 ��� >ô���ô� ��������#�:�������%ù��Tù@���� � }÷�� ô��>õ_��� ��ø{ùYFHEÍK@EG¤ -6 ��A�>ô��0�O�eô� ��A ��'â|�SõWø����>õWô�����ô��X��ù:ø:U' ����1�eô� ��AUY ��#!�8 ��Tô������<ûS]�>ù_U>ø ô�-:ù�+hù_�0�7"Wù�U0�Sô� 2�� Wø����¢ô���ô������>ù��� ����] �� K=MON*ú¥@E�¥@¤�@NÓK@I +Ûô����%���>ù_ Wø�ô%õWô������X�,Ï���û

Ss xU>ø: �"Wù����¢ô��6<!+1ùmù`Z8U����� L���>ù���ù:ø:�~�#ô��%�!:�û�ú´û �1� ô��L�9Ss�7!�� Wø�� ù:ø�ô%ù6�����8 ¨ø ù6-� ����:��ø�÷�-@����¢ùaU��Sø:��ôÔ���! >ô¢�-ù:ø ù6���eô����>ùJ:�÷0�O�eô� ��x+hù��Sø�ù���-@�e÷0�1������� ���"|ô��>õ_�1�,���>ù��Tù����[��ô��:ù��-ù�-6 ���ù6�\"Sù:øW���~�����nûuó0 Wø����>ù��eô��Tù� ¢ù:ø�ô#"1�1�eô#"Wù�+hù��0�7"Sù�� �T@ ñ Ú W Û�Ü × [] ¥ Ú W Û1Ý × [] ò Öç� â E Ú � W Û=[] Þ �b �T@ Ø � â ELELE Ú � W Û=[] Þ F=F=F���� %�� Wø����>ù_�Tô©Z¢ù� L�eô���ù����8 c�:U0��-:ù_ >ô�� ù<ø�ù���-:ù��

ÚXW Û=[] Ý ×b¥ Ú,W Û�Ü × [] ¥ Ú,W Û1Ý × [] Þ ÚXW Û=[] Ü ×�Q> Ø Ö � â M�M Ú � W Û=[] ¥öû �T@�T>yü Ø � â ELE Ú � W Û=[] Þ���� �T> Ø � â M�M�M�M Ú � W Û=[] ¥���� �T@ Ø û �T@�T>!ü Ø � â ELELELE Ú � W Û=[] Þ F=F=F �nú´û�.�é���Ûù6U�����-:ù£���>ùy��ù:ø:�~�~ô��¸�!:Jûmú´û ��� +Ûô#��� ���>ùä���Y �"Wù�ù`Z8U�������ô� ����?���8 �=�213ù;���>ùy�öô���ô����1��T@�?~�T>Ìý é¢û\>yù��0�8 â Úâ @ Ö £ â Ø Úâ > Ø ¥ £ÿþ Ø â Ø Úâ @ Ø �nú´û�. � �+��>ù<ø�ù þ � �T@�T>

Page 154: Fundamentals of Computational Fluid Dynamics.pdf

� ü�æ ±\¼�²3º�µs®,¯¿¦�§À´|µ�²3¶�°P³4°6µ�·¸¹]Á ³4°Pª3®)²�¯Â´|·,´|µs®T­¢´�!:�û-ú´û � ú�ô�� ù8Ë�R:Ë�D@MOFHEÍK û,�!:Jû ú|û/. � ô�� Æ�I�ù0�@R�D@MOFHEÍK û,S]�|÷8�*ô#� �T@mý é~���8 ��T>�ý éHô��%��÷�-=��c+��7y�����1� ` E` M ø ù6�~�Sô�����-6 ����:�������7<)���>ùsùJ:�÷0�1��ô� ��y+hù%��-@�e÷0������?�: ���"Sù2��y���¢ù2�Tù@���� � �ô���!:Jû�ú´û ��� ô����[+��7"Wù�ù{:|÷��1�eô� ���<V�� ��3�[ ¢ô¢�-÷���ô� ��Pù{:�÷0�1�eô� ���û](�c��÷�-=�?�[-7��� ù É ��������� E�¥ANÓMO¤Q�N0E �7MOR�CFHI%K=MON8¥@E�¥@¤P�@N0¤TÄ)EG¤GÆ�¤GÆ0�x� � Q�Ë�¤vEÍMON?Ä��_¥��@¤aMOQ�¤�¤PMx¥�MOFHÃ�� ù�"Wù��¢�� Wø]"1���>ô��:�>ô��¢õ�������~������:��ù6U���ô��:ù6�<û,S]�>ù_��ô���÷0�1��ô� ��Íô��]��÷��[�~�Sø�ô��:ù6 �ô��LSB�1���öù^ú´û�.¢û)(*�b�T@yý é[�1�� ��Q>�ý é�ô��L��÷�-=��c+��7y�����1� ` E` M � ø�ù6�~�Sô����A-� ����:�������7<\���>ù6� þ Ø ô����2�a�Q@:�`<)���� ����>ù2��ù����� � �ô���-6 ���� ô��W�eù6���:û�� �+hù�"Sù:ø6<l���>ô����öù6�� ����� ��L-6 ����:��ø��Sô��X�� ������>ùC�eô���ù9�W�eù6U?+��>ô�-=� ô��~Ù ÷��:�����_� ù�"Wù<ø�ù��������0�O�ô��[UY ���ù� ��X����>ùx�:�����>ô��öô��c-6 ��� >ô���ô� ��� 1�T���>ùx��ù�-6 ��� �� Wø: >ù:ø��Û÷��>õWù`�P�m÷8�����L�Tù@���� � ?���� �+��ô��L���>ù��=�����%ùSû

� �� !�* Wø� >ù<ø��L÷8�>õWù@��m÷8����� Ï_÷�ó0 Wø:���´ó�ø����_1Sù6�ó0 WøLÿ������>ô��öô���Q@�ê ` M �Ø�� �T@�ê�õ�� ��� >ô#�eô� ��0������sÿ��=�1���öù ���8-6 ��� ¢ô��eô� ��0������Tÿ��������%ùó0 Wøa�� ���� ô��:��ù6��-@�a�>ô��� Sø��[����� ���� ô��:��ù6��� �� ��� ¢ô��eô� ��0������~�� ��8��ô��W�eù��X�6<

+Ûô#��� �3U8U>ø� 7Z´ô��~�1�eù������� E Ö £ � � �� M ����� E Ö £ � � �� M � �����sô��£ ß ` E` M á Ø����S]�¢ù:ø�ù@�� Wø�ù�T@ � �Q>�� ��

SB�1���öù^ú´û�.¢þØÿ´÷8�~�~�Sø:� ��B��-6-<÷>ø���-@����� �-6 ��8��ô��W�eù���-�%-� ��� >ô#�eô� ������� Wø��a� � �1�� Ï_÷Pó0 WøW�:��óJø����#13ù6����ù����� ! 8�:û � Öç�����Sø��¢ô��eø��Sø:sù:ø ø� Wø]�Y W÷��� ûë2ì! "çð)î[÷�ø6ò$# ý� û��� ��8��ô� ¢ù:ø]���>ù�Î�Ï��

Ú0à ÖãÚã @ Ö&% Ú Þ('

+Ûô#���%ÙÖ è)é ¥ � é ¥ é �#� ¥ é �#�� ¥ � �� é � ¥ � î+*ï ? ' Ö è)é ¥ �éé î+*ï

Page 155: Fundamentals of Computational Fluid Dynamics.pdf

¦�§-,X§Àº,¯�¹]¶�³|®T­¢´ � ü ��J��� óGô��� 2���>ùmù:ô%õWù6��"1���ö÷¢ù6�] ��.%�÷�� ô��>õx�9��÷���ù:ø ô�-7�1��U0��-�1O�SõWù3û\>Õ�0�1�Ûô������>ù��W�eù6�� 8���W�=�1��ù_�� ��%÷8�eô� ��S<c�a �+¸ � |ù6�]���>ù�Î�Ï��Å�: ��ö÷!�eô� ��L�-ù��0�7"Wù^ô��L�eô��TùD<�v�0�2> ø�ô#�eùC�~-6 � >ùA�� �ô����eù:õSø��1��ù��{ø� �� ���>ù�ô��¢ô��eô����4-6 ��� >ô���ô� �� Ú �Jé��]Ö0/ � ? � ? �2143 �{ø� ����ô���ù~@)Ö é]÷�� ô��>õ����>ù#ù@Z!U��%ô�-<ô��)��÷��%ù:ø�<Wô��[U��öô�-:ô#�l�A÷8�öù:ø�<X���� [ã��1-��� Wø:����-�1��Tù@���!� � ��<û�(�������B���>ø�ù<ù~-6����ù��6<G÷���ù�&;Ö é ��� �� Wø � é�é�éL��ô���ùC�:��ù6U���<)&yÖ^é �/� �� Wø�d�é�é��ô���ù2�:��ù6U���<]&ÕÖ é � ü¢�� Wø � d�é¢��ô���ù��:��ù6U��~���� Å&ÕÖ ��� é��� Wø � é�é¢��ô���ù��:��ù6U��<û�� ��~U0�3ø�ù����>ù_-� ��~U¢÷8�eù� c�: ��ö÷8��ô� ��2+Ûô#���L���¢ù^ù`Z8��-��a�:��ù7�� !%�� ��%÷8�eô� ���û�v-7�5�a��ô��>õ����>ù�$8����ø�ù��Ô�1��ô� ��8���� Wø9���>ù6� ù%���>ø�ù<ùL�Tù@���� � ���<T+��0�O�[�Sø�ù2���>ù�ù@Z!U�ù6-���ù6 �Y W÷��8 ��� ��c&%�� Wø]�W�=���>ô��öô#�#<%�]ø ù�� W÷>øÛø ù6��÷8�����]-� ���� ô��:��ù6����+Ûô����%���>ù6� ù_�' W÷8�� ���<

� û �J������ ��~U>÷!�eù~�%�������öùC 1�����¢ù~��÷���ù:ø ô�-7�1�\"��1�ö÷>ù��� 1�����¢ù¿�Y��ø� � ����� 1�5���>ù � �� !� Sø� >ù<ø�� 0���[�W��������!�� Wø:���¢�Tù@���� � c+��¢ù6�£$�Ö � ûaSs�21Sùx&~ô��Ëô�����ù:ø:"1������ ��Té¢û�é�dx�{ø: �� é�� �é´û/æ�éx���8 �-� ��[U>÷8�eù����>ù������� ��ö÷8��ù�"��1�ö÷>ù��a 1�s���>ù�ø� � ������� ~�O���öù7�1�:��bCU��Ô��-<ù6�<û�v�0�Ì�)�� ��,���>ùa�eø��1-:ùa ��Ó���>ù]ø: ! ����Aô��x���>ùa-6 ��[U��%ù@Z¿�'�*U��Ô���¢ù��1�� � >ø��7+ ���>ù*÷��>ô#�5-<ôöø:-6�öù ������>ù_������ù�U��� 1�Vû�v-7���Ûù6U�ù7�O�a���>ù����Y {"Sù��� Sø����>ù��a� � ��ù����� � �û

.¢û]>Õ�>ù��A�1U�U��öô%ù6 3�� ����>ù,�%ô��>ù6�SøÓ-� ���"Wù6-@�eô� ���ù{:�÷0�1�eô� ���<7���>ù\+Ûô� >ù����1��8 {+���â|�OZ6�X> ù6�� >ø: 2���ù����� ! õWô#"Wù��:þÚ Û�Ü ×] Ö Ú Û] ¥ �� × Û � Ú Û] Ü × ¥ Ú Û] Ý × � Þ �� × ØÛ � Ú Û] Ü × ¥ � Ú Û] Þ Ú Û] Ý × �

+��>ù<ø�ù¶× Û <.1X�� �+��;�1�����>ù��� W÷>ø������2�� Wø��#ó\âl����÷��9��ù:ø6<kô�� Ë & ç �T>kû7��� ô��>õ¨ó0 W÷>ø ôöù:ø�W�=���>ô��öô#�2�����������ô��6<8���� ����>ù�ø����¢õWù� ��!× Û �� Wø�+��>ô�-=�%���¢ù���ù����� � ¨ô��]�:�������öù3ûü>ûaÏ_ù@�eù:ø:�Tô��>ù����� LU��� ������>ù��:�����>ô��öô��9-6 ����� S÷>ø����� WøT���>ù3�3 0���[�W������:�8�� Wø:���2��ù����8 ! ��5 �� Wø: >ù:ø � ���>ø: W÷>õ��Tü>û,�� ��[U0�Sø ù�+Ûô#���[���>ù��L÷8�>õWù@��m÷8��������ù����� ! 8�T 1�4 Wø� ¢ù:ø � ���>ø� W÷¢õ��ü>ûd´ûa�Ûù6-6�����Ó���>ù_-6 ��[U0��-@��-:ù��X��ù:ø ù6 �.O�*U' Sô�������U�U¢ø� 7Z´ô��~�1�eô� ����� Wø��9��ø:�:�a >ù:ø ô�"1�1��ô�"Wù3þ

�98 M Ú � ] Ý ×ÓÞ üV�98 M Ú � ] Þ �98 M Ú � ] Ü × Ö .�Q> � Ú ] Ü × ¥ Ú ] Ý × ��5]ø�ù�U��Ô��-<ô��>õ����>ù)��U��1�eô����Sô��� >ù@Z;:�������>ù\�eù��~UY Wø��1�Sô��8 >ù@Z=<B<O ��8�=�3ô������eô��Tù`��~�Sø�-=�¢ô��>õ��ù����� ! �÷���ô��>õ3���¢ô��s�� Sø���÷����¢û4>Õ�0�1�B Wø� >ù<øuô��|���¢ù��Tù@���� � S<L(�uô��Gù@Z!U��%ô�-<ô��s Wøô��~U��%ô�-<ô���<(�Ûô��a�9�+5 1��W�eù�U¢âlã¢ã <�(*�s�� 8<��� x+��0�1�]"1���ö÷¢ù6�� ��.>�<0��<V���� @?ä�'ô����!:JûVb¢û/d � �� � |ù6�Ûô��-� Wø�ø ù6��UY ��� *<ÅÏ_ù:ø ô�"Sù����¢ùx$��Ï�yø ù6�Ô�O�eô� ����� Wøa���>ù��Tù@���� � �û�(�_ô����a�*�:�=�1���öù1<A%CB:��W�=�����%ù�< Wø](Í�*�:�������öùD<

Page 156: Fundamentals of Computational Fluid Dynamics.pdf

� d�é ±\¼�²3º�µs®,¯¿¦�§À´|µ�²3¶�°P³4°6µ�·¸¹]Á ³4°Pª3®)²�¯Â´|·,´|µs®T­¢´b¢û]> ø�ô#�eù����¢ù9Î�Ï��À�W!�W�eù�� ��8�=�Sô��>ù6 ������U�U��#|ô��>õC���¢ù � �� !� Sø� >ù<øa-<ù6���eù<ø�ù� ¢ >ô¢�-ù:ø ù6��-<ù��U8U>ø� 7Z´ô��~�1�eô� ��;�� ����>ù%��U0�1��ôÔ���] ¢ù:ø�ô#"1�1�eô#"Wù�ô��ä���>ùc�[ � >ù6�� ¢ô¢�-÷���ô� ���ùJ:�÷0�1��ô� ��ä+Ûô����U�ù:ø ô� � >ô�-��Y W÷��8 0�Sø:�-6 ��8 >ô���ô� ����<ûD��� ô��>õx�3U8U-ù��� >ô#Z%�]û\ü8<8�0�� %���>ù�ù<ôöõWù��X"1���%÷>ù6�� ��l���¢ù�:U0�1�eô����� �U�ù:ø��1�� Sø]���1��ø�ô©Z û � ô�"Sù6�%���0�O�]���>ù�$8��� ø�ù6���1�eô� ����� Wø]���>ù � �� !�* Wø� >ù<ø��3 0���[�W����1���8�� WøW�����Tù@���� � ô�� � Ø ¥ � � Þ .�$Y& ç � �%� Þ $Y& ç � ÖÙé�:�� �+¸���0�1�a���¢ù��~�OZ´ô���÷8�»�:�������%ù�"1���%÷>ù_ ���� $Y&b�X�� WøÛø�ù7�1�l�¢ù:õ��1��ô�"Sù9$4<-ô�û\ù3û�<����>ùAUY Wô��X�+��>ù<ø�ù����>ù��W�=���¢ô��öô#�?-6 ����� W÷>ø�ô����eù:ø:��ù�-��������>ù2�¢ù:õ��1��ô�"Sùsø�ù6���5�OZ´ô��6<Gô��� ��8�=�3ô��>ù� �+Ûô����$Y&cÖ ¥ � ûE�a��ô��>õ~���>ù�ù<ôöõWù��X"1���%÷>ù6�a ��\���>ùA�:U0�1��ôÔ���| �U�ù:ø��1�� Wøa�~�1�eø ô#Z'<0�0�� ����>ùA�~�OZ´ô#���÷8� �:�������öù]��ô���ù]�:�eù�U~�� Wø\���>ùa-6 ��9�¢ô��0�1��ô� ��C 1� � �� �� Wø: >ù:ø)-<ù6���eù<ø�ù6 L ¢ô¢�-ù:ø�ù���-:ù����1�� ���>ù � �8 !� Wø: >ù:ø��3 0�1�~�P�P�����:�8�� WøW���y��ù����� � ä��U�U��%ôöù� ��� ����>ù��~ � >ù6�, >ô�� ÷8��ô� ��yùJ:�÷0�{���ô� ���û\�Lù�U-ù6�1�L÷���ô��>õ�óV S÷>ø�ô%ù:ø����0�1�����ô��:û

ú´û��� ��8��ô� ¢ù:ø]���>ù��� ����� �+Ûô��¢õQ�,Ï��Ûþ â Úâ @ Ö � â Ø Úâ > Ø+��>ù<ø�ù � Ö � ¥ � û3>Õ�>ô�-=�~ù@Z!U��%ô�-:ô#����ô���ù@�*���Sø:-=�>ô��¢õ[��ù����� � ��3+5 W÷��� ��-ù���÷>ô#�=�����%ù��� Søô��X��ù:õWø��1�eô��>õ����>ô�� �TÏ��]<hô�� � �� �� Wø: >ù:ø~-:ù6����ù:ø�ù� ¢ô¢�-ù:ø�ù���-:ô��>õ»ô��T÷���ù� Ò�� Wø����¢ù¢��U0�{���ôÔ���T >ô¢�-ù:ø ù6��-<ù6�x���8  ���>ù2�Y W÷��� ��Sø:y-6 ��� ¢ô��eô� ����A�Sø�ùLU�ù:ø ô� � >ô�-D< óô��8 y���>ùL�W�=���¢ô��öô#�-� ��� >ô#�eô� ��2�� Wø] ��>ù_ ��l���>ù���ù��Tù@���� � ��<û

æ¢û��a��ô��¢õËó0 W÷>ø ôöù<ø��1�0������ ô��6<l����������:ùx���¢ù~�W�=���>ô��öô#�¢ ����>ø��:�W� Wø: >ù:ø��0��-�1�+��Sø� y >ô¢�-ù:ø ù6��-`�ô��>õ~-� W÷�U��%ù6 �+Ûô����¨ù@Z!U��%ô�-<ô��a��÷��öù<øa��ô���ù_���Sø:-=�>ô��¢õ~�1U�U��öô%ù6 %�� x���>ù��öô��>ù7�Sø]-� ���"Wù�-��eô� ��ù{:|÷��1�eô� ��L+Ûô����%UY ���ô#�eô#"Wù Ë ûØóô��� L���>ù_���OZ´ô���÷��»�� W÷>ø��1�X�a��÷��9��ù:ø]�� Wø]�W�=���¢ô��öô#�Wû� û��� ��8��ô� ¢ù:ø����¢ù)�öô��¢ù7�Sø'-6 ���"Wù�-���ô� ��_+Ûô�������UY �� ô��eô#"WùB+��7"WùT��U�ù:ù� A���Cô���U>ø� ����öù�� æ¢ûl�3U8U����CÏ_ô%ø�ô�-=�8�öù����' S÷��� 0�SøW2-� ��� >ô#�eô� ��L�1�]���¢ù��öù��G���' W÷8�� 0�SøWWû,�� x�Y W÷��� ��Sø:�-6 ��� ¢ô��eô� ��Íô��U�ù:ø:�Tô#���eù� x�1�\���>ùÛø�ôöõ��X�\�' W÷8�� 0�SøWWûB> ø�ô#�eù����>ù��:��:��ù6� ��ÓÎ�Ï��]Ð��\+��>ô�-=�Tø ù6� ÷������\�{ø� ����ø:�:�W� Wø: >ù:øs�0��-�1�+��3ø� x��U0�O�eôÔ�1�! >ô�� ù<ø�ù���-:ô��>õ]ô��9���O�eø�ô©ZX�*"Wù�-��� Wøl�� Sø��¨ûF�a��ô��¢õ3�3U8U-ù��� >ô#Z�]û � <��0�8 ����>ù�$���ù:ôöõSù6��"1���ö÷>ù��:û)> ø�ô���ù����>ù�Î��x�Å+��>ô�-=�Ëø�ù���÷��#���]�{ø� �� ���¢ùA��U8U��öô�-7�1��ô� �� ��Gù@Z!U��%ô�-<ô�����÷��%ù:ø]�eô��Tù��~�Sø:-=�>ô��>õ}ô��%���1��ø�ô©Z��Í"Wù�-��� Sø��� Wø���<¢ô�û\ù3û�<ä

Ú0Û�Ü × ÖR× äÚ0Û ¥ äGOÛ

> ø�ô#�eù�× ô��«�0���� >ù� À�~�1�eø ô#Z �8 ��=�1��ô� ��«���8 5õWô#"Wù%���>ù¨ù6���eø ôöù��~ ��äG û���� ô��>õ?���>ù¢$��� ø�ù6���1�eô� ��Ò�� WøL���>ù ù@Z!U��%ô�-<ô��c��÷��öù<ø���ù����� � �<��0�� Ù���>ù �'��ù<ôöõWù���"��1�ö÷>ù��:û¿���1��ù6 �����>ù6� ù�<�+��0�1�#ô������>ù��~�OZ´ô���÷�� �� W÷¢ø���������÷��9��ù:ø]�1���� �+hù6 2�� Wø����:��[U8�� 1�eô�-3�:�=�1�>ô��%ô��_<�BZ!U��Ô�3ô��L+���L���>ô��] >ô¢�-ù:ø:���{ø� ��»���>ù������W+1ù<øa�� [U¢ø� ����%ù6�»æ¢û,�*ô��X�:þ�ô���×ç�� Sø��~����<

Page 157: Fundamentals of Computational Fluid Dynamics.pdf

Chapter 8

CHOICE OF TIME-MARCHING

METHODS

In this chapter we discuss considerations involved in selecting a time-marching method

for a speci�c application. Examples are given showing how time-marching methods

can be compared in a given context. An important concept underlying much of this

discussion is sti�ness, which is de�ned in the next section.

8.1 Sti�ness De�nition for ODE's

8.1.1 Relation to �-Eigenvalues

The introduction of the concept referred to as \sti�ness" comes about from the nu-

merical analysis of mathematical models constructed to simulate dynamic phenom-

ena containing widely di�erent time scales. De�nitions given in the literature are

not unique, but fortunately we now have the background material to construct a

de�nition which is entirely su�cient for our purposes.

We start with the assumption that our CFD problem is modeled with su�cient

accuracy by a coupled set of ODE's producing an A matrix typi�ed by Eq. 7.1.

Any de�nition of sti�ness requires a coupled system with at least two eigenvalues,

and the decision to use some numerical time-marching or iterative method to solve

it. The di�erence between the dynamic scales in physical space is represented by

the di�erence in the magnitude of the eigenvalues in eigenspace. In the following

discussion we concentrate on the transient part of the solution. The forcing function

may also be time varying in which case it would also have a time scale. However,

we assume that this scale would be adequately resolved by the chosen time-marching

method, and, since this part of the ODE has no e�ect on the numerical stability of

149

Page 158: Fundamentals of Computational Fluid Dynamics.pdf

150 CHAPTER 8. CHOICE OF TIME-MARCHING METHODS

StableRegion

AccurateRegion

1

I( h)

R( h)

λ

λ

λh

Figure 8.1: Stable and accurate regions for the explicit Euler method.

the homogeneous part, we exclude the forcing function from further discussion in this

section.

Consider now the form of the exact solution of a system of ODE's with a com-

plete eigensystem. This is given by Eq. 6.27 and its solution using a one-root, time-

marching method is represented by Eq. 6.28. For a given time step, the time integra-

tion is an approximation in eigenspace that is di�erent for every eigenvector ~xm. Inmany numerical applications the eigenvectors associated with the small j�mj are wellresolved and those associated with the large j�mj are resolved much less accurately,

if at all. The situation is represented in the complex �h plane in Fig. 8.1. In this

�gure the time step has been chosen so that time accuracy is given to the eigenvectors

associated with the eigenvalues lying in the small circle and stability without time

accuracy is given to those associated with the eigenvalues lying outside of the small

circle but still inside the large circle.

The whole concept of sti�ness in CFD arises from the fact that we often do

not need the time resolution of eigenvectors associated with the large j�mj inthe transient solution, although these eigenvectors must remain coupled into

the system to maintain a high accuracy of the spatial resolution.

Page 159: Fundamentals of Computational Fluid Dynamics.pdf

8.1. STIFFNESS DEFINITION FOR ODE'S 151

8.1.2 Driving and Parasitic Eigenvalues

For the above reason it is convenient to subdivide the transient solution into two

parts. First we order the eigenvalues by their magnitudes, thus

j�1j � j�2j � � � � � j�M j (8.1)

Then we write

Transient

Solution=

pXm=1

cme�mt ~xm

| {z }Driving

+MX

m=p+1

cme�mt ~xm

| {z }Parasitic

(8.2)

This concept is crucial to our discussion. Rephrased, it states that we can separate

our eigenvalue spectrum into two groups; one [�1 ! �p] called the driving eigenvalues(our choice of a time-step and marching method must accurately approximate the time

variation of the eigenvectors associated with these), and the other, [�p+1 ! �M ], called

the parasitic eigenvalues (no time accuracy whatsoever is required for the eigenvectors

associated with these, but their presence must not contaminate the accuracy of the

complete solution). Unfortunately, we �nd that, although time accuracy requirements

are dictated by the driving eigenvalues, numerical stability requirements are dictated

by the parasitic ones.

8.1.3 Sti�ness Classi�cations

The following de�nitions are somewhat useful. An inherently stable set of ODE's is

sti� if

j�pj � j�M j

In particular we de�ne the ratio

Cr = j�M j = j�pj

and form the categories

Mildly-sti� Cr < 102

Strongly-sti� 103 < Cr < 105

Extremely-sti� 106 < Cr < 108

Pathologically-sti� 109 < Cr

It should be mentioned that the gaps in the sti� category de�nitions are intentional

because the bounds are arbitrary. It is important to notice that these de�nitions

make no distinction between real, complex, and imaginary eigenvalues.

Page 160: Fundamentals of Computational Fluid Dynamics.pdf

152 CHAPTER 8. CHOICE OF TIME-MARCHING METHODS

8.2 Relation of Sti�ness to Space Mesh Size

Many ow �elds are characterized by a few regions having high spatial gradients of

the dependent variables and other domains having relatively low gradient phenomena.

As a result it is quite common to cluster mesh points in certain regions of space and

spread them out otherwise. Examples of where this clustering might occur are at a

shock wave, near an airfoil leading or trailing edge, and in a boundary layer.

One quickly �nds that this grid clustering can strongly a�ect the eigensystem of

the resulting A matrix. In order to demonstrate this, let us examine the eigensystems

of the model problems given in Section 4.3.2. The simplest example to discuss relates

to the model di�usion equation. In this case the eigenvalues are all real, negative

numbers that automatically obey the ordering given in Eq. 8.1. Consider the case

when all of the eigenvalues are parasitic, i.e., we are interested only in the converged

steady-state solution. Under these conditions, the sti�ness is determined by the ratio

�M=�1. A simple calculation shows that

�1 = �4�

�x2sin2

2(M + 1)

!� �

�4�

�x2

���x

2

�2= ��

�M � �4�

�x2sin2

��

2

�= �

4�

�x2

and the ratio is

�M=�1 �4

�x2= 4

�M + 1

�2

The most important information found from this example is the fact that the

sti�ness of the transient solution is directly related to the grid spacing. Furthermore,

in di�usion problems this sti�ness is proportional to the reciprocal of the space mesh

size squared. For a mesh size M = 40, this ratio is about 680. Even for a mesh of

this moderate size the problem is already approaching the category of strongly sti�.

For the biconvection model a similar analysis shows that

j�M j = j�1j �1

�x

Here the sti�ness parameter is still space-mesh dependent, but much less so than for

di�usion-dominated problems.

We see that in both cases we are faced with the rather annoying fact that the more

we try to increase the resolution of our spatial gradients, the sti�er our equations tend

to become. Typical CFD problems without chemistry vary between the mildly and

strongly sti� categories, and are greatly a�ected by the resolution of a boundary layer

since it is a di�usion process. Our brief analysis has been limited to equispaced

Page 161: Fundamentals of Computational Fluid Dynamics.pdf

8.3. PRACTICAL CONSIDERATIONS FOR COMPARING METHODS 153

problems, but in general the sti�ness of CFD problems is proportional to the mesh

intervals in the manner shown above where the critical interval is the smallest one in

the physical domain.

8.3 Practical Considerations for Comparing Meth-

ods

We have presented relatively simple and reliable measures of stability and both the

local and global accuracy of time-marching methods. Since there are an endless

number of these methods to choose from, one can wonder how this information is

to be used to pick a \best" choice for a particular problem. There is no unique

answer to such a question. For example, it is, among other things, highly dependent

upon the speed, capacity, and architecture of the available computer, and technology

in uencing this is undergoing rapid and dramatic changes as this is being written.

Nevertheless, if certain ground rules are agreed upon, relevant conclusions can be

reached. Let us now examine some ground rules that might be appropriate. It should

then be clear how the analysis can be extended to other cases.

Let us consider the problem of measuring the e�ciency of a time{marching method

for computing, over a �xed interval of time, an accurate transient solution of a coupled

set of ODE's. The length of the time interval, T , and the accuracy required of the

solution are dictated by the physics of the particular problem involved. For example,

in calculating the amount of turbulence in a homogeneous ow, the time interval

would be that required to extract a reliable statistical sample, and the accuracy

would be related to how much the energy of certain harmonics would be permitted

to distort from a given level. Such a computation we refer to as an event.

The appropriate error measures to be used in comparing methods for calculating

an event are the global ones, Era, Er� and Er!, discussed in Section 6.6.5, rather

than the local ones er�, era, and erp discussed earlier.

The actual form of the coupled ODE's that are produced by the semi-discrete

approach is

d~u

dt= ~F (~u; t)

At every time step we must evaluate the function ~F (~u; t) at least once. This function

is usually nonlinear, and its computation usually consumes the major portion of the

computer time required to make the simulation. We refer to a single calculation of the

vector ~F (~u; t) as a function evaluation and denote the total number of such evaluations

by Fev.

Page 162: Fundamentals of Computational Fluid Dynamics.pdf

154 CHAPTER 8. CHOICE OF TIME-MARCHING METHODS

8.4 Comparing the E�ciency of Explicit Methods

8.4.1 Imposed Constraints

As mentioned above, the e�ciency of methods can be compared only if one accepts a

set of limiting constraints within which the comparisons are carried out. The follow

assumptions bound the considerations made in this Section:

1. The time-march method is explicit.

2. Implications of computer storage capacity and access time are ignored. In some

contexts, this can be an important consideration.

3. The calculation is to be time-accurate, must simulate an entire event which

takes a total time T , and must use a constant time step size, h, so that

T = Nh

where N is the total number of time steps.

8.4.2 An Example Involving Di�usion

Let the event be the numerical solution of

du

dt= �u (8.3)

from t = 0 to T = � ln(0:25) with u(0) = 1. Eq. 8.3 is obtained from our representa-

tive ODE with � = �1, a = 0. Since the exact solution is u(t) = u(0)e�t, this makes

the exact value of u at the end of the event equal to 0.25, i.e., u(T ) = 0:25. To the

constraints imposed above, let us set the additional requirement

� The error in u at the end of the event, i.e., the global error, must be < 0:5%.

We judge the most e�cient method as the one that satis�es these conditions and

has the fewest number of evaluations, Fev. Three methods are compared | explicit

Euler, AB2, and RK4.

First of all, the allowable error constraint means that the global error in the am-

plitude, see Eq. 6.48, must have the property:

����Er�e�T

���� < 0:005

Page 163: Fundamentals of Computational Fluid Dynamics.pdf

8.4. COMPARING THE EFFICIENCY OF EXPLICIT METHODS 155

Then, since h = T=N = � ln(0:25)=N , it follows that���1� (�1(ln(:25)=N))N=:25

��� < 0:005

where �1 is found from the characteristic polynomials given in Table 7.1. The results

shown in Table 8.1 were computed using a simple iterative procedure.

Method N h �1 Fev Er�Euler 193 :00718 :99282 193 :001248 worst

AB2 16 :0866 :9172 16 :001137RK4 2 :6931 :5012 8 :001195 best

Table 8.1: Comparison of time-marching methods for a simple dissipation problem.

In this example we see that, for a given global accuracy, the method with the

highest local accuracy is the most e�cient on the basis of the expense in evaluating

Fev. Thus the second-order Adams-Bashforth method is much better than the �rst-

order Euler method, and the fourth-order Runge-Kutta method is the best of all. The

main purpose of this exercise is to show the (usually) great superiority of second-order

over �rst-order time-marching methods.

8.4.3 An Example Involving Periodic Convection

Let us use as a basis for this example the study of homogeneous turbulence simulated

by the numerical solution of the incompressible Navier-Stokes equations inside a cube

with periodic boundary conditions on all sides. In this numerical experiment the

function evaluations contribute overwhelmingly to the CPU time, and the number of

these evaluations must be kept to an absolute minimum because of the magnitude of

the problem. On the other hand, a complete event must be established in order to

obtain meaningful statistical samples which are the essence of the solution. In this

case, in addition to the constraints given in Section 8.4.1, we add the following:

� The number of evaluations of ~F (~u; t) is �xed.

Under these conditions a method is judged as best when it has the highest global

accuracy for resolving eigenvectors with imaginary eigenvalues. The above constraint

has led to the invention of schemes that omit the function evaluation in the cor-

rector step of a predictor-corrector combination, leading to the so-called incomplete

Page 164: Fundamentals of Computational Fluid Dynamics.pdf

156 CHAPTER 8. CHOICE OF TIME-MARCHING METHODS

predictor-corrector methods. The presumption is, of course, that more e�cient meth-

ods will result from the omission of the second function evaluation. An example is

the method of Gazdag, given in Section 6.8. Basically this is composed of an AB2

predictor and a trapezoidal corrector. However, the derivative of the fundamental

family is never found so there is only one evaluation required to complete each cycle.

The �-� relation for the method is shown as entry 10 in Table 7.1.

In order to discuss our comparisions we introduce the following de�nitions:

� Let a k-evaluation method be de�ned as one that requires k evaluations of~F (~u; t) to advance one step using that method's time interval, h.

� Let K represent the total number of allowable Fev.

� Let h1 be the time interval advanced in one step of a one-evaluation method.

The Gazdag, leapfrog, and AB2 schemes are all 1-evaluation methods. The second

and fourth order RK methods are 2- and 4-evaluation methods, respectively. For a 1-

evaluation method the total number of time steps, N , and the number of evaluations,

K, are the same, one evaluation being used for each step, so that for these methods

h = h1. For a 2-evaluation method N = K=2 since two evaluations are used for

each step. However, in this case, in order to arrive at the same time T after K

evaluations, the time step must be twice that of a one{evaluation method so h = 2h1.For a 4-evaluation method the time interval must be h = 4h1, etc. Notice that

as k increases, the time span required for one application of the method increases.

However, notice also that as k increases, the power to which �1 is raised to arrive

at the �nal destination decreases; see the Figure below. This is the key to the true

comparison of time-march methods for this type of problem.

0 T uNk = 1 j � � � � � � � j [�(�h1)]

8

k = 2 j 2h1 � � � j [�(2�h1)]4

k = 4 j 4h1 � j [�(4�h1)]2

Step sizes and powers of � for k-evaluation methods used to get to the same value

of T if 8 evaluations are allowed.

In general, after K evaluations, the global amplitude and phase error for k-

evaluation methods applied to systems with pure imaginary �-roots can be written1

Era = 1� j�1(ik!h1)jK=k

(8.4)

1See Eqs. 6.38 and 6.39.

Page 165: Fundamentals of Computational Fluid Dynamics.pdf

8.4. COMPARING THE EFFICIENCY OF EXPLICIT METHODS 157

Er! = !T �K

ktan�1

"[�1(ik!h1)]imaginary

[�1(ik!h1)]real

#(8.5)

Consider a convection-dominated event for which the function evaluation is very

time consuming. We idealize to the case where � = i! and set ! equal to one. The

event must proceed to the time t = T = 10. We consider two maximum evaluation

limits K = 50 and K = 100 and choose from four possible methods, leapfrog, AB2,

Gazdag, and RK4. The �rst three of these are one-evaluation methods and the last

one is a four-evaluation method. It is not di�cult to show that on the basis of local

error (made in a single step) the Gazdag method is superior to the RK4 method in

both amplitude and phase. For example, for !h = 0:2 the Gazdag method produces

a j�1j = 0:9992276 whereas for !h = 0:8 (which must be used to keep the number of

evaluations the same) the RK4 method produces a j�1j = 0:998324. However, we are

making our comparisons on the basis of global error for a �xed number of evaluations.

First of all we see that for a one-evaluation method h1 = T=K. Using this, and the

fact that ! = 1, we �nd, by some rather simple calculations2 made using Eqs. 8.4 and

8.5, the results shown in Table 8.2. Notice that to �nd global error the Gazdag root

must be raised to the power of 50 while the RK4 root is raised only to the power of

50/4. On the basis of global error the Gazdag method is not superior to RK4 in either

amplitude or phase, although, in terms of phase error (for which it was designed) it

is superior to the other two methods shown.

K leapfrog AB2 Gazdag RK4

!h1 = :1 100 1:0 1:003 :995 :999

!h1 = :2 50 1:0 1:022 :962 :979

a. Amplitude, exact = 1.0.

K leapfrog AB2 Gazdag RK4

!h1 = :1 100 �:96 �2:4 :45 :12

!h1 = :2 50 �3:8 �9:8 1:5 1:5

b. Phase error in degrees.

Table 8.2: Comparison of global amplitude and phase errors for four methods.

2The �1 root for the Gazdag method can be found using a numerical root �nding routine to trace

the three roots in the �-plane, see Fig. 7.3e.

Page 166: Fundamentals of Computational Fluid Dynamics.pdf

158 CHAPTER 8. CHOICE OF TIME-MARCHING METHODS

Using analysis such as this (and also considering the stability boundaries) the

RK4 method is recommended as a basic �rst choice for any explicit time-accurate

calculation of a convection-dominated problem.

8.5 Coping With Sti�ness

8.5.1 Explicit Methods

The ability of a numerical method to cope with sti�ness can be illustrated quite nicely

in the complex �h plane. A good example of the concept is produced by studying

the Euler method applied to the representative equation. The transient solution is

un = (1 + �h)n and the trace of the complex value of �h which makes j1 + �hj = 1

gives the whole story. In this case the trace forms a circle of unit radius centered at

(�1; 0) as shown in Fig. 8.1. If h is chosen so that all �h in the ODE eigensystem

fall inside this circle the integration will be numerically stable. Also shown by the

small circle centered at the origin is the region of Taylor series accuracy. If some �hfall outside the small circle but stay within the stable region, these �h are sti�, but

stable. We have de�ned these �h as parasitic eigenvalues. Stability boundaries for

some explicit methods are shown in Figs. 7.5 and 7.6.

For a speci�c example, consider the mildly sti� system composed of a coupled

two-equation set having the two eigenvalues �1 = �100 and �2 = �1. If uncoupledand evaluated in wave space, the time histories of the two solutions would appear as a

rapidly decaying function in one case, and a relatively slowly decaying function in the

other. Analytical evaluation of the time histories poses no problem since e�100t quickly

becomes very small and can be neglected in the expressions when time becomes large.

Numerical evaluation is altogether di�erent. Numerical solutions, of course, depend

upon [�(�mh)]n and no j�mj can exceed one for any �m in the coupled system or else

the process is numerically unstable.

Let us choose the simple explicit Euler method for the time march. The coupled

equations in real space are represented by

u1(n) = c1(1� 100h)nx11 + c2(1� h)nx12 + (PS)1

u2(n) = c1(1� 100h)nx21 + c2(1� h)nx22 + (PS)2 (8.6)

We will assume that our accuracy requirements are such that su�cient accuracy is

obtained as long as j�hj � 0:1. This de�nes a time step limit based on accuracy

considerations of h = 0:001 for �1 and h = 0:1 for �2. The time step limit based

on stability, which is determined from �1, is h = 0:02. We will also assume that

c1 = c2 = 1 and that an amplitude less than 0.001 is negligible. We �rst run 66

time steps with h = 0:001 in order to resolve the �1 term. With this time step the

Page 167: Fundamentals of Computational Fluid Dynamics.pdf

8.5. COPING WITH STIFFNESS 159

�2 term is resolved exceedingly well. After 66 steps, the amplitude of the �1 term

(i.e., (1� 100h)n) is less than 0.001 and that of the �2 term (i.e., (1� h)n) is 0.9361.

Hence the �1 term can now be considered negligible. To drive the (1 � h)n term to

zero (i.e., below 0.001), we would like to change the step size to h = 0:1 and continue.

We would then have a well resolved answer to the problem throughout the entire

relevant time interval. However, this is not possible because of the coupled presence

of (1� 100h)n, which in just 10 steps at h = 0:1 ampli�es those terms by � 109, far

outweighing the initial decrease obtained with the smaller time step. In fact, with

h = 0:02, the maximum step size that can be taken in order to maintain stability,

about 339 time steps have to be computed in order to drive e�t to below 0.001. Thus

the total simulation requires 405 time steps.

8.5.2 Implicit Methods

Now let us re-examine the problem that produced Eq. 8.6 but this time using an

unconditionally stable implicit method for the time march. We choose the trapezoidal

method. Its behavior in the �h plane is shown in Fig. 7.4b. Since this is also a one-

root method, we simply replace the Euler � with the trapezoidal one and analyze the

result. It follows that the �nal numerical solution to the ODE is now represented in

real space by

u1(n) = c1

1� 50h

1 + 50h

!nx11 + c2

1� 0:5h

1 + 0:5h

!nx12 + (PS)1

u2(n) = c1

1� 50h

1 + 50h

!nx21 + c2

1� 0:5h

1 + 0:5h

!nx22 + (PS)2 (8.7)

In order to resolve the initial transient of the term e�100t, we need to use a step size

of about h = 0:001. This is the same step size used in applying the explicit Euler

method because here accuracy is the only consideration and a very small step size

must be chosen to get the desired resolution. (It is true that for the same accuracy

we could in this case use a larger step size because this is a second-order method,

but that is not the point of this exercise). After 70 time steps the �1 term has

amplitude less than 0.001 and can be neglected. Now with the implicit method we

can proceed to calculate the remaining part of the event using our desired step size

h = 0:1 without any problem of instability, with 69 steps required to reduce the

amplitude of the second term to below 0.001. In both intervals the desired solution

is second-order accurate and well resolved. It is true that in the �nal 69 steps one

�-root is [1 � 50(0:1)]=[1 + 50(0:1)] = 0:666 � � �, and this has no physical meaning

whatsoever. However, its in uence on the coupled solution is negligible at the end

of the �rst 70 steps, and, since (0:666 � � �)n < 1, its in uence in the remaining 70

Page 168: Fundamentals of Computational Fluid Dynamics.pdf

160 CHAPTER 8. CHOICE OF TIME-MARCHING METHODS

steps is even less. Actually, although this root is one of the principal roots in the

system, its behavior for t > 0:07 is identical to that of a stable spurious root. The

total simulation requires 139 time steps.

8.5.3 A Perspective

It is important to retain a proper perspective on a problem represented by the above

example. It is clear that an unconditionally stable method can always be called upon

to solve sti� problems with a minimum number of time steps. In the example, the

conditionally stable Euler method required 405 time steps, as compared to about

139 for the trapezoidal method, about three times as many. However, the Euler

method is extremely easy to program and requires very little arithmetic per step. For

preliminary investigations it is often the best method to use for mildly-sti� di�usion

dominated problems. For re�ned investigations of such problems an explicit method

of second order or higher, such as Adams-Bashforth or Runge-Kutta methods, is

recommended. These explicit methods can be considered as e�ective mildly sti�-

stable methods. However, it should be clear that as the degree of sti�ness of the

problem increases, the advantage begins to tilt towards implicit methods, as the

reduced number of time steps begins to outweigh the increased cost per time step.

The reader can repeat the above example with �1 = �10; 000, �2 = �1, which is in

the strongly-sti� category.

There is yet another technique for coping with certain sti� systems in uid dynamic

applications. This is known as the multigrid method. It has enjoyed remarkable

success in many practical problems; however, we need an introduction to the theory

of relaxation before it can be presented.

8.6 Steady Problems

In Chapter 6 we wrote the O�E solution in terms of the principal and spurious roots

as follows:

un = c11(�1)n

1~x1 + � � �+ cm1(�m)

n

1~xm + � � �+ cM1(�M)

n

1~xM + P:S:

+c12(�1)n

2~x1 + � � �+ cm2(�m)

n

2~xm + � � �+ cM2(�M)

n

2~xM

+c13(�1)n

3~x1 + � � �+ cm3(�m)

n

3~xm + � � �+ cM3(�M)

n

3~xM

+etc., if there are more spurious roots (8.8)

When solving a steady problem, we have no interest whatsoever in the transient por-

tion of the solution. Our sole goal is to eliminate it as quickly as possible. Therefore,

Page 169: Fundamentals of Computational Fluid Dynamics.pdf

8.7. PROBLEMS 161

the choice of a time-marching method for a steady problem is similar to that for a

sti� problem, the di�erence being that the order of accuracy is irrelevant. Hence the

explicit Euler method is a candidate for steady di�usion dominated problems, and

the fourth-order Runge-Kutta method is a candidate for steady convection dominated

problems, because of their stability properties. Among implicit methods, the implicit

Euler method is the obvious choice for steady problems.

When we seek only the steady solution, all of the eigenvalues can be considered to

be parasitic. Referring to Fig. 8.1, none of the eigenvalues are required to fall in the

accurate region of the time-marching method. Therefore the time step can be chosen

to eliminate the transient as quickly as possible with no regard for time accuracy.

For example, when using the implicit Euler method with local time linearization, Eq.

6.96, one would like to take the limit h !1, which leads to Newton's method, Eq.

6.98. However, a �nite time step may be required until the solution is somewhat close

to the steady solution.

8.7 Problems

1. Repeat the time-march comparisons for di�usion (Section 8.4.2) and periodic

convection (Section 8.4.3) using 2nd- and 3rd-order Runge-Kutta methods.

2. Repeat the time-march comparisons for di�usion (Section 8.4.2) and periodic

convection (Section 8.4.3) using the 3rd- and 4th-order Adams-Bashforth meth-

ods. Considering the stability bounds for these methods (see problem 4 in

Chapter 7) as well as their memory requirements, compare and contrast them

with the 3rd- and 4th-order Runge-Kutta methods.

3. Consider the di�usion equation (with � = 1) discretized using 2nd-order central

di�erences on a grid with 10 (interior) points. Find and plot the eigenvalues

and the corresponding modi�ed wavenumbers. If we use the explicit Euler time-

marching method what is the maximum allowable time step if all but the �rst

two eigenvectors are considered parasitic? Assume that su�cient accuracy is

obtained as long as j�hj � 0:1. What is the maximum allowable time step if all

but the �rst eigenvector are considered parasitic?

Page 170: Fundamentals of Computational Fluid Dynamics.pdf

162 CHAPTER 8. CHOICE OF TIME-MARCHING METHODS

Page 171: Fundamentals of Computational Fluid Dynamics.pdf

Chapter 9

RELAXATION METHODS

In the past three chapters, we developed a methodology for designing, analyzing,

and choosing time-marching methods. These methods can be used to compute the

time-accurate solution to linear and nonlinear systems of ODE's in the general form

d~u

dt= ~F (~u; t) (9.1)

which arise after spatial discretization of a PDE. Alternatively, they can be used to

solve for the steady solution of Eq. 9.1, which satis�es the following coupled system

of nonlinear algebraic equations:

~F (~u) = 0 (9.2)

In the latter case, the unsteady equations are integrated until the solution converges

to a steady solution. The same approach permits a time-marching method to be used

to solve a linear system of algebraic equations in the form

A~x = ~b (9.3)

To solve this system using a time-marching method, a time derivative is introduced

as follows

d~x

dt= A~x�~b (9.4)

and the system is integrated in time until the transient has decayed to a su�ciently

low level. Following a time-dependent path to steady state is possible only if all of

the eigenvalues of the matrix A (or �A) have real parts lying in the left half-plane.

Although the solution ~x = A�1~b exists as long as A is nonsingular, the ODE given by

Eq. 9.4 has a stable steady solution only if A meets the above condition.

163

Page 172: Fundamentals of Computational Fluid Dynamics.pdf

164 CHAPTER 9. RELAXATION METHODS

The common feature of all time-marching methods is that they are at least �rst-

order accurate. In this chapter, we consider iterative methods which are not time

accurate at all. Such methods are known as relaxation methods. While they are

applicable to coupled systems of nonlinear algebraic equations in the form of Eq. 9.2,

our analysis will focus on their application to large sparse linear systems of equations

in the form

Ab~u� ~f b = 0 (9.5)

where Ab is nonsingular, and the use of the subscript b will become clear shortly. Such

systems of equations arise, for example, at each time step of an implicit time-marching

method or at each iteration of Newton's method. Using an iterative method, we seek

to obtain rapidly a solution which is arbitrarily close to the exact solution of Eq. 9.5,

which is given by

~u1 = A�1b~f b (9.6)

9.1 Formulation of the Model Problem

9.1.1 Preconditioning the Basic Matrix

It is standard practice in applying relaxation procedures to precondition the basic

equation. This preconditioning has the e�ect of multiplying Eq. 9.5 from the left

by some nonsingular matrix. In the simplest possible case the conditioning matrix

is a diagonal matrix composed of a constant D(b). If we designate the conditioning

matrix by C, the problem becomes one of solving for ~u in

CAb~u� C~f b = 0 (9.7)

Notice that the solution of Eq. 9.7 is

~u = [CAb]�1C~f b = A�1b C�1C~f b = A�1b

~f b (9.8)

which is identical to the solution of Eq. 9.5, provided C�1 exists.

In the following we will see that our approach to the iterative solution of Eq. 9.7

depends crucially on the eigenvalue and eigenvector structure of the matrix CAb, and,

equally important, does not depend at all on the eigensystem of the basic matrix Ab.

For example, there are well-known techniques for accelerating relaxation schemes if

the eigenvalues of CAb are all real and of the same sign. To use these schemes, the

Page 173: Fundamentals of Computational Fluid Dynamics.pdf

9.1. FORMULATION OF THE MODEL PROBLEM 165

conditioning matrix C must be chosen such that this requirement is satis�ed. A

choice of C which ensures this condition is the negative transpose of Ab.

For example, consider a spatial discretization of the linear convection equation

using centered di�erences with a Dirichlet condition on the left side and no constraint

on the right side. Using a �rst-order backward di�erence on the right side (as in

Section 3.6), this leads to the approximation

�x~u =1

2�x

8>>>>>><>>>>>>:

26666664

0 1

�1 0 1

�1 0 1

�1 0 1

�2 2

37777775~u+

26666664

�ua0

0

0

0

37777775

9>>>>>>=>>>>>>;

(9.9)

The matrix in Eq. 9.9 has eigenvalues whose imaginary parts are much larger than

their real parts. It can �rst be conditioned so that the modulus of each element is 1.

This is accomplished using a diagonal preconditioning matrix

D = 2�x

26666664

1 0 0 0 0

0 1 0 0 0

0 0 1 0 0

0 0 0 1 0

0 0 0 0 12

37777775 (9.10)

which scales each row. We then further condition with multiplication by the negative

transpose. The result is

A2 = �AT1A1 =

26666664

0 1

�1 0 1

�1 0 1

�1 0 1

�1 �1

37777775

26666664

0 1

�1 0 1

�1 0 1

�1 0 1

�1 1

37777775

=

26666664

�1 0 1

0 �2 0 1

1 0 �2 0 1

1 0 �2 1

1 1 �2

37777775 (9.11)

Page 174: Fundamentals of Computational Fluid Dynamics.pdf

166 CHAPTER 9. RELAXATION METHODS

If we de�ne a permutation matrix P 1 and carry out the process P T [�AT1A1]P (which

just reorders the elements of A1 and doesn't change the eigenvalues) we �nd

26666664

0 1 0 0 0

0 0 0 1 0

0 0 0 0 1

0 0 1 0 0

1 0 0 0 0

37777775

26666664

�1 0 1

0 �2 0 1

1 0 �2 0 1

1 0 �2 1

1 1 �2

37777775

26666664

0 0 0 0 1

1 0 0 0 0

0 0 0 1 0

0 1 0 0 0

0 0 1 0 0

37777775

=

26666664

�2 1

1 �2 1

1 �2 1

1 �2 1

1 �1

37777775 (9.12)

which has all negative real eigenvalues, as given in Appendix B. Thus even when

the basic matrix Ab has nearly imaginary eigenvalues, the conditioned matrix �ATb Ab

is nevertheless symmetric negative de�nite (i.e., symmetric with negative real eigen-

values), and the classical relaxation methods can be applied. We do not necessarily

recommend the use of �ATb as a preconditioner; we simply wish to show that a broad

range of matrices can be preconditioned into a form suitable for our analysis.

9.1.2 The Model Equations

Preconditioning processes such as those described in the last section allow us to

prepare our algebraic equations in advance so that certain eigenstructures are guar-

anteed. In the remainder of this chapter, we will thoroughly investigate some simple

equations which model these structures. We will consider the preconditioned system

of equations having the form

A~�� ~f = 0 (9.13)

where A is symmetric negative de�nite.2 The symbol for the dependent variable has

been changed to � as a reminder that the physics being modeled is no longer time

1A permutation matrix (de�ned as a matrix with exactly one 1 in each row and column and hasthe property that P T = P

�1) just rearranges the rows and columns of a matrix.2We use a symmetric negative de�nite matrix to simplify certain aspects of our analysis. Relax-

ation methods are applicable to more general matrices. The classical methods will usually convergeif Ab is diagonally dominant, as de�ned in Appendix A.

Page 175: Fundamentals of Computational Fluid Dynamics.pdf

9.1. FORMULATION OF THE MODEL PROBLEM 167

accurate when we later deal with ODE formulations. Note that the solution of Eq.

9.13, ~� = A�1~f , is guaranteed to exist because A is nonsingular. In the notation of

Eqs. 9.5 and 9.7,

A = CAb and ~f = C~f b (9.14)

The above was written to treat the general case. It is instructive in formulating the

concepts to consider the special case given by the di�usion equation in one dimension

with unit di�usion coe�cient �:

@u

@t=

@2u

@x2� g(x) (9.15)

This has the steady-state solution

@2u

@x2= g(x) (9.16)

which is the one-dimensional form of the Poisson equation. Introducing the three-

point central di�erencing scheme for the second derivative with Dirichlet boundary

conditions, we �nd

d~u

dt=

1

�x2B(1;�2; 1)~u+ (~bc)� ~g (9.17)

where (~bc) contains the boundary conditions and ~g contains the values of the source

term at the grid nodes. In this case

Ab =1

�x2B(1;�2; 1)

~fb = ~g � (~bc) (9.18)

Choosing C = �x2I, we obtain

B(1;�2; 1)~� = ~f (9.19)

where ~f = �x2~fb. If we consider a Dirichlet boundary condition on the left side and

either a Dirichlet or a Neumann condition on the right side, then A has the form

A = B�1;~b; 1

Page 176: Fundamentals of Computational Fluid Dynamics.pdf

168 CHAPTER 9. RELAXATION METHODS

~b = [�2;�2; � � � �;�2; s]T

s = �2 or � 1 (9.20)

Note that s = �1 is easily obtained from the matrix resulting from the Neumann

boundary condition given in Eq. 3.24 using a diagonal conditioning matrix. A tremen-

dous amount of insight to the basic features of relaxation is gained by an appropriate

study of the one-dimensional case, and much of the remaining material is devoted to

this case. We attempt to do this in such a way, however, that it is directly applicable

to two- and three-dimensional problems.

9.2 Classical Relaxation

9.2.1 The Delta Form of an Iterative Scheme

We will consider relaxation methods which can be expressed in the following delta

form:

Hh~�n+1 � ~�n

i= A~�n �

~f (9.21)

where H is some nonsingular matrix which depends upon the iterative method. The

matrix H is independent of n for stationary methods and is a function of n for

nonstationary ones. The iteration count is designated by the subscript n or the

superscript (n). The converged solution is designated ~�1so that

~�1= A�1~f (9.22)

9.2.2 The Converged Solution, the Residual, and the Error

Solving Eq. 9.21 for ~�n+1 gives

~�n+1 = [I +H�1A]~�n �H�1~f = G~�n �H�1~f (9.23)

where

G � I +H�1A (9.24)

Hence it is clear that H should lead to a system of equations which is easy to solve,

or at least easier to solve than the original system. The error at the nth iteration is

de�ned as

~en � ~�n � ~�1= ~�n � A�1~f (9.25)

Page 177: Fundamentals of Computational Fluid Dynamics.pdf

9.2. CLASSICAL RELAXATION 169

where ~�1was de�ned in Eq. 9.22. The residual at the nth iteration is de�ned as

~rn � A~�n �~f (9.26)

Multiply Eq. 9.25 by A from the left, and use the de�nition in Eq. 9.26. There results

the relation between the error and the residual

A~en �~rn = 0 (9.27)

Finally, it is not di�cult to show that

~en+1 = G~en (9.28)

Consequently, G is referred to as the basic iteration matrix, and its eigenvalues, which

we designate as �m, determine the convergence rate of a method.

In all of the above, we have considered only what are usually referred to as sta-

tionary processes in which H is constant throughout the iterations. Nonstationary

processes in which H (and possibly C) is varied at each iteration are discussed in

Section 9.5.

9.2.3 The Classical Methods

Point Operator Schemes in One Dimension

Let us consider three classical relaxation procedures for our model equation

B(1;�2; 1)~� = ~f (9.29)

as given in Section 9.1.2. The Point-Jacobi method is expressed in point operator

form for the one-dimensional case as

�(n+1)j =

1

2

h�(n)j�1 + �

(n)j+1 � fj

i(9.30)

This operator comes about by choosing the value of �(n+1)j such that together with

the old values of �j�1 and �j+1, the jth row of Eq. 9.29 is satis�ed. The Gauss-Seidel

method is

�(n+1)j =

1

2

h�(n+1)j�1 + �

(n)j+1 � fj

i(9.31)

This operator is a simple extension of the point-Jacobi method which uses the most

recent update of �j�1. Hence the jth row of Eq. 9.29 is satis�ed using the new values of

�j and �j�1 and the old value of �j+1. The method of successive overrelaxation (SOR)

Page 178: Fundamentals of Computational Fluid Dynamics.pdf

170 CHAPTER 9. RELAXATION METHODS

is based on the idea that if the correction produced by the Gauss-Seidel method tends

to move the solution toward ~�1, then perhaps it would be better to move further in

this direction. It is usually expressed in two steps as

~�j =1

2

h�(n+1)j�1 + �

(n)j+1 � fj

i�(n+1)j = �

(n)j + !

h~�j � �

(n)j

i(9.32)

where ! generally lies between 1 and 2, but it can also be written in the single line

�(n+1)j =

!

2�(n+1)j�1 + (1� !)�

(n)j +

!

2�(n)j+1 �

!

2fj (9.33)

The General Form

The general form of the classical methods is obtained by splitting the matrix A in

Eq. 9.13 into its diagonal, D, the portion of the matrix below the diagonal, L, and

the portion above the diagonal, U , such that

A = L+D + U (9.34)

Then the point-Jacobi method is obtained with H = �D, which certainly meets

the criterion that it is easy to solve. The Gauss-Seidel method is obtained with

H = �(L +D), which is also easy to solve, being lower triangular.

9.3 The ODE Approach to Classical Relaxation

9.3.1 The Ordinary Di�erential Equation Formulation

The particular type of delta form given by Eq. 9.21 leads to an interpretation of

relaxation methods in terms of solution techniques for coupled �rst-order ODE's,

about which we have already learned a great deal. One can easily see that Eq. 9.21

results from the application of the explicit Euler time-marching method (with h = 1)

to the following system of ODE's:

Hd~�

dt= A~�� ~f (9.35)

This is equivalent to

d~�

dt= H�1C

�Ab~�� ~f b

�= H�1[A~�� ~f ] (9.36)

Page 179: Fundamentals of Computational Fluid Dynamics.pdf

9.3. THE ODE APPROACH TO CLASSICAL RELAXATION 171

In the special case where H�1A depends on neither ~u nor t, H�1~f is also independent

of t, and the eigenvectors of H�1A are linearly independent, the solution can be

written as

~� = c1e�1t~x1 + � � �+ cMe

�M t~xM| {z }error

+~�1

(9.37)

where what is referred to in time-accurate analysis as the transient solution, is now

referred to in relaxation analysis as the error. It is clear that, if all of the eigenvalues

of H�1A have negative real parts (which implies that H�1A is nonsingular), then the

system of ODE's has a steady-state solution which is approached as t!1, given by

~�1= A�1~f (9.38)

which is the solution of Eq. 9.13. We see that the goal of a relaxation method is to

remove the transient solution from the general solution in the most e�cient way pos-

sible. The � eigenvalues are �xed by the basic matrix in Eq. 9.36, the preconditioning

matrix in 9.7, and the secondary conditioning matrix in 9.35. The � eigenvalues are

�xed for a given �h by the choice of time-marching method. Throughout the remain-

ing discussion we will refer to the independent variable t as \time", even though no

true time accuracy is involved.

In a stationary method, H and C in Eq. 9.36 are independent of t, that is, they

are not changed throughout the iteration process. The generalization of this in our

approach is to make h, the \time" step, a constant for the entire iteration.

Suppose the explicit Euler method is used for the time integration. For this method

�m = 1 + �mh. Hence the numerical solution after n steps of a stationary relaxation

method can be expressed as (see Eq. 6.28)

~�n = c1~x1(1 + �1h)n + � � �+ cm~xm(1 + �mh)

n + � � �+ cM~xM(1 + �Mh)n| {z }

error

+~�1(9.39)

The initial amplitudes of the eigenvectors are given by the magnitudes of the cm.

These are �xed by the initial guess. In general it is assumed that any or all of the

eigenvectors could have been given an equally \bad" excitation by the initial guess,

so that we must devise a way to remove them all from the general solution on an

equal basis. Assuming that H�1A has been chosen (that is, an iteration process has

been decided upon), the only free choice remaining to accelerate the removal of the

error terms is the choice of h. As we shall see, the three classical methods have all

been conditioned by the choice of H to have an optimum h equal to 1 for a stationary

iteration process.

Page 180: Fundamentals of Computational Fluid Dynamics.pdf

172 CHAPTER 9. RELAXATION METHODS

9.3.2 ODE Form of the Classical Methods

The three iterative procedures de�ned by Eqs. 9.30, 9.31 and 9.32 obey no apparent

pattern except that they are easy to implement in a computer code since all of the

data required to update the value of one point are explicitly available at the time

of the update. Now let us study these methods as subsets of ODE as formulated in

Section 9.3.1. Insert the model equation 9.29 into the ODE form 9.35. Then

Hd~�

dt= B(1;�2; 1)~�� ~f (9.40)

As a start, let us use for the numerical integration the explicit Euler method

�n+1 = �n + h�0n (9.41)

with a step size, h, equal to 1. We arrive at

H(~�n+1 � ~�n) = B(1;�2; 1)~�n �~f (9.42)

It is clear that the best choice of H from the point of view of matrix algebra is

�B(1;�2; 1) since then multiplication from the left by �B�1(1;�2; 1) gives the cor-rect answer in one step. However, this is not in the spirit of our study, since multi-

plication by the inverse amounts to solving the problem by a direct method without

iteration. The constraint on H that is in keeping with the formulation of the three

methods described in Section 9.2.3 is that all the elements above the diagonal (or

below the diagonal if the sweeps are from right to left) are zero. If we impose this

constraint and further restrict ourselves to banded tridiagonals with a single constant

in each band, we are led to

B(��;2

!; 0)(~�n+1 � ~�n) = B(1;�2; 1)~�n �

~f (9.43)

where � and ! are arbitrary. With this choice of notation the three methods presented

in Section 9.2.3 can be identi�ed using the entries in Table 9.1.

TABLE 9.1: VALUES OF � and ! IN EQ. 9.43 THAT

LEAD TO CLASSICAL RELAXATION METHODS

� ! Method Equation

0 1 Point-Jacobi 6:2:3

1 1 Gauss-Seidel 6:2:4

1 2=h1 + sin

��

M + 1

�iOptimum SOR 6:2:5

Page 181: Fundamentals of Computational Fluid Dynamics.pdf

9.4. EIGENSYSTEMS OF THE CLASSICAL METHODS 173

The fact that the values in the tables lead to the methods indicated can be veri�ed

by simple algebraic manipulation. However, our purpose is to examine the whole

procedure as a special subset of the theory of ordinary di�erential equations. In this

light, the three methods are all contained in the following set of ODE's

d~�

dt= B�1(��;

2

!; 0)

�B(1;�2; 1)~�� ~f

�(9.44)

and appear from it in the special case when the explicit Euler method is used for its

numerical integration. The point operator that results from the use of the explicit

Euler scheme is

�(n+1)j =

!�

2�(n+1)j�1 +

!

2(h� �)�

(n)j�1

!��(!h� 1)�

(n)j

�+

!h

2�(n)j+1

!�!h

2fj(9.45)

This represents a generalization of the classical relaxation techniques.

9.4 Eigensystems of the Classical Methods

The ODE approach to relaxation can be summarized as follows. The basic equation

to be solved came from some time-accurate derivation

Ab~u� ~f b = 0 (9.46)

This equation is preconditioned in some manner which has the e�ect of multiplication

by a conditioning matrix C giving

A~�� ~f = 0 (9.47)

An iterative scheme is developed to �nd the converged, or steady-state, solution of

the set of ODE's

Hd~�

dt= A~�� ~f (9.48)

This solution has the analytical form

~�n =~en + ~�

1(9.49)

where ~en is the transient, or error, and ~�1� A�1~f is the steady-state solution. The

three classical methods, Point-Jacobi, Gauss-Seidel, and SOR, are identi�ed for the

one-dimensional case by Eq. 9.44 and Table 9.1.

Page 182: Fundamentals of Computational Fluid Dynamics.pdf

174 CHAPTER 9. RELAXATION METHODS

Given our assumption that the component of the error associated with each eigen-

vector is equally likely to be excited, the asymptotic convergence rate is determined

by the eigenvalue �m of G (� I +H�1A) having maximum absolute value. Thus

Convergence rate � j�mjmax ; m = 1; 2; � � � ;M (9.50)

In this section, we use the ODE analysis to �nd the convergence rates of the three

classical methods represented by Eqs. 9.30, 9.31, and 9.32. It is also instructive to

inspect the eigenvectors and eigenvalues in the H�1A matrix for the three methods.

This amounts to solving the generalized eigenvalue problem

A~xm = �mH~xm (9.51)

for the special case

B(1;�2; 1)~xm = �mB(��;2

!; 0)~xm (9.52)

The generalized eigensystem for simple tridigonals is given in Appendix B.2. The

three special cases considered below are obtained with a = 1, b = �2, c = 1, d = ��,e = 2=!, and f = 0. To illustrate the behavior, we take M = 5 for the matrix order.

This special case makes the general result quite clear.

9.4.1 The Point-Jacobi System

If � = 0 and ! = 1 in Eq. 9.44, the ODE matrixH�1A reduces to simply B(12 ;�1;12).

The eigensystem can be determined from Appendix B.1 since both d and f are zero.

The eigenvalues are given by the equation

�m = �1 + cos

�m�

M + 1

�; m = 1; 2; : : : ;M (9.53)

The �-� relation for the explicit Euler method is �m = 1 + �mh. This relation can

be plotted for any h. The plot for h = 1, the optimum stationary case, is shown in

Fig. 9.1. For h < 1, the maximum j�mj is obtained with m = 1, Fig. 9.2 and for

h > 1, the maximum j�mj is obtained with m = M , Fig. 9.3. Note that for h > 1:0

(depending on M) there is the possibility of instability, i.e. j�mj > 1:0. To obtain the

optimal scheme we wish to minimize the maximum j�mj which occurs when h = 1,

j�1j = j�M j and the best possible convergence rate is achieved:

j�mjmax = cos

��

M + 1

�(9.54)

Page 183: Fundamentals of Computational Fluid Dynamics.pdf

9.4. EIGENSYSTEMS OF THE CLASSICAL METHODS 175

For M = 40, we obtain j�mjmax = 0:9971. Thus after 500 iterations the error content

associated with each eigenvector is reduced to no more than 0.23 times its initial level.

Again from Appendix B.1, the eigenvectors of H�1A are given by

~xj = (xj)m = sin

�j

�m�

M + 1

��; j = 1; 2; : : : ;M (9.55)

This is a very \well-behaved" eigensystem with linearly independent eigenvectors and

distinct eigenvalues. The �rst 5 eigenvectors are simple sine waves. For M = 5, the

eigenvectors can be written as

~x1 =

26666664

1=2p3=2

1p3=2

1=2

37777775 ;~x2 =

26666664

p3=2p3=2

0

�p3=2

�p3=2

37777775 ;~x3 =

26666664

1

0

�10

1

37777775 ;

~x4 =

26666664

p3=2

�p3=2

0p3=2

�p3=2

37777775 ;~x5 =

26666664

1=2

�p3=2

1

�p3=2

1=2

37777775 (9.56)

The corresponding eigenvalues are, from Eq. 9.53

�1 = �1 +p32 = �0:134 � � �

�2 = �1 + 12 = �0:5

�3 = �1 = �1:0

�4 = �1� 12 = �1:5

�5 = �1�p32 = �1:866 � � �

(9.57)

From Eq. 9.39, the numerical solution written in full is

~�n � ~�1

= c1[1� (1�

p3

2)h]n~x1

+ c2[1� (1�1

2)h]n~x2

Page 184: Fundamentals of Computational Fluid Dynamics.pdf

176 CHAPTER 9. RELAXATION METHODS

σm

1.0

0.0

-2.0 -1.0 0.0

h = 1.0

Μ = 5

Values are equal

m=1

m=2

m=3

m=4

m=5

Figure 9.1: The �; � relation for Point-Jacobi, h = 1;M = 5.

+ c3[1� (1 )h]n~x3

+ c4[1� (1 +1

2)h]n~x4

+ c5[1� (1 +

p3

2)h]n~x5 (9.58)

9.4.2 The Gauss-Seidel System

If � and ! are equal to 1 in Eq. 9.44, the matrix eigensystem evolves from the relation

B(1;�2; 1)~xm = �mB(�1; 2; 0)~xm (9.59)

which can be studied using the results in Appendix B.2. One can show that the H�1A

matrix for the Gauss-Seidel method, AGS , is

AGS � B�1(�1; 2; 0)B(1;�2; 1) =

Page 185: Fundamentals of Computational Fluid Dynamics.pdf

9.4. EIGENSYSTEMS OF THE CLASSICAL METHODS 177

σm

λmh

1.0

0.0

-2.0 -1.0 0.0

h < 1.0

Decreasing h

Approaches 1.0

Decreasing h

Figure 9.2: The �; � relation for Point-Jacobi, h = 0:9;M = 5.

σm

Exceeds 1.0 at h 1.072 / Ustable h > 1.072∼∼

1.0

0.0

-2.0 -1.0 0.0

h > 1.0

Increasing h

λmh

M = 5

Increasing h

Figure 9.3: The �; � relation for Point-Jacobi, h = 1:1;M = 5.

Page 186: Fundamentals of Computational Fluid Dynamics.pdf

178 CHAPTER 9. RELAXATION METHODS

2666666666664

�1 1=2

0 �3=4 1=2

0 1=8 �3=4 1=2

0 1=16 1=8 �3=4 1=2

0 1=32 1=16 1=8 �3=4 1=2...

.... . .

. . .. . .

. . .. . .

0 1=2M � � �

3777777777775

1

2

3

4

5...

M

(9.60)

The eigenvector structure of the Gauss-Seidel ODE matrix is quite interesting. If M

is odd there are (M + 1)=2 distinct eigenvalues with corresponding linearly indepen-

dent eigenvectors, and there are (M � 1)=2 defective eigenvalues with corresponding

principal vectors. The equation for the nondefective eigenvalues in the ODE matrix

is (for odd M)

�m = �1 + cos2(m�

M + 1) ; m = 1; 2; : : : ;

M + 1

2(9.61)

and the corresponding eigenvectors are given by

~xm =

�cos

�m�

M + 1

��j�1sin

�j

�m�

M + 1

��; m = 1; 2; : : : ;

M + 1

2(9.62)

The �-� relation for h = 1, the optimum stationary case, is shown in Fig. 9.4. The

�m with the largest amplitude is obtained with m = 1. Hence the convergence rate is

j�mjmax =�cos

��

M + 1

��2(9.63)

Since this is the square of that obtained for the Point-Jacobi method, the error associ-

ated with the \worst" eigenvector is removed in half as many iterations. ForM = 40,

j�mjmax = 0:9942. 250 iterations are required to reduce the error component of the

worst eigenvector by a factor of roughly 0.23.

The eigenvectors are quite unlike the Point-Jacobi set. They are no longer sym-

metrical, producing waves that are higher in amplitude on one side (the updated side)

than they are on the other. Furthermore, they do not represent a common family for

di�erent values of M .

The Jordan canonical form for M = 5 is

X�1AGSX = JGS =

2666666664

h~�1

ih~�2

i2664~�3 1

~�3 1~�3

3775

3777777775

(9.64)

Page 187: Fundamentals of Computational Fluid Dynamics.pdf

9.4. EIGENSYSTEMS OF THE CLASSICAL METHODS 179

σm

λ m

λm

1.0

0.0

-2.0 -1.0 0.0

h = 1.0

Μ = 5

-1.0-1.0

2 defective

h

Figure 9.4: The �; � relation for Gauss-Seidel, h = 1:0;M = 5.

The eigenvectors and principal vectors are all real. For M = 5 they can be written

~x1 =

26666664

1=2

3=4

3=4

9=16

9=32

37777775 ;~x2 =

26666664

p3=2p3=4

0

�p3=16

�p3=32

37777775 ;~x3 =

26666664

1

0

0

0

0

37777775 ;~x4 =

26666664

0

2

�10

0

37777775 ;~x5 =

26666664

0

0

4

�41

37777775 (9.65)

The corresponding eigenvalues are

�1 = �1=4�2 = �3=4�3 = �1

(4)

(5)

)Defective, linked to

�3 Jordan block(9.66)

The numerical solution written in full is thus

~�n � ~�1

= c1(1�h

4)n~x1

+ c2(1�3h

4)n~x2

Page 188: Fundamentals of Computational Fluid Dynamics.pdf

180 CHAPTER 9. RELAXATION METHODS

+

"c3(1� h)n + c4h

n

1!(1� h)n�1 + c5h

2n(n� 1)

2!(1� h)n�2

#~x3

+

�c4(1� h)n + c5h

n

1!(1� h)n�1

�~x4

+ c5(1� h)n~x5 (9.67)

9.4.3 The SOR System

If � = 1 and 2=! = x in Eq. 9.44, the ODE matrix is B�1(�1; x; 0)B(1;�2; 1).One can show that this can be written in the form given below for M = 5. The

generalization to any M is fairly clear. The H�1A matrix for the SOR method,

ASOR � B�1(�1; x; 0)B(1;�2; 1), is

1

x5

26666664

�2x4 x4 0 0 0

�2x3 + x4 x3 � 2x4 x4 0 0

�2x2 + x3 x2 � 2x3 + x4 x3 � 2x4 x4 0

�2x + x2 x� 2x2 + x3 x2 � 2x3 + x4 x3 � 2x4 x4

�2 + x 1� 2x + x2 x� 2x2 + x3 x2 � 2x3 + x4 x3 � 2x4

37777775 (9.68)

Eigenvalues of the system are given by

�m = �1 +�!pm + zm

2

�2; m = 1; 2; : : :M (9.69)

where

zm = [4(1� !) + !2p2m]1=2

pm = cos[m�=(M + 1)]

If ! = 1, the system is Gauss-Seidel. If 4(1�!)+!2pm < 0; zm and �m are complex.

If ! is chosen such that 4(1 � !) + !2p21 = 0; ! is optimum for the stationary case,

and the following conditions hold:

1. Two eigenvalues are real, equal and defective.

2. If M is even, the remaining eigenvalues are complex and occur in conjugate

pairs.

3. If M is odd, one of the remaining eigenvalues is real and the others are complex

occurring in conjugate pairs.

Page 189: Fundamentals of Computational Fluid Dynamics.pdf

9.4. EIGENSYSTEMS OF THE CLASSICAL METHODS 181

One can easily show that the optimum ! for the stationary case is

!opt = 2=

�1 + sin

��

M + 1

��(9.70)

and for ! = !opt

�m = �2m � 1

~xm = �j�1m sin

�j

�m�

M + 1

��(9.71)

where

�m =!opt

2

�pm + i

qp21 � p2m

Using the explicit Euler method to integrate the ODE's, �m = 1 � h + h�2m, and if

h = 1, the optimum value for the stationary case, the �-� relation reduces to that

shown in Fig. 9.5. This illustrates the fact that for optimum stationary SOR all the

j�mj are identical and equal to !opt � 1. Hence the convergence rate is

j�mjmax = !opt � 1 (9.72)

!opt = 2=

�1 + sin

��

M + 1

��

For M = 40, j�mjmax = 0:8578. Hence the worst error component is reduced to less

than 0.23 times its initial value in only 10 iterations, much faster than both Gauss-

Seidel and Point-Jacobi. In practical applications, the optimum value of ! may have

to be determined by trial and error, and the bene�t may not be as great.

For odd M , there are two real eigenvectors and one real principal vector. The

remaining linearly independent eigenvectors are all complex. For M = 5 they can be

written

~x1 =

26666664

1=2

1=2

1=3

1=6

1=18

37777775 ;~x2 =

26666664

�69

16

13

6

37777775 ;~x3;4 =

26666664

p3(1 )=2p3(1� i

p2)=6

0p3(5� i

p2)=54p

3(7� 4ip2)=162

37777775 ;~x5 =

26666664

1

0

1=3

0

1=9

37777775 (9.73)

The corresponding eigenvalues are

�1 = �2=3(2) Defective linked to �1

�3 = �(10� 2p2i)=9

�4 = �(10 + 2p2i)=9

�5 = �4=3 (9.74)

Page 190: Fundamentals of Computational Fluid Dynamics.pdf

182 CHAPTER 9. RELAXATION METHODS

σm

λ m

λ m

λ m

1.0

0.0

-2.0 -1.0 0.0

h = 1.0

Μ = 5

-1.0-1.0

2 real defective

1 real

2 complex

hλ m

Figure 9.5: The �; � relation for optimum stationary SOR, M = 5, h = 1.

The numerical solution written in full is

~�n � ~�1

= [c1(1� 2h=3)n + c2nh(1� 2h=3)n�1]~x1

+ c2(1� 2h=3)n~x2

+ c3[1� (10� 2p2i)h=9]n~x3

+ c4[1� (10 + 2p2i)h=9]n~x4

+ c5(1� 4h=3)n~x5 (9.75)

9.5 Nonstationary Processes

In classical terminology a method is said to be nonstationary if the conditioning

matrices, H and C, are varied at each time step. This does not change the steady-

state solution A�1b~f b, but it can greatly a�ect the convergence rate. In our ODE

approach this could also be considered and would lead to a study of equations with

nonconstant coe�cients. It is much simpler, however, to study the case of �xed

H and C but variable step size, h. This process changes the Point-Jacobi method

to Richardson's method in standard terminology. For the Gauss-Seidel and SOR

methods it leads to processes that can be superior to the stationary methods.

The nonstationary form of Eq. 9.39 is

Page 191: Fundamentals of Computational Fluid Dynamics.pdf

9.5. NONSTATIONARY PROCESSES 183

~�N = c1~x1

NYn=1

(1 + �1hn) + � � �+ cm~xm

NYn=1

(1 + �mhn)

+ � � �+ cM~xM

NYn=1

(1 + �Mhn) + ~�1

(9.76)

where the symbol � stands for product. Since hn can now be changed at each step,

the error term can theoretically be completely eliminated in M steps by taking hm =

�1=�m, form = 1; 2; � � � ;M . However, the eigenvalues �m are generally unknown and

costly to compute. It is therefore unnecessary and impractical to set hm = �1=�mfor m = 1; 2; : : : ;M . We will see that a few well chosen h's can reduce whole clusters

of eigenvectors associated with nearby �'s in the �m spectrum. This leads to the

concept of selectively annihilating clusters of eigenvectors from the error terms as

part of a total iteration process. This is the basis for the multigrid methods discussed

in Chapter 10.

Let us consider the very important case when all of the �m are real and nega-

tive (remember that they arise from a conditioned matrix so this constraint is not

unrealistic for quite practical cases). Consider one of the error terms taken from

~eN � ~�N � ~�1=

MXm=1

cm~xm

NYn=1

(1 + �mhn) (9.77)

and write it in the form

cm~xmPe(�m) � cm~xm

NYn=1

(1 + �mhn) (9.78)

where Pe signi�es an \Euler" polynomial. Now focus attention on the polynomial

(Pe)N(�) = (1 + h1�)(1 + h2�) � � � (1 + hN�) (9.79)

treating it as a continuous function of the independent variable �. In the annihilation

process mentioned after Eq. 9.76, we considered making the error exactly zero by

taking advantage of some knowledge about the discrete values of �m for a particular

case. Now we pose a less demanding problem. Let us choose the hn so that the

maximum value of (Pe)N(�) is as small as possible for all � lying between �a and �bsuch that �b � � � �a � 0. Mathematically stated, we seek

max�b����a

j(Pe)N(�)j = minimum ; with(Pe)N(0) = 1 (9.80)

Page 192: Fundamentals of Computational Fluid Dynamics.pdf

184 CHAPTER 9. RELAXATION METHODS

This problem has a well known solution due to Markov. It is

(Pe)N(�) =

TN

2�� �a � �b

�a � �b

!

TN

��a � �b

�a � �b

! (9.81)

where

TN(y) = cos(N arccos y) (9.82)

are the Chebyshev polynomials along the interval �1 � y � 1 and

TN(y) =1

2

�y +

qy2 � 1

�N+1

2

�y �

qy2 � 1

�N(9.83)

are the Chebyshev polynomials for jyj > 1. In relaxation terminology this is generally

referred to as Richardson's method, and it leads to the nonstationary step size choice

given by

1

hn=

1

2

(��b � �a + (�b � �a) cos

"(2n� 1)�

2N

#); n = 1; 2; : : :N (9.84)

Remember that all � are negative real numbers representing the magnitudes of �m in

an eigenvalue spectrum.

The error in the relaxation process represented by Eq. 9.76 is expressed in terms

of a set of eigenvectors, ~xm, ampli�ed by the coe�cients cmQ(1 + �mhn). With each

eigenvector there is a corresponding eigenvalue. Eq. 9.84 gives us the best choice of a

series of hn that will minimize the amplitude of the error carried in the eigenvectors

associated with the eigenvalues between �b and �a.

As an example for the use of Eq. 9.84, let us consider the following problem:

Minimize the maximum error asso-

ciated with the � eigenvalues in the

interval �2 � � � �1 using only 3

iterations.

(9.85)

The three values of h which satisfy this problem are

hn = 2=

3� cos

"(2n� 1)�

6

#!(9.86)

Page 193: Fundamentals of Computational Fluid Dynamics.pdf

9.5. NONSTATIONARY PROCESSES 185

and the amplitude of the eigenvector is reduced to

(Pe)3(�) = T3(2�+ 3)=T3(3) (9.87)

where

T3(3) =n[3 +

p8]3 + [3�

p8]3o=2 � 99 (9.88)

A plot of Eq. 9.87 is given in Fig. 9.6 and we see that the amplitudes of all the

eigenvectors associated with the eigenvalues in the range �2 � � � �1 have been

reduced to less than about 1% of their initial values. The values of h used in Fig. 9.6

are

h1 = 4=(6�p3)

h2 = 4=(6� 0)

h3 = 4=(6 +p3)

Return now to Eq. 9.76. This was derived from Eq. 9.37 on the condition that the

explicit Euler method, Eq. 9.41, was used to integrate the basic ODE's. If instead

the implicit trapezoidal rule

�n+1 = �n +1

2h(�0n+1 + �0n) (9.89)

is used, the nonstationary formula

~�N =MXm=1

cm~xm

NYn=1

0BB@1 +

1

2hn�m

1�1

2hn�m

1CCA+ ~�

1(9.90)

would result. This calls for a study of the rational \trapezoidal" polynomial, Pt:

(Pt)N(�) =NYn=1

0BB@1 +

1

2hn�

1�1

2hn�

1CCA (9.91)

under the same constraints as before, namely that

max�b����a

j(Pt)N(�)j = minimum , (9.92)

with (Pt)N(0) = 1

Page 194: Fundamentals of Computational Fluid Dynamics.pdf

186 CHAPTER 9. RELAXATION METHODS

−2 −1.8 −1.6 −1.4 −1.2 −1 −0.8 −0.6 −0.4 −0.2 0

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

λ

(Pe )

3 (λ)

−2 −1.8 −1.6 −1.4 −1.2 −1 −0.8 −0.6 −0.4 −0.2 0−0.02

−0.015

−0.01

−0.005

0

0.005

0.01

0.015

0.02

λ

(Pe )

3 (λ)

Figure 9.6: Richardson's method for 3 steps, minimization over �2 � � � �1.

Page 195: Fundamentals of Computational Fluid Dynamics.pdf

9.6. PROBLEMS 187

The optimum values of h can also be found for this problem, but we settle here for

the approximation suggested by Wachspress

2

hn= ��b

�a

�b

!(n�1)=(N�1)

; n = 1; 2; � � � ; N (9.93)

This process is also applied to problem 9.85. The results for (Pt)3(�) are shown in

Fig. 9.7. The error amplitude is about 1/5 of that found for (Pe)3(�) in the same

interval of �. The values of h used in Fig. 9.7 are

h1 = 1

h2 =p2

h3 = 2

9.6 Problems

1. Given a relaxation method in the form

H�~�n = A~�n � ~f

show that

~�n = Gn~�0 + (I �Gn)A�1 ~f

where G = I +H�1A.

2. For a linear system of the form (A1 + A2)x = b, consider the iterative method

(I + �A1)~x = (I � �A2)xn + �b

(I + �A2)xn+1 = (I � �A1)~x+ �b

where � is a parameter. Show that this iterative method can be written in the

form

H(xk+1 � xk) = (A1 + A2)xk � b

Determine the iteration matrix G if � = �1=2.

3. Using Appendix B.2, �nd the eigenvalues of H�1A for the SOR method with

A = B(4 : 1;�2; 1) and ! = !opt. (You do not have to �nd H�1. Recall that

the eigenvalues of H�1A satisfy A~xm = �mH~xm.) Find the numerical values,

not just the expressions. Then �nd the corresponding j�mj values.

Page 196: Fundamentals of Computational Fluid Dynamics.pdf

188 CHAPTER 9. RELAXATION METHODS

−2 −1.8 −1.6 −1.4 −1.2 −1 −0.8 −0.6 −0.4 −0.2 0

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

λ

(P

t )3 (

λ)

−2 −1.8 −1.6 −1.4 −1.2 −1 −0.8 −0.6 −0.4 −0.2 0−2

−1.5

−1

−0.5

0

0.5

1

1.5

2x 10

−3

λ

(P

t )3 (

λ)

Figure 9.7: Wachspress method for 3 steps, minimization over �2 � � � �1.

Page 197: Fundamentals of Computational Fluid Dynamics.pdf

9.6. PROBLEMS 189

4. Solve the following equation on the domain 0 � x � 1 with boundary conditions

u(0) = 0, u(1) = 1:

@2u

@x2� 6x = 0

For the initial condition, use u(x) = 0. Use second-order centered di�erences

on a grid with 40 cells (M = 39). Iterate to steady state using

(a) the point-Jacobi method,

(b) the Gauss-Seidel method,

(c) the SOR method with the optimum value of !, and

(d) the 3-step Richardson method derived in Section 9.5.

Plot the solution after the residual is reduced by 2, 3, and 4 orders of mag-

nitude. Plot the logarithm of the L2-norm of the residual vs. the number of

iterations. Determine the asymptotic convergence rate. Compare with the the-

oretical asymptotic convergence rate.

Page 198: Fundamentals of Computational Fluid Dynamics.pdf

190 CHAPTER 9. RELAXATION METHODS

Page 199: Fundamentals of Computational Fluid Dynamics.pdf

Chapter 10

MULTIGRID

The idea of systematically using sets of coarser grids to accelerate the convergence of

iterative schemes that arise from the numerical solution to partial di�erential equa-

tions was made popular by the work of Brandt. There are many variations of the

process and many viewpoints of the underlying theory. The viewpoint presented here

is a natural extension of the concepts discussed in Chapter 9.

10.1 Motivation

10.1.1 Eigenvector and Eigenvalue Identi�cation with Space

Frequencies

Consider the eigensystem of the model matrix B(1;�2; 1). The eigenvalues and

eigenvectors are given in Sections 4.3.2 and 4.3.3, respectively. Notice that as the

magnitudes of the eigenvalues increase, the space-frequency (or wavenumber) of the

corresponding eigenvectors also increase. That is, if the eigenvalues are ordered such

that

j�1j � j�2j � � � � � j�M j (10.1)

then the corresponding eigenvectors are ordered from low to high space frequencies.

This has a rational explanation from the origin of the banded matrix. Note that

@2

@x2sin(mx) = �m2 sin(mx) (10.2)

and recall that

�xx~� =1

�x2B(1;�2; 1)~� = X

�1

�x2D(~�)

�X�1~� (10.3)

191

Page 200: Fundamentals of Computational Fluid Dynamics.pdf

192 CHAPTER 10. MULTIGRID

where D(~�) is a diagonal matrix containing the eigenvalues. We have seen that

X�1~� represents a sine transform, and X~�, a sine synthesis. Therefore, the opera-

tion 1�x2

D(~�) represents the numerical approximation of the multiplication of the

appropriate sine wave by the negative square of its wavenumber, �m2. One �nds

that

1

�x2�m =

�M + 1

�2��2 + 2 cos

�m�

M + 1

��� �m2 ; m << M (10.4)

Hence, the correlation of large magnitudes of �m with high space-frequencies is to be

expected for these particular matrix operators. This is consistent with the physics of

di�usion as well. However, this correlation is not necessary in general. In fact, the

complete counterexample of the above association is contained in the eigensystem

for B(12 ; 1;12). For this matrix one �nds, from Appendix B, exactly the opposite

behavior.

10.1.2 Properties of the Iterative Method

The second key motivation for multigrid is the following:

� Many iterative methods reduce error components corresponding to eigenvalues

of large amplitude more e�ectively than those corresponding to eigenvalues of

small amplitude.

This is to be expected of an iterative method which is time accurate. It is also

true, for example, of the Gauss-Seidel method and, by design, of the Richardson

method described in Section 9.5. The classical point-Jacobi method does not share

this property. As we saw in Section 9.4.1, this method produces the same value of j�j

for �min and �max. However, the property can be restored by using h < 1, as shown

in Fig. 9.2.

When an iterative method with this property is applied to a matrix with the

above correlation between the modulus of the eigenvalues and the space frequency of

the eigenvectors, error components corresponding to high space frequencies will be

reduced more quickly than those corresponding to low space frequencies. This is the

key concept underlying the multigrid process.

10.2 The Basic Process

First of all we assume that the di�erence equations representing the basic partial

di�erential equations are in a form that can be related to a matrix which has certain

Page 201: Fundamentals of Computational Fluid Dynamics.pdf

10.2. THE BASIC PROCESS 193

basic properties. This form can be arrived at \naturally" by simply replacing the

derivatives in the PDE with di�erence schemes, as in the example given by Eq. 3.27,

or it can be \contrived" by further conditioning, as in the examples given by Eq. 9.11.

The basic assumptions required for our description of the multigrid process are:

1. The problem is linear.

2. The eigenvalues, �m, of the matrix are all real and negative.

3. The �m are fairly evenly distributed between their maximum and minimum

values.

4. The eigenvectors associated with the eigenvalues having largest magnitudes can

be correlated with high frequencies on the di�erencing mesh.

5. The iterative procedure used greatly reduces the amplitudes of the eigenvectors

associated with eigenvalues in the range between 12 j�jmax and j�jmax.

These conditions are su�cient to ensure the validity of the process described next.

Having preconditioned (if necessary) the basic �nite di�erencing scheme by a pro-

cedure equivalent to the multiplication by a matrix C, we are led to the starting

formulation

C[Ab~�1�~f b] = 0 (10.5)

where the matrix formed by the product CAb has the properties given above. In Eq.

10.5, the vector ~f b represents the boundary conditions and the forcing function, if

any, and ~�1

is a vector representing the desired exact solution. We start with some

initial guess for ~�1

and proceed through n iterations making use of some iterative

process that satis�es property 5 above. We do not attempt to develop an optimum

procedure here, but for clarity we suppose that the three-step Richardson method

illustrated in Fig. 9.6 is used. At the end of the three steps we �nd ~r, the residual,

where

~r = C[Ab~�� ~f b] (10.6)

Recall that the ~� used to compute ~r is composed of the exact solution ~�1

and the

error ~e in such a way that

A~e�~r = 0 (10.7)

where

A � CAb (10.8)

Page 202: Fundamentals of Computational Fluid Dynamics.pdf

194 CHAPTER 10. MULTIGRID

If one could solve Eq. 10.7 for ~e then

~�1= ~��~e (10.9)

Thus our goal now is to solve for ~e. We can write the exact solution for ~e in terms of

the eigenvectors of A, and the � eigenvalues of the Richardson process in the form:

~e =

M=2Xm=1

cm~xm

3Yn=1

[�(�mhn)] +MX

m=M=2+1

cm~xm

3Yn=1

[�(�mhn)]

| {z }very low amplitude

(10.10)

Combining our basic assumptions, we can be sure that the high frequency content of~e has been greatly reduced (about 1% or less of its original value in the initial guess).

In addition, assumption 4 ensures that the error has been smoothed.

Next we construct a permutation matrix which separates a vector into two parts,

one containing the odd entries, and the other the even entries of the original vector

(or any other appropriate sorting which is consistent with the interpolation approxi-

mation to be discussed below). For a 7-point example

2666666666664

e2e4e6e1e3e5e7

3777777777775=

2666666666664

0 1 0 0 0 0 0

0 0 0 1 0 0 0

0 0 0 0 0 1 0

1 0 0 0 0 0 0

0 0 1 0 0 0 0

0 0 0 0 1 0 0

0 0 0 0 0 0 1

3777777777775

2666666666664

e1e2e3e4e5e6e7

3777777777775

;

"~ee~eo

#= P~e (10.11)

Multiply Eq. 10.7 from the left by P and, since a permutation matrix has an inverse

which is its transpose, we can write

PA[P�1P ]~e = P~r (10.12)

The operation PAP�1 partitions the A matrix to form

264A1 A2

A3 A4

375"~ee~eo

#=

"~re~ro

#(10.13)

Notice that

A1~ee + A2

~eo = ~re (10.14)

Page 203: Fundamentals of Computational Fluid Dynamics.pdf

10.2. THE BASIC PROCESS 195

is an exact expression.

At this point we make our one crucial assumption. It is that there is some connec-

tion between ~ee and ~eo brought about by the smoothing property of the Richardson

relaxation procedure. Since the top half of the frequency spectrum has been removed,

it is reasonable to suppose that the odd points are the average of the even points.

For example

e1 �

1

2(ea + e2)

e3 �

1

2(e2 + e4)

e5 �

1

2(e4 + e6) or ~eo = A02

~ee (10.15)

e7 �

1

2(e6 + eb)

It is important to notice that ea and eb represent errors on the boundaries where the

error is zero if the boundary conditions are given. It is also important to notice that we

are dealing with the relation between ~e and ~r so the original boundary conditions and

forcing function (which are contained in ~f in the basic formulation) no longer appear

in the problem. Hence, no aliasing of these functions can occur in subsequent steps.

Finally, notice that, in this formulation, the averaging of ~e is our only approximation,

no operations on ~r are required or justi�ed.

If the boundary conditions are Dirichlet, ea and eb are zero, and one can write for

the example case

A02 =1

2

266641 0 0

1 1 0

0 1 1

0 0 1

37775 (10.16)

With this approximation Eq. 10.14 reduces to

A1~ee + A2A

0

2~ee = ~re (10.17)

or

Ac~ee �~re = 0 (10.18)

where

Ac = [A1 + A2A0

2] (10.19)

Page 204: Fundamentals of Computational Fluid Dynamics.pdf

196 CHAPTER 10. MULTIGRID

The form of Ac, the matrix on the coarse mesh, is completely determined by the

choice of the permutation matrix and the interpolation approximation. If the original

A had been B(7 : 1;�2; 1), our 7-point example would produce

PAP�1 =

266666666666664

�2 1 1

�2 1 1

�2 1 1

1 �2

1 1 �2

1 1 �2

1 �2

377777777777775=

264 A1 A2

A3 A4

375 (10.20)

and Eq. 10.18 gives

A1z }| {264 �2

�2

�2

375+

A2z }| {264 1 1

1 1

1 1

375 �1

2

A0

2z }| {266641

1 1

1 1

1

37775 =

Acz }| {264 �1 1=2

1=2 �1 1=2

1=2 �1

375 (10.21)

If the boundary conditions are mixed Dirichlet-Neumann, A in the 1-D model

equation is B(1;~b; 1) where ~b = [�2;�2; :::;�2;�1]T . The eigensystem is given by

Eq. B.19. It is easy to show that the high space-frequencies still correspond to the

eigenvalues with high magnitudes, and, in fact, all of the properties given in Section

10.1 are met. However, the eigenvector structure is di�erent from that given in

Eq. 9.55 for Dirichlet conditions. In the present case they are given by

xjm = sin

"j

(2m� 1)�

2M + 1

!#; m = 1; 2; � � � ;M (10.22)

and are illustrated in Fig. 10.1. All of them go through zero on the left (Dirichlet)

side, and all of them re ect on the right (Neumann) side.

For Neumann conditions, the interpolation formula in Eq. 10.15 must be changed.

In the particular case illustrated in Fig. 10.1, eb is equal to eM . If Neumann conditions

are on the left, ea = e1. When eb = eM , the example in Eq. 10.16 changes to

A02 =1

2

266641 0 0

1 1 0

0 1 1

0 0 2

37775 (10.23)

Page 205: Fundamentals of Computational Fluid Dynamics.pdf

10.2. THE BASIC PROCESS 197

X

Figure 10.1: Eigenvectors for the mixed Dirichlet{Neumann case.

The permutation matrix remains the same and both A1 and A2 in the partitioned

matrix PAP�1 are unchanged (only A4 is modi�ed by putting �1 in the lower right

element). Therefore, we can construct the coarse matrix from

A1z }| {264 �2

�2

�2

375+

A2z }| {264 1 1

1 1

1 1

375 �1

2

A0

2z }| {266641

1 1

1 1

2

37775 =

Acz }| {264 �1 1=2

1=2 �1 1=2

1=2 �1=2

375 (10.24)

which gives us what we might have \expected."

We will continue with Dirichlet boundary conditions for the remainder of this

Section. At this stage, we have reduced the problem from B(1;�2; 1)~e = ~r on the

�ne mesh to 12B(1;�2; 1)

~ee = ~re on the next coarser mesh. Recall that our goal is

to solve for ~e, which will provide us with the solution ~�1

using Eq. 10.9. Given ~eecomputed on the coarse grid (possibly using even coarser grids), we can compute ~eousing Eq. 10.15, and thus ~e. In order to complete the process, we must now determine

the relationship between ~ee and ~e.

In order to examine this relationship, we need to consider the eigensystems of A

and Ac:

A = X�X�1; Ac = Xc�cX�1c (10.25)

For A = B(M : 1;�2; 1) the eigenvalues and eigenvectors are

�m = �2

�1� cos

�m�

M + 1

��; ~xm = sin

�j

�m�

M + 1

��;

j = 1; 2; � � � ;M

m = 1; 2; � � � ;M(10.26)

Page 206: Fundamentals of Computational Fluid Dynamics.pdf

198 CHAPTER 10. MULTIGRID

Based on our assumptions, the most di�cult error mode to eliminate is that with

m = 1, corresponding to

�1 = �2

�1� cos

��

M + 1

��; ~x1 = sin

�j

��

M + 1

��; j = 1; 2; � � � ;M (10.27)

For example, with M = 51, �1 = �0:003649. If we restrict our attention to odd M ,

then Mc = (M �1)=2 is the size of Ac. The eigenvalue and eigenvector corresponding

to m = 1 for the matrix Ac =12B(Mc; 1;�2; 1) are

(�c)1 = �

�1� cos

�2�

M + 1

��; (~xc)1 = sin

�j

�2�

M + 1

��; j = 1; 2; � � � ;Mc (10.28)

For M = 51 (Mc = 25), we obtain (�c)1 = �0:007291 = 1:998�1. As M increases,

(�c)1 approaches 2�1. In addition, one can easily see that (~xc)1 coincides with ~x1 at

every second point of the latter vector, that is, it contains the even elements of ~x1.

Now let us consider the case in which all of the error consists of the eigenvector

component ~x1, i.e., ~e = ~x1. Then the residual is

~r = A~x1 = �1~x1 (10.29)

and the residual on the coarse grid is

~re = �1(~xc)1 (10.30)

since (~xc)1 contains the even elements of ~x1. The exact solution on the coarse grid

satis�es

~ee = A�1c~re = Xc�

�1c X�1

c �1(~xc)1

(10.31)

= �1Xc��1c

2666641

0...

0

377775

(10.32)

= �1Xc

2666641=(�c)1

0...

0

377775

(10.33)

Page 207: Fundamentals of Computational Fluid Dynamics.pdf

10.2. THE BASIC PROCESS 199

=�1

(�c)1(~xc)1

(10.34)

1

2(~xc)1 (10.35)

Since our goal is to compute ~e = ~x1, in addition to interpolating ~ee to the �ne grid

(using Eq. 10.15), we must multiply the result by 2. This is equivalent to solving

1

2Ac~ee = ~re (10.36)

or

1

4B(Mc : 1;�2; 1)~ee = ~re (10.37)

In our case, the matrix A = B(M : 1;�2; 1) comes from a discretization of the

di�usion equation, which gives

Ab =�

�x2B(M : 1;�2; 1) (10.38)

and the preconditioning matrix C is simply

C =�x2

�I (10.39)

Applying the discretization on the coarse grid with the same preconditioning matrix

as used on the �ne grid gives, since �xc = 2�x,

C�

�x2cB(Mc : 1;�2; 1) =

�x2

�x2cB(Mc : 1;�2; 1) =

1

4B(Mc : 1;�2; 1) (10.40)

which is precisely the matrix appearing in Eq. 10.37. Thus we see that the process is

recursive. The problem to be solved on the coarse grid is the same as that solved on

the �ne grid.

The remaining steps required to complete an entire multigrid process are relatively

straightforward, but they vary depending on the problem and the user. The reduction

can be, and usually is, carried to even coarser grids before returning to the �nest level.

However, in each case the appropriate permutation matrix and the interpolation

approximation de�ne both the down- and up-going paths. The details of �nding

optimum techniques are, obviously, quite important but they are not discussed here.

Page 208: Fundamentals of Computational Fluid Dynamics.pdf

200 CHAPTER 10. MULTIGRID

10.3 A Two-Grid Process

We now describe a two-grid process for the linear problem A~� = ~f , which can be easily

generalized to a process with an arbitrary number of grids due to the recursive nature

of multigrid. Extension to nonlinear problems requires that both the solution and the

residual be transferred to the coarse grid in a process known as full approximation

storage multigrid.

1. Perform n1 iterations of the selected relaxation method on the �ne grid, starting

with ~� = ~�n. Call the result ~�(1). This gives1

~�(1) = Gn11~�n + (I �Gn1

1 )A�1 ~f (10.41)

where

G1 = I +H�11 A1 (10.42)

and H1 is de�ned as in Chapter 9 (e.g., Eq. 9.21). Next compute the residual based

on ~�(1):

~r(1) = A~�(1) � ~f = AGn11~�n + A (I �Gn1

1 )A�1 ~f � ~f

= AGn11~�n � AGn1

1 A�1 ~f (10.43)

2. Transfer (or restrict) ~r(1) to the coarse grid:

~r(2) = R21~r

(1) (10.44)

In our example in the preceding section, the restriction matrix is

R21 =

264 0 1 0 0 0 0 0

0 0 0 1 0 0 0

0 0 0 0 0 1 0

375 (10.45)

that is, the �rst three rows of the permutation matrix P in Eq. 10.11. This type of

restriction is known as \simple injection." Some form of weighted restriction can also

be used.

3. Solve the problem A2~e(2) = ~r(2) on the coarse grid exactly:2

~e(2) = A�12 ~r(2) (10.46)

1See problem 1 of Chapter 9.2Note that the coarse grid matrix denoted A2 here was denoted Ac in the preceding section.

Page 209: Fundamentals of Computational Fluid Dynamics.pdf

10.3. A TWO-GRID PROCESS 201

Here A2 can be formed by applying the discretization on the coarse grid. In the

preceding example (eq. 10.40), A2 =14B(Mc : 1;�2; 1). It is at this stage that the

generalization to a multigrid procedure with more than two grids occurs. If this is the

coarsest grid in the sequence, solve exactly. Otherwise, apply the two-grid process

recursively.

4. Transfer (or prolong) the error back to the �ne grid and update the solution:

~�n+1 = ~�(1) � I12~e(2) (10.47)

In our example, the prolongation matrix is

I12 =

2666666666664

1=2 0 0

1 0 0

1=2 1=2 0

0 1 0

0 1=2 1=2

0 0 1

0 0 1=2

3777777777775

(10.48)

which follows from Eq. 10.15.

Combining these steps, one obtains

~�n+1 = [I � I12A�12 R2

1A]Gn11~�n � [I � I12A

�12 R2

1A]Gn11 A

�1 ~f + A�1 ~f (10.49)

Thus the basic iteration matrix is

[I � I12A�12 R2

1A]Gn11 (10.50)

The eigenvalues of this matrix determine the convergence rate of the two-grid process.

The basic iteration matrix for a three-grid process is found from Eq. 10.50 by

replacing A�12 with (I �G23)A

�12 , where

G23 = [I � I23A

�13 R3

2A2]Gn22 (10.51)

In this expression n2 is the number of relaxation steps on grid 2, I23 and R32 are the

transfer operators between grids 2 and 3, and A3 is obtained by discretizing on grid

3. Extension to four or more grids proceeds in similar fashion.

Page 210: Fundamentals of Computational Fluid Dynamics.pdf

202 CHAPTER 10. MULTIGRID

10.4 Problems

1. Derive Eq. 10.51.

2. Repeat problem 4 of Chapter 9 using a four-grid multigrid method together

with

(a) the Gauss-Seidel method,

(b) the 3-step Richardson method derived in Section 9.5.

Solve exactly on the coarsest grid. Plot the solution after the residual is reduced

by 2, 3, and 4 orders of magnitude. Plot the logarithm of the L2-norm of the

residual vs. the number of iterations. Determine the asymptotic convergence

rate. Calculate the theoretical asymptotic convergence rate and compare.

Page 211: Fundamentals of Computational Fluid Dynamics.pdf

Chapter 11

NUMERICAL DISSIPATION

Up to this point, we have emphasized the second-order centered-di�erence approxima-

tions to the spatial derivatives in our model equations. We have seen that a centered

approximation to a �rst derivative is nondissipative, i.e., the eigenvalues of the as-

sociated circulant matrix (with periodic boundary conditions) are pure imaginary.

In processes governed by nonlinear equations, such as the Euler and Navier-Stokes

equations, there can be a continual production of high-frequency components of the

solution, leading, for example, to the production of shock waves. In a real phys-

ical problem, the production of high frequencies is eventually limited by viscosity.

However, when we solve the Euler equations numerically, we have neglected viscous

e�ects. Thus the numerical approximation must contain some inherent dissipation to

limit the production of high-frequency modes. Although numerical approximations

to the Navier-Stokes equations contain dissipation through the viscous terms, this

can be insu�cient, especially at high Reynolds numbers, due to the limited grid res-

olution which is practical. Therefore, unless the relevant length scales are resolved,

some form of added numerical dissipation is required in the numerical solution of

the Navier-Stokes equations as well. Since the addition of numerical dissipation is

tantamount to intentionally introducing nonphysical behavior, it must be carefully

controlled such that the error introduced is not excessive. In this Chapter, we discuss

some di�erent ways of adding numerical dissipation to the spatial derivatives in the

linear convection equation and hyperbolic systems of PDE's.

203

Page 212: Fundamentals of Computational Fluid Dynamics.pdf

204 CHAPTER 11. NUMERICAL DISSIPATION

11.1 One-Sided First-Derivative Space Di�erenc-

ing

We investigate the properties of one-sided spatial di�erence operators in the context

of the biconvection model equation given by

@u

@t= �a

@u

@x(11.1)

with periodic boundary conditions. Consider the following point operator for the

spatial derivative term

�a(�xu)j =�a2�x

[�(1 + �)uj�1 + 2�uj + (1� �)uj+1]

=�a2�x

[(�uj�1 + uj+1) + �(�uj�1 + 2uj � uj+1)] (11.2)

The second form shown divides the operator into an antisymmetric component (�uj�1+

uj+1)=2�x and a symmetric component �(�uj�1 + 2uj � uj+1)=2�x. The antisym-

metric component is the second-order centered di�erence operator. With � 6= 0, the

operator is only �rst-order accurate. A backward di�erence operator is given by � = 1

and a forward di�erence operator is given by � = �1.For periodic boundary conditions the corresponding matrix operator is

�a�x =�a2�x

Bp(�1� �; 2�; 1� �)

The eigenvalues of this matrix are

�m =�a�x

��

�1� cos

�2�m

M

��+ i sin

�2�m

M

��for m = 0; 1; : : : ;M� 1

If a is positive, the forward di�erence operator (� = �1) produces Re(�m) > 0,

the centered di�erence operator (� = 0) produces Re(�m) = 0, and the backward

di�erence operator produces Re(�m) < 0. Hence the forward di�erence operator is

inherently unstable while the centered and backward operators are inherently stable.

If a is negative, the roles are reversed. When Re(�m) = 0, the solution will either

grow or decay with time. In either case, our choice of di�erencing scheme produces

nonphysical behavior. We proceed next to show why this occurs.

Page 213: Fundamentals of Computational Fluid Dynamics.pdf

11.2. THE MODIFIED PARTIAL DIFFERENTIAL EQUATION 205

11.2 The Modi�ed Partial Di�erential Equation

First carry out a Taylor series expansion of the terms in Eq. 11.2. We are lead to the

expression

(�xu)j =1

2�x

242�x

@u

@x

!j

� ��x2 @2u

@x2

!j

+�x3

3

@3u

@x3

!j

���x4

12

@4u

@x4

!j

+ : : :

35

We see that the antisymmetric portion of the operator introduces odd derivative

terms in the truncation error while the symmetric portion introduces even derivatives.

Substituting this into Eq. 11.1 gives

@u

@t= �a

@u

@x+a��x

2

@2u

@x2�a�x2

6

@3u

@x3+a��x3

24

@4u

@x4+ : : : (11.3)

This is the partial di�erential equation we are really solving when we apply the

approximation given by Eq. 11.2 to Eq. 11.1. Notice that Eq. 11.3 is consistent with

Eq. 11.1, since the two equations are identical when �x! 0. However, when we use

a computer to �nd a numerical solution of the problem, �x can be small but it is

not zero. This means that each term in the expansion given by Eq. 11.3 is excited to

some degree. We refer to Eq. 11.3 as the modi�ed partial di�erential equation. We

proceed next to investigate the implications of this concept.

Consider the simple linear partial di�erential equation

@u

@t= �a

@u

@x+ �

@2u

@x2+

@3u

@x3+ �

@4u

@x4(11.4)

Choose periodic boundary conditions and impose an initial condition u = ei�x. Underthese conditions there is a wave-like solution to Eq. 11.4 of the form

u(x; t) = ei�xe(r+is)t

provided r and s satisfy the condition

r + is = �ia�� ��2 � i �3 + ��4

or

r = ��2(� � ��2); s = ��(a + �2)

The solution is composed of both amplitude and phase terms. Thus

u = e��2(����2)| {z }

amplitude

ei�[x�(a+ �2)t]| {z }phase

(11.5)

Page 214: Fundamentals of Computational Fluid Dynamics.pdf

206 CHAPTER 11. NUMERICAL DISSIPATION

It is important to notice that the amplitude of the solution depends only upon � and

� , the coe�cients of the even derivatives in Eq. 11.4, and the phase depends only on

a and , the coe�cients of the odd derivatives.

If the wave speed a is positive, the choice of a backward di�erence scheme (� = 1)

produces a modi�ed PDE with � � ��2 > 0 and hence the amplitude of the solution

decays. This is tantamount to deliberately adding dissipation to the PDE. Under the

same condition, the choice of a forward di�erence scheme (� = �1) is equivalent todeliberately adding a destabilizing term to the PDE.

By examining the term governing the phase of the solution in Eq. 11.5, we see

that the speed of propagation is a + �2. Referring to the modi�ed PDE, Eq. 11.3

we have = �a�x2=6. Therefore, the phase speed of the numerical solution is less

than the actual phase speed. Furthermore, the numerical phase speed is dependent

upon the wavenumber �. This we refer to as dispersion.

Our purpose here is to investigate the properties of one-sided spatial di�erencing

operators relative to centered di�erence operators. We have seen that the three-

point centered di�erence approximation of the spatial derivative produces a modi�ed

PDE that has no dissipation (or ampli�cation). One can easily show, by using the

antisymmetry of the matrix di�erence operators, that the same is true for any cen-

tered di�erence approximation of a �rst derivative. As a corollary, any departure

from antisymmetry in the matrix di�erence operator must introduce dissipation (or

ampli�cation) into the modi�ed PDE.

Note that the use of one-sided di�erencing schemes is not the only way to in-

troduce dissipation. Any symmetric component in the spatial operator introduces

dissipation (or ampli�cation). Therefore, one could choose � = 1=2 in Eq. 11.2. The

resulting spatial operator is not one-sided but it is dissipative. Biased schemes use

more information on one side of the node than the other. For example, a third-order

backward-biased scheme is given by

(�xu)j =1

6�x(uj�2 � 6uj�1 + 3uj + 2uj+1)

=1

12�x[(uj�2 � 8uj�1 + 8uj+1 � uj+2)

+ (uj�2 � 4uj�1 + 6uj � 4uj+1 + uj+2)] (11.6)

The antisymmetric component of this operator is the fourth-order centered di�erence

operator. The symmetric component approximates �x3uxxxx=12. Therefore, this

operator produces fourth-order accuracy in phase with a third-order dissipative term.

Page 215: Fundamentals of Computational Fluid Dynamics.pdf

11.3. THE LAX-WENDROFF METHOD 207

11.3 The Lax-Wendro� Method

In order to introduce numerical dissipation using one-sided di�erencing, backward

di�erencing must be used if the wave speed is positive, and forward di�erencing must

be used if the wave speed is negative. Next we consider a method which introduces

dissipation independent of the sign of the wave speed, known as the Lax-Wendro�

method. This explicit method di�ers conceptually from the methods considered pre-

viously in which spatial di�erencing and time-marching are treated separately.

Consider the following Taylor-series expansion in time:

u(x; t+ h) = u+ h@u

@t+

1

2h2@2u

@t2+O(h3) (11.7)

First replace the time derivatives with space derivatives according to the PDE (in

this case, the linear convection equation @u

@t+ a@u

@x= 0). Thus

@u

@t= �a

@u

@x;

@2u

@t2= a2

@2u

@x2(11.8)

Now replace the space derivatives with three-point centered di�erence operators, giv-

ing

u(n+1)j = u

(n)j �

1

2

ah

�x(u

(n)j+1 � u

(n)j�1) +

1

2

ah

�x

!2

(u(n)j+1 � 2u

(n)j + u

(n)j�1) (11.9)

This is the Lax-Wendro� method applied to the linear convection equation. It is a

fully-discrete �nite-di�erence scheme. There is no intermediate semi-discrete stage.

For periodic boundary conditions, the corresponding fully-discrete matrix operator

is

~un+1 = Bp

0@12

24 ah�x

+

ah

�x

!235 ; 1�

ah

�x

!2

;1

2

24� ah

�x+

ah

�x

!2351A ~un

The eigenvalues of this matrix are

�m = 1� ah

�x

!2 �1� cos

�2�m

M

��� i

ah

�xsin

�2�m

M

�for m = 0; 1; : : : ;M � 1

For j ah�xj � 1 all of the eigenvalues have modulus less than or equal to unity and hence

the method is stable independent of the sign of a. The quantity j ah�xj is known as the

Courant (or CFL) number. It is equal to the ratio of the distance travelled by a wave

in one time step to the mesh spacing.

Page 216: Fundamentals of Computational Fluid Dynamics.pdf

208 CHAPTER 11. NUMERICAL DISSIPATION

The nature of the dissipative properties of the Lax-Wendro� scheme can be seen

by examining the modi�ed partial di�erential equation, which is given by

@u

@t+ a

@u

@x= �

a

6(�x2 � a2h2)

@3u

@x3�a2h

8(�x2 � a2h2)

@4u

@x4+ : : :

This is derived by substituting Taylor series expansions for all terms in Eq. 11.9 and

converting the time derivatives to space derivatives using Eq. 11.8. The two leading

error terms appear on the right side of the equation. Recall that the odd derivatives on

the right side lead to unwanted dispersion and the even derivatives lead to dissipation

(or ampli�cation, depending on the sign). Therefore, the leading error term in the

Lax-Wendro� method is dispersive and proportional to

�a

6(�x2 � a2h2)

@3u

@x3= �

a�x2

6(1� C2

n)@3u

@x3

The dissipative term is proportional to

�a2h

8(�x2 � a2h2)

@4u

@x4= �

a2h�x2

8(1� C2

n)@4u

@x4

This term has the appropriate sign and hence the scheme is truly dissipative as long

as Cn � 1.

A closely related method is that of MacCormack. Recall MacCormack's time-

marching method, presented in Chapter 6:

~un+1 = un + hu0n

un+1 =1

2[un + ~un+1 + h~u0

n+1] (11.10)

If we use �rst-order backward di�erencing in the �rst stage and �rst-order forward

di�erencing in the second stage,1 a dissipative second-order method is obtained. For

the linear convection equation, this approach leads to

~u(n+1)j = u

(n)j �

ah

�x(u

(n)j � u

(n)j�1)

u(n+1)j =

1

2[u

(n)j + ~u

(n+1)j �

ah

�x(~u

(n+1)j+1 � ~u

(n+1)j )] (11.11)

which can be shown to be identical to the Lax-Wendro� method. Hence MacCor-

mack's method has the same dissipative and dispersive properties as the Lax-Wendro�

method. The two methods di�er when applied to nonlinear hyperbolic systems, how-

ever.

1Or vice-versa; for nonlinear problems, these should be applied alternately.

Page 217: Fundamentals of Computational Fluid Dynamics.pdf

11.4. UPWIND SCHEMES 209

11.4 Upwind Schemes

In Section 11.1, we saw that numerical dissipation can be introduced in the spatial

di�erence operator using one-sided di�erence schemes or, more generally, by adding

a symmetric component to the spatial operator. With this approach, the direction

of the one-sided operator (i.e., whether it is a forward or a backward di�erence)

or the sign of the symmetric component depends on the sign of the wave speed.

When a hyperbolic system of equations is being solved, the wave speeds can be both

positive and negative. For example, the eigenvalues of the ux Jacobian for the one-

dimensional Euler equations are u; u+ a; u� a. When the ow is subsonic, these are

of mixed sign. In order to apply one-sided di�erencing schemes to such systems, some

form of splitting is required. This is avoided in the Lax-Wendro� scheme. However,

as a result of their superior exibility, schemes in which the numerical dissipation

is introduced in the spatial operator are generally preferred over the Lax-Wendro�

approach.

Consider again the linear convection equation:

@u

@t+ a

@u

@x= 0 (11.12)

where we do not make any assumptions as to the sign of a. We can rewrite Eq. 11.12

as@u

@t+ (a+ + a�)

@u

@x= 0 ; a� =

a� jaj2

If a � 0, then a+ = a � 0 and a� = 0. Alternatively, if a � 0, then a+ = 0 and

a� = a � 0. Now for the a+ (� 0) term we can safely backward di�erence and for the

a� (� 0) term forward di�erence. This is the basic concept behind upwind methods,

that is, some decomposition or splitting of the uxes into terms which have positive

and negative characteristic speeds so that appropriate di�erencing schemes can be

chosen. In the next two sections, we present two splitting techniques commonly used

with upwind methods. These are by no means unique.

The above approach to obtaining a stable discretization independent of the sign

of a can be written in a di�erent, but entirely equivalent, manner. From Eq. 11.2, we

see that a stable discretization is obtained with � = 1 if a � 0 and with � = �1 if

a � 0. This is achieved by the following point operator:

�a(�xu)j =�12�x

[a(�uj�1 + uj+1) + jaj(�uj�1 + 2uj � uj+1)] (11.13)

This approach is extended to systems of equations in Section 11.5.

In this section, we present the basic ideas of ux-vector and ux-di�erence splitting.

For more subtle aspects of implementation and application of such techniques to

Page 218: Fundamentals of Computational Fluid Dynamics.pdf

210 CHAPTER 11. NUMERICAL DISSIPATION

nonlinear hyperbolic systems such as the Euler equations, the reader is referred to

the literature on this subject.

11.4.1 Flux-Vector Splitting

Recall from Section 2.5 that a linear, constant-coe�cient, hyperbolic system of partial

di�erential equations given by

@u

@t+@f

@x=

@u

@t+ A

@u

@x= 0 (11.14)

can be decoupled into characteristic equations of the form

@wi

@t+ �i

@wi

@x= 0 (11.15)

where the wave speeds, �i, are the eigenvalues of the Jacobian matrix, A, and the

wi's are the characteristic variables. In order to apply a one-sided (or biased) spatial

di�erencing scheme, we need to apply a backward di�erence if the wave speed, �i, is

positive, and a forward di�erence if the wave speed is negative. To accomplish this,

let us split the matrix of eigenvalues, �, into two components such that

� = �+ + �� (11.16)

where

�+ =�+ j�j

2; �� =

�� j�j2

(11.17)

With these de�nitions, �+ contains the positive eigenvalues and �� contains the neg-

ative eigenvalues. We can now rewrite the system in terms of characteristic variables

as

@w

@t+ �

@w

@x=

@w

@t+ �+@w

@x+ ��

@w

@x= 0 (11.18)

The spatial terms have been split into two components according to the sign of the

wave speeds. We can use backward di�erencing for the �+ @w

@xterm and forward

di�erencing for the �� @w

@xterm. Premultiplying by X and inserting the product

X�1X in the spatial terms gives

@Xw

@t+@X�+X�1Xw

@x+@X��X�1Xw

@x= 0 (11.19)

Page 219: Fundamentals of Computational Fluid Dynamics.pdf

11.4. UPWIND SCHEMES 211

With the de�nitions2

A+ = X�+X�1; A� = X��X�1 (11.20)

and recalling that u = Xw, we obtain

@u

@t+@A+u

@x+@A�u

@x= 0 (11.21)

Finally the split ux vectors are de�ned as

f+ = A+u; f� = A�u (11.22)

and we can write

@u

@t+@f+

@x+@f�

@x= 0 (11.23)

In the linear case, the de�nition of the split uxes follows directly from the de�ni-

tion of the ux, f = Au. For the Euler equations, f is also equal to Au as a result of

their homogeneous property, as discussed in Appendix C. Note that

f = f+ + f� (11.24)

Thus by applying backward di�erences to the f+ term and forward di�erences to the

f� term, we are in e�ect solving the characteristic equations in the desired manner.

This approach is known as ux-vector splitting.

When an implicit time-marching method is used, the Jacobians of the split ux

vectors are required. In the nonlinear case,

@f+

@u6= A+;

@f�

@u6= A� (11.25)

Therefore, one must �nd and use the new Jacobians given by

A++ =@f+

@u; A�� =

@f�

@u(11.26)

For the Euler equations, A++ has eigenvalues which are all positive, and A�� has all

negative eigenvalues.

2With these de�nitions A+ has all positive eigenvalues, and A� has all negative eigenvalues.

Page 220: Fundamentals of Computational Fluid Dynamics.pdf

212 CHAPTER 11. NUMERICAL DISSIPATION

11.4.2 Flux-Di�erence Splitting

Another approach, more suited to �nite-volume methods, is known as ux-di�erence

splitting. In a �nite-volume method, the uxes must be evaluated at cell bound-

aries. We again begin with the diagonalized form of the linear, constant-coe�cient,

hyperbolic system of equations

@w

@t+ �

@w

@x= 0 (11.27)

The ux vector associated with this form is g = �w. Now, as in Chapter 5, we

consider the numerical ux at the interface between nodes j and j + 1, gj+1=2, as a

function of the states to the left and right of the interface, wL and wR, respectively.

The centered approximation to gj+1=2, which is nondissipative, is given by

gj+1=2 =1

2(g(wL) + g(wR)) (11.28)

In order to obtain a one-sided upwind approximation, we require

(gi)j+1=2 =

(�i(wi)L if �i > 0

�i(wi)R if �i < 0(11.29)

where the subscript i indicates individual components of w and g. This is achieved

with

(gi)j+1=2 =1

2�i [(wi)L + (wi)R] +

1

2j�ij [(wi)L � (wi)R] (11.30)

or

gj+1=2 =1

2� (wL + wR) +

1

2j�j (wL � wR) (11.31)

Now, as in Eq. 11.19, we premultiply by X to return to the original variables and

insert the product X�1X after � and j�j to obtain

Xgj+1=2 =1

2X�X�1X (wL + wR) +

1

2Xj�jX�1X (wL � wR) (11.32)

and thus

fj+1=2 =1

2(fL + fR) +

1

2jAj (uL � uR) (11.33)

where

jAj = Xj�jX�1 (11.34)

Page 221: Fundamentals of Computational Fluid Dynamics.pdf

11.5. ARTIFICIAL DISSIPATION 213

and we have also used the relations f = Xg, u = Xw, and A = X�X�1.

In the linear, constant-coe�cient case, this leads to an upwind operator which is

identical to that obtained using ux-vector splitting. However, in the nonlinear case,

there is some ambiguity regarding the de�nition of jAj at the cell interface j + 1=2.

In order to resolve this, consider a situation in which the eigenvalues of A are all of

the same sign. In this case, we would like our de�nition of fj+1=2 to satisfy

fj+1=2 =

(fL if all �i

0s > 0

fR if all �i0s < 0

(11.35)

giving pure upwinding. If the eigenvalues of A are all positive, jAj = A; if they are

all negative, jAj = �A. Hence satisfaction of Eq. 11.35 is obtained by the de�nition

fj+1=2 =1

2(fL + fR) +

1

2jAj+1=2j (uL � uR) (11.36)

if Aj+1=2 satis�es

fL � fR = Aj+1=2 (uL � uR) (11.37)

For the Euler equations for a perfect gas, Eq. 11.37 is satis�ed by the ux Jacobian

evaluated at the Roe-average state given by

uj+1=2 =

p�LuL +

p�RuR

p�L +

p�R

(11.38)

Hj+1=2 =

p�LHL +

p�RHR

p�L +

p�R

(11.39)

where u and H = (e + p)=� are the velocity and the total enthalpy per unit mass,

respectively.3

11.5 Arti�cial Dissipation

We have seen that numerical dissipation can be introduced by using one-sided dif-

ferencing schemes together with some form of ux splitting. We have also seen that

such dissipation can be introduced by adding a symmetric component to an antisym-

metric (dissipation-free) operator. Thus we can generalize the concept of upwinding

to include any scheme in which the symmetric portion of the operator is treated in

such a manner as to be truly dissipative.

3Note that the ux Jacobian can be written in terms of u and H only; see problem 6 at the end

of this chapter.

Page 222: Fundamentals of Computational Fluid Dynamics.pdf

214 CHAPTER 11. NUMERICAL DISSIPATION

For example, let

(�axu)

j=

uj+1 � uj�1

2�x; (�s

xu)

j=�uj+1 + 2uj � uj�1

2�x(11.40)

Applying �x = �ax+ �s

xto the spatial derivative in Eq. 11.15 is stable if �i � 0 and

unstable if �i < 0. Similarly, applying �x = �ax� �s

xis stable if �i � 0 and unstable if

�i > 0. The appropriate implementation is thus

�i�x = �i�a

x+ j�ij�sx (11.41)

Extension to a hyperbolic system by applying the above approach to the characteristic

variables, as in the previous two sections, gives

�x(Au) = �ax(Au) + �s

x(jAju) (11.42)

or

�xf = �axf + �s

x(jAju) (11.43)

where jAj is de�ned in Eq. 11.34. The second spatial term is known as arti�cial

dissipation. It is also sometimes referred to as arti�cial di�usion or arti�cial viscosity.

With appropriate choices of �axand �s

x, this approach can be related to the upwind

approach. This is particularly evident from a comparison of Eqs. 11.36 and 11.43.

It is common to use the following operator for �sx

(�sxu)

j=

�x(uj�2 � 4uj�1 + 6uj � 4uj+1 + uj+2) (11.44)

where � is a problem-dependent coe�cient. This symmetric operator approximates

��x3uxxxx and thus introduces a third-order dissipative term. With an appropriate

value of �, this often provides su�cient damping of high frequency modes without

greatly a�ecting the low frequency modes. For details of how this can be implemented

for nonlinear hyperbolic systems, the reader should consult the literature. A more

complicated treatment of the numerical dissipation is also required near shock waves

and other discontinuities, but is beyond the scope of this book.

11.6 Problems

1. A second-order backward di�erence approximation to a 1st derivative is given

as a point operator by

(�xu)j =1

2�x(uj�2 � 4uj�1 + 3uj)

Page 223: Fundamentals of Computational Fluid Dynamics.pdf

11.6. PROBLEMS 215

(a) Express this operator in banded matrix form (for periodic boundary condi-

tions), then derive the symmetric and skew-symmetric matrices that have

the matrix operator as their sum. (See Appendix A.3 to see how to con-

struct the symmetric and skew-symmetric components of a matrix.)

(b) Using a Taylor table, �nd the derivative which is approximated by the

corresponding symmetric and skew-symmetric operators and the leading

error term for each.

2. Find the modi�ed wavenumber for the �rst-order backward di�erence operator.

Plot the real and imaginary parts of ���x vs. ��x for 0 � ��x � �. Using

Fourier analysis as in Section 6.6.2, �nd j�j for the combination of this spatial

operator with 4th-order Runge-Kutta time marching at a Courant number of

unity and plot vs. ��x for 0 � ��x � �.

3. Find the modi�ed wavenumber for the operator given in Eq. 11.6. Plot the real

and imaginary parts of ���x vs. ��x for 0 � ��x � �. Using Fourier analysisas in Section 6.6.2, �nd j�j for the combination of this spatial operator with

4th-order Runge-Kutta time marching at a Courant number of unity and plot

vs. ��x for 0 � ��x � �.

4. Consider the spatial operator obtained by combining second-order centered dif-

ferences with the symmetric operator given in Eq. 11.44. Find the modi�ed

wavenumber for this operator with � = 0; 1=12; 1=24, and 1=48. Plot the real

and imaginary parts of ���x vs. ��x for 0 � ��x � �. Using Fourier analysis

as in Section 6.6.2, �nd j�j for the combination of this spatial operator with

4th-order Runge-Kutta time marching at a Courant number of unity and plot

vs. ��x for 0 � ��x � �.

5. Consider the hyperbolic system derived in problem 8 of Chapter 2. Find the

matrix jAj. Form the plus-minus split ux vectors as in Section 11.4.1.

6. Show that the ux Jacobian for the 1-D Euler equations can be written in terms

of u and H. Show that the use of the Roe average state given in Eqs. 11.38 and

11.39 leads to satisfaction of Eq. 11.37.

Page 224: Fundamentals of Computational Fluid Dynamics.pdf

216 CHAPTER 11. NUMERICAL DISSIPATION

Page 225: Fundamentals of Computational Fluid Dynamics.pdf

Chapter 12

SPLIT AND FACTORED FORMS

In the next two chapters, we present and analyze split and factored algorithms. This

gives the reader a feel for some of the modi�cations which can be made to the basic

algorithms in order to obtain e�cient solvers for practical multidimensional applica-

tions, and a means for analyzing such modi�ed forms.

12.1 The Concept

Factored forms of numerical operators are used extensively in constructing and ap-

plying numerical methods to problems in uid mechanics. They are the basis for a

wide variety of methods variously known by the labels \hybrid", \time split", and

\fractional step". Factored forms are especially useful for the derivation of practical

algorithms that use implicit methods. When we approach numerical analysis in the

light of matrix derivative operators, the concept of factoring is quite simple to present

and grasp. Let us start with the following observations:

1. Matrices can be split in quite arbitrary ways.

2. Advancing to the next time level always requires some reference to a previous

one.

3. Time marching methods are valid only to some order of accuracy in the step

size, h.

Now recall the generic ODE's produced by the semi-discrete approach

d~u

dt= A~u� ~f (12.1)

217

Page 226: Fundamentals of Computational Fluid Dynamics.pdf

218 CHAPTER 12. SPLIT AND FACTORED FORMS

and consider the above observations. From observation 1 (arbitrary splitting of A) :

d~u

dt= [A1 +A2]~u�

~f (12.2)

where A = [A1 +A2] but A1 and A2 are not unique. For the time march let us choose

the simple, �rst-order,1 explicit Euler method. Then, from observation 2 (new data~un+1 in terms of old ~un):

~un+1 = [ I + hA1 + hA2]~un � h~f +O(h2) (12.3)

or its equivalent

~un+1 =h[ I + hA1][ I + hA2]� h2A1A2

i~un � h~f +O(h2)

Finally, from observation 3 (allowing us to drop higher order terms �h2A1A2~un):

~un+1 = [ I + hA1][ I + hA2]~un � h~f +O(h2) (12.4)

Notice that Eqs. 12.3 and 12.4 have the same formal order of accuracy and, in

this sense, neither one is to be preferred over the other. However, their numerical

stability can be quite di�erent, and techniques to carry out their numerical evaluation

can have arithmetic operation counts that vary by orders of magnitude. Both of these

considerations are investigated later. Here we seek only to apply to some simple cases

the concept of factoring.

12.2 Factoring Physical Representations | Time

Splitting

Suppose we have a PDE that represents both the processes of convection and dissi-

pation. The semi-discrete approach to its solution might be put in the form

d~u

dt= Ac

~u+Ad~u+ ~(bc) (12.5)

where Ac and Ad are matrices representing the convection and dissipation terms,

respectively; and their sum forms the A matrix we have considered in the previous

sections. Choose again the explicit Euler time march so that

~un+1 = [ I + hAd + hAc]~un + h ~(bc) +O(h2) (12.6)

1Second-order time-marching methods are considered later.

Page 227: Fundamentals of Computational Fluid Dynamics.pdf

12.2. FACTORING PHYSICAL REPRESENTATIONS | TIME SPLITTING 219

Now consider the factored form

~un+1 = [ I + hAd]�[ I + hAc]~un + h ~(bc)

= [ I + hAd + hAc]~un + h ~(bc)| {z }Original Unfactored Terms

+ h2Ad

�Ac~un +

~(bc)�

| {z }Higher Order Terms

+O(h2) (12.7)

and we see that Eq. 12.7 and the original unfactored form Eq. 12.6 have identical

orders of accuracy in the time approximation. Therefore, on this basis, their selection

is arbitrary. In practical applications2 equations such as 12.7 are often applied in a

predictor-corrector sequence. In this case one could write

~un+1 = [ I + hAc]~un + h ~(bc)

~un+1 = [ I + hAd]~un+1 (12.8)

Factoring can also be useful to form split combinations of implicit and explicit

techniques. For example, another way to approximate Eq. 12.6 with the same order

of accuracy is given by the expression

~un+1 = [ I � hAd]�1

�[ I + hAc]~un + h ~(bc)

= [ I + hAd + hAc]~un + h ~(bc)| {z }Original Unfactored Terms

+O(h2) (12.9)

where in this approximation we have used the fact that

[ I � hAd]�1

= I + hAd + h2A2d+ � � �

if h � jjAdjj < 1, where jjAdjj is some norm of [Ad]. This time a predictor-corrector

interpretation leads to the sequence

~un+1 = [ I + hAc]~un + h ~(bc)

[ I � hAd]~un+1 = ~un+1 (12.10)

The convection operator is applied explicitly, as before, but the di�usion operator is

now implicit, requiring a tridiagonal solver if the di�usion term is central di�erenced.

Since numerical sti�ness is generally much more severe for the di�usion process, this

factored form would appear to be superior to that provided by Eq. 12.8. However,

the important aspect of stability has yet to be discussed.

2We do not suggest that this particular method is suitable for use. We have yet to determine its

stability, and a �rst-order time-march method is usually unsatisfactory.

Page 228: Fundamentals of Computational Fluid Dynamics.pdf

220 CHAPTER 12. SPLIT AND FACTORED FORMS

We should mention here that Eq. 12.9 can be derived for a di�erent point of view

by writing Eq. 12.6 in the form

un+1 � un

h= Acun +Adun+1 +

~(bc) +O(h2)

Then

[ I � hAd]un+1 = [ I + hAc]un + h ~(bc)

which is identical to Eq. 12.10.

12.3 Factoring Space Matrix Operators in 2{D

12.3.1 Mesh Indexing Convention

Factoring is widely used in codes designed for the numerical solution of equations

governing unsteady two- and three-dimensional ows. Let us study the basic concept

of factoring by inspecting its use on the linear 2-D scalar PDE that models di�usion:

@u

@t=@2u

@x2+@2u

@y2(12.11)

We begin by reducing this PDE to a coupled set of ODE's by di�erencing the space

derivatives and inspecting the resulting matrix operator.

A clear description of a matrix �nite-di�erence operator in 2- and 3-D requires some

reference to a mesh. We choose the 3 � 4 point mesh3 shown in the Sketch 12.12.

In this example Mx, the number of (interior) x points, is 4 and My, the number of

(interior) y points is 3. The numbers 11 ; 12 ; � � � ; 43 represent the location in the

mesh of the dependent variable bearing that index. Thus u32 represents the value of

u at j = 3 and k = 2.

� � � �

My � 13 23 33 43 �

k � 12 22 32 42 �

1 � 11 21 31 41 �

� � � �

1 j � � � Mx

Mesh indexing in 2-D.

(12.12)

3This could also be called a 5 � 6 point mesh if the boundary points (labeled � in the sketch)

were included, but in these notes we describe the size of a mesh by the number of interior points.

Page 229: Fundamentals of Computational Fluid Dynamics.pdf

12.3. FACTORING SPACE MATRIX OPERATORS IN 2{D 221

12.3.2 Data Bases and Space Vectors

The dimensioned array in a computer code that allots the storage locations of the

dependent variable(s) is referred to as a data-base. There are many ways to lay out

a data-base. Of these, we consider only two: (1), consecutively along rows that are

themselves consecutive from k = 1 to My, and (2), consecutively along columns that

are consecutive from j = 1 to Mx. We refer to each row or column group as a

space vector (they represent data along lines that are continuous in space) and label

their sum with the symbol U . In particular, (1) and (2) above are referred to as x-

vectors and y-vectors, respectively. The symbol U by itself is not enough to identify

the structure of the data-base and is used only when the structure is immaterial or

understood.

To be speci�c about the structure, we label a data{base composed of x-vectors with

U (x) , and one composed of y-vectors with U (y). Examples of the order of indexing

for these space vectors are given in Eq. 12.16 part a and b.

12.3.3 Data Base Permutations

The two vectors (arrays) are related by a permutation matrix P such that

U (x) = PxyU(y) and U (y) = PyxU

(x) (12.13)

where

Pyx = PT

xy= P�1

xy

Now consider the structure of a matrix �nite-di�erence operator representing 3-

point central-di�erencing schemes for both space derivatives in two dimensions. When

the matrix is multiplying a space vector U , the usual (but ambiguous) representation

is given by Ax+y. In this notation the ODE form of Eq. 12.11 can be written 4

dU

dt= Ax+yU + ~(bc) (12.14)

If it is important to be speci�c about the data-base structure, we use the notation

A(x)x+y or A

(y)x+y, depending on the data{base chosen for the U it multiplies. Examples

are in Eq. 12.16 part a and b. Notice that the matrices are not the same although

they represent the same derivative operation. Their structures are similar, however,

and they are related by the same permutation matrix that relates U (x) to U (y). Thus

A(x)x+y = Pxy � A

(y)x+y � Pyx (12.15)

4Notice that Ax+y and U , which are notations used in the special case of space vectors, are

subsets of A and ~u, used in the previous sections.

Page 230: Fundamentals of Computational Fluid Dynamics.pdf

222 CHAPTER 12. SPLIT AND FACTORED FORMS

A(x)x+y � U

(x) =

26666666666666666666666666664

� x j o j

x � x j o j

x � x j o j

x � j o j

o j � x j o

o j x � x j o

o j x � x j o

o j x � j o

j o j � x

j o j x � x

j o j x � x

j o j x �

37777777777777777777777777775

11

21

31

41

��

12

22

32

42

��

13

23

33

43

a:Elements in 2-dimensional, central-di�erence, matrix

operator, Ax+y, for 3�4 mesh shown in Sketch 12.12.

Data base composed of My x{vectors stored in U (x).

Entries for x! x, for y ! o, for both ! �.

A(y)x+y � U

(y) =

2666666666666666666666666666664

� o j x j j

o � o j x j j

o � j x j j

x j � o j x j

x j o � o j x j

x j o � j x j

j x j � o j x

j x j o � o j x

j x j o � j x

j j x j � o

j j x j o � o

j j x j o �

3777777777777777777777777777775

11

12

13

��

21

22

23

��

31

32

33

��

41

42

43

b: Elements in 2-dimensional, central-di�erence, matrix

operator, Ax+y, for 3�4 mesh shown in Sketch 12.12.

Data base composed of Mx y{vectors stored in U (y).

Entries for x! x, for y ! o, for both ! �.

(12.16)

Page 231: Fundamentals of Computational Fluid Dynamics.pdf

12.3. FACTORING SPACE MATRIX OPERATORS IN 2{D 223

12.3.4 Space Splitting and Factoring

We are now prepared to discuss splitting in two dimensions. It should be clear that

the matrix A(x)x+y can be split into two matrices such that

A(x)x+y = A(x)

x+ A(x)

y(12.17)

where A(x)x

and A(x)y

are shown in Eq. 12.22. Similarily

A(y)x+y = A(y)

x+ A(y)

y(12.18)

where the split matrices are shown in Eq. 12.23.

The permutation relation also holds for the split matrices so

A(x)y

= PxyA(y)y

Pyx

and

A(x)x

= PxyA(y)x

Pyx

The splittings in Eqs. 12.17 and 12.18 can be combined with factoring in the

manner described in Section 12.2. As an example (�rst-order in time), applying the

implicit Euler method to Eq. 12.14 gives

U(x)n+1 = U (x)

n+ h

hA(x)

x+ A(x)

y

iU

(x)n+1 + h ~(bc)

or

hI � hA(x)

x� hA(x)

y

iU

(x)n+1 = U (x)

n+ h ~(bc) +O(h2) (12.19)

As in Section 12.2, we retain the same �rst order accuracy with the alternative

hI � hA(x)

x

ihI � hA(x)

y

iU

(x)n+1 = U (x)

n+ h ~(bc) +O(h2) (12.20)

Write this in predictor-corrector form and permute the data base of the second row.

There results

hI � hA(x)

x

i~U (x) = U (x)

n+ h ~(bc)h

I � hA(y)y

iU

(y)n+1 = ~U (y) (12.21)

Page 232: Fundamentals of Computational Fluid Dynamics.pdf

224 CHAPTER 12. SPLIT AND FACTORED FORMS

A(x)x� U (x) =

26666666666666666666666666664

x x j j

x x x j j

x x x j j

x x j j

j x x j

j x x x j

j x x x j

j x x j

j j x x

j j x x x

j j x x x

j j x x

37777777777777777777777777775

� U (x)

A(x)y� U (x) =

26666666666666666666666666664

o j o j

o j o j

o j o j

o j o j

o j o j o

o j o j o

o j o j o

o j o j o

j o j o

j o j o

j o j o

j o j o

37777777777777777777777777775

� U (x)

The splitting of A(x)x+y.

(12.22)

Page 233: Fundamentals of Computational Fluid Dynamics.pdf

12.3. FACTORING SPACE MATRIX OPERATORS IN 2{D 225

A(y)x� U (y) =

2666666666666666666666666666664

x j x j j

x j x j j

x j x j j

x j x j x j

x j x j x j

x j x j x j

j x j x j x

j x j x j x

j x j x j x

j j x j x

j j x j x

j j x j x

3777777777777777777777777777775

� U (y)

A(y)y� U (y) =

2666666666666666666666666666664

o o j j j

o o o j j j

o o j j j

j o o j j

j o o o j j

j o o j j

j j o o j

j j o o o j

j j o o j

j j j o o

j j j o o o

j j j o o

3777777777777777777777777777775

� U (y)

The splitting of A(y)x+y.

(12.23)

Page 234: Fundamentals of Computational Fluid Dynamics.pdf

226 CHAPTER 12. SPLIT AND FACTORED FORMS

12.4 Second-Order Factored Implicit Methods

Second-order accuracy in time can be maintained in a certain factored implicit meth-

ods. For example, apply the trapezoidal method to Eq. 12.14 where the derivative

operators have been split as in Eq. 12.17 or 12.18. Let the data base be immaterial

and the ~(bc) be time invariant. There results

�I �

1

2hAx �

1

2hAy

�Un+1 =

�I +

1

2hAx +

1

2hAy

�Un + h ~(bc) +O(h3) (12.24)

Factor both sides giving� �

I �1

2hAx

��I �

1

2hAy

��

1

4h2AxAy

�Un+1

=

� �I +

1

2hAx

��I +

1

2hAy

��

1

4h2AxAy

�Un + h ~(bc) +O(h3) (12.25)

Then notice that the combination 14h

2[AxAy](Un+1 � Un) is proportional to h3 since

the leading term in the expansion of (Un+1 � Un) is proportional to h. Therefore, we

can write�I �

1

2hAx

��I �

1

2hAy

�Un+1 =

�I +

1

2hAx

��I +

1

2hAy

�Un + h ~(bc) +O(h3)(12.26)

and both the factored and unfactored form of the trapezoidal method are second-order

accurate in the time march.

An alternative form of this kind of factorization is the classical ADI (alternating

direction implicit) method5 usually written

�I �

1

2hAx

�~U =

�I +

1

2hAy

�Un +

1

2hFn

�I �

1

2hAy

�Un+1 =

�I +

1

2hAx

�~U +

1

2hFn+1 +O(h3) (12.27)

For idealized commuting systems the methods given by Eqs. 12.26 and 12.27 di�er

only in their evaluation of a time-dependent forcing term.

12.5 Importance of Factored Forms in 2 and 3 Di-

mensions

When the time-march equations are sti� and implicit methods are required to permit

reasonably large time steps, the use of factored forms becomes a very valuable tool

5A form of the Douglas or Peaceman-Rachford methods.

Page 235: Fundamentals of Computational Fluid Dynamics.pdf

12.5. IMPORTANCE OF FACTORED FORMS IN 2 AND 3 DIMENSIONS 227

for realistic problems. Consider, for example, the problem of computing the time

advance in the unfactored form of the trapezoidal method given by Eq. 12.24�I �

1

2hAx+y

�Un+1 =

�I +

1

2hAx+y

�Un + h ~(bc)

Forming the right hand side poses no problem, but �nding Un+1 requires the solution

of a sparse, but very large, set of coupled simultaneous equations having the matrix

form shown in Eq. 12.16 part a and b. Furthermore, in real cases involving the Euler

or Navier-Stokes equations, each symbol (o; x; �) represents a 4 � 4 block matrix with

entries that depend on the pressure, density and velocity �eld. Suppose we were to

solve the equations directly. The forward sweep of a simple Gaussian elimination �lls6

all of the 4 � 4 blocks between the main and outermost diagonal7 (e.g. between �

and o in Eq. 12.16 part b.). This must be stored in computer memory to be used to

�nd the �nal solution in the backward sweep. If Ne represents the order of the small

block matrix (4 in the 2-D Euler case), the approximate memory requirement is

(Ne �My) � (Ne �My) �Mx

oating point words. Here it is assumed that My < Mx. If My > Mx, My and Mx

would be interchanged. A moderate mesh of 60 � 200 points would require over 11

million words to �nd the solution. Actually current computer power is able to cope

rather easily with storage requirements of this order of magnitude. With computing

speeds of over one giga op,8 direct solvers may become useful for �nding steady-state

solutions of practical problems in two dimensions. However, a three-dimensional

solver would require a memory of approximatly

N2e�M2

y�M2

z�Mx

words and, for well resolved ow �elds, this probably exceeds memory availability for

some time to come.

On the other hand, consider computing a solution using the factored implicit equa-

tion 12.25. Again computing the right hand side poses no problem. Accumulate the

result of such a computation in the array (RHS). One can then write the remaining

terms in the two-step predictor-corrector form�I �

1

2hA(x)

x

�~U (x) = (RHS)(x)

�I �

1

2hA(y)

y

�U

(y)n+1 = ~U (y) (12.28)

6For matrices as small as those shown there are many gaps in this \�ll", but for meshes of

practical size the �ll is mostly dense.7The lower band is also computed but does not have to be saved unless the solution is to be

repeated for another vector.8One billion oating-point operations per second.

Page 236: Fundamentals of Computational Fluid Dynamics.pdf

228 CHAPTER 12. SPLIT AND FACTORED FORMS

which has the same appearance as Eq. 12.21 but is second-order time accurate. The

�rst step would be solved using My uncoupled block tridiagonal solvers9. Inspecting

the top of Eq. 12.22, we see that this is equivalent to solving My one-dimensional

problems, each with Mx blocks of order Ne. The temporary solution ~U (x) would then

be permuted to ~U (y) and an inspection of the bottom of Eq. 12.23 shows that the �nal

step consists of solving Mx one-dimensional implicit problems each with dimension

My.

12.6 The Delta Form

Clearly many ways can be devised to split the matrices and generate factored forms.

One way that is especially useful, for ensuring a correct steady-state solution in a

converged time-march, is referred to as the \delta form" and we develop it next.

Consider the unfactored form of the trapezoidal method given by Eq. 12.24, and

let the ~(bc) be time invariant:

�I �

1

2hAx �

1

2hAy

�Un+1 =

�I +

1

2hAx +

1

2hAy

�Un + h ~(bc) +O(h3)

From both sides subtract �I �

1

2hAx �

1

2hAy

�Un

leaving the equality unchanged. Then, using the standard de�nition of the di�erence

operator �,

�Un = Un+1 � Un

one �nds

�I �

1

2hAx �

1

2hAy

��Un = h

hAx+yUn +

~(bc)i+O(h3) (12.29)

Notice that the right side of this equation is the product of h and a term that is

identical to the right side of Eq. 12.14, our original ODE. Thus, if Eq. 12.29 converges,

it is guaranteed to converge to the correct steady-state solution of the ODE. Now we

can factor Eq. 12.29 and maintain O(h2) accuracy. We arrive at the expression

�I �

1

2hAx

��I �

1

2hAy

��Un = h

hAx+yUn +

~(bc)i+O(h3) (12.30)

This is the delta form of a factored, 2nd-order, 2-D equation.

9A block tridiagonal solver is similar to a scalar solver except that small block matrix operations

replace the scalar ones, and matrix multiplications do not commute.

Page 237: Fundamentals of Computational Fluid Dynamics.pdf

12.7. PROBLEMS 229

The point at which the factoring is made may not a�ect the order of time-accuracy,

but it can have a profound e�ect on the stability and convergence properties of a

method. For example, the unfactored form of a �rst-order method derived from the

implicit Euler time march is given by Eq. 12.19, and if it is immediately factored,

the factored form is presented in Eq. 12.20. On the other hand, the delta form of the

unfactored Eq. 12.19 is

[I � hAx � hAy]�Un = hhAx+yUn +

~(bc)i

and its factored form becomes10

[I � hAx][I � hAy]�Un = hhAx+yUn + ~(bc)

i(12.31)

In spite of the similarities in derivation, we will see in the next chapter that the

convergence properties of Eq. 12.20 and Eq. 12.31 are vastly di�erent.

12.7 Problems

1. Consider the 1-D heat equation:

@u

@t= �

@2u

@x20 � x � 9

Let u(0; t) = 0 and u(9; t) = 0, so that we can simplify the boundary conditions.

Assume that second order central di�erencing is used, i.e.,

(�xxu)j =1

�x2(uj�1 � 2uj + uj+1)

The uniform grid has �x = 1 and 8 interior points.

(a) Space vector de�nition

i. What is the space vector for the natural ordering (monotonically in-

creasing in index), u(1) ? Only include the interior points.

ii. If we reorder the points with the odd points �rst and then the even

points, write the space vector, u(2) ?

iii. Write down the permutation matrices,(P12,P21).

10Notice that the only di�erence between the O(h2) method given by Eq. 12.30 and the O(h)

method given by Eq. 12.31 is the appearance of the factor 12 on the left side of the O(h2) method.

Page 238: Fundamentals of Computational Fluid Dynamics.pdf

230 CHAPTER 12. SPLIT AND FACTORED FORMS

iv. The generic ODE representing the discrete form of the heat equation

is

du(1)

dt= A1u

(1) + f

Write down the matrix A1. (Note f = 0, due to the boundary condi-

tions) Next �nd the matrix A2 such that

du(2)

dt= A2u

(2)

Note that A2 can be written as

A2 =

264D UT

U D

375

De�ne D and U .

v. Applying implicit Euler time marching, write the delta form of the

implicit algorithm. Comment on the form of the resulting implicit

matrix operator.

(b) System de�nition

In problem 1a, we de�ned u(1); u(2); A1; A2; P12, and P21 which partition

the odd points from the even points. We can put such a partitioning to

use. First de�ne extraction operators

I(o) =

26666666666664

1 0 0 0

0 1 0 0

0 0 1 0

0 0 0 1

0 0 0 0

0 0 0 0

0 0 0 0

0 0 0 0

0 0 0 0

0 0 0 0

0 0 0 0

0 0 0 0

0 0 0 0

0 0 0 0

0 0 0 0

0 0 0 0

37777777777775

=

264I4 04

04 04

375

I(e) =

26666666666664

0 0 0 0

0 0 0 0

0 0 0 0

0 0 0 0

0 0 0 0

0 0 0 0

0 0 0 0

0 0 0 0

0 0 0 0

0 0 0 0

0 0 0 0

0 0 0 0

1 0 0 0

0 1 0 0

0 0 1 0

0 0 0 1

37777777777775

=

26404 04

04 I4

375

Page 239: Fundamentals of Computational Fluid Dynamics.pdf

12.7. PROBLEMS 231

which extract the odd even points from u(2) as follows: u(o) = I(o)u(2) and

u(e) = I(e)u(2).

i. Beginning with the ODE written in terms of u(2), de�ne a splitting

A2 = Ao + Ae, such that Ao operates only on the odd terms, and Ae

operates only on the even terms. Write out the matrices Ao and Ae.

Also, write them in terms of D and U de�ned above.

ii. Apply implicit Euler time marching to the split ODE. Write down the

delta form of the algorithm and the factored delta form. Comment on

the order of the error terms.

iii. Examine the implicit operators for the factored delta form. Comment

on their form. You should be able to argue that these are now trangu-

lar matrices (a lower and an upper). Comment on the solution process

this gives us relative to the direct inversion of the original system.

Page 240: Fundamentals of Computational Fluid Dynamics.pdf

232 CHAPTER 12. SPLIT AND FACTORED FORMS

Page 241: Fundamentals of Computational Fluid Dynamics.pdf

Chapter 13

LINEAR ANALYSIS OF SPLIT

AND FACTORED FORMS

In Section 4.4 we introduced the concept of the representative equation, and used

it in Chapter 7 to study the stability, accuracy, and convergence properties of time-

marching schemes. The question is: Can we �nd a similar equation that will allow

us to evaluate the stability and convergence properties of split and factored schemes?

The answer is yes | for certain forms of linear model equations.

The analysis in this chapter is useful for estimating the stability and steady-state

properties of a wide variety of time-marching schemes that are variously referred

to as time-split, fractional-step, hybrid, and (approximately) factored. When these

methods are applied to practical problems, the results found from this analysis are

neither necessary nor su�cient to guarantee stability. However, if the results indicate

that a method has an instability, the method is probably not suitable for practical

use.

13.1 The Representative Equation for Circulant

Operators

Consider linear PDE's with coe�cients that are �xed in both space and time and with

boundary conditions that are periodic. We have seen that under these conditions

a semi-discrete approach can lead to circulant matrix di�erence operators, and we

discussed circulant eigensystems1 in Section 4.3. In this and the following section

we assume circulant systems and our analysis depends critically on the fact that all

circulant matrices commute and have a common set of eigenvectors.

1See also the discussion on Fourier stability analysis in Section 7.7.

233

Page 242: Fundamentals of Computational Fluid Dynamics.pdf

234 CHAPTER 13. LINEAR ANALYSIS OF SPLIT AND FACTORED FORMS

Suppose, as a result of space di�erencing the PDE, we arrive at a set of ODE's

that can be written

d~u

dt= A

ap~u+A

bp~u� ~f(t) (13.1)

where the subscript p denotes a circulant matrix. Since both matrices have the same

set of eigenvectors, we can use the arguments made in Section 4.2.3 to uncouple the

set and form the M set of independent equations

w0

1 = (�a + �b)1w1 � g1(t)

...

w0

m= (�a + �b)mwm � gm(t)

...

w0

M= (�a + �b)MwM � gM(t) (13.2)

The analytic solution of the m'th line is

wm(t) = cme(�a+�b)mt + P:S:

Note that each �a pairs with one, and only one2, �b since they must share a common

eigenvector. This suggests (see Section 4.4:

The representative equation for split, circulant systems is

du

dt= [�a + �b + �c + � � �]u+ ae�t (13.3)

where �a + �b + �c + � � � are the sum of the eigenvalues in Aa; A

b; A

c; � � � that

share the same eigenvector.

13.2 Example Analysis of Circulant Systems

13.2.1 Stability Comparisons of Time-Split Methods

Consider as an example the linear convection-di�usion equation:

@u

@t+ a

@u

@x= �

@2u

@x2(13.4)

2This is to be contrasted to the developments found later in the analysis of 2-D equations.

Page 243: Fundamentals of Computational Fluid Dynamics.pdf

13.2. EXAMPLE ANALYSIS OF CIRCULANT SYSTEMS 235

If the space di�erencing takes the form

d~u

dt= �

a

2�xBp(�1; 0; 1)~u+

�x2Bp(1;�2; 1)~u (13.5)

the convection matrix operator and the di�usion matrix operator, can be represented

by the eigenvalues �c and �d, respectively, where (see Section 4.3.2):

(�c)m =ia

�xsin �m

(�d)m = �

4�

�x2sin2

�m

2(13.6)

In these equations �m = 2m�=M , m = 0 ; 1 ; � � � ; M � 1 , so that 0 � �m � 2�.

Using these values and the representative equation 13.4, we can analyze the stability

of the two forms of simple time-splitting discussed in Section 12.2. In this section we

refer to these as

1. the explicit-implicit Euler method, Eq. 12.10.

2. the explicit-explicit Euler method, Eq. 12.8.

1. The Explicit-Implicit Method

When applied to Eq. 13.4, the characteristic polynomial of this method is

P (E) = (1� h�d)E � (1 + h�c)

This leads to the principal � root

� =1 + i

ah

�xsin �m

1 + 4h�

�x2sin2

�m

2

where we have made use of Eq. 13.6 to quantify the eigenvalues. Now introduce the

dimensionless numbers

Cn =ah

�x; Courant number

R� =a�x

�; mesh Reynolds number

and we can write for the absolute value of �

j�j =

q1 + C2

nsin2 �m

1 + 4Cn

R�

sin2�m

2

; 0 � �m � 2� (13.7)

Page 244: Fundamentals of Computational Fluid Dynamics.pdf

236 CHAPTER 13. LINEAR ANALYSIS OF SPLIT AND FACTORED FORMS

0 4 8

R∆

C n

0

0.4

0.8

1.2

C n R∆= 2/

Explicit-Implicit

0 4 8

R∆

C n

0

0.4

0.8

1.2

Explicit-Explicit

C n

R∆= 2/C n

R∆= /2

Figure 13.1: _Stability regions for two simple time-split methods.

A simple numerical parametric study of Eq. 13.7 shows that the critical range of

�m for any combination of Cn and R� occurs when �m is near 0 (or 2�). From this

we �nd that the condition on Cn and R� that make j�j � 1 is

h1 + C2

nsin2 �

i=

�1 + 4

Cn

R�

sin2�

2

�2

As �! 0 this gives the stability region

Cn <2

R�

which is bounded by a hyperbola and shown in Fig. 13.1.

2. The Explicit-Explicit Method

An analysis similar to the one given above shows that this method produces

j�j =q1 + C2

nsin2 �m

"1� 4

Cn

R�

sin2�m

2

#; 0 � �m � 2�

Again a simple numerical parametric study shows that this has two critical ranges

of �m, one near 0, which yields the same result as in the previous example, and the

Page 245: Fundamentals of Computational Fluid Dynamics.pdf

13.2. EXAMPLE ANALYSIS OF CIRCULANT SYSTEMS 237

other near 180o, which produces the constraint that

Cn <1

2R� for R� � 2

The resulting stability boundary is also shown in Fig. 13.1. The totaly explicit,

factored method has a much smaller region of stability when R� is small, as we

should have expected.

13.2.2 Analysis of a Second-Order Time-Split Method

Next let us analyze a more practical method that has been used in serious compu-

tational analysis of turbulent ows. This method applies to a ow in which there is

a combination of di�usion and periodic convection. The convection term is treated

explicitly using the second-order Adams-Bashforth method. The di�usion term is

integrated implicitly using the trapezoidal method. Our model equation is again the

linear convection-di�usion equation 13.4 which we split in the fashion of Eq. 13.5. In

order to evaluate the accuracy, as well as the stability, we include the forcing func-

tion in the representative equation and study the e�ect of our hybrid, time-marching

method on the equation

u0 = �cu+ �du+ ae�t

First let us �nd expressions for the two polynomials, P (E) and Q(E). The char-

acteristic polynomial follows from the application of the method to the homogeneous

equation, thus

un+1 = un +1

2h�c(3un � un�1) +

1

2h�d(un+1 + un)

This produces

P (E) = (1�1

2h�d)E

2� (1 +

3

2h�c +

1

2h�d)E +

1

2h�c

The form of the particular polynomial depends upon whether the forcing function is

carried by the AB2 method or by the trapezoidal method. In the former case it is

Q(E) =1

2h(3E � 1) (13.8)

and in the latter

Q(E) =1

2h(E2 + E) (13.9)

Page 246: Fundamentals of Computational Fluid Dynamics.pdf

238 CHAPTER 13. LINEAR ANALYSIS OF SPLIT AND FACTORED FORMS

Accuracy

From the characteristic polynomial we see that there are two �{roots and they are

given by the equation

� =1 +

3

2h�c +

1

2h�d �

s�1 +

3

2h�c +

1

2h�d

�2

� 2h�c

�1�

1

2h�d

2

�1�

1

2h�d

� (13.10)

The principal �-root follows from the plus sign and one can show

�1 = 1 + (�c + �d)h+1

2(�c + �d)

2h2 +1

4

��3d+ �c�

2d� �2

c�d � �3

c

�h3

From this equation it is clear that 16�

3 = 16(�c + �d)

3 does not match the coe�cient

of h3 in �1, so

er� = O(h3)

Using P (e�h) and Q(e�h) to evaluate er� in Section 6.6.3, one can show

er� = O(h3)

using either Eq. 13.8 or Eq. 13.9. These results show that, for the model equation,

the hybrid method retains the second-order accuracy of its individual components.

Stability

The stability of the method can be found from Eq. 13.10 by a parametric study of cnand R� de�ned in Eq. 13.7. This was carried out in a manner similar to that used

to �nd the stability boundary of the �rst-order explicit-implicit method in Section

13.2.1. The results are plotted in Fig. 13.2. For values of R� � 2 this second-order

method has a much greater region of stability than the �rst-order explicit-implicit

method given by Eq. 12.10 and shown in Fig. 13.1.

13.3 The Representative Equation for Space-Split

Operators

Consider the 2-D model3 equations

@u

@t=

@2u

@x2+@2u

@y2(13.11)

3The extension of the following to 3-D is simple and straightforward.

Page 247: Fundamentals of Computational Fluid Dynamics.pdf

13.3. THE REPRESENTATIVE EQUATION FOR SPACE-SPLIT OPERATORS239

R∆

0 4 8

0.4

0.8

1.2

Cn

Stable

Figure 13.2: _Stability regions for the second-order time-split method.

and

@u

@t+ ax

@u

@x+ ay

@u

@y= 0 (13.12)

Reduce either of these, by means of spatial di�erencing approximations, to the coupled

set of ODE's:

dU

dt= [Ax + Ay]U + ~(bc) (13.13)

for the space vector U . The form of the Ax and Ay matrices for three-point central

di�erencing schemes are shown in Eqs. 12.22 and 12.23 for the 3 � 4 mesh shown

in Sketch 12.12. Let us inspect the structure of these matrices closely to see how we

can diagonalize [Ax + Ay] in terms of the individual eigenvalues of the two matrices

considered separately.

First we write these matrices in the form

A(x)x

=

264B B

B

375 A(x)

y=

264~b0 � I ~b1 � I~b�1 � I ~b0 � I ~b1 � I

~b�1 � I ~b0 � I

375

where B is a banded matrix of the form B(b�1; b0; b1). Now �nd the block eigenvector

Page 248: Fundamentals of Computational Fluid Dynamics.pdf

240 CHAPTER 13. LINEAR ANALYSIS OF SPLIT AND FACTORED FORMS

matrix that diagonalizes B and use it to diagonalize A(x)x. Thus2

64X�1

X�1

X�1

375264B B

B

375264X X

X

375 =

264� �

375

where

� =

26664�1

�2�3

�4

37775

Notice that the matrix A(x)y

is transparent to this transformation. That is, if we

set X � diag(X)

X�1

264~b0 � I ~b1 � I~b�1 � I ~b0 � I ~b1 � I

~b�1 � I ~b0 � I

375X =

264~b0 � I ~b1 � I~b�1 � I ~b0 � I ~b1 � I

~b�1 � I ~b0 � I

375

One now permutes the transformed system to the y-vector data-base using the per-

mutation matrix de�ned by Eq. 12.13. There results

Pyx �X�1hA(x)x

+ A(x)y

iX � Pxy =2

6664�1 � I

�2 � I

�3 � I

�4 � I

37775+

266664

~B~B

~B~B

377775 (13.14)

where ~B is the banded tridiagonal matrix B(~b�1;~b0;~b1), see the bottom of Eq. 12.23.

Next �nd the eigenvectors ~X that diagonalize the ~B blocks. Let ~B � diag( ~B) and~X � diag( ~X) and form the second transformation

~X�1 ~B ~X =

26664~�

~�~�

~�

37775 ; ~� =

264~�1

~�2~�3

375

This time, by the same argument as before, the �rst matrix on the right side of

Eq. 13.14 is transparent to the transformation, so the �nal result is the complete

diagonalization of the matrix Ax+y:h~X�1

� Pyx �X�1ihA(x)x+y

ihX � Pxy � ~X

i=2

66664�1I + ~�

�2I + ~�

�3I + ~�

�4I + ~�

377775 (13.15)

Page 249: Fundamentals of Computational Fluid Dynamics.pdf

13.3. THE REPRESENTATIVE EQUATION FOR SPACE-SPLIT OPERATORS241

It is important to notice that:

� The diagonal matrix on the right side of Eq. 13.15 contains every possible com-

bination of the individual eigenvalues of B and ~B.

Now we are ready to present the representative equation for two dimensional sys-

tems. First reduce the PDE to ODE by some choice4 of space di�erencing. This

results in a spatially split A matrix formed from the subsets

A(x)x

= diag(B) ; A(y)y

= diag( ~B) (13.16)

where B and ~B are any two matrices that have linearly independent eigenvectors (this

puts some constraints on the choice of di�erencing schemes).

Although Ax and Ay do commute, this fact, by itself, does not ensure the prop-

erty of \all possible combinations". To obtain the latter property the structure of

the matrices is important. The block matrices B and ~B can be either circulant or

noncirculant; in both cases we are led to the �nal result:

The 2{D representative equation for model linear systems is

du

dt= [�x + �y]u+ ae�t

where �x and �y are any combination of eigenvalues from Ax and Ay, a and � are

(possibly complex) constants, and where Ax and Ay satisfy the conditions in 13.16.

Often we are interested in �nding the value of, and the convergence rate to, the

steady-state solution of the representative equation. In that case we set � = 0 and

use the simpler form

du

dt= [�x + �y]u+ a (13.17)

which has the exact solution

u(t) = ce(�x+�y)t �a

�x + �y(13.18)

4We have used 3-point central di�erencing in our example, but this choice was for convenience

only, and its use is not necessary to arrive at Eq. 13.15.

Page 250: Fundamentals of Computational Fluid Dynamics.pdf

242 CHAPTER 13. LINEAR ANALYSIS OF SPLIT AND FACTORED FORMS

13.4 Example Analysis of 2-D Model Equations

In the following we analyze four di�erent methods for �nding a �xed, steady-state

solution to the 2-D representative equation 13.16. In each case we examine

1. The stability.

2. The accuracy of the �xed, steady-state solution.

3. The convergence rate to reach the steady-state.

13.4.1 The Unfactored Implicit Euler Method

Consider �rst this unfactored, �rst-order scheme which can then be used as a reference

case for comparison with the various factored ones. The form of the method is given

by Eq. 12.19, and when it is applied to the representative equation, we �nd

(1� h �x � h �y)un+1 = un + ha

from which

P (E) = (1� h �x � h �y)E � 1

Q(E) = h (13.19)

giving the solution

un = c

"1

1� h �x � h �y

#n

a

�x + �y

Like its counterpart in the 1-D case, this method:

1. Is unconditionally stable.

2. Produces the exact (see Eq. 13.18) steady-state solution (of the ODE) for any

h.

3. Converges very rapidly to the steady-state when h is large.

Unfortunately, however, use of this method for 2-D problems is generally impractical

for reasons discussed in Section 12.5.

Page 251: Fundamentals of Computational Fluid Dynamics.pdf

13.4. EXAMPLE ANALYSIS OF 2-D MODEL EQUATIONS 243

13.4.2 The Factored Nondelta Form of the Implicit Euler

Method

Now apply the factored Euler method given by Eq. 12.20 to the 2-D representative

equation. There results

(1� h �x)(1� h �y)un+1 = un + ha

from which

P (E) = (1� h �x)(1� h �y)E � 1

Q(E) = h (13.20)

giving the solution

un = c

"1

(1� h �x)(1� h �y)

#n

a

�x + �y � h�x�y

We see that this method:

1. Is unconditionally stable.

2. Produces a steady state solution that depends on the choice of h.

3. Converges rapidly to a steady-state for large h, but the converged solution is

completely wrong.

The method requires far less storage then the unfactored form. However, it is not

very useful since its transient solution is only �rst-order accurate and, if one tries to

take advantage of its rapid convergence rate, the converged value is meaningless.

13.4.3 The Factored Delta Form of the Implicit Euler Method

Next apply Eq. 12.31 to the 2-D representative equation. One �nds

(1� h �x)(1� h �y)(un+1 � un) = h(�xun + �yun + a)

which reduces to

(1� h �x)(1� h �y)un+1 =�1 + h2�x�y

�un + ha

and this has the solution

un = c

"1 + h2�x�y

(1� h �x)(1� h �y)

#n�

a

�x + �y

This method:

Page 252: Fundamentals of Computational Fluid Dynamics.pdf

244 CHAPTER 13. LINEAR ANALYSIS OF SPLIT AND FACTORED FORMS

1. Is unconditionally stable.

2. Produces the exact steady-state solution for any choice of h.

3. Converges very slowly to the steady{state solution for large values of h, since

j�j ! 1 as h!1.

Like the factored nondelta form, this method demands far less storage than the un-

factored form, as discussed in Section 12.5. The correct steady solution is obtained,

but convergence is not nearly as rapid as that of the unfactored form.

13.4.4 The Factored Delta Form of the Trapezoidal Method

Finally consider the delta form of a second-order time-accurate method. Apply Eq.

12.30 to the representative equation and one �nds�1�

1

2h�x

��1�

1

2h�y

�(un+1 � un) = h(�xun + �yun + a)

which reduces to�1�

1

2h�x

��1�

1

2h�y

�un+1 =

�1 +

1

2h�x

��1 +

1

2h�y

�un + ha

and this has the solution

un = c

2664�1 +

1

2h�x

��1 +

1

2h�y

��1�

1

2h�x

��1�

1

2h�y

�3775n

a

�x + �y

This method:

1. Is unconditionally stable.

2. Produces the exact steady{state solution for any choice of h.

3. Converges very slowly to the steady{state solution for large values of h, since

j�j ! 1 as h!1.

All of these properties are identical to those found for the factored delta form of the

implicit Euler method. Since it is second order in time, it can be used when time

accuracy is desired, and the factored delta form of the implicit Euler method can be

used when a converged steady-state is all that is required.5 A brief inspection of eqs.

12.26 and 12.27 should be enough to convince the reader that the �'s produced by

those methods are identical to the � produced by this method.

5In practical codes, the value of h on the left side of the implicit equation is literally switched

from h to 12h.

Page 253: Fundamentals of Computational Fluid Dynamics.pdf

13.5. EXAMPLE ANALYSIS OF THE 3-D MODEL EQUATION 245

13.5 Example Analysis of the 3-D Model Equation

The arguments in Section 13.3 generalize to three dimensions and, under the condi-

tions given in 13.16 with an A(z)z

included, the model 3-D cases6 have the following

representative equation (with � = 0):

du

dt= [�x + �y + �z]u+ a (13.21)

Let us analyze a 2nd-order accurate, factored, delta form using this equation. First

apply the trapezoidal method:

un+1 = un +1

2h[(�x + �y + �z)un+1 + (�x + �y + �z)un + 2a]

Rearrange terms:

�1�

1

2h(�x + �y + �z)

�un+1 =

�1 +

1

2h(�x + �y + �z)

�un + ha

Put this in delta form:�1�

1

2h(�x + �y + �z)

��un = h[(�x + �y + �z)un + a]

Now factor the left side:�1�

1

2h�x

��1�

1

2h�y

��1�

1

2h�z

��un = h[(�x + �y + �z)un + a] (13.22)

This preserves second order accuracy since the error terms

1

4h2(�x�y + �x�z + �y�z)�un and

1

8h3�x�y�z

are both O(h3). One can derive the characteristic polynomial for Eq. 13.22, �nd the

� root, and write the solution either in the form

un = c

26641 +

1

2h(�x + �y + �z) +

1

4h2(�x�y + �x�z + �y�z)�

1

8h3�x�y�z

1�1

2h(�x + �y + �z) +

1

4h2(�x�y + �x�z + �y�z)�

1

8h3�x�y�z

3775n

a

�x + �y + �z(13.23)

6Eqs. 13.11 and 13.12, each with an additional term.

Page 254: Fundamentals of Computational Fluid Dynamics.pdf

246 CHAPTER 13. LINEAR ANALYSIS OF SPLIT AND FACTORED FORMS

or in the form

un = c

2664�1 +

1

2h�x

��1 +

1

2h�y

��1 +

1

2h�z

��

1

4h3�x�y�z�

1�1

2h�x

��1�

1

2h�y

��1�

1

2h�z

�3775n

a

�x + �y + �z(13.24)

It is interesting to notice that a Taylor series expansion of Eq. 13.24 results in

� = 1 + h(�x + �y + �z) +1

2h2(�x + �y + �z)

2(13.25)

+1

4h3h�3z+ (2�y + 2�x) +

�2�2

y+ 3�x�y + 2�2

y

�+ �3

y+ 2�x�

2y+ 2�2

x�y + �3

x

i+ � � �

which veri�es the second order accuracy of the factored form. Furthermore, clearly,

if the method converges, it converges to the proper steady-state.7

With regards to stability, it follows from Eq. 13.23 that, if all the �'s are real and

negative, the method is stable for all h. This makes the method unconditionally stable

for the 3-D di�usion model when it is centrally di�erenced in space.

Now consider what happens when we apply this method to the biconvection model,

the 3-D form of Eq. 13.12 with periodic boundary conditions. In this case, central

di�erencing causes all of the �'s to be imaginary with spectrums that include both

positive and negative values. Remember that in our analysis we must consider every

possible combination of these eigenvalues. First write the � root in Eq. 13.23 in the

form

� =1 + i�� � + i

1� i�� � + i

where �, � and are real numbers that can have any sign. Now we can always �nd

one combination of the �'s for which �, and are both positive. In that case since

the absolute value of the product is the product of the absolute values

j�j2=

(1� �)2 + (� + )2

(1� �)2 + (�� )2> 1

and the method is unconditionally unstable for the model convection problem.

From the above analysis one would come to the conclusion that the method rep-

resented by Eq. 13.22 should not be used for the 3-D Euler equations. In practical

cases, however, some form of dissipation is almost always added to methods that are

used to solve the Euler equations and our experience to date is that, in the presence

of this dissipation, the instability disclosed above is too weak to cause trouble.

7However, we already knew this because we chose the delta form.

Page 255: Fundamentals of Computational Fluid Dynamics.pdf

13.6. PROBLEMS 247

13.6 Problems

1. Starting with the generic ODE,

du

dt= Au+ f

we can split A as follows: A = A1+A2+A3+A4. Applying implicit Euler time

marching gives

un+1 � un

h= A1un+1 + A2un+1 + A3un+1 + A4un+1 + f

(a) Write the factored delta form. What is the error term?

(b) Instead of making all of the split terms implicit, leave two explicit:

un+1 � un

h= A1un+1 + A2un + A3un+1 + A4un + f

Write the resulting factored delta form and de�ne the error terms.

(c) The scalar representative equation is

du

dt= (�1 + �2 + �3 + �4)u+ a

For the fully implicit scheme of problem 1a, �nd the exact solution to the

resulting scalar di�erence equation and comment on the stability, conver-

gence, and accuracy of the converged steady-state solution.

(d) Repeat 1c for the explicit-implicit scheme of problem 1b.

Page 256: Fundamentals of Computational Fluid Dynamics.pdf

248 CHAPTER 13. LINEAR ANALYSIS OF SPLIT AND FACTORED FORMS

Page 257: Fundamentals of Computational Fluid Dynamics.pdf

Appendix A

USEFUL RELATIONS AND

DEFINITIONS FROM LINEAR

ALGEBRA

A basic understanding of the fundamentals of linear algebra is crucial to our develop-

ment of numerical methods and it is assumed that the reader is at least familar withthis subject area. Given below is some notation and some of the important relations

between matrices and vectors.

A.1 Notation

1. In the present context a vector is a vertical column or string. Thus

~v =

26664

v1v2...vm

37775

and its transpose ~vTis the horizontal row

~vT= [v1; v2; v3; : : : ; vm] ; ~v = [v1; v2; v3; : : : ; vm]

T

2. A general m�m matrix A can be written

A = (aij) =

26664

a11 a12 � � � a1ma21 a22 � � � a2m

. . .

am1 am2 � � � amm

37775

249

Page 258: Fundamentals of Computational Fluid Dynamics.pdf

250APPENDIX A. USEFUL RELATIONS ANDDEFINITIONS FROM LINEAR ALGEBRA

3. An alternative notation for A is

A =h~a1;~a2; : : : ;~am

i

and its transpose AT is

AT =

2666664

~aT

1

~aT

2

...~aT

m

3777775

4. The inverse of a matrix (if it exists) is written A�1 and has the property that

A�1A = AA�1 = I, where I is the identity matrix.

A.2 De�nitions

1. A is symmetric if AT = A.

2. A is skew-symmetric or antisymmetric if AT = �A.

3. A is diagonally dominant if aii �P

j 6=i jaijj ; i = 1; 2; : : : ; m and aii >P

j 6=i jaijj

for at least one i.

4. A is orthogonal if aij are real and ATA = AAT = I

5. �A is the complex conjugate of A.

6. P is a permutation matrix if P~v is a simple reordering of ~v.

7. The trace of a matrix isP

i aii.

8. A is normal if ATA = AAT .

9. det[A] is the determinant of A.

10. AH is the conjugate transpose of A, (Hermitian).

11. If

A =

�a b

c d

thendet[A] = ad� bc

and

A�1 =1

det[A]

�d �b

�c a

Page 259: Fundamentals of Computational Fluid Dynamics.pdf

A.3. ALGEBRA 251

A.3 Algebra

We consider only square matrices of the same dimension.

1. A and B are equal if aij = bij for all i; j = 1; 2; : : : ; m.

2. A+ (B + C) = (C + A) +B, etc.

3. sA = (saij) where s is a scalar.

4. In general AB 6= BA.

5. Transpose equalities:

(A+B)T = AT +BT

(AT )T = A

(AB)T = BTAT

6. Inverse equalities (if the inverse exists):

(A�1)�1 = A

(AB)�1 = B�1A�1

(AT )�1 = (A�1)T

7. Any matrix A can be expressed as the sum of a symmetric and a skew-symmetric

matrix. Thus:

A =1

2

�A+ AT

�+

1

2

�A� AT

A.4 Eigensystems

1. The eigenvalue problem for a matrix A is de�ned as

A~x = �~x or [A� �I]~x = 0

and the generalized eigenvalue problem, including the matrix B, as

A~x = �B~x or [A� �B]~x = 0

2. If a square matrix with real elements is symmetric, its eigenvalues are all real.

If it is asymmetric, they are all imaginary.

Page 260: Fundamentals of Computational Fluid Dynamics.pdf

252APPENDIX A. USEFUL RELATIONS ANDDEFINITIONS FROM LINEAR ALGEBRA

3. Gershgorin's theorem: The eigenvalues of a matrix lie in the complex plane in

the union of circles having centers located by the diagonals with radii equal to

the sum of the absolute values of the corresponding o�-diagonal row elements.

4. In general, an m �m matrix A has n~x linearly independent eigenvectors with

n~x � m and n� distinct eigenvalues (�i) with n� � n~x � m.

5. A set of eigenvectors is said to be linearly independent if

a � ~xm + b � ~xn 6= ~xk ; m 6= n 6= k

for any complex a and b and for all combinations of vectors in the set.

6. If A posseses m linearly independent eigenvectors then A is diagonalizable, i.e.,

X�1AX = �

where X is a matrix whose columns are the eigenvectors,

X =h~x1; ~x2; : : : ; ~xm

i

and � is the diagonal matrix

� =

266664

�1 0 � � � 0

0 �2. . .

......

. . .. . . 0

0 � � � 0 �m

377775

If A can be diagonalized, its eigenvectors completely span the space, and A issaid to have a complete eigensystem.

7. If A has m distinct eigenvalues, then A is always diagonalizable, and witheach distinct eigenvalue there is one associated eigenvector, and this eigenvector

cannot be formed from a linear combination of any of the other eigenvectors.

8. In general, the eigenvalues of a matrix may not be distinct, in which case the

possibility exists that it cannot be diagonalized. If the eigenvalues of a matrix

are not distinct, but all of the eigenvectors are linearly independent, the matrixis said to be derogatory, but it can still be diagonalized.

9. If a matrix does not have a complete set of linearly independent eigenvectors,

it cannot be diagonalized. The eigenvectors of such a matrix cannot span the

space and the matrix is said to have a defective eigensystem.

Page 261: Fundamentals of Computational Fluid Dynamics.pdf

A.4. EIGENSYSTEMS 253

10. Defective matrices cannot be diagonalized but they can still be put into a com-

pact form by a similarity transform, S, such that

J = S�1AS =

266664

J1 0 � � � 0

0 J2. . .

......

. . .. . . 0

0 � � � 0 Jk

377775

where there are k linearly independent eigenvectors and Ji is either a Jordan

subblock or �i.

11. A Jordan submatrix has the form

Ji =

266666664

�i 1 0 � � � 0

0 �i 1. . .

...

0 0 �i. . . 0

.... . .

. . . 1

0 � � � 0 0 �i

377777775

12. Use of the transform S is known as putting A into its Jordan Canonical form.A repeated root in a Jordan block is referred to as a defective eigenvalue. For

each Jordan submatrix with an eigenvalue �i of multiplicity r, there exists oneeigenvector. The other r�1 vectors associated with this eigenvalue are referred

to as principal vectors. The complete set of principal vectors and eigenvectors

are all linearly independent.

13. Note that if P is the permutation matrix

P =

2640 0 10 1 01 0 0

375 ; P T = P�1 = P

then

P�1

264� 1 0

0 � 10 0 �

375P =

264� 0 0

1 � 00 1 �

375

14. Some of the Jordan subblocks may have the same eigenvalue. For example, the

Page 262: Fundamentals of Computational Fluid Dynamics.pdf

254APPENDIX A. USEFUL RELATIONS ANDDEFINITIONS FROM LINEAR ALGEBRA

matrix 266666666666664

264�1 1

�1 1

�1

375

�1 ��1 1

�1

���2 1

�2

�3

377777777777775

is both defective and derogatory, having:

� 9 eigenvalues

� 3 distinct eigenvalues

� 3 Jordan blocks

� 5 linearly independent eigenvectors

� 3 principal vectors with �1

� 1 principal vector with �2

A.5 Vector and Matrix Norms

1. The spectral radius of a matrix A is symbolized by �(A) such that

�(A) = j�mjmax

where �m are the eigenvalues of the matrix A.

2. A p-norm of the vector ~v is de�ned as

jjvjjp =

0@ MXj=1

jvjjp

1A1=p

3. A p-norm of a matrix A is de�ned as

jjAjjp = maxx6=0

jjAvjjp

jjvjjp

Page 263: Fundamentals of Computational Fluid Dynamics.pdf

A.5. VECTOR AND MATRIX NORMS 255

4. Let A and B be square matrices of the same order. All matrix norms must have

the properties

jjAjj � 0; jjAjj = 0 implies A = 0

jjc � Ajj = jcj � jjAjj

jjA+Bjj � jjAjj+ jjBjj

jjA �Bjj � jjAjj � jjBjj

5. Special p-norms are

jjAjj1 = maxj=1;���;MPM

i=1 jaijj maximum column sum

jjAjj2 =q�(A

T� A)

jjAjj1 = maxi=1;2;���;MPM

j=1 jaijj maximum row sum

where jjAjjp is referred to as the Lp norm of A.

6. In general �(A) does not satisfy the conditions in 4, so in general �(A) is not atrue norm.

7. When A is normal, �(A) is a true norm, in fact, in this case it is the L2 norm.

8. The spectral radius of A, �(A), is the lower bound of all the norms of A.

Page 264: Fundamentals of Computational Fluid Dynamics.pdf

256APPENDIX A. USEFUL RELATIONS ANDDEFINITIONS FROM LINEAR ALGEBRA

Page 265: Fundamentals of Computational Fluid Dynamics.pdf

Appendix B

SOME PROPERTIES OF

TRIDIAGONAL MATRICES

B.1 Standard Eigensystem for Simple Tridiagonals

In this work tridiagonal banded matrices are prevalent. It is useful to list some of

their properties. Many of these can be derived by solving the simple linear di�erence

equations that arise in deriving recursion relations.

Let us consider a simple tridiagonal matrix, i.e., a tridiagonal with constant scalar

elements a,b, and c, see Section 3.4. If we examine the conditions under which the

determinant of this matrix is zero, we �nd (by a recursion exercise)

det[B(M : a; b; c)] = 0

if

b + 2pac cos

�m�

M + 1

�= 0 ; m = 1; 2; � � � ;M

From this it follows at once that the eigenvalues of B(a; b; c) are

�m = b + 2pac cos

�m�

M + 1

�; m = 1; 2; � � � ;M (B.1)

The right-hand eigenvector of B(a; b; c) that is associated with the eigenvalue �msatis�es the equation

B(a; b; c)~xm = �m~xm (B.2)

and is given by

~xm = (xj)m =

�a

c

�j � 12 sin

�j

�m�

M + 1

��; m = 1; 2; � � � ;M (B.3)

257

Page 266: Fundamentals of Computational Fluid Dynamics.pdf

258 APPENDIX B. SOME PROPERTIES OF TRIDIAGONAL MATRICES

These vectors are the columns of the right-hand eigenvector matrix, the elements of

which are

X = (xjm) =

�a

c

�j � 12 sin

�jm�

M + 1

�;

j = 1; 2; � � � ;Mm = 1; 2; � � � ;M (B.4)

Notice that if a = �1 and c = 1,

�a

c

�j � 12 = e

i(j�1)�2 (B.5)

The left-hand eigenvector matrix of B(a; b; c) can be written

X�1 =2

M + 1

�c

a

�m� 12 sin

�mj�

M + 1

�;

m = 1; 2; � � � ;Mj = 1; 2; � � � ;M

In this case notice that if a = �1 and c = 1

�c

a

�m� 12 = e

�i(m�1)�2 (B.6)

B.2 Generalized Eigensystem for Simple Tridiag-

onals

This system is de�ned as follows26666664

b c

a b c

a b. . . ca b

37777775

26666664

x1x2x3...

xM

37777775= �

26666664

e f

d e f

d e. . . fd e

37777775

26666664

x1x2x3...

xM

37777775

In this case one can show after some algebra that

det[B(a� �d; b� �e; c� �f ] = 0 (B.7)

if

b� �me+ 2q(a� �md)(c� �mf) cos

�m�

M + 1

�= 0 ; m = 1; 2; � � � ;M (B.8)

If we de�ne

�m =m�

M + 1; pm = cos �m

Page 267: Fundamentals of Computational Fluid Dynamics.pdf

B.3. THE INVERSE OF A SIMPLE TRIDIAGONAL 259

�m =eb� 2(cd+ af)p2

m+ 2pm

q(ec� fb)(ea� bd) + [(cd� af)pm]

2

e2 � 4fdp2m

The right-hand eigenvectors are

~xm =

"a� �md

c� �mf

#j � 12

sin [j�m] ;m = 1; 2; � � � ;Mj = 1; 2; � � � ;M

These relations are useful in studying relaxation methods.

B.3 The Inverse of a Simple Tridiagonal

The inverse of B(a; b; c) can also be written in analytic form. Let DM represent the

determinant of B(M : a; b; c)

DM � det[B(M : a; b; c)]

De�ning D0 to be 1, it is simple to derive the �rst few determinants, thus

D0 = 1

D1 = b

D2 = b2 � ac

D3 = b3 � 2abc (B.9)

One can also �nd the recursion relation

DM = bDM�1 � acDM�2 (B.10)

Eq. B.10 is a linear O�E the solution of which was discussed in Section 4.2. Its

characteristic polynomial P (E) is P (E2 � bE + ac) and the two roots to P (�) = 0

result in the solution

DM =1p

b2 � 4ac

8<:"b +

pb2 � 4ac

2

#M+1

�"b�

pb2 � 4ac

2

#M+19=;

M = 0; 1; 2; � � � (B.11)

where we have made use of the initial conditions D0 = 1 and D1 = b. In the limiting

case when b2 � 4ac = 0, one can show that

DM = (M + 1)

b

2

!M; b2 = 4ac

Page 268: Fundamentals of Computational Fluid Dynamics.pdf

260 APPENDIX B. SOME PROPERTIES OF TRIDIAGONAL MATRICES

Then for M = 4

B�1 =1

D4

26664

D3 �cD2 c2D1 �c3D0

�aD2 D1D2 �cD1D1 c2D1

a2D1 �aD1D1 D2D1 �cD2

�a3D0 a2D1 �aD2 D3

37775

and for M = 5

B�1 =1

D5

2666664

D4 �cD3 c2D2 �c3D1 c4D0

�aD3 D1D3 �cD1D2 c2D1D1 �c3D1

a2D2 �aD1D2 D2D2 �cD2D1 c2D2

�a3D1 a2D1D1 �aD2D1 D3D1 �cD3

a4D0 �a3D1 a2D2 �aD3 D4

3777775

The general element dmn is

Upper triangle:

m = 1; 2; � � � ;M � 1 ; n = m + 1; m+ 2; � � � ;M

dmn = Dm�1DM�n(�c)n�m=DM

Diagonal:

n = m = 1; 2; � � � ;M

dmm = DM�1DM�m=DM

Lower triangle:

m = n + 1; n+ 2; � � � ;M ; n = 1; 2; � � � ;M � 1

dmn = DM�mDn�1(�a)m�n=DM

B.4 Eigensystems of Circulant Matrices

B.4.1 Standard Tridiagonals

Consider the circulant (see Section 3.4.4) tridiagonal matrix

Bp(M : a; b; c; ) (B.12)

Page 269: Fundamentals of Computational Fluid Dynamics.pdf

B.4. EIGENSYSTEMS OF CIRCULANT MATRICES 261

The eigenvalues are

�m = b + (a+ c) cos

�2�m

M

�� i(a� c) sin

�2�m

M

�; m = 0; 1; 2; � � � ;M � 1

(B.13)

The right-hand eigenvector that satis�es Bp(a; b; c)~xm = �m~xm is

~xm = (xj)m = ei j (2�m=M) ; j = 0; 1; � � � ;M � 1 (B.14)

where i �p�1, and the right-hand eigenvector matrix has the form

X = (xjm) = eij

�2�mM

�;

j = 0; 1; � � � ;M � 1

m = 0; 1; � � � ;M � 1

The left-hand eigenvector matrix with elements x0 is

X�1 = (x0mj) =

1

Me�im

�2�jM

�;

m = 0; 1; � � � ;M � 1

j = 0; 1; � � � ;M � 1

Note that both X and X�1 are symmetric and that X�1 = 1MX�, where X� is the

conjugate transpose of X.

B.4.2 General Circulant Systems

Notice the remarkable fact that the elements of the eigenvector matrices X and X�1

for the tridiagonal circulant matrix given by eq. B.12 do not depend on the elements

a; b; c in the matrix. In fact, all circulant matrices of order M have the same set of

linearly independent eigenvectors, even if they are completely dense. An example of

a dense circulant matrix of order M = 4 is26664b0 b1 b2 b3b3 b0 b1 b2b2 b3 b0 b1b1 b2 b3 b0

37775 (B.15)

The eigenvectors are always given by eq. B.14, and further examination shows that

the elements in these eigenvectors correspond to the elements in a complex harmonic

analysis or complex discrete Fourier series.

Although the eigenvectors of a circulant matrix are independent of its elements,

the eigenvalues are not. For the element indexing shown in eq. B.15 they have the

general form

�m =M�1Xj=0

bjei(2�jm=M)

of which eq. B.13 is a special case.

Page 270: Fundamentals of Computational Fluid Dynamics.pdf

262 APPENDIX B. SOME PROPERTIES OF TRIDIAGONAL MATRICES

B.5 Special Cases Found From Symmetries

Consider a mesh with an even number of interior points such as that shown in Fig.

B.1. One can seek from the tridiagonal matrix B(2M : a; b; a; ) the eigenvector subset

that has even symmetry when spanning the interval 0 � x � �. For example, we seek

the set of eigenvectors ~xm for which

2666666664

b aa b a

a. . .

. . . a

a b a

a b

3777777775

26666666664

x1x2......

x2x1

37777777775= �m

26666666664

x1x2......

x2x1

37777777775

This leads to the subsystem of order M which has the form

B(M : a;~b; a)~xm =

266666666664

b a

a b a

a. . .

. . . aa b a

a b + a

377777777775~xm = �m~xm (B.16)

By folding the known eigenvectors of B(2M : a; b; a) about the center, one can show

from previous results that the eigenvalues of eq. B.16 are

�m = b + 2a cos

(2m� 1)�

2M + 1

!; m = 1; 2; � � � ;M (B.17)

Page 271: Fundamentals of Computational Fluid Dynamics.pdf

B.6. SPECIAL CASES INVOLVING BOUNDARY CONDITIONS 263

and the corresponding eigenvectors are

~xm = sin

�j(2m� 1)�2M + 1

�;

j = 1; 2; � � � ;M

Imposing symmetry about the same interval

but for a mesh with an odd number of points,

see Fig. B.1, leads to the matrix

B(M : ~a; b; a) =

2666666664

b a

a b a

a. . .

. . . a

a b a2a b

3777777775

By folding the known eigenvalues of B(2M �1 : a; b; a) about the center, one can show

from previous results that the eigenvalues of

eq. B.17 are

Line of Symmetry

x = 0 x = �� � � � � � � �

j 0 = 1 2 3 4 5 6

M 0

j = 1 2 3

M

a. An even-numbered mesh

Line of Symmetry

x = 0 x = �� � � � � � �

j 0 = 1 2 3 4 5

M 0

j = 1 2 3

M

b. An odd{numbered mesh

Figure B.1 { Symmetrical folds for

special cases

�m = b + 2a cos

(2m� 1)�

2M

!; m = 1; 2; � � � ;M

and the corresponding eigenvectors are

~xm = sin

j(2m� 1)�

2M

!; j = 1; 2; � � � ;M

B.6 Special Cases Involving Boundary Conditions

We consider two special cases for the matrix operator representing the 3-point central

di�erence approximation for the second derivative @2=@x2 at all points away from the

boundaries, combined with special conditions imposed at the boundaries.

Page 272: Fundamentals of Computational Fluid Dynamics.pdf

264 APPENDIX B. SOME PROPERTIES OF TRIDIAGONAL MATRICES

Note: In both cases

m = 1; 2; � � � ;Mj = 1; 2; � � � ;M

�2 + 2 cos(�) = �4 sin2(�=2)

When the boundary conditions are Dirichlet on both sides,

26666664

�2 1

1 �2 1

1 �2 1

1 �2 1

1 �2

37777775

�m = �2 + 2 cos�

m�M + 1

�~xm = sin

hj�

m�M + 1

�i (B.18)

When one boundary condition is Dirichlet and the other is Neumann (and a diagonal

preconditioner is applied to scale the last equation),

26666664

�2 1

1 �2 1

1 �2 1

1 �2 1

1 �1

37777775

�m = �2 + 2 cos

�(2m� 1)�2M + 1

�~xm = sin

�j

�(2m� 1)�2M + 1

�� (B.19)

Page 273: Fundamentals of Computational Fluid Dynamics.pdf

Appendix C

THE HOMOGENEOUS

PROPERTY OF THE EULER

EQUATIONS

The Euler equations have a special property that is sometimes useful in constructing

numerical methods. In order to examine this property, let us �rst inspect Euler's

theorem on homogeneous functions. Consider �rst the scalar case. If F (u; v) satis�es

the identity

F (�u; �v) = �nF (u; v) (C.1)

for a �xed n, F is called homogeneous of degree n. Di�erentiating both sides with

respect to � and setting � = 1 (since the identity holds for all �), we �nd

u@F

@u+ v

@F

@v= nF (u; v) (C.2)

Consider next the theorem as it applies to systems of equations. If the vector

F (Q) satis�es the identity

F (�Q) = �nF (Q) (C.3)

for a �xed n, F is said to be homogeneous of degree n and we �nd

"@F

@q

#Q = nF (Q) (C.4)

265

Page 274: Fundamentals of Computational Fluid Dynamics.pdf

266APPENDIX C. THE HOMOGENEOUS PROPERTY OF THE EULER EQUATIONS

Now it is easy to show, by direct use of eq. C.3, that both E and F in eqs. 2.11 and

2.12 are homogeneous of degree 1, and their Jacobians, A and B, are homogeneous

of degree 0 (actually the latter is a direct consequence of the former).1 This being

the case, we notice that the expansion of the ux vector in the vicinity of tn which,

according to eq. 6.105 can be written in general as,

E = En + An(Q�Qn) +O(h2)

F = Fn +Bn(Q�Qn) +O(h2) (C.5)

can be written

E = AnQ+O(h2)

F = BnQ+O(h2) (C.6)

since the terms En � AnQn and Fn � BnQn are identically zero for homogeneous

vectors of degree 1, see eq. C.4. Notice also that, under this condition, the constant

term drops out of eq. 6.106.

As a �nal remark, we notice from the chain rule that for any vectors F and Q

@F (Q)

@x=

"@F

@Q

#@Q

@x= A

@Q

@x(C.7)

We notice also that for a homogeneous F of degree 1, F = AQ and

@F

@x= A

@Q

@x+

"@A

@x

#Q (C.8)

Therefore, if F is homogeneous of degree 1,

"@A

@x

#Q = 0 (C.9)

in spite of the fact that individually [@A=@x] and Q are not equal to zero.

1Note that this depends on the form of the equation of state. The Euler equations are homoge-

neous if the equation of state can be written in the form p = �f(�), where � is the internal energy

per unit mass.

Page 275: Fundamentals of Computational Fluid Dynamics.pdf

Bibliography

[1] D. Anderson, J. Tannehill, and R. Pletcher. Computational Fluid Mechanics and

Heat Transfer. McGraw-Hill Book Company, New York, 1984.

[2] C. Hirsch. Numerical Computation of Internal and External Flows, volume 1,2.

John Wiley & Sons, New York, 1988.

267