AN EXPLORATION OF COMPACT FINITE DIFFERENCE METHODS FOR THE NUMERICAL SOLUTION OF PDE
by
Mohammad Ozair Ahmed
Department of Applied Mathematics
Submitted in partial fuIfilIment
of the requirements for the degree of
Doctor of PhiIosophy
Faculty of Graduate Studies
The University of Western Ontario
London, Ontario
June 1997
@ Mohammad Ozair Ahmed 1997
National Library 191 ofCanada Bibliothèque nationale du Canada
Acquisitions and Acquisitions et Bibliographie SeMces services bibliographiques 395 Wellington Street 395, rue Wellington OtiawaON K1AûN4 OtiawaON K1AOfU4 Canada Canada
The author has granted a non- exclusive licence allowing the National Library of Canada to reproduce, loan, distribute or sel1 copies of this thesis in microform, paper or elecbonic formats.
The author retains ownership of the copyright in this thesis. Neither the thesis nor substantial extracts Erom it may be printed or otherwise reproduced without the author's permission.
L'auteur a accordé une licence non exclusive permettant à la Bibliothèque nationale du Canada de reproduire, prêter, distribuer ou vendre des copies de cette thèse sous la fome de microfiche/nlm, de reproduction sur papier ou sur format électronique.
L'auteur conserve la propriété du droit d'auteur qui protège cette thèse. Ni la thèse ni des extraits substantiels de celle-ci ne doivent être imprimés ou autrement reproduits sans son autorisation.
In this thesis, we investigate the qualitative and quantitative behaviour of a wide
range of numencal rnethods for differential equations. Our main focus is on compact
and moving mesh methods. both of which have attracted much attention recently due
to their efficiency and high order accuracy. In order to study the properties of the
numerical solutions such as accuracy, consistency, and stability, we use the method
of modified equations. We simplify the tedious procedure of obtaining the modified
equations by using the cornputer algebra language Waple. In order to evduate the
relative effectiveness of the various numerical schemes, we carry out a number of
relevant experiments using appropriate equations such as the heat equatioil, the one-
dimensional gas equation, the Van der Pol equation, and the Kuramoto-Sivashinsky
equation.
\Ve show that compact methods can yield high order accuracy for a relatively
low computational cost. We show that only rhree point computational grid points
are required to achieve a fourth order accurate solution. We develop a new family
of compact methods, that give matrices that can be factored analytically leading to
improved cornputational efficiency.
By using the equidistributicn pnnciple as a guide, we implement the moving mesh
method for the one-dimensional gas equation. The moving mesh methods give better
results t han the standard uniform mesh methods.
iii
In the rnemory of
My brother: Major (Dr.) Muhammad Sohail Ahmad,
and
My cousin: Omar Tariq
ACKNOWLEDGEMENTS
1 would like to express my deep gratitude to my t hesis supervisors Professors Henning
Rasmussen and Robert Malcoh Corless for their expert guidance, active cooperation,
and stirnulating discussions at al1 stages of rny research work.
1 take this opportunity to thank Dr. Kenzu Abdella for his sincere academic help
and care during my student life at the University of Western Ontario.
Thanks also go to al1 the faculty and feilow graduate students of the Applied Math-
ematics Department with whom I had useful discussions. 1 would like to thank the
secretaries of the Department of Applied Mathernatics, hudrey Kager, Pat Malone,
and Gayle McKenzie for their help.
Financial support from the Canadian Commonwealth Scholarship Agency is geatly
appreciated.
Finally, praise goes to the most benevolent, ever-rnerciful, al1 knowing, and al1 powerful -4llah who made it al1 possible.
TABLE OF CONTENTS
CERTIFICATE OF EXAMINATION
ABSTRACT
DEDICATION
ii
iii
iv
ACKNOWLEDGEMENTS v
TABLE OF CONTENTS vi
LIST OF TABLES xi
LIST OF FIGURES xii
Chapter 1 Introduction 1
Chapter 2 The Method of ModXed Equations (ODES) 6
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.1 Introduction 6
2.2 Derivation of Modified Equations for First Order ODES . . . . . . . . 9
2.2.1 Example: A Modified Equation for y' = y2 . . . . . . . . . . . 9
2.2.2 Example: A Modified Equation for y' = y2 - t . . . . . . . . . 13
2.3 Higher Order ODES . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.3.1 Example: A Modified Equation for y" + y = O . . . . . . . . . 15
vi
2.3.2 Example: .4 Modified Equation for the Van der Pol equation . 19
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.4 Results 21
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.5 Conclusions 23
Chapter 3 The Method of Modified Equations (PDEs) 35
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.1 Introduction 35
. . . . . . . . . . . . . . . 3.2 Derivation of Modified Equations for PDEs 36
3.2.1 Example: A Modified Eguation for & + cf, = O . . . . . . . . . 36
3.2.2 Example: .4 îvlodified Equation for = dJzz . . . . . . . . . . 45
3.2.3 Example: -4 Modified Equation for + cf, = dJzz . . . . . . . 47
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3 Conclusion 49
Chapter 4 Compact Methods
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.1 Introduction
. . . . . . . . . . . . . . 4.2 Fourth Order Compact Method 1 (FOCMI)
. . . . . . . . . . . . . . . . . . . . . . 4.2.1 Accuracy of the scheme
4.2.2 Difference scheme using compact scheme for u, and Forward
Euler scheme for ut . . . . . . . . . . . . . . . . . . . . . . . .
4.2.3 Difference scheme using a compact scheme for u, and a Back- . . . . . . . . . . . . . . . . . . . . . ward Euler scheme for ut
4.2.4 Difference scheme using compact scheme for u, and a Crank-
. . . . . . . . . . . . . . . . . . . . . . . Nicolson scheme for ut
. . . . . . . . . . . . . . 4.3 Fourth Order Compact Method 3 (FOCM2)
. . . . . . . . . . . . . . 4.4 Fourth Order Compact Method 3 (FOCM3)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.5 Results
. . . . . . . . . . . . . . . . . . . 4.5.1 Influence of rounding errors
4.6 Check that FOCM3 actually has fourth order accuracy . . . . . . . . 65
. . . . . . . . . . . . . . . . 4.6.1 Analysis of the modified equation 66
4.7 Compact Methods Allow Fast Jacobian-Vector Multiplication . . . . 67
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.8 Conclusions 70
Chapter 5 Numerical Procedures for the Kuramoto-Sivashinsky Equation 75
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Introduction 75
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.2 Formulation 76
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.3 Methodsofsolution 77
5.3.1 Second Order Finite Difference Method (SOFDM) . . . . . . . 78
5.3.2 Second Order Compact Method (SOCM) . . . . . . . . . . . . 78
5.3.3 Fourth Order Finite Difference Method (FOFDM) . . . . . . . 79
5.3.4 Fourth Order Compact Method (FOCMI) . . . . . . . . . . . 80
5.3.5 A New Compact Formulation (FOCM2) . . . . . . . . . . . . 80
. . . . . . . . . . . . . . . . . . . . . . . . . . 5.4 Results and Discussion 83
. . . . . . . . . . . . . . . . . . . . . . . . . . . 5.5 Concluding Remarks 84
Chapter 6 The Gas Dynamics Equation 94
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.1 Introduction 94
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.2 Formulation 95
. . . . . . . . . . . . . . . . . . . . . . 6.3 Addition of Artificial Viscosity 97
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.4 Methods of solution 99
6.4.1 Second Order Finite Dinerence Method (SOFDM) . . . . . . . 99
6.4.2 Second Order Finite DiEerence Method 2 (SOFDM2) . . . . . 100
6.4.3 Fourth Order Finite DifFerence Method (FOFDM) . . . . . . . 102
6.4.4 Fourth Order Compact Method 1 (FOCM1) . . . . . . . . . . 103
6.4.5 Fourth Order Compact Method 2 (FOCM2) . . . . . . . . . . 106
6.4.6 Fourth Order Compact Method 3 (FOCM3) . . . . . . . . . . 108
. . . . . . . . . . . . . . . . . . . . . . . . . . 6.5 Resul ts and Discussion 111
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.6 Conclusions 212
Chapter 7 Moving Mesh Methods 119
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.1 Introduction 119
. . . . . . . . . . . . . . . . . . . . . 7.2 Equidistribution Principle (EP) 120
. . . . . . . . 7.3 Moving Mesh Partial Differential Equation (MblPDEs) 122
7.4 MMPDEs Based on Attraction and Repulsion Pseudo-forces . . . . . 126
C) r . . . . . . . . . . . . . . . . . . . . . . . . . . 4.o Moving Mesh blethod 128
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.6 Numerical Example 229
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.7 Results 132
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.8 Conclusions 132
Chapter 8 Future Work 138
Appendix A von Neumann Stability Analysis 140
.4.1 Stability Anaiysis for Upwind Scheme of the Equation (3.3) . . . . . . 140
A.2 Stability analysis for the Lax-Wendroff scheme of the equation (3.3) . 143
A.3 Stability .4n alysis for the FTCS Scheme of Equation (3.35) . . . . . . 144
A.4 Stability .4n dysis for the BTCS Scheme of Equation (3.41) . . . . . . 146
Appendix B Maple Programs for MDEs 151
B.1 Modified Equation For First Order ODE . . . . . . . . . . . . . . . . 151
B.2 Modified Equation For Second Order ODE . . . . . . . . . . . . . . . 154
B.3 Modified Equation For f t + cf, = O For Lax-Wendroff Method . . . . 159
Appendix C Sixth-Order Formula for u,,
REFERENCES
VITA
LIST OF TABLES
2.1 Exact and numerical solutions of (2.2) and a good numerical solution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . of(2.11) 25
5.1 Time taken by various methods to solve the KS equation with a = 13. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . at t=1 .0 . 87
5.2 hlaximum and L2 norms of errors of the solution of the Ks equation . . . . . . . . . . . . . . . . . . . . . . . . . . . w i t h a c = 1 3 . a t t = 1 . 0 88
. . . . . . . . . . . . . . . . . . . . . . 6.1 Time taken by various met hods 114
LIST OF FIGURES
Results for y' = y2. The dashed line is the exact solution y = 1/(1 - t ) , while the solid line is a good numerical solution of the modified
equation (2.11). The diamond signs are the resuits of applying RK2 method with fixed tirne-step h = 0.1 to equation (2.2). . . . . . . . .
Results for y' = y*. The dashed line is the exact solution y = 1/(1 - t ) , while the solid line is a good numerical solution of the modified
equation (2.13). The diamond signs are the results of applying Euler's
method with fixed time-step h = 0.1 to equation (2.2). . . . . . . . .
Results for the y' = y* - t. The dashed line is the exact solution to
equation (2.11), while the diamond signs are a good numerical solu-
tion of the modified equation (2.17). The solid line is the result of
applying RK2 method with Lxed tirne-step h = 0.3 to equation (2.14).
Increasing the order of the modified equation does not bring greater
quantitative agreement. Decreasing the stepsize, however, does bring
the two curves into quantitative as well as qualitative agreement. . .
Results for y" + y = O. The dashed Line is the exact solution sin(t) + cos(t), while the diamond signs are a good numerical solution of the
modified equation (2.21). The solid line is the result of applying Euler's
xii
2.5 Results for y" + y = O. The diamond signs are the logarithm of the
absolute difference between a good numerical solution of the modified
equation (2.21) and the result of applying Euler's method with fixed
tirne-step h = 0.01 to equation (2.19). The solid line is the logarithm
of the absolute difference between the exact solution sin(t) +cos(t), and
the result of applying Euler's method with fixed time-step h = 0.01 to
equation (2.19). We see the solution to the modified equation fits the
numerical solution much better. . . . . . . . . . . . . . . . . . . . . 30
2.6 Results for y" + y = O. The diarnond signs are the logarithm of the
absolute difference between a good numericd solution of the modified
equation (2.23) and the result of applying the RK2 method with fixed
time-step h = 0.1 to equation (2.19). The solid line is the logarithm of
the absolute difference between the exact solution sin@) + cos@), and
the result of applying the FW2 method with fixed time-step h = 0.1 to
equation (2.19). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
2.7 Results for the Van der Pol equation for c = 1. The dashed line is
the exact solution to equation y' - (1 - y2)y' + y = O. The diamond
signs are a good numerical solution of the modified equation (2.29) for
c = 1. The solid Iine is the result of applying Euler's method with
fixed time-step h = 0.1 to equation (2.27) for r = 1. . . . . . . . . . 32
2.8 Results for the Van der Pol equation for r = 10. The dashed Iine is
the exact solution to equation y" - lO(1- y2) y' + y = O. The diamond
signs are a good numerical solution of the modified equation (2.29) for
c = 10. The solid line is the approximate solution computed by Euler's
method with 6xed time-step h = 0.1 to equation (2.27) for r = 10. . 33
2.9 Results for the Van der Pol equation for c = 1/100. The dashed line is
the exact solution to equation y"- 1/100(1 -y2) yt+y = O. The diamond
signs are a good numerical solution of the modified equation (2.29) for
c = 1/100. The solid line is the approximate solution computed by
Euler's method with fked time-step h = 0.1 to equation (2.27) for
€=1/100. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
4.2 Solutions of heat equation at t = 0.5 with Az = 0.1 and At = 0.01.
The solid line is the logarithm of the absolute difference between the
exact solution ëXZt s in(m) and the result of applying FOCM3 to equa-
tion (4.39). The diamond signs are the logarithm of the absolute differ-
ence between the exact solution ërZt sin(rx) and the result of applying
FOCMZ to equation (4.39). The dashed line is the logarithm of the
absolute difference between the exact solution e-"2t sin(?rz) and the
result of applying scheme (4.29) to equation (4.39). The plus signs
are the logarithm of the absolute difference between the exact solu-
tion solution e-"" sin(sz) and the result of applying the second order
. . . . . . . . . . . . . . Crank-Nicolson rnethod to equation (4.39). 72
4.3 Rounding Enors in Compact Formulas. The solid line is the maximum
error in computing f where / = sin2(nx) by the compact formula
(4.35-4.38) for various h. The dashed line is the maximum error in
computing f ( 4 ) by the non-compact fomula (4.42). For h = 10-~, both
formulas begin to feel the effects of finite precision u = 1.0e - 16. . . 73
1.4 Plot of errors (residual and exact) in the heat equation solution by
FOCM3 on a log scale. The steeper sloped line (siope very nearly 5 al1 along) is the residuai error, while the exact error does not behave so
nicely, for smdl h, levelling out at about 1.0e - 6. . . . . . . . . . . 74
3.1 Solutions of equation for a = 13, at t = 1.0 obtained using (a)
SOFDM method (b) SOCM method (c) FOFDM method (d) FOCMl method (e) FOCM2 method. . . . . . . . . . . . . . . . . . . . . . . 86
5.2 Solution of KS equation for CI = 0,3,6, and 8 at t h e t = 1.0. The
solid iine is the solution for a = 0, the diamond signs are the solution
for CY = 3, the dashed line is solution for a = 6, and the plus signs are
solution for a = 8. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Solution of KS equation for cr = 8,11,13, and 15 at time t = 1.0. The
soiid line is the solution for a = 8, the diamond signs are solution for
a = 11, the dashed line is solution for a = 13, and the plus signs are
. . . . . . . . . . . . . . . . . . . . . . . . . . . solution for a = 15.
Solution of KS equation for a = 15,22.5,30, and 120 at time t = 1.0.
The solid is the the solution for a = 15, the diamond signs are solution
for a = 22.5, the dashed line is solution for a = 30, and the plus signs
are solution for a = 120. . . . . . . . . . . . . . . . . . . . . . . . .
The logarithm of the absolute difference between the exact and numer-
ical solution of KS equation for a = O at t = 1.0. . . . . . . . . . . .
Logarithm of the absolute difference between the reference solution
(solution obtained using SOCM with 1000 points) of KS equation and
solutions using other four methods at t = 1.0 and a = 13. The line
O - O is the logarithm cf the absolute difference between solution
using SOFDM method and the reference solution, the dashed line is
logarithm of the absolute difference between solution using SOFDM method and the reference solution, the line + - - + is the logarithm of
the absolute difference between solution using FOCMl method and the
reference solution, and the line O - O is the logarithm of the absolute
difference between solution using FOCM2 method and the reference
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . solution.
Plot of the density of the gas obtained using (a) SOFDM method
(b) SOFDM2 method (c ) FOFDM method (d) FOCMl method (e)
FOCM2 method (j) FOCM3 method at t = 0.15. . . . . . . . . . . .
Plot of the density of the gas at t = 0.15. . . . . . . . . . . . . . . .
Plot of the velocity of the gas at t = 0.15. . . . . . . . . . . . . . . .
Plot of the pressure of the gas at t = 0.15. . . . . . . . . . . . . . . .
Plot of the interna1 energy per unit mass of the gas at t = 0.15. . . .
Plots of density of the gas at t = 0.15. The diamond signs are the
solution obtained using MMPDE5. The dashed line is the solution
obtained using uniform mesh. . . . . . . . . . . . . . . . . . . . . . . 134
Plots of velocity of the gas at t = 0.15. The diamond signs are the
solution obtained using MMPDE5. The dashed line is the solution
obtained using uniform mesh. . . . . . . . . . . . . . . . . . . . . . . 135
Plots of pressure of the gas at t = 0.15. The diamond signs are the
solution obtained using MMPDE5. The dashed line is the solution
. . . . . . . . . . . . . . . . . . . . . . obtained using uniform mesh. 136
Plots of interna1 energy of the gas t = 0.15. The diamond signs are
the solution obtained using MMPDE5. The dashed line is the solution
. . . . . . . . . . . . . . . . . . . . . . obtained using uniform mesh. 137
Amplification factor modulus for upwind scheme. The solid line is the
graph of IGI ( A 4 for v = 0.5, the diarnond signs are the graph of IGJ ( A 4 for v = 0.75, the dashed line is the gaph of IG( (A.4) for v = 1.0,
. . . . . . and the plus signs are the gaph of lGl ( A 4 for u = 1.25. 147
Relative phase error of upwind scheme. The solid line is the gaph of
$14. (-4.5) for v = 0.25, the diarnond signs are the graph of @/#e (A.5)
for v = 0.5, the dashed line is the graph of 4/4. (A.5) for v = 1 .O, and
the plus signs are the graph of i$/& (A.5) for u = 0.75, . . . . . . . . 148
Amplification factor modulus for Lax-Wendroff scheme. The solid line
is the graph of (G( (A.9) for u = 0.25, the diamond signs are the graph
of IGI (A.9) for v = 0.5, the dashed line is the graph of IGI (A.9) for
v = 1.0,and theplussignsare thegaphof IG( (A.9) forv=0.75. . 149
.4mplification factor modulus for FTCS scheme. The diamond signs
are the gaph of G (A.11) for r = 116, the solid line is the graph 1G.I
(A.12) for T = 116, the plus signs are the graph of G (8.11) for r = 1/2,
and the dashed line is the graph IGel (A.12) forr= 112. . . . . . . . 150
Chapter 1
Introduction
With the continuing advances in computer technology, numerical methods have be-
corne important tuols for solving most of today's industrial and engineering problems.
Since a large portion of these problems involve some kind of differential equations,
numerical methods of differential equations have been used to solve a wide range of
real-world problems such as weather and climate forecasts, geological exploration,
and biologicai applications. The rnethods range frorn simple finite difference schemes
such as Euler's scheme to more complicated higher order numericai schernes for partial
differential equations.
The literature on numerical methods for ciiffereatiai equations and their analysis
is so extensive. and the subject has been studied so intensively, that it is perhaps
surprising that there are still new and useful things to Say, even for simple finite
difference methods. This thesis does so, however. In particular, we revive a "well-
known" but heretofore not often used method of analysis, namely the method of
modified equations. We also show how to construct a new famiiy of compact finite
diEerence schemes.
Both of these developments, which allow construction of special methods for
parabolic PDE and indeed ordinary two-point boundary value problems, and allow
analyses "tailored" to the particular problem being solved, are made possible by the
development of packages in the computer algebra language Maple. The package for
the method of modified equations is new for this thesis. The package for finite mer-
ence generation was written by Jacek Rokicki and Robert Corless (181.
The developments of this thesis are of interest because although while a wide
selection of methods and analyses are aiready available, none of these methods are
effective for every type of application. Therefore, studying and undentanding the
success and limitations of the various methods is important. Although no simple
tests exist For carrying out such studies, there are various ways of assessing the a p
propriateness of a given numencal scheme for solving a differential equation. An
effective approach that will be considered in this thesis is the method of modified
equation. With this approach, a modified equation, which is an approximating differ-
ential equation that is a more accurate mode1 of what is actually solved numerically
by the use of the given numerical scheme, is determined and studied. This provides
us with very valuable qualitative and quantitative information regarding the numer-
ical solution for the finite difference scheme being used. Properties of the numerical
solution such as accuracy, consistency and stability can be obtained by analyzing the
modified equations.
While this technique has been known to be useful for some time [24, 661, it has
not been used much in practice. The main reason for this is that, typicaily, obtaining
a modified equation involves a lot of tedious algebraic manipulation, which rnakes the
met hod of rnodified eqcation qui te unat tractive for hand cornputation. In this t hesis,
we use the cornputer algebra progrwn Maple to eliminate the difnculty.
In this thesis, while we shall explore a wide range of numencal methods, Our
main focus will be o r compact methods and moving mesh methods. Compact meth-
ods have attracted a great deal of interest recently due to their ability to yield a
higher order of accuracy for an equivalent computationai cost than the classical finite
dinerence methods [13, 501. Moving mes& methods are also considerably more effi-
cient than the standard uniform fixed mesh 6nite dinerence schemes. By considering
numerical experiments using appropriate equations such as the heat equation, the
one-dimensional gas equation, and the Kuramoto-Sivashinksy equation (33, 43, 471
we study the relative effectiveness of the vaxious methods.
The outline of the thesis is as follows. We begin our exploration in Chapter 2,
where we investigate the method of modified equations for ordinary differential equa-
tions. We consider both scalar and vector problems and demonstrate the usefulness
of modified equations for andyzing the behaviour of numerid methods such as the
classical Runge-Kutta fourth order scheme. By considering a number of relevant ex-
amples including the Van der Pol equation, we show that modified equations can be
used to obtain both qualitative and quantitative insights such as the accuracy, the
consistency, and the stability of numerical solutions. We also show the use of Maple
for automatic analysis of or di na^ differential equations using the rnethod of modified
equations.
In Chapter 3, we generdize the Maple implementation of the method of modified
equations to include partial differential equations [291. We show that the highly
tedious procedure of obtaining inodified equations for numerical methods such as the
Lax-Wendroff scheme can be simplified geatly by using Maple. This is very important
since i t allows one to consider complicated initial and boundary value problems and
still obtain the modified equations relatively easily. Again as we did in Chapter 2 for
ordinary differential equations. we investigate consistency, accuracy, and stability of
numerical schemes for partial differential equations.
In Chapter 4: we study a class of finite difference schemes for partial differen-
tial equations called compact methods. By solving the heat equation using various
fourth order compact methods, we demonstrate the capabiiity of compact methods
to yield higher order approximations for relatively low computational effort. It is
confirmed that fourth order accuracy can be achieved using only three computational
grid points, which is the typical requirement for classical second order h i t e mer-
ence schemes. Moreover, the rnatrix which arises from the compact method retains a
banded structure, so the resdting linear equation c m be solved by relatively simple
and inexpensive algorithms. In Chapter 4, we also exhibit a new family of com-
pact methods that we cal1 'fast' compact methods because the matrices that arise
can be factored analytically. leading to improved computational efficiency on serial
machines. These methods are constructed using the FINDIF program (in Maple)
written by Rokicki and Corless [18]. We aiso show that these fast compact methods
are appropriate for stifT systems, even though the Jacobian matrices that arise are
dense, because while dense they are related to the inverses of banded matrices, aad
this allows fast cornputation of Jacobian-vector products.
In Chapter 5, w in-estigzto the numerical solutions of the well-known Kuramoto-
Sivashinksy equation, which is a fourth order non-linear partial differential equation
that arises in the context of angular phase turbulence and thermal diffusion. Here, we
compare various numerical schemes including a second order finite difference method,
a second order compact method, a fourth ordcr finite difference rnethod, and two
Fourth order compact methods. By considering the unsteady tirne-dependant version
of the equation, we examine the sensitivity of the numerical solutions to the solution
parameter a. It is found that, in agreement with the literature, the maximum ampli-
tude of the solutions is quite sensitive to this parameter. The maximum amplitude for
large a cases is an increasing function of a. while for small values of a, the maximum
amplitude decreases with increasing a. While al1 the numerical methods exhibit this
behaviour, as well as agreeing with the expected asymptotic solution, the fourth order
compact methods give superior performance both in t ems of accuracy and efficiency.
This is consistent with the findings of Chapter 4.
In Chapter 6, we deal with the numerical solution of the one-dimensional gas
dynamics equation [61]. The gas dynamics equation is commonly used for testing
numerical methods for non-linear hyperbolic conservation laws. Here, it is sslved
using six dinerent compact and non-compact explicit schemes.
Finally in Chapter 7, we examine some rnoving mesh partial differential equations
for solving one-dimensional initial value problems (30, 551. By using the equidistri-
bution principle as a base, we are able to implement the moving mesh method for
the one-dimensional gas equation. Our investigations confirm the r d t s of [58] that
moving mesh methods can be considerably more efficient than the traditiond uni-
form mesh methods. This raises the possibility of combining fast compact methods
on uniform grids in the trmsfonned variable with an equidistnbuted mesh in problem
space for efficiency.
Chapter 2
The Method of Modified Equations (ODEs)
In this chapter, we consider the method of modified equation for ordinary differential
equations (ODEs). By considering a number of useful examples including single fint
and higher order ODEs, we demonstrate the value of modified equations for obtaining
useful insight into the qualitative and quantitative behaviour of various numerical
schemes. In order to obtain the modified equations, we follow the work of Corless [14],
who utilized hlaple for first order pro blems. In this chapter, we extend Corless's work
and extend the Maple irnplementation to higher order problems. Maple programs for
modified equations are given in Appendix B. Following the brief introduction in the
following section, we present results for single first order ODEs followed by results for
higher order ODEs. Concluding remarks are presented at the end of the chapter. An
alternate explanation can be found in [2].
2.1 Introduction
When we solve a given differential equation using a numerical algorithm, we approx-
imate the actuai dzerentiai equation by a different one which we soIve exactly. The
rnethod of modified equations is a technique of determining the approximating dif-
ferential equation that is actually solved exactly by the numencal algorithm. The
approximating differential equation which is solved by the numerical algorithm is
called a 'modified equation' ('MDE). Modified equations are not unique, and there
are various ways of obtaining them. This is a type of backward error analysis [15].
Modified equations axe very useful in assessing and studying solutions obtained by
numerical algorithms since they provide us with more qualitative understanding of the
numerical solution t han the dinerence equations that define the numerical algonthm
being used. Mathematical modellers are quite used to interpreting individual terms
of their equations as having a meaning for their paxticular problem. For example,
in x + 2Px + x = 0, the term containing B could represent viscous damping. By
using the method of modified equations, we allow modellers to interpret numerical
effects in the same way. That is, we can acquire insight into how numerical rnethods
change the problem by allowing the modeller (user) to interpret significant terms in
the modified equation. We will see examples of numerical methods that introduce
viscous damping (sometimes purely positive and sometimes purely negative causing
exponential growth), that introduce diffusion, and that introduce dispersion.
The more usual analytical concepts of order of accuracy and consistency are also
available via the method of rnodified equations. In particular, the global order of
accuracy of the method is more easily understood with this approach because the
Grobner- Alexeev nonlinear variation of constants formula (see e.6 (151) States that
the global error can be written as
where 6 is the defect, residual, or deviation from the true equation, and G is a function
which depends on the exact solution, but which can be assumed to remain bounded for
the purpose of analysis. In Our case, 6 is the difference between the modified equation
and the original equation. If this difference is 0(h2), Say, then we see irnmediately
that for compact time intervals (fixed t h e intervals O 5 t 5 T), then the global
error d l approach zero like h2 in the lirnit as h + O. With this approach, there
is less conceptual difnculty than with the more usual local error approach, in which
the reason for the l o s of an order of accuracy is not trivial to see, and the role of
compactness is also not as clear a s with formula (2.1).
Suppose we are given the initial value problem (IVP)
to solve. We solve it numencally, Say by a one-step method un+^ = $(%, h), where #
is the functional form obtained from the particular numerical scheme. Then x(t,)=u,,,
where t, = xk,, ht . Typically x(tn) = un + O(hP), where h is an average step
size, and p is the order of the method. Given un, a modified equation (MDE) is
a differential equation i = f(y) whose solution fits un better than x does; that is
un = y ( t,) + O(hP+*), where a is some positive integer. Thus y explains the numericd
solution. We give example in next section which will rnake this clear.
We look for such modified equations because they are easier to understand qual-
i tatively t han the difference equations t hat define the numerical met hod being used.
Thus. the modified equation can be used to evaluate various qualities or properties of
the numerical method, such as order of accuracy, consistency, and stability. In other
words, the rnodified equation is very useful in understanding the behaviour of the
numerical solution. The purpose of a rnodified equation, then, is explanation of the
numerical result. Warming and Hyett [66] used MDEs to investigate consistency and
order of finite difference equations. The MDE must contain dl terms appearing in the
exact differential equation. at least in the limit as h -+ O. The MDE also contains an
infinite number of higher order derivatives. If al1 terms involving these higher-order
derivatives vanish as h + O, then the MDE becomes identical to the exact differential
equation in the limit h -+ O. In that case, the finite difference equation (FDE) is a
consistent approximation to the exact differential equation. If one or more of the
tems involving these higher-order derivatives does not vanish as h -t O, then the
FDE is an inconsistent approximation to the exact differential equation. .4t finite
size grid spacing, the MDE always Mers from the exact dinerential equation. The
order of the FDE is the lowest-order term in the MDE. Some variable-step methods
can also be analyzed with the method of modified equations [23].
The a h of this chapter is to develop a technique of obtaining modîfied equations
for initial value problerns using Maple. This problem was solved by hand by G d -
fiths and Sanz-Serna [24] by expanding the finite difference and solving the resulting
linear systern. In [12], Calvo, Munia, and Sanz-Sema showed how to systematicdly
construct modified systerns of any order based on work by Hairer [25]. A Maple im-
plementation b r the single first order ODEs was written by R. M. Corless in June
1993. We extended the first order ODEs version of the implementation to higher
order ODEs. The Maple programs for modified equations are given in Appendix B,
and will be amilable electronically via reference [2].
2.3 Derivation of Modified Equations for First Order ODES
The modified equation is denved by first expanding each term of the numerical a g
proximation in the Taylor series about h = O and then eliminating higher derivatives
of the differential equation by dgebraic manipulation. Even though there are in-
finitely rnany terms of the rnodified equation, in practice only the first several lower
order terms need to be computed. The extra terms that appear in the modified equa-
tion represent a type of truncation error and can be used to analyze the accuracy and
consistency of the given aigorithm.
2.2.1 Example: A Modified Equation for y' = y*
Here we will derive the fifth order modified equation for the problem y' = yZ (81 for a
second order Runge-Kutta method. In the same way, one can find a modified equa-
tion for any problem of any order for any one-step numencal method.
A two-stage, second order Runge-Kutta method is given below.
The key idea of the method of modified equations is that we may obtain an
infinite-order modified equation for our numerical method simply by setting the 10-
cal truncation error to zero, expanding it in a Taylor series, and interpreting the
resulting equation as a new differential equation for a new function. By construction,
the difference equstion of our numerical method produces results which satisfy this
modified equation exactly. .4s we will see, this equation is an infinite-order singular
perturbation. I t will be more convenient to derive from it a modified equation of the
same (differential) order as we started with. The local truncation error is defined
as the difference between the numerical solution y,+, and the local exact solution
u ( t ) which satisfies the differential equation exactly but starts at the initial condition
u(t,) = yn. By convention, this quantity is divided by the step size h. Thus the local
truncation error is
We now look for a new function w ( t ) which makes the local truncation enor indenti-
cally zero, and interpolates the numerical solution. Thus w(t) = y,, w (t + h) =
and, with k2 caiculated with w(t) instead of y,,
Expanding this in the Taylor series about h = O, we get
d i d2 i , d 3 = z ~ ( t ) - k2 (h , w ( t ) , t ) + - h - ~ ( t ) + -h -w(t) + *
2 dt2 6 dt3
Hence the first few terms of the modified equation are
That is, we set LTE to zero in order to obtain the modified equation. This is the
k q point. WC may choose any convenient order to work to work to. Here we choose
!V = 5. To order 5, our problem reduces to
To eliminate the higher derivatives we need expansions for dLw/dt2, d3w/dt3, and so
on. To get them. we first differentiate this equation to get
We keep only terms of 0 ( h 4 ) here because d2w/dt2 is multiplied by h in (2.5). Con-
timing to differentiate, we get
and
Using the order one approximation to w'. w", w"', and wc4) from equations (2.5) - - (2.8) and replacing these values in equation (Tg), we obtain
This is an expression for wc5) that is accurate to first order that contains only w and
no derivatives. In the same, way one can find an 0(h2) expression for w ( ~ ) , an 0(h3)
expression for w", an 0(h4) for w", and finally the following 0 (h5 ) expression for w' :
This is the fifth order modifieci equation for the problern y' = y2 for the RK2-
method. The exact solution of equation (2.11) is O(hS) , close to the numerical solution
of equation (2.2) obtained by RK2-method on finite time intervals. See Table 2.1.
-4s h + 0, (2.11) approaches w' = w2, the same equation as the original one.
Consequently, (2.3) is consistent with (2.2). The lowest-order term in (2.11) is 0 ( h 2 ) .
Consequently, (2.3) is an 0(h2) approximation of (2.2). For a deeper discussion and
interpretation of the terms in (2.11) see [15].
A Modified Equation for Euler's method for (2.2):
Euler's method for a first-order differential equation is given by
The eight order modified equation for the equation (2.2) using this method is given
below :
.4s h -t 0. (2.13) approaches w' = w2. Consequently (2.12) is consistent with
(2.2). The lowest-order term in (2.13) is O(h) because Euler's method is first order.
Consequently, (2.12) is an O (h) approximation of (2.2).
2.2.2 Example: A Modified Equation for y' = - t
Next we will consider the problern yt = - t, which is used in the excellent peda-
gogical text [32].
With the substitution y = - w t / w . the equation (2.14) reduces to the weU known
Airy equation.
whose solution is given by
where Ai. Bi are Airy functions. See [49. 67. 68, 691 for a general analysis and history
of the Airy equation. For numerical solution of the Airy equation, see [17].
The fourth order modified equation for equation (2.14) for the M2-method is given
by the following equation
As h -t 0, (2.17) approaches w' = w2 - t. Consequently (2.3) is consistent with
(2.14). The lowest-order term in (2.17) is 0(h2). Consequently, (2.3) is an 0(h2)
approximation of (2.14). The fact that the 0 ( h 2 ) term is time-dependent means that
the RK2 method will not produce a uniforrnly valid solution for al1 t. We clearly must
have t = o( l /h) . This conclusion is harder to reach without the method of modified
equations.
2.3 Higher Order ODES
.A complete Maple program that implements the method of modified equations was
developed by R. M. Corless in June 1993 for a first order ODE. In addition to conve-
nience, the use of such programs eiiminate algebraic errors that may be introduced
in handling very long and complicated expressions. Here we extend this so that it
can deal with higher order ODES In order to demonstrate this extension, we will
consider the following second order dinerential equations which can be ttansformed
into a qrstem of two first order equations.
2.3.1 Exarnple: A Modified Equation for y" + y = O
By substitution
u l = y and
112 = y'.
the equation y" + y = O takes the following form
U' = *du)
where
and
Euler's method for a system of two first-order differential equations is
The fifth order modified equation for (2.19) for Euler's method is given by
w h ~ w M7 is the variable of the modified equation of the original differential equation.
Any order N > 1 gives useful information - we chose N = 5 for typgraphical con-
venience and easy comprehension. (For this simple example a human can find the
N = oo modified equation).
.As h + 0. (2.21) approaches LVt = AW. Consequently, (2.20) is consistent with
(2.19). The lowest-order term in (2.21) is O(h). Consequently, (2.20) is an O(h)
approximation of (2.19). We do not give a physical interpretation of the extra tems
in equation (2.21), because it is similar to the interpretations we give in the next
example.
A Modified Equation for RK-2 Method for (2.18):
The two-stage, second order Runge-Kutta method for a system of two k t - o r d e r
differential equations is
The 5th order modified equation for (2.19) for the RK2-method is given by
Note that this equation, which can be written as
where a = 1 + h2/6 - hJ/20. and b = h3/8, is consistent with equation (2.19) in the
Iimit as h -+ O and has a simple solution which is given by
cos(at) sin(at) CF' = e
- sin(at) cos(at)
As h i 0. (2.23) approaches IV' = AU'. Consequently (2.22) is consistent with
(2.19). The lowest-order term in (2.23) is 0(h2). Consequently, (2.22) is an 0 (h2 )
approximation of (3.19).
.As we mentioned in the introduction the method of modified equations can be used
to investigate the stability of numerical solutions. In this example we see that the
%IDE gives us interest ing insight into the stability behaviour of our numeric solution.
The above result implies that the numerical method introduces a qualitative change
in the characteristics of our solution, since here b represents a negative damping, that
is, exponential growth, and a represents the frequency of oscillation. Note that the
frequency shift makes an O(hZ) change in the solution, while the ampiitude change
is 0 ( h 3 ) but exponential in t h e and hence significant for t » o( l /h3) . Moreover,
b > O so the numerical solution is unstable on long time scales. For Euler's method
(from the previous su bsection), we have b = h/2 + 0 ( h 2 ) , which is again > O for srnad
h. leading again to exponential growth for t > o( l /h ) . Such physical interpretations
are very usehl in assessing the accuracy and convergence of numericd methods and
exptaining their qualitative behaviour. It is this superior ease of interpretation that
makes modified equations very valuable. Here, it is worth noting that if the exact so-
lution of the modified equation is not available, then higher order numerical schemes
such an eight order Runge-Kutta method can be utilized to provide an accurate so-
lution of the modified equation, if desired, but this is never necessary.
A Modified Equation for RK-4 method for (2.18):
The four-stage, 4th order Runge-Kutta method for a system of two first-order differ-
ential equations is
Likewise the 6th order modified equation for (2.19) for the RKCmethod is given by
-4s h -t 0, (2.25) approaches Wt = AW. Consequently, (2.24) is consistent with
(2.19). The iowest-order term in (2.25) is 0(h4). Consequently, (2.24) is an 0(h4)
approximation of (2.19). Note that in this case the frequency shift is 0 ( h 4 ) , and the
amplitude change is 0 ( h 5 ) , but most importantly, we have that b < O for positive
stepsizes h. This means that unlike the previous two methods, the classical RK4
introduces positive damping into this equation, and thus on long t h e scales we have
exponential decay of the solution. In some ways, this is to be preferred to exponential
growth, but it must be rernembered that this is just as incorrect for this problern,
where the true solution neit her grows nor decays.
2.3.2 Example: A Modified Equation for the Van der Pol equation
The Van der Pol equation [25] is
The vector forrn of this equation is
where
and
Euler's method for (2.27) is
The 3rd order modified equation for Euler's rnethod applied to the Van der Pol equa-
tion is
where
In the limit as É + 0, the modified equation (2.29) becomes
In the limit as h + 0, the modified equation (2.29) becomes
As h + 0, (2.29) approaches W' = AW. Consequentiy (2.28) is consistent with
(2.27). The lowest-order term in (2.29) is O(h). Consequently, (2.28) is an O(h)
approximation of (2.27). In next section, we will discuss the solutions for 3 dif5erent
values of e :
For now, note the nonuniform effects cf the numerical method: the order in which
we take the limits (c -r O and h -t O) rnatters in (2.30) and (2.31). Thus we expect
sorne restrictions on the stepsize h, which depend on the parameter c.
2.4 Results
Figure 2.1 shows the plot of the exact solution
of the problem y' = y*. the numerical solution obtained using the method of RK2
with stepsize h = 0.1. and the solution of the modified equation (2.1 1). The solution
of the modified equation represents the result obtained by the numerical rnethod to
graphical accuracy. Thus we have shown that the exact solution of the modified
equation (2.11) is closer to the numerical solution of the original problern y' = y2
than the exact solution of y' = y2 is.
Figure 2.2 shows the graphs of the exact solution of the problem
the numerical solution obtained using the Euler's method with stepsize h = 0.1,
and the solution of the 8th order rnodified equation (2.13). We see that for smail t ,
the solution to modified equation apparently interpolates the solution computed by
Euler's method, but for large values t , the modifieci soiution suddenly 'turns a corner'
and settles on a spurious fixed point. Taking a higher-degree approximation may
remove this spurious fixed point, but many other high-degree rnodified equations do
have such spurious fixed points. Thus the finite-order modified equation may not be
a good mode1 of what the Euler solution is doing for large times 1151. This limitation
(also for Figure 2.3) on the usefulness of the method of modified equations must be
kept in mind, but in fact the standard analysis also sueers these flaws-they are just
clear, here. See [62, 631 for a discussion of longtirne asymptotic analysis of initial
value problems.
Figure 2.3 shows the graphs of the exact solution of the problem
the numerical solution obtained using the RK2 method with stepsize h = 0.3, and
the solution of the rnodified equation (2.17). The solution of the modified equation
nearly interpolates the RK2 method solution until it reaches a spurious k e d point.
This spurious solution behaviour occurs for large times, for t = 0(l/h2) in RK2
solution (321, and thus the method of modified equations as presented here cannot
explain the apparently smooth spurious solution. This conclusion is general: finite-
order rnodified equations may not help in examining long-term asymptotic behavior
of numerical methods [lj].
Figure 2.4 shows the graphs of the exact solution
of the problem y" +y = O, y(0) = 1, y t ( 0 ) = - 1, the numencai solution obtained using
Euler's method with stepsize h = 0.1, and the solution of the modified equation
(2.21). The solution of the modified equation accurately represents the numerical
solution. Even though the exact solution is quite different from the numerical solution
for t vaiues above 0.3, the modified solution overlaps with the numerical solution for
al1 the time in the gaph. Thus the solution of the modified equation agrees with the
numerical solution.
Figures 2.5 shows the graph of the logaxithm of the absolute difference between
the exact solution of the equation (2.18)
y ( t ) = sin(t) + cosjt)
and Euler's method solution with the stepsize h = 0.01, and the logadhm of absolute
difference between the solution of modified equation (2.2 1) and numerical solution.
Figure 2.6 shows the graph of the same logaxithm of the absolute differences as
shown in F i y r e 2.5, except that in this figure. the numerical method is the M 2 -
method, and the stepsize h is 0.1. In both figures, the difference between the solutions
of the modified equation and the numerical method is essentially zero ou this time
intemal. .A sirnilar result was found for the classicial RK4-method.
Figures 2.7 - 2.9 show the graphs of the exact, numericd, and modified solutions
for the Van der Pol equation for
e = 1.10, and 1/100,
respectively. Here we use Euler's method, and the stepsize h is 0.1. In al1 three
cases, our method is very successful. The numerical solution is very well represented
by the solution of the modified equation.
2.5 Conciusions
In this chapter, we investigated the method of modified equations as a tool to ana-
lyze the qualitative and quantitative behaviour of numerical solutions of differential
equations. We showed through specific first order and higher order problems that the
method of modified equations can yield numerical solution properties suc? as accu-
rac- consistency, and stability We also extended the previous work of Corless [14]
to inclade a Maple jmplementation (Appendix B) for higher order problems. In the
next chapter, we shall further extend this work to study partial differential equations.
h Exact Solution of (2.2) 2 Numerical Solution of (2.2) by RK2 1 Solution of (2.11)
Table 2.1: Exact and numencal solutions of (2.2) and a good nu-
merical solution of (2.1 l).
Figure 2.1: Results for y' = The dashed Line is the exact solution
y = 1/(1 - t ) , while the solid line is a good numerical
solution of the modified equation (2.11). The diamond
signs are the results of applying RK2 method with fked
tirne-step h = 0.1 to equation (2.2).
t
Figure 2.2: Results for y' = y2. The dashed line is the exact solution
y = 1 /(1 - t ) , while the solid Iine is a good numerical
solution of the modified equation (2.13). The diamond signs are the results of applying Euler's method with fixed tirne-step h = 0.1 to equation (2.2).
Figure 2.3: Results for the y' = y2 - t. The dashed line is the exact
solution to equation (2.14), while the diamond signs are a
good numerical solution of the rnodified equation (2.17).
The solid line is the result of applying RK2 method with fked the-step h = 0.3 to equation (2.14). Increasing
the order of the modified equation does not bring greater
quantitative agreement. Decreasing the stepsize, how- ever, does bring the two c w e s into quantitative as well as quakative agreement.
Figure 2.4: Results for y'' + y = O. The dashed line is the exact
solution sin(t) + cos(t), while the diamond signs are a
good numerical solution of the modified equation (2.21).
The solid line is the resuit of applying Euler's method
with tixed tirne-step h = 0.1 to equation (2.18).
Figure 2.5: Results for y" + y = O. The diamond signs are the
logarithm of the absolute difference between a good nu- merical solution of the modified equation (2.2 l) and the
result of applying Euler's method with fixed time-step
h = 0.01 to equation (2.19). The solid line is the log-
arithm of the absolute difference between the exact s*
lut ion sin(t) + cos(t ) , and the result of applying Euler's
method with fked time-step h = 0.01 to equation (2.19).
We see the solution to the rnodified equation fits the nu-
merical solution much better.
Figure 2.6: Results for y" + y = O. The diamond signs are the loga- rithm of the absolute differeoce between a good numer-
ical solution of the modified equation (2.23) and the re-
sult of applying the RK2 method with fixed time-step
h = 0.1 to equation (2.19). The solid line is the loga-
rithm of the absolute clifference between the exact solu-
tion sin(t) + cos@), and the result of applying the RK2
method with bced tirne-step h = 0.1 to equation (2.19).
Figure 2.7: Results for the Van der Pol equation for c = 1. The dashed line is the exact solution to equation y" - (1 -
+ y = O. The diamond signs are a good numerical solution of the modified equation (2.29) for É = 1. The solid line is the result of applying Euler's method with
fked time-step h = 0.1 to equation (2.27) for É = 1.
Figure 2.8: Results for the Van der Pol equation for c = 10. The
dashed line is the exact solution to equation y" - 10(1 - y2) y' + y = O. The diamond signs are a good numeri-
cal solution of the modified equation (2.29) for c = 10.
The solid iine is the approximate solution computed by
Euler's method with fixed time-step h = 0.1 to equation
(2.27) for c = 10.
Figure 2.9: Results for the Van der Pol equation for c = 1/100.
The dashed hne is the exact solution to equation y" - 1/100(1 - y2)y' + y = O. The diamond signs are a good
numencd solution of the moàified equation (2.29) for
c = 1/100. The solid line is the approxîmate solution
computed by Euler's method with fked tirne-step h = 0.1
to equation (2.27) for a = 1/100.
Cbapter 3
The Method of Modified Equations (PDEs)
In Chapter 2, we discussed the method of modified equations for ordinary differential
equations. In t his chapter, we extend the investigation to include partial differential
equations (PDEs). As in the preceding chapter, we demonstrate the importance of
modified equations in analyzing specific numerical schernes. Here particular focus is
given to the traditional issues of accuracy, consistency, and stabiiity of numerical so-
lutions. The modified equations are obtained using Maple as in the previous chapter.
.A Maple worksheet for modified PDE is given in Appendix B.
3.1 Introduction
The benefits of using modified equations in analyzing numerical schemes and their
solut ions that were discussed in the previous chapter for ordinary differential equa-
tions also apply for partial differential equations. The general technique of developing
modified equations for partial dinerential equations was presented by Warming and
Hyett [66] in 1974. While we follow a procedure similar to that of Warming and Hyett,
the main difference here is that the derivation of the modified equations is carried
out using Maple. The benefit of using Maple is that the highly tedious procedure of
obtaining modified equations for riurnerical methods can be simplified greatly.
Consider the general linear PDE [29]
where f denotes the exact solution, and L, represents a possibly nonlinear opera-
tor involving the spatial derivatives in x. The finite difference equation (FDE) that
approximates the exact PDE is obtained by replacing the partial derivatives f t and
L, ( f ) by the finite difference approximations f, and L, (f) , respectively. Thus the
FDE is
IDE is the actual PDE that is solved by the FDE or at least a better approxi-
mation to what the FDE solves.
3.2 Derivation of Modified Equations for PDEs
The &IDE is derived by expanding each term in the FDE in the Taylor series at
some base point. Effectively, this changes the FDE back into a PDE. This analysis is
thus similar to what was done in Chapter 2 for ODES. Time derivatives higher than
first-order and mixed time and space derivatives are eliminated by differentiation of
the >IDE itself. The MDE must contain al1 of the t e m s appearing in the exact
PDE. However, it also contains an infinite number of higher-order space derivatives.
These higher-order terms are truncation eaor terms and can be used to check the
accuracy and consistency of the given algorithm and may sometimes, as before, be
given physical interpretations. Here we will derive MDEs for three example PDEs.
3.2.1 Example: .4 Modified Eqiiation for 6 + cf, = O.
First we will derive the MDE for the upwind difference approximation [46] of the
following equation:
where c is a constant. In the upwind scheme, a backward difference in space is used
if c > 0, and a forward difference is used if c < O. We assume c > O to begin with.
Replacing f( by the first order forward-difference approximation at grid point ( 2 , n)
and using backward space difference for f,, in (3.3), we have the following difference
equat ion:
Equat ion (3.4) can be solved explicitly for f:" . Thus
Equation (3.5) is the upwind approximation 1.161 of the equation (3.3) in the case
c > O. Xow write the Taylor series for terms f:+' and f:-, in (3.5). Thus
Canceling zero-order terms, dividing through by At, and rearranging terms yields the
following equation
In equation (3.6), we dropped the notation 1: for clarity. In order to obtain an
equation amenable to physical interpretation, we have to eliminate higher order tirne
derivatives and the mixed time and space derivatives from equation (3.6). I t is impor-
tant to ernphasize that the original partial differential equation (3.3) should not be
used to eliminate the unwanted time derivatives. In general, a solution of the partial
differential equation will not satisfy the difference equation. Since the modified equa-
tion is to represent the difference equation, the original partial differential equation
should play no role in the elimination of the higher-order tirne derivatives. Tyler [65]
and Roache [57] differ from this prescription for obtaining the rnodified equation. In
their approach, the time derivatives higher than first order and mixed time and space
derivatives are determined by differentiating the exact partial differential equation.
The proper method to eliminate higher order time derivatives and the mixed time
and space derivatives from (3.6) requires repeated differentiation of equation (3.6)
itself. We differentiate equation (3.6) with respect to time to obtain the following
expression for Itt.
Differentiating (3.6) a i th respect to x ! we obtain the following expression for fL1.
Substituting the value of fzt from (3.8) intc ( 3 3 , we get the foiiowing equation
ft t = C.f,+Az 7f& ( f 2
- * * - )
To obtain the following expression for f tu , we differentiate (3.9) with respect to t.
To get fkx, differentiate (3.8) with respect to x
Substirute the value of ft,, from (3.1 1) into (3.10), and we have
Differentiate (3.9) with respect to x to obtain
Replace values of fZzt, /-. and ft, in (3.9) to get
'iow replace the values of fn and jm in (3.6) to obtain
Equation (3.15) is a modified equation for the upwind scheme [46] for the equa-
tion (3.3) in the case c > O. The right-hand side of the modified equation (3.15) is
the truncation error since it represents the difference between the original PDE and
the finite-difference approximation to it.
The lowest-order term of the truncation error in the present case contains the
partial derivative f,,, which makes this term similar to the viscous term in the one-
dimensional Navier-Stokes equation. This may be written as
if a constant coefficient of viscosity is assumed. Thus, when u = cAtl4z # 1, the
upwind differencing scheme introduces an "artificial viscosity" into the solution. This
is often called implicit artificial viscosity, as opposed to explicit artificial viscosity
which is purposely added to a difference scheme. Artificial viscosity tends to reduce
al1 gradients in the solution whether physically correct or numerically induced. This
effect, which is the direct result of even derivative terms in the truncation error, is
called dissipation.
h o ther quasi-p hysical effect of numerical schemes is called dispersion. This is
the direct result of the odd denvative terms which appear in the truncation error.
.As a result of dispersion, phase relations between various waves are distorted. The
combined effect of dissipation and dispersion is sometimes referred to as difision.
Diffusion tends to spread out sharp dividing lines which may appear in the computa-
tionai region. In general, if the lowest-order term in the truncation error contains an
even denvative, the resulting solution will predominately exhibit dissipative errors [SI.
On the other hand, if the leading term is an odd derivative, the resulting solution will
predominately exhibit dispersive enors [5].
The modified equation (3.16) can be written
where Cm and CZ,+~ represent the coefficients of the even and odd spatial derivative
terms respectively. W m i n g and Hyett [66] have shown that in the small wave num-
ber limit where d l higher order terms negligible, the necessary condition for stability is
where C(21) represents the coefficient of the lowest-order even derivative term in the
right-hand side of a modified equation. Theg also showed that a more cornpiete sta-
bility analysis leads to the following general necessq and sufficient condition.
The lowest-order even derivative coefficient in the right-hand side of the modified
equation (3.15) is C(2 = 21), so 1 = 1. Rom the inequality (3.18), if v = cAt/Az,
then a necessary condition for stability is C(2) > O, i.e.
or v < 1, which is obtain .ed fiom the von Neumann stability analysis (se e appendix A).
Warming and Hyett have also shown that the relative phase error for ciifference
schernes applied to the equation (3.3) is
where k is the wave number. For small wave numbers, we need only retain the lowest-
order term. For the upwind differencing scheme, if 0 = k h and c > O we fmd that
which is identical to equation (A.6) in appendix A. Thus we have demonstrated that
the von Neumann stability analysis and the stabiiity theory based on the modified
equation are directly related [5].
Definition 1: A finite difference equation is consistent with a partial differential
equation if the difference between the FDE and PDE (i.e, the truncation error) van-
ishes as the size of the g i d spacings approach zero independently 1291.
Definition 2: The order of a finite difference approximation of a partial differen-
tial equation is the rate at which the global error of the h i t e difference solution
approaches zero as the size of the grid spacings approach zero 1291.
Consistency: As At -+ O and dx + O, equation (3.15) approaches ft + cf,, which
is the convection equation (3.3). Consequently, equation (3.5) is a consistent approx-
imation of the equation (3.3).
Order of accuracy: From equation ( U s ) , the order of (3.5) is O(At) + O(Ax). This rneans the upwind approximation (3.5) of PDE (3.3) is first order accurate in
the increments At and Ax.
Next, we will derive MDE for equation (3.3) for a more realistic scheme, the Lax-
Wendroff scheme (561.
A Modined Equation for the Lax-Wendroff Scheme for (3.3):
Lax and Wendroff [42] proposed a method to determine the fùnction f(x, t) based on
expanding f(z, t) in the Taylor series in time about the grid point ( 2 , a):
The first derivative ftl: is determined from the partial differentid equation (3.3).
That is, f, = -cf,, f denotes the exact solution. The second derivative fit is deter-
rnined by differentiating the partial differential equation (3.3) with respect to time.
Thus
Replacing the expressions for f t and f t t in equation (3.23) yields
Repiacing f , and f, by second-order centered-difference approximations (3.25) yields
Dropping the truncation error terms, we have the following Lax-Wendroff approxi-
mation to the equation (3.3):
Now mite the Taylor series for the terms f:+' and fi$:
and
From (3.29), we have the following two equations:
In the equation (XE), we dropped the notation 1; for clarity. Dividing (3.32) by At
and rearranging terms yields
The modified equation is obtained by eliminating the higher-order time deriva-
tives and the mixed time and space derivatives fiom the equation (3.33) by repeated
differentiation of the equation (3.33) itself. The result is
As the leading term in (3.34) is an odd derivative, the solution of the equation
(3.3) for the Lax-Wendroff approximation (3.27) predominately exhibits dispenive
e n o n 151.
For the modified equation (3.34): the condition of stability (3.18) is C(4 = 21) > 0,
which implies lu 1 < 1.
Consistency: In equation (3.34) as At -t O and Ar -t 0, (3.34) approaches ft + cf,,
which is equation (3.3). Consequently, equation (3.27) is a consistent approximation
of the equation (3.3).
Order of accuracy: From equation (3.34), the order of (3.27) is 0(At2 ) + O(&?), i.e. the order of equation (3.27) is 0(4t2) + 0(Az2). This means the Lax-Wendroff
approximation of PDE (3.3) is second order accurate in At and h.
3.2.2 Example: A Modified Equation for f, = df,.
Now we consider the equation
fi = d f n (3.35)
for the forward-time centered-space (FTCS) approximation. Replacing by the k t -
order forward-difference approximation at grid point ( 2 , n), and f, by the second-
order centered-difference approximation at grid point ( 2 , n), equation (3.35) yields
Equation (3.36) can be solved explicitly for f?+'. Thus
Equation (3.37) is the FTCS approximation of equation (3.33). Now write the Taylor
series for al1 the terms in (3.37). Thus
Canceling zero-order terms, dividing through by At, and reananging terms yields
Now we have to eliminate higher order time derivatives and the mixed time and
space derivatives from the (3.39) by repeated differentiation of equation (3.39) itseif
to obtain the rnodified equation
-4s the leading term in equation (3.40) is an even derivative, the solution of the
equation (3.35) for the FTCS approximation (3.37) predominately e-xhibits dissipa-
tive errors (51. The lowest-order even derivative in the right-hand side of the modified
equation (3.40) is 2. Therefore for the modified equation (3.40), the stability con-
dition is C(2 = 21) > O, which implies that d > O. However this yields no useful
information since this parameter is chosen to be positive, and it is a coefficient in
the original equation. However, if we implement the more general stability condition
given by (3.19), we obtain
w hich implies
Hence, the necessary and sufficient condition for stability is r < 112, which is the
well-known stability condition. In the above expression r is d s .
Consistency: In equation (3.40), as At + O and Ar -P O, equation (3.40) a p
proaches Jt = df.,, which is equation (3.33). Consequently. equation (3.37) is a
consistent approximation of the equation (3.35).
Order of accuracy: From equation (3.40), the truncation error is O(At) + O(A9) .
This means the FTCS approximation (3.37) of PDE is first order accurate in At and
second order accurate in k.
3.2.3 Example: A Modified Equation for ft + cf, = df,.
Finally, we consider the equation
for the backward-time centered-space (BTCS) approximation. Replacing fi by the
firstorder backward-difference approximation at grid point ( 2 , n + l), and replacing
f, by the second order centered-difference approximation at the g i d point (i, n + 1),
and f, by the second-order centered-difference approximation at grid point (i, n + i),
(3.41 ) yields following BTCS approximation of the equation (3.41).
Let jgid point (2, n + 1) be the base point. Substituting the Taylor series for al1 terms
into the above equation and simplifying yields
The MDE is obtained by eliminating the higher-order time derivatives and the
mixed time and space derivatives from the above equation by repeated differentiation
of the equation itself. The result is
As the leading t e m in (3.44) is an even denvative, the solution of the equa-
tion (3.41) for the BTCS approximation (3.42) predominately exhibits dissipative
errors [5] . The lowest-order even derivative in the right-hand side of the modified
equation (3.44) is 2. Therefore for the rnodified equation (3.44), the stability analysis
requires that the coefficient of f,, be greater than zero. Hence,
which can be written as
This is the necessary condition for stability for the BTCS scheme (3.42) of the equa-
tion (3.4 1). This means approximation (3.42) of the equation (3.41) is unconditionally
stable.
Consistency: As At + O and 4 x i O, equation (3.44) approaches It + cf, = df,,
which is the convection-diffusion equation (3.41). Consequently, equation (3.42) is a
consistent approximation of the equation (3.41).
Crder of accuracy: From equation (3.44) the order is O(ht) + O(A22). Th* 1s means
BTCS approximation (3.42) of PDE (3.41) is fiat order accurate in At and second
order accurate in Ax.
3.3 Conclusion
In this chapter, we developed techniques of obtaining modified equations for partial
differentid equations. While Maple was used for the derivations, the general proce-
dures used in the derivations were presented. We showed (see the Maple worksheet
in the appendix B) that the highly tedious procedure of obtaining modified equations
For numencal methods such as the Lax-Wendroff scheme could be simplified greatly
using Maple. This allows one to consider complicated initial and boundary vdue
problems and still obtain the modified equations relatively easily. Through specific
problems, we showed the value of rnodified equations in studying solution behaviours
including physicai interpretation, accuracy, consistency, and stabili ty.
Chapter 4
Compact Methods
In this chapter, we will consider three founh order compact numerical schemes for
partial differential equations. We check the accuracy of the developed schemes by
solving a simple parabolic problem, the heat equation. We also compare the equivalent
second order scheme with fourth order compact numerical schemes which aiso use
three nodes to obtain a fourth order accuracy. The results clearly confirm that the
fourth order compact methods are significantly çuperior t o any of the second order
rnethods considered in this chapter. We also develop some new compact methods,
called 'fast' compact methods, and give some analysis of their expected performance.
4.1 Introduction
The ultimate objective of any numerical calculation is the generation of accurate
results. As the problems treated become more cornplex, the standard second order
methods become less suitable for use due to the increase in the number of grid points
necessary for accuracy. In 1501 a compact merence formula of fourth order was men-
tioned. This method was conceived to be of use in hyperbolic problerns, and it was
used in that rnanner by Ciment and Leventhal [13]. However, the present chapter
will deal with a simple parabolic problem, the heat equation. The compact method
procedures require only three nodes in order to yield a fourth order accuracy, in con-
trast to the five nodes that are normally needed for the same accuracy. These are
accomplished by differencing techniques which consider the hinction and d neces-
sary derivatives as unknown. The relations of these function and derivative values
yield simple tridiagonal equations, which can be easiiy solved. A comparison of the
fourth order results with the second order results are presented for the heat equation.
The comparison clearly suggests that the accuracy achieved by these fourth order
computations are significantly better than second order procedures.
4.2 Fourth Order Compact Method 1 (FOCMI)
The usual objection to fourth order schemes cornes from the additional nodes (besides
the standard three) necessary to achieve the higher order accuracy. Besides the
attendant difficulties of having to consider two fictitious nodes when a boundary
point is being cornputed. the additional nodes almost preclude the use of fourth order
implicit rnethods since the matrix which arises is not the simple tridiagonal form
produced by second order schemes. The differencing proposed in [SOI however, is
fourth order and compact, and it retains tridiagonal form. Hence, the matrix solution
can be accomplished by the Thomas aigorithm (641.
We follow the procedure of Pettigrew & Rasmussen [52] to derive this method for
the heat equation
with the following boundary and initial conditions
u(0, t ) = u(1, t ) = 0 ,
and
4x7 0 ) = f (4 ,
where f (x) is a given function. We derive new variants later.
This compact method approximates (4.1) by two difference equations of fourth
order using only three grid points Say, xi-, , zi, and xi+ I . In order to derive the corn-
pact method, we introduce new variables for the derivatives [Sl]. Let us denote first
and second derivatives of u w.r.t x by F and S, respectively:
We shall first derive a relationship between the values of F and u at the grid
points. Since F=u,, it is clear that
Approximating this integral by Simpson's rule [44] and rearranging, we get
Thus to fourth order, we have
Hence, we have a relationship between u and F. This is the first difference equation.
In order to obtain the second equation, we start by evaluating (4.1) at the mid-
point i. Then equation (4.1) becomes
We now require an expression for - If we express u:-, and u:+, in the Taylor ex-
pansions about the point ( 2 , n), we get
where we have replaced u, with q. In order to remove the u:(') tem, we carry out
the same procedure for F and get
We can now remove the from these two equations. After rearranging, we get
the following expression for S::
By a similar procedure we get the following expressions for q-, and q+l :
We now substitute the expression for SF into (4.7) and rearrange. Thus we get, to
fourth order
We have now replaced the differential equation (4.1) by the two dinerence equations
(4.6) and (4.11).
Now we have to look at the boundaries. Let us first consider the Ieft boundary
condition, i.e., at x = O, and denote the points x = O, h, 2h, by 0,1,2. The first
difference equation we get €rom the boundary condition is
In order to get the second equation, we start with the differentid equation at the
points O and 1
From (4.9) and (4.8), we have the following expressions for Su and SI:
Finally we have fkom (4.6) that
We have five equations (4.13)-(4.17). If we eliminate %, S;, u;, and @ nom these
five equations, we get the following second Merence equation, valid at z = 0:
In a similar manner, we can derive the following two difference equations for u
and F at x = rn, i.e. at the right boundary point:
For each point, we have two difference equations. If we write them al1 together, we
have the following fourth order compact scherne for u.,.
The superscript n is used to denote the time grid lines.
4.2.1 Accuracy of the scheme
Next, we compare the accuracy of the method with the usual five-point centered dif-
ference scheme of the fourth order. The relation between F and u in this method is
and the reiation between S and u in this method is
The accuracy of this scheme is easily obtained by Taylor expansions of the above
equations. The resulting t runcation error is
1 F, = U: - (-) h 4 ~ ( 5 ) , and
180
The usual five-point fourth order approximations for u, and u, [l] are
The truncation error here is
Fi = IL: - (f) h4d" , and
Although the new scheme and the standard representation both represent fourth order
accuracy. the compact method should generate slightiy more accurate results due to
the smaller coefficients of the truncation error terms.
4.2.2 Difference scheme using compact scheme for u, and Forward Euler scheme
for ut.
If we replace ut in (4.21) by the first-order fonvard-difference approximation
we have the foliowing difference scheme for (4.1):
Since the initial condition u(x, O) = f (x) implies that u l = f (zi) for each i =
O, 1. ... m. these values can be used in the above equations to find the value of u: for
each i = 1,2..(m - 1) and the value of F: for each i = O , l , ... m. The additional
conditions u ( 0 , t ) = O and u(1,t) = O imply that U A = uk = O. Hence, ail the
entries of the form u: can be determined. If the procedure is re-applied once a.U the
approximations uf are known, the values of u:,ug, ... upl can be obtained in a similar
rnanner.
4.2.3 Difference scherne using a compact scheme for u, and a Backward Euler
scheme for ut.
If we replace n by n + 1 in equation (4.27), i.e. if we use the Backward Euler scheme
for ut and the compact scheme for u,, we have the following difference scherne:
Systems (4.28) gives a system of linear equations for the unknowns u and F. The
equations (4.28) are a coupled set and must be solved simultaneously. Thus, the
integration technique now consists of solving at each time step the block tridiagonal
spstem generated by equations (4.28), instead of the usuai scalar tridiagonal matrix.
Similar arguments hold if an implicit Crank-Nicolson integration (next subsection) is
chosen.
4.2.4 Dinerace scheme using compact scheme for u, and a Crank-Nicolson scheme
for ut.
If we replace n by n + 112 in equation (4.27), i.e. if we use the Crank-Nicolson scheme
for ut and the compact scheme for u,, we have the following difference scheme:
This system can be solved at each time step.
4.3 Fourth Order Compact hlethod 2 (FOCM2)
'low we coosider another and more efficient compact method. To denve this scheme,
we suppose that the values of the derivatives at the given grid points are also known.
We utilize the FINDIF [18] package in Maple in order to derive this method. For the
second derivative of u with respect to x, FINDIF gives
Then by implementing the boundary conditions (4.2), we get the system of equations
iLlu" = A u ,
w here
and
Hence, we solve a set of linear equations (4.31) for u" and replace the values of
ut' in the heat equation (4.1). Then we solve ut = u, using the method of lines
(MOL) [3]. FOCMI is a dxerencing technique which contains the function and
al1 necessary 6rst derivatives as unknowns. In contrast FOCM2 is a differencing
technique, which cont ains the function and al1 necessary derivat ives (including second
and higher derivatives) as unknowns. In the first compact method, we replace the
values of second and higher derivatives in t e m s of function and fiat derivatives. In
the second compact method, we do not have do this. Thus in the fiat compact
rnethod, we have additional work to conven second and higher derivatives in terms
of function and first derivatives. In both compact methods, the relations of function
and derivat ives yield easily solved tridiagonal equat ions.
4.4 Fourth Order Compact Method 3 (FOCM3)
Now we will develop a new fourth order compact method by modification of FOCMP,
so we cal1 it Fourth Order Compact Method 3 (FOCM3). Modifications of FOCM2 to
FOCbI3 follow. We use equatiori (4.30) for i = 2. . , n - 1, which gives us a tridiag*
na1 matriv for the system of equations defining second derivatives for interior points.
We wish to preserve tridiagonality at the end points. Indeed we look for boundary
formulae which give the following two equations (also derived using FINDIF):
Both formulae are 0 ( h 4 ) . If we choose Our left-hand boundary formula instead to be
which is an 0 ( h 4 ) approximation (whatever c is), then from an idea which we have
taken from [71] we can factor the resulting tridiagonal system exactly if c is chosen
properly. The qstem is
If c = 5 + 2 6 or c = 1/(5 + 2&)? then hil factors exactly into Ml = LU = L D L ~ ,
wtere
with k = I/c. and D = dia& c, . . . , c). It is curious that the lack of constant di-
agonal~ here is what leads to the exact factorization and consequent efficiency of the
method. The solution to Mid' = b can now be found by the recurrence relations
for i = 2,3, , n, and
for i = n - l , n - 2, - - a , 1. If we choose c = 5 + 2& we see that errors are damped
in the recurrences (4.36) and (4.38) because k < 1. Therefore for c = 5 + 2& the
recurrences (4.36) and (4.38) are stable.
The total cost for evaluation of this derivative is O ( R ) flops, where n is the number
of grid points. More important than this, the constant hidden in the O(n) syrnbol
is very small, since only multiplications (no divisions) are involved, and no storage
is necessary beyond one constant. This makes the method particularly suitable for
settings where the number of points may change, although we do not explore that
extension. in this thesis.
Thus we solved the system of linear equations M i d 1 = b for u" in an efficient
manner. NOW we have to replace values of u" in the heat equation (4.1) and solve the
problem using the rnethod of lines (MOL) [3].
Application: Consider
ut = Uzz
with boundary and initial conditions
It is easily venfied that the solution to this problem is
u ( x , t ) = eagt sin (m) . (4.41)
The solution at t = 0.5 with Az = 0.1 and At = 0.01 is approximated using
three fourth order compact difference schemes and the second-order Crank-Nicolson
scheme [Il].
Figure 4.2 shows the g a p h of logarithrn of the absolute difference between the exact
solution of the equation (4.39) and the numericd solutions obtained using the second-
order Crank-Nicolson scheme and logarithm of the absolute difference between the
exact solution of the equation (4.39) and the numerical solutions obtained using al1
three fourth order compact methods. From the Figure 4.2 it is clear that FOCM3
appears to be in this exarnple the rnost accurate among three compact methods,
followed by FOCM2 and FOCM1.
4.5.1 Influence of rounding errors
Figure 4.3 shows that the compact fourth order second derivative formula does not
suffer from rounding errors an' more than the explicit formula
does. Both formulas exhibit fourth order accuracy as h is diminished (using a Fibon-
naci sequence of g i d points on the test problem f (z) = sin(sx)* on O 5 z 5 1) until
h is about 10-~. when the best accuracy is reached and rounding errors take over.
4.6 Check that Foch13 actually has fourth order accuracy
In this section we will check by using the heat equation
with the initial and boundary conditions u(x, O) = sin(lrz) and u(0, t) = u(1, t) = 0,
that the fast compact method that we cal1 FOCM3 is actually, and not just formally,
founh order accurate.
FOCM3 is based on the computation of the spatial derivatives by a fast compact
scheme. I t is compact because it involves only derivatives on nearby grid-points, thus
giving a narrowly-banded linear system for the values of the derivatives on the g id .
It is fast because not onlg is the linear system tridiagonai or pentadiagonal, but it also
has its upper left corner modified so that we may factor the matrix analytically, i.e.
in 0 (1) flops. This modification requires special-purpose finite difference fomulae for
the derivatives at the boundaries. but this is relatively simple to do using the Maple
share l i b r e package FINDIF [Ml. We will compute a residual for this equation to
show its accuracy.
.A sixth-order formula for evaluation of u, (Appendix C) will be used to compute
the residual accurately. We expect the residual for the FOCM3 formula to have a
form making the modified equation for this method and this equation into
-4.6.1 Analysis of the modified equation
One method of wri&ing that FOCM3 is a fourth order would be to attempt to solve
the modified equation (4.14), and compare its solution with the numerical solution of
the heat equation generated by FOCM3. One would expect better agreement than
between the numerical solution of the heat equation generated by FOCM3 and the
exact solution of the heat equation.
This approach is unfortunately too complicated, because the boundary conditions
for the modified equation (4.44) must be chosen in such a way as to give the ' b a t
fit' between its solution and the numerical soiution of the heat equation. This is
essentially a control problem. While it would be possible to do it, it is sirnpler to use
another approach.
Instead, we compute ut accurately by interpolation of the MOL solution, dong
each grid line, and compute u, accurately by using a higher order formula (than is
used in FOCM3) . We then cornpute the residual r(z, t) = ut - u, and see how the
size of r varies as we Vary h, the spatial grid size. We use the sixth order formula for
u,, and fourth order formula for ut (both derived using FINDIF). The values of At
used are typically about 1.0e - 3, so we expect mors in r about 1.0e - 12.
We computed residuals with 7, 15, 31, 63, and 127 grid points. We plot the
residuals and the exact errors on a log scale in Figure 4.4. We see that the residual
apparently behaves as 0 ( h 5 ) , not 0 ( h 4 ) . while the exact error behaves like 0(h4) only
initially. CVe believe that the extra order of accuracy in the residual is an artifact
of the fact that the test function is nearly an eigenfunction for the second derivative
operator. and that with another test function, we would get only 0(h4) accuracy. We
do not understand the global error behaviour, but we believe that it might reflect
rounding error propagation in the time integation. One way to test this would be to
implement compensated summation [27] in the Matlab ODE integators to see if it
would improve this behaviout.
4.7 Compact Methods Allow Fast Jacobian-Vector Multiplication
In this section, we will show that compact methods allow fast Jacobian-vector multi-
plicat ion, by considering Burgea' equation
which is a prototype problem often used to test behaviour of numericd schemes. We
Figure 4.1: u(x,)=V,
discretize on a unifom grid using compact finite differences to get the vector of values
of u, values (which we will call V,) and the vector of u, values (which we will call
I;,) from the vector of u values (which we will cd1 V ) .
Then with certain matrices M l , B1, 1 V 2 , and B2, we have
hrl 1.f = BIV defining Vz
bf2 Vzz = B2 V defining V,.
Conceptually. VZ = Ml -'BI 1' and L i z = 114-' B2V. M I and hl2 are special tridiag-
onal matrices, and V, and V,, can be found in O(nj Rops, but M ~ - ' B ~ and Mz-' B2
are full (dense).
The method of lines for initial value problern (MOL IVP) is - dt = -diag ( V ) K + XV,,
= -diag ( V ) M ~ - ' B ~ I ; + AM~-'&V
= f (1') , say.
We use the first form to calculate the RHS, of course. What is the Jacobian
J = % ? Consider the jth column J = . W, h m
where (), is the j th entry of a vector. and ( ) J is the jth column of a matrix. Thus
the Jacobian J is
J = -diag (ICIl-'B1v) - diag (V)Ml-' Bi + A&-' B~
which is clearly full and dense. Thus cornputing J seems to require 0(n2) storage
and thus 0(n3) flops in the solution of the linear equations needed for implicit time-
stepping.
However. computation of J tirnes a vector (say w) gives
Jw = -diag (Ml-lBIV)w - diag (V)M~-'B~W + x M ~ - ~ B ~ w
This is a standard trick in optimization codes and automatic differentiation, for ex-
ample (George Corliss, private communication). If we define
Ju = -diag (V'Jw - diag (V)wi + hw2 ,
which can be computed in O(n) flops. This saving is important and substantid.
Moreover, this observation about the cost of the Jacobian is general.
Fint, suppose our 410L IVP is
F(Ir + ew) - F ( V ) Jw=
c
If F(Ir) can be evaluated in O(n) Aops, then so can Jv. Higher order accuracy can
be obtained but is not usually important here. where approximate Jacobians are used
anyway.
Finallg. many PDEs are rather simple, being polynornial or rational at worst.
Exact Jacobian cdculations are not too difficult by hand, and automatic differen-
tiation is available for more difficult equations. This means that standard iterative
techniques for the solution of the linear systems (e.g. (1 - h J ) V f k f '1 = F(V(") can
be expected to be efficient [IO, 281.
We use the procedures built in to LSODE, LSODI and VODPK, with no special
treatment or preconditioners, for Our examples.
4.8 Conclusions
In this chapter, we studied, the efficiency and accuracy of the fourth order compact
methods for solving partial differential equations. For the heat equation, we were able
to show the superior performance of the fourth order compact methods. Generally
we expect to obtain a relatively higher performance with compact rnethods. When
compared with the second order methods, the fourth order compact method, which
dso uses only three nodes, gives results that are significantly more accurate. We also
checked the level of accuracy for the fourth order compact method and showed that
compact met hods generally can take advantage of fast Jacobian-vector multiplication.
Thiis one can expect that these methods will be useful and efficient in the numeri-
cal method of lines for the solution of partial differential equations, which generaily
gives rise to stiff systems, because when the resulting nonlinear systems for irnplicit
met hods are solved using iterative techniques, a fast Jacobian-vector multiplication
is important.
Figure 4.2: Solutions of heat equation at t = 0.5 with Ax = 0.1 and
At = 0.01. The solid line is the logarithm of the absolute
difference between the exact solution e-"" sin(rz) and
the result of applying FOCM3 to equation (4.39). The
diamond signs are the logaxithm of the absolute differ-
-3.5
-4
4.5
- L
2 L
E -5 s a, O -
-5.5
-6
ence between the exact solution ër2' sin(?rx) and the re-
sult of applying FOCM2 to equation (4.39). The dashed
line is the logarithm of the absolute difference between
the exact solution ë"" sin(nx) and the result of applying
scheme (4.29) to equation (4.39)- The plus signs are the
logaxithm of the absolute difference between the exact
solution solution ër2' sin(rz) and the result of apply-
ing the second order Crank-Nicolson rnethod to equation
(4.39).
- I I I 1 I I I ........ ............ ........ ......... +.... ...........+..... ..- ..-. +. ...... ... . +-.---.- ........ .+-. .,.. .... <. .' . ...... ....
T " *~
-
- . ..................... *.____.. -..-.. ........ ........ ---. ........ ..... S . . .... .... .... * - . . -. - m .
. S .
Cs.,.'
-
--,,,*-~--"-----O---------- &-'---- +------_-_-
/--- S.-- - -- *.----- --. --- a-.
Figure 4.3: Rounding Errors in Compact Formulas. The solid line is
the maximum error in computing I(') where f = sin2(?rz)
by the compact formula (4.35-4.38) for mrious h. The dashed line is the maximum error in computing f ('1 by
the non-compact fornula (4.42). For h = l ~ - ~ , both for-
mulas begin to feel the effects of b i t e precision u = 1.0e - 16.
Figure 4.4: Plot of enors (residual and exact) in the heat equation
solution by FOCM3 on a log scale. The steeper sloped
line (slope very nearly 5 all dong) is the residual error,
while the exact error does not behave so nicely, for small h, levelling out at about 1.0e - 6.
Chapter 5
Numerical Procedures for the Kuramoto-Sivashinsky Equation
Continuing our investigation of numerical methods for differential equations, in this
chapter we consider the numerical solutioii of the well-known Kurarnoto-Sivashinsky
equation (equation (5.1 ) , below) . This Kuramoto-Sivashinsky equation is a fourth
order non-linear partial differential equation with a non-negative solution parameter a
appearing as the coefficient of the non-linear term. By considering the unsteady state
version of the Kuramoto-Sivashinsky equation, we will investigate the performance
of five different numerical schemes including a second order finite difference method,
second order compact method. fourth order finite difference method, fourth order
compact method 1, and founh order compact method 2. We will also study the effect
of cr on the behaviour of the numerical solution. While al1 the numericd methods
show good agreement with the expected asymptotic behaviour for the parameter a,
the best result is obtained from the fourth order compact method 2. In the following
section, a bnef introduction is presented followed by a formulation and method of
solution as well as results and discussions. Concluding remarks are given at the end
of the chapter.
5.1 Introduction
There has been considerable attention to the Kurarnoto-Sivashinsky (KS) equation
in recent years. (see for example [43, 33, 471). One motivation for the great interest
in the KS equation is its use as a mode1 in a M n e g of applications. The KS equation
was originally derived by Kuramoto in the context of angular-phase turbulence for a
systern of reaction-diffusion equations modeling the Belouzov-Zabotinskii reaction in
three space dimensions [36, 37, 38, 391. He considered u(xI, 2 2 , x3, t) to be a small
perturbation of a global periodic solution, j ust beyond the parameter dornain where
the Hopf bifurcation has occurred. The KS equation was also derived independently
by Sivashinsky while modeling small thermal diffusive instabilities in larninar flame
fronts (45, 59, 601. In this case, u(xl, 22, t ) is the perturbation of an unstable planar
Harne front in the direction of propagation. Therefore, both the work of Kuramoto
and Sivashinsky were motivated by the study of non-linear stability of traveling waves.
Hence, the qualitative and quantitative study of the KS equation is of great interest
in analogy with the Burgers' and the Navier-Stokes equations. The KS equation is
used also in pattern formation modeling and other areas of applications. A list of
references related to these applications is given in [35]. In addition to the physical
motivations, the KS eqriaticn ir 3f significant mathematicai interest because of its
rich dynamical properties (cf. [61' [20], [34], [35], and [48]). Of particular signifieance
is the connection with the theory of inertial manifolds. Both when used as a mode1 or
when seen as a mat hematically relevant dpamical system, the KS equation requires
numerical solutions. In this chapter, we will use a wriety of numerical schemes to solve
the KS equation. In addition to obtaining insights to the qualitative and quantitative
behaviour of the KS equation, this exercise will also provide us with some level of
cornparison on the performance of the various schemes.
5.2 Formulation
The KS equation is a fourth order non-iinear partial differential equation (PDE)
subjected to the periodic boundary condition
u(x + 2r, t ) = u(z , t ) .
Here a is a non-negative parameter. We consider this boundary value problem dong
wit h the initial condition
U(X, O) = cos(x). (5.3)
5.3 Methods of solution
Since there is no analytical solution to the KS equation, numerical methods are used
to obtain the solution for a given value of a. CVe consider five different numerical
schemes;
1. Second Order Finite Difference Method (SOFDM)
2. Second Order Compact Method (SOCLI)
3. Fourth Order Finite Difference Method (FOFDM)
4. Fourth Order Compact Method 1 (FOCMI)
5 Founh Order Compact Method 2 (FOCM2).
In each of these methods, we utilize the method of lines (MOL) [3] for (5.1). The MOL
is a classical technique for converting PDE into a system of differential equations. It
can be done in two ways. The first one consists of discretizing in time t and then
solving a boundary value ODE problem by BVP codes such as COLSYS, COLCON,
and AUTO [y ] . This approach is caUed the transverse method of lines. The second
scheme involves discretizing in the space-like independent variables and leaving the
time variable t alone, and then solving an initial value problem for temporal t by
IVP codes, such as LSODE, LSODI [28], and DASSL [53]. This approach is called
the longitudinal method of iines. We will use the longitudinal approach, and the
resulting ODE systems are solved using the double precision version of the stiff ODE
solver LSODE 1281. Default values of the parameters of tirne integration in LSODE
are used. The method of time integration is chosen as the backward differentiation
formulas (BDF) with chord iteration, for which an approximate Jacobian is computed
by LSODE intemally using finite differences. For people farniliar with LSODE, these
remarks rneans that we took iopt = O and mf = 22. We took relative and absolute
tolerances equal ta 10m8. Al1 computations are obtained using a pentium (12OMhz)
cornputer with 16 MB RAM. In the following sections, we describe al1 five numerical
met hods.
5.3.1 Second Order Finite Difierence Method (SOFDM)
We replace the x domain [O. 2a] by a discrete set of points x, = ih for i = 0,1,2.. . , n,
where h = %. CVe use central differences for the first, second, and fourth derivatives
with respect to x. We find the following system of ODES for the discretized variables
ut:
Equation (5.4) dong with the appropriate boundary and initiai conditions, completely
define the solution.
5-32 Second Order Compact Method (SOCM)
In order to constnict a Second Order Compact Method, we write the KS equation as
a coupied çystem of PDEs,
We then use a central difference approximation for the first and second spatial deriva-
tives to obtain the following systern of linear algebraic equations and first order non-
linear differential equations:
dui 4 sui - = -- (vi-, - 274 + v ~ + ~ ) - CtVi - - (4+i - ui-,) dt h2 2h
Each tirne we cal1 LSODE to solve ODEs (5.8) we have to solve linear algebraic
equations (5.7).
5.3.3 Fourth Order Finite Difference Method (FOFDM)
Next we obtain a Fourth Order Finite Difference Method using fourth order central
differences for the fim, second, and fourth spatial derivatives which give the following
systern of ODEs:
5.3.1 Fourth Order Compact Method (FOCM 1)
We now consider a fourth order approximation which uses only three gxid points. This
is an advantageous scheme since it gives us a higher order approximation using fewer
grid points than the seven grid points that a standard fourth order approximation
requires.
In order to derive the appropriate finite difference equations, we first introduce
new variables for the derivatives [51]. Let us denote first derivatives of u and v w.r. t.
x by F and f ,
u, = F and v Z = f .
Then from (5.5) and (5 .6) , we have the compact scheme
Each time we cal1 LSODE to solve ODES, we have to solve three set of linear algebraic
equations for F, f , and v. In this method, we find u, u,, u, and u, directly.
5.3.5 A New Compact Formulation (FOCM2)
Ln the FOCM2 inethoci, we compute u, uz, u,, and u,. We utilize the FINDIF
package in Maple in order to derive this method. For the fim derivative, FINDIF
gives:
where u: is the derivative of ui with respect to x. Simiiarly, the foliowing equations
define the higher derivat ives:
Then by implementing the b o u n d q conditions (5.2), we get the system of equations
w here
Similarly for the second and fourth derivatives, we have the system of equations
where and u" and d4) are cohmn matrices like u' and
Hence, we solve three sets of li.lcar equationi (5.15). (5.16). and (5.17) for ut, u" and
d4), respectively, and replace t hese values in (5.1).
5.4 Results and Discussion
Using the five different schemes descnbed in the previous section, we carried out
various numerical experiments to investigate the behaviour of the solution of the KS
equation. We solved the KS equation by SOCM using 1000 points, considered as an
exact solution, and compare this solution with solutions obtained using the other four
methods. For these four methods, Ive took 500 points if the method is second order
and 70 points if the method is fourth order. As a test, we take cr = 13 and compute
the solution at time t = 1.0. From Figure 5.1, we note that the general behaviour
of solutions of KS equation is found to be the same for al1 schemes. The time taken
by each scheme is summarized in Table 5.1. Table 5.2 shows the maximum n o m
L, and La noms of the error between the solution obtained from the method 2 and
solutions obtained from other four methods. From the table, it seerns that methods
4 8~ 5, 2.e. fourth order compact methods 1 & 2, give us the best result.
Next we look at the behaviour of the solution for various values of a.
Figure 5.2 shows the solution of the KS equation using FOFDM at t h e t = 1.0
for parameter values a = 0, 3, 6, and 8. In the range a = O to a = 8, the m a u m
amplitude of the solution increases.
NOTE TO USERS
Page(s) not included in the original manuscript are unavailable from the author or university. The manuscript
was microfilmed as received.
UMI
problem to the solution parameter a. We comfirmed that the maximum amplitude
of the solution is highly dependent on a. For n values exceeding 15, the maximum
amplitude continuously increases with increasing a, while for smaller values of a the
maximum amplitude decreases with increasing values of a. For a = O, we obtained
an exact solution which was used to check the accuracy of the various schemes used
in this study. The study showed that the fourth order compact methods give the best
results both in t e m s of accuracy and efficiency as we found in the previous chapter.
1 .
. m
4 .
m l 8 a 4 b a r t
r
Figure 5.1: Solutions of KS equation for a = 13, at t = 1.0 ob-
tained using (a) SOFDM method (6) SOCM method (c) FOFDM method (d) FOCMl method (e) FOCM2 rnethod.
SOFDM
FOFDM
No. of points Time taken in seconds
500 1168.5
Table 5.1: Time taken by various methods to solve the KS equation with a! = 13, at t = 1.0.
Met hod r L
SOFDM
FOFDM
Max. Norm
Table 5.2: Maximum and L2 noms of errors of the solution of the
Ks equation with cr = 13, at t = 1.0.
Figure 5.2: Solution of KS equation for a = 0,3,6, and 8 at time
t = 1.0. The solid line is the solution for cr = 0, the
diamond signs are the solution for a = 3, the dashed line
is solution for a = 6, and the plus signs are solution for
Figure 5.3: Solution of KS equation for a = 8,11,13, and 15 at t h e
t = 1 -0. The solid lioe is the solution for rr = 8, the
diamond signs are solution for a = 11, the dashed line is solution for cr = 13, and the plus signs are solution for
cr = 15.
X
Figure 5.4: Soiution of KS equation for a = 15,22.5,30, and 120 at
time t = 1.0. The solid is the the solution for a = 15, the
diamond signs are solution for a = 22.5, the dashed line
is solution for cr = 30, and the plus signs axe solution for a = 120.
Figure 5.5: The logarithm of the absolute difference between the ex-
act and numericd solution of KS equation for a! = O at
t = 1.0.
Fi y r e 5.6: Logarithm of the absolute difference between the refer-
ence solution (solution obtained using SOCM with 1000
points) of KS equation and solutions using other four
methods at t = 1.0 and a = 13. The line o - O is
the logarîthm of the absolute dinerence be tween solution
using SOFDM method and the reference solution, the
dashed line is logarithm of the absolute difference be-
tween solution using SOFDM method and the reference
solution, the line + - - + is the logarithm of the absolute
difference between solution using FOCMI method and
the reference solution, and the line O - O is the loga-
rithm of the absolute difference between solution using
FOCM2 method and the reference solution.
Chapter 6
The Cas Dynamics Equation
Because the gas dynamic equation system exhibits most of the features of general
hyperbolic conservation equations, it is extensively used aç a test problem for schemes
that are used to solve such non-linear equations. We examine various numencal
schemes including finite difference methods and the compact methods developed in
Chapter 1.
6.1 Introduction
Over the past few decades there has been considerable interest in models for physical
phenomena involving a system of hyperbolic conservation laws. In this chapter, we
consider the one-dimensional equations of gas dpamics. These comprise a system of
equations representing the conservation of m a s , momentum, and energy along with
the equation of state of the gas. This problem is used extensively as a test problem
for schernes for solving hyperbolic (nonlinear) conservation laws. Sod [61] and later
Gottlieb at al, 1221 have used this problem as a test problem for several different types
of codes. This problem represents the next level of complexity after Burgers' equation.
We use various numerical schemes including finite Merence methods and compact
methods in which we use the method of !in=. In using the method of lines, the space-
like independent variables are discretized, while the time variable is kept continuous.
This typically leads to a system of nonlinear ordinary dinerential equations (ODE)
which must be solved along with a set of initial conditions. Since ODE methods apply
equdly well to nonlinear problems, there is no need for linearity in the discretized
spatial de~vatives. To solve the resulting ODE, we use the LSODE [28] ODE solver
package. In order to convert our conservation equations to be a form suitabie for
use with the program LSODE, we use the classicd technique of introducing artificial
viscosity to the system. In the next section, we present the governing equations and
the corresponding initial conditions. In section 3, we discuss the conversion of the
equations suitable for use of the program LSODE, and in section 4 we outline the
various discretization met hods considered. Finally, in section 5, we present a short
discussion and conclusions.
6.2 Formulation
The one-dimensional equations of gas dynamics mas be written in conservation form
as follows:
and
where r , m, p, and E denote density, momentum, pressure, and energy per unit vol-
ume respectively. These equations represent the conservation of mas , momentum,
and energy, respectively. For convenience, we write these equations in a vector form
w here
and
We also use the equation of state for an ideal gas to express the interna1 energy
per unit m a s , e, as a function of p and T .
where y > 1 is the constant ratio of specific heats, taken here as 7 = 1.4, conespond-
ing to a diatomic gas. Furthemore, we can express E as a function of e, r, and m
using Bernoulli's equation,
so tbat along with equation (6.7) the pressure can be written as
Therefore, the governing system includes equations (6.1 ) , (6.2), (6.3), and (6.9) for
the three independent variables, r, m, and E. We use the following initial and bound-
ary conditions:
6.3 Addition of Artificiai Viscosity
If we attempt to convert (6.4) to a f o m for suitable for use of the program LSODE
directly, replacing Uz by the appropriate linear combination of U values as an approx-
imation, we get a system of first order differential equations. When the boundary
conditions are applied, we might be asking LSODE to compute approximate solutions
to initial value problems with discontinuous solutions. This could well be too much to
ask from LSODE. Thus, to make the problem sirnpler, we use the classical technique
of adding artificial viscosity to the hyperbolic system, by adding a term proportional
to LI,. Our system (6.1 - 6.3) then becornes
and
in vector form;
rt + rn, = Ar,,,
m, + ($ + p ) = hm.,, z
We use the boundary conditions
r(-0.5, t ) = 1.0000, r(O.5, t ) = 0.1250,
E(-0.5, t ) = 2.5000, and E(0.5, t) = 0.2500. (6.22)
It is weiI known that for hyperbolic conservation laws, even smooth initial condi-
tions c m produce solutions which eventudy become discontinuous. Hence when we
speak here of a solution of (6.4), we will mean a weak solution. In [40], Lax proves
that if the solution U ( x , t ; A) of (1.13) converges to a limit Ü(z, t) as X approaches O+,
then Ù(x, t) is a weak solution of (6.4). Further, in [41] he proves that Ü(s, t) is the
correcto physically realizable weak solution of (6.4). Finaily, Foy [21] proves that the
solutions of (6.19) do indeed converge if the original shocks are weak enough. There-
fore, the addition of artificial viscosity, while simple, will not destroy the essential
character of the hyperbolic equations (6.1-6.3). We will take X = 5 x 10-~.
6.4 Methods of solution
In the following sections, we describe the numerical methods we used to solve the
problem. Default values of parameters of time integration in LSODE are used (i.e.,
iopt = O). The method of time integration is chosen as the implicit Adams method
with functional iteration (no Jacobian matrix is involved. mf =IO). We took relative
and absolute tolerances equal to IO-^. -411 computations are obtained using a Pentium
(1ZOMhz) computer with 16 MB RAM (Random Acess Memory).
6.4.1 Second Order Finite Difference Method (SOFDM)
In the classical Seccnd Order Finite Difference Method, we replace the z domain
[-O.5,0.5] by a discrete set of points xi = ih for i = 0' 1,2.. . , n, where h = l /n and
use central differences for the first and second spatial (x) derivatives. We find the
following systern of ODES for the discretized variables ri, mi, and Ei:
- = -- mi- 1
dt (Et-1 + pi-1) ri- 1 1
where p is given by equation (6.9). The above equations along with the appropriate
boundary and initial conditions completely define the solutions of (6.19).
6.4.2 Second Order Finite Difference Method 2 (SOFDhI2)
In order to construct another Second Order Finite Difference Method SOFDM2, we
write the gas dynamics equations as a system of PDEs,
mt + s = Au,, (6.29)
We then use a central difference approximation for the first spatial derivatives to ob-
tain the following system of algebraic equations and first order ODES:
m-1 = i [" (E*+~ + ~ + l ) - - ( ~ i - 1 + ~ ï - i ) 2h ri+i ri- 1 1
Each time we cal1 LSODE to solve these ODEs, we have to solve five sets of linear
algebraic equations for t., u, s, 2 , and W .
6.4.3 Fourth Order Finite Difference Method (FOFDM)
Xext we obtain a Fourth Order Finite DiEerence Method using fourth order central
differences for the fim and second spatial derïvatives, giving the following system of
ODEs:
dEi - 1 m i - 2 mi- 1 - - -- [- (E;-* + pi-2) - 8- (Ei-1 + pi-l) dt 12h ri-2 ri- i
We will use one-sided finite differences at the boundary nodes.
6.4.1 Fourth Order Compact Method 1 (FOCMI)
We now consider a fourth order approximation which uses only three grid points. This
is an apparently advantageous scheme since it gives us a higher order approximation
using fewer grid points than the five grid points that a standard fourth order approx-
imations requires. The idea is to approximate (6.19) by two difference equations of
fourth order using only three g i d points, Say x,-1, x,, and zi+i.
In order to derive the appropriate finite difference equations, we first set the deriva-
tives equal to some lunctions [51]:
where q and g are given by
and
We shall fîrst derive a relationship between the values of r and u a t the grid points.
Since u=rz, it is clear that
-4pproximating this integral by Simpson's rule and rearranging, we get
Thus to the fourth order, Ive have
This is the first difference equation. In order to obtain the second equation, we start
b evaluating (6.16) at the midpoint. Thus
dr, - = -Ui + ASt, dt
where the second derivative of r with respect to x is denoted by S. We now require
an expression for S,. If we express r,- and ri+, in Taylor expansions about the point
i, we get
where we have replaced r , with Si. In order to remove the h4ri(4) t e m , we carry out
the same procedure for u and get
h3 h6 q+l - ui-1 = 2hSi + -ri'4' + -ri(6) (c, t ) .
3 60
We can now remove the h m these two equations. After rearranging, we p t
We now substitute the expression for SI into (6.47) and rearrange. Thus we get, to
fourth order,
We have now replaced the PDE (6.16) by system of IVP (6.46) and (6.49). In a
similar manner, we can derive two IVP for (6.17) and (6.18). If we write ail these
difference equations together, we have the following fourth order compact scheme for
(6.19):
The additional boundary conditions are
r,(-0.5, t ) = O = r, ( O S , t )
In this method, we find r , m, E, r,, mz, and Ez. This gives us a tridiagonal system
of equations to solve.
6-45 Fourth Order Compact Method 2 (FOCMI)
Now we consider another compact method in which we ccmpute the function and its
derivat i=es. Consider the quantities
m, mz and %.
r , and r-.
El and E=.
We use the FINDIF Maple package to derive this method. For example, for the first
derivative of m FINDIF gives the following:
where mi is the derivative of m, with respect to x. Then by implementing the bound-
a- conditions. w get the system of equations
where
m = [ _ ] .
m,
Similarly for the second derivative, we have the system of equations
w here
and m" is a column matrix sirnilar to ml. Hence, we have to solve equations (6.62)
and (6.63) for n' and mlf . in a similar marner, we can find the values of rl', Eu,
($ + p) , , and (f (e + p ) ) = and replace these values in (6.16), (6.17) and (6.63).
6.4.6 Fourth Order Compact Method 3 (FOCM3)
Now we will develop a new fourth order compact method. We will derive this new
compact method by rnodiîqring FOCM2, so we c d it the Fourth Order Compact
Method 3 (FOCMJ). We use equation (6.61) for i = 2, * , n - 1, which gives us
a tridiagonal matrix in the system of equations defining first derivatives for interior
points. We would like to preserve tridiagonality at
look for boundary formulae giving the equations
the end points, and indeed we
t 58m4 - llm5) , (6.64)
and
Both formulae are 0(h4). If we choose our left-hand boundary formula to be instead,
which is an O(hJ) approximation (whatever c is), then following an idea from 1711,
we can factor the resubing tridiagonal system exactly if c is chosen properly. The
system is
hlL =
If c = 2 + fi, or c = 1/(2 + fi), then Ml factors exactly into Ml = LU = L D L ~ ,
w here
with k = l/c, and D = diag(c, c, . . . , c). It is curious that the lack of constant di-
agonal~ here is what leads to the exact factorization and consequent efficiency of the
method.
The solution to Mlm' = b can now be found by the recurrence relations
and
If we choose c = 2 + fi, then k = 1/(2 + a) < 1 so thar the errors in recurrences
(6.67) and (6.68) are darnped. Therefore for c = 2 + fi, the recurrences (6.67) and
(6.68) are stable.
For the second derivative, we use the equation (6.63) for i = 2, - , n - 1, which
gives us a tridiagonal rnatrix in the systern of equations defining one second deriva-
tives at interior points. For boundary points we have the following formulae:
We can factor the resulting tridiagonal system exactly if ci is chosen properly. The
system is
n/12 =
where cl = 5 + 2&, or cl = 1/(5 + 2&). For stability, cl = 5 + 2 4 . We will see
that this compact method is faster than other two fourth order compact methods.
See Table 6.1.
6.5 Results and Discussion
Using the six schemes described in the previous section. we canied out numerical ex-
periments to investigate the behaviour of the solution of the Gas Dynamics equation.
We computed the solution at time t = 0.15, the final time for the profiles presented
in the review by Sod [61]. From Figures 6.1, we noted that the computed general
behaviour of the density of the gas is the sarne for dl schemes. The same is true for
the velocity, the pressure. and the internai energy of the gas. The time taken by the
various schemes is summarized in the Table 6.1. It is clear that the FOCM3 scheme
talces the least amount of t h e to compute the solution at the given tolerance. A
relatively large number of points are needed by the fourth order methods to resolve
the sharp discontinuity in the solution. The SOFDM2 seems to take the longest time
for computation, perhaps because a large number of function evaluations are needed
for the required accuracy. Figures 6.2 to 6.5 show the graphs of density, velocity,
pressure, and internal energy per unit mass of the gas, respectively.
6.6 Conclusions
In this chapter, we investigated the one-dimensional gas dynamics equations. By using
the method of lines in which the only space-like independent variables are discretized,
we converted the problem to a system of ordinary differential equations which must
be solved subject to appropriate initial and boundary conditions. As the solutions
involve sharp discontinuities, we introduced artificial viscosity and used six different
compact and non-compact explicit schemes to solve the resulting nonlinear system.
The numerical experiment showed that the second order finite difference method takes
the longest computation time, while the fourth order compact method 3 takes the
least amount of time.
1 4 U * U U * II
Fiope 6.1: Plot of the density of the method ( b ) SOFDM2 (d) FOCMl method (e)
.* 4 a U 1 U u
0
gas obtained using (a) SOFDM method (c) FOFDM method FOCM2 method (f) FOCM3
method at t = 0.15.
SOFDM 1 1000 1 154.6
FOCMZ
Time taken in seconds Method
Table 6.1: Time taken by various methods.
No. of points
Figure 6.2: Plot of the density of the gas at t = 0.15.
Figure 6.3: Plot of the velocity of the gas at t = 0.15.
Figure 6.4: Plot of the pressure of the gas at t = 0.15.
Chapter 7
Moving Mesh Methods
In this chapter, we reviea the development of some moving mesh methods for partial
differential equations. and apply them to the gas dynamics equation with artificial vis-
cosity. To do this. we use an approach based on the equidistribution principle, which
tends to distribute the solution error equally over the domain subintervals. In order to
demonstrate the implementation of the met hod, we will revisit the one-dimensionai
gas equation that was studied in the previous chapter. It will be confirmed that
the moving mesh method is considerably more efficient than the traditional uniform
rnesh.
7.1 Introduction
The efficiency of a numerical algorithm for solving a class of problerns can be critically
affected by its cornputer implementation. Adaptive mesh methods are much more
efficient than uniform mesh methods for solving time-dependent partial differentiai
equations with large gradients such as shock waves, propagated b o u n d q layers, etc.
(e.g., see [26]). There are three common approaches for adaptive mesh methods:
1. The h-refinement methods, which add or delete mesh points according to the
profile of the solution and control the mesh points by the estimated local errors
of the solution.
2. The prefinement methods, which alter the order of the numerical method to fit
the local solution characteristics.
3. The rnoving mesh methods, in which a fixed number of mesh points move au-
tomatically to rninimize the estimated errors of the solution.
Here some moving mesh partial differential equations (MMPDEs) are derived for
solving one-dimensional initial =lue problems.
7.2 Equidistri bu tion Principle (EP)
In this section, we will give a detailed description of the Equidistribution Principle
(EP) [ï. 161. If we let x and represent the physical and cornputational coordinates
respectively, whose domains are assumed to be the in tend [O, 11, then a one-t*one
coordinate transformation between these domains can be written as:
where t denotes time. For a given uniform mesh on the computational domain,
where n is a positive integer, we denote the corresponding mesh in z by
{xa, 31,. . , xn}. (7.3)
Thus on this computational mesh, the values of any arbitrary function f can be writ-
ten as
To develop the moving mesh method we use an approach which is directly based on
the EP. The EP, which was first introduced by de Boor [9] for solving BVPs for ODES,
is based upon the simple idea that if some measure of the enor bI(x,t) (monitor
function) is available, then we select the mesh points n : O = xo < X I < . . . < xn- < xn = 1
such that the contributions to the solution error over each subintenml are equalized
(or "distributed equallp"). illathemati~ally~ the goal of finding moving meshes
which are equidistributing for al1 values of t, means that we want
This equidistribution equation can be written as
X continuous version of (7.7) is
w here
Equation (7.8) is the one-dimensionai EP in the integrai fom (701.
Differentiating (7.8) w.r.t. cl we obtain
Differentiating (7.10) w.r.t. [, we obtain
These are two differential forms of the EP (7.8). Since none of the three EPs given by
equations (7.8), (7.10), and (7.11) contain the node speed x ( C , t ) , they will be called
quasi-static equidistribution principles (QSEPs) [31!.
Here are some examples of rnonitor functions commonly used:
1. -4rc length:
M ( z , t ) = (1 +
2. Local truncation error: rrt 2 q M ( z , t ) = (1 + (u ) )
3. Singlestep error: ttt 2 ' M ( z , t ) = (1 + (u ) ) a
7.3 Moving Mesh Partial Differential Equation (MMPDEs)
In this section, we will review the derivation MMPDEs from QSEPs. Hereafter, we
shall employ the notation:
for an arbitrary function f = / ( x , t ) = f ( x ( < , t ) , t ) . Differentiate the integral form
(7.8) of the EP with respect to time to obtain a MMPDE [19]:
Here 2 denotes g ~ ~ , ~ ~ ~ . Now differentiate (7.12) with respect to C to get the follow-
ing equation:
Differentiate (7.13) with respect to < to get the following MMPDE1:
Now differentiate (7.10). the differential form of the EP w.r.t. time [54, 551 to obtain.
Differentiate (7.15) with respect to ( to get the following MMPDE2:
To derive MMPDE from the differential form of the EP (7.11), write (7.11) at a later
time t + T (O 5 r « 1)
We can regard (7.17) as a condition to regularize the mesh rnovement. Using the
expansions
a ~l f ( z (C , t + r ) , t + 7) = M ( z ( ( , t ) , t ) + r iazM(x( [ , t ) , t ) +
a T - M ( x ( < , at t ) . t ) + O(?) (7.18)
in (7.14), we obtain
After simplification, this equation takes the form
Therefore, &ter dropping the higher-order terms: we obtain the MMPDE3:
The MMPDE (7.19) contains the term - $ - & ( M g ) , which measures how closely
the mesh z(<, t ) satisfies the QSEP. When x(<, t) is not equidistributed, then the
MMPDE given by equation (7.19) moves the mesh toward equidistribution even when
hl (x. t ) is independent of t . Therefore the term T , which is usually difficult to cal-
culate, is a relatively unimportant term. Therefore one can argue that it is reasonable
to drop the term aTx "* or both and I F in MMPDE (7.19). This leads to the
simplified MMPDE
This can also be written as MMPDE4:
If we drop both terms sT and x- " from MMPDE3 (7.19) we have MMPDE5:
The above formulation, which is based directly on the Equidistrîbution P ~ c i p l e
and uses the correction term - S & ( M $ ) , is very usefd since it is quite simple. In
principlc- the approach can be directly extended to higher space dimensions, if a
formula for an equidistribution principle is available.
7.4 MMPDEs Based on Attraction and Repulsion Pseudo-forces
In this section, we shall review some moving mesh methods based on attraction and
repulsion pseudo-forces between nodes [31]. A node attracts others when a measure
of the truncation error at this point is larger than average. If the measure is smaller
than average, the neighboring nodes are repelled. Methods considered here compute
node speed in response to deviation in an error rneasure from some average value. An
error measure. denote by IV, is generally related to some error function. In particular,
the error measure is usually expressed by
where M is a certain error function. It will be useful to interpret this as a discrete
form of
although the function iZ.I here may be slightly different from that in (7.23). This may
be motivated, e.g., by taking a simple approximation for (7.23) such as the midpoint
rule,
The error functions are often chosen to be proportional to the first and/or second
derivatives of the physical solutions. Probably the most common choices in practice
are the arc-length and curvature monitor hinction. In [4], Anderson computes the
node speed by
where r is a positive constant. Equation (7.26) is regarded as MMPDE6.
Regarding CV as an error indicator, one sees from (7.25) that MMPDE6 moves
the nodes towards regions where the error is large. It also forces the mesh to have
zero speed whenever the mesh is equidistributed.
The node speed is determined by
rhere X is a positive parameter, Wi is an error indicator on the subinterval (z;, xi+i ),
and is the average of the W, values. R o m (7.27),
Subtract (7.28) from (7.27) to get
~ t - t l - 22, + i+l = -A(W; - Wi-1).
Denote X by !:
If we use (7.24), we can view (7.30) as a centered finite difference approximation of
the following MMPDE, which is called MMPDE?:
7.5 Moving Mesh Method
We now give a cornplete description of the moving mesh method. Consider a time-
dependent problem of the Form
subject to appropriate boundary and initial conditions, where f represents a differen-
tial operator invoiving only spatial derivatives. Using the coordinate transformation
(ï.l), (7.32) can be rewritten in quasi-Lagangian form
We follow [30] in the choice of discretization for u,, but we note that other choices
are possible (upwinding, or compact methods), and it is not clear which is best. Next,
discretizing by using a central difference scheme for the spatial derivatives, we obtain
where 1, is the discrete approximation of f (u, u,, u,).
For a given monitor function M ( z , t), we have to solve the coupled system of
equations (7.34), one of the moving mesh partial difFerentia1 equations (MMPDEs),
and the corresponding boundary and initial conditions for the mesh x and solution
u. We use the method of lines (MOL) [3] to conven PDEs into a system of ordi-
nary differential equations (ODES) and solve the system of (O DES) using a double
precision version of the ODE solver LSODI. (281
7.6 N umerical Exarnple
We now give a more complete description of the moving mesh method by considering
a simple exarnple, the one-dimensional gas dynarnics equations.
Method
To apply a moving mesh method, we have to write the gas dyuaruics equations with
artificial viscosity (6.19) as
w here
G = Au;, - [F(U)1,7 (7.36)
the vector U is given by the equation (6.5)) and F is given by equation (6.6). Finite
difference approximations for first and second derivatives on a moving grid are given
b~
We now use the transformation (7.1) to write (7.35) in the quasi-lagrangian form
We use central dîfferences, and (7.37) becomes
where G, is the discrete approximation of G. Monitors involving high derivatives of
u ( x ) can be extremely complicated to implement. This is one reason that White [70]
recomrnends using arc length [58]. Here we also choose M to be the arc length mon-
itor function
We will present r d t s of MMPDES, because it gave the best result. We discretize
hIMPDE5 i.e. (7.22) in space with centered finite differences on the uniform mesh
(7.2) and use the method of lines. We have the following discrete approximation of
bIMPDE5:
Here, E, is the discrete approximation of (a/&) (hl .raz/%) at < = & given by
On simplification, (7.40) takes the form
where ai is the smoothed f o m of
Experience has shown that Mi must be smoothed in order to obtain reasonable
accuracy [30]. We use
IV here
where 7 > O is the smoothing parameter, and j, a nonnegative integer, is the smooth-
ing index. The summation is understood to contain only elements with indices be-
tween zero and n. Thus we see that we have reduced the problem to solving two sets
of equations (7.38) and (7.40). The initial condit,ions for xi is a uniform mesh, i.e.
For the boundary conditions, we use
x ( O ) = O and i-(n)=O. (7.48)
.As we mentioned before, the systems of ODES are solved using the double precision
version of the ODE solver LSODI [28]. For our calculation we assume a relative and
absolute tolerance of IO-? After testing Mnous values and combinations for the
pararneters r), p, and r we have chosen the following values since they give the most
accurate result:
r ,~ = 2, P=% and T = IO-^.
c. c. r . c Results
Thc problem (gas dynamics equations) is solved using moving mesh method (7.22)
with n = 100 at t = 0.15. The results are compared with a reference solution (dashed
lines in the figures) obtained by LSODI, using the method of lines with standard
central differences on (6.19) and 1000 equdly spaced rnesh points, with absolute and
relative tolerances IO-? As we can see in the figure, the moving mesh method gives
results similar to the standard uniform mesh method even though the number of
points used in the moving mesh method is an order of magnitude smaller than that
used for the regular rnesh. Although the numerical experiment is carried out only for
the gas dynarnics equation, Our result strongiy indicates that the moving mesh met hod
is generally better than the standard uniform mesh methods. Other experiments on
the parameters 77, p, and T were also carried out in order to obtain the optimal values
for these parameten. Other moving rnesh formulations have also been considered.
However. the best results were obtained using the moving mesh method described in
t his chapter.
7.8 Conclusions
In this chapter, we rederived the moving mesh partial dBerential equations for one
dimensionai initial value problerns. The derivation is based on the Equidistribu-
tion Principle, and the implementation is demonstrated by considering the one-
dimensional gas equation that was discussed in the previous chapter. It is c o n h e d
that the moving mesh method yields equally accurate results as the uniform me&
method br significantly smaller number of points. Investigation of moving mesh
methods shows that the equidistribution approach presented in this chapter gives the
best result for the gas dynamic problem considered here.
Although al1 the results in this chapter are well known (see [30]), we intended this
as a useful summary for our intended future work of combing compact methods with
moving meshes.
Figure 7.1: Plots of density of the gas at t = 0.15. The diamond signs
are the solution obtained using MMPDE5. The dashed line is the solution obtained using uniform mesh.
-0.4 -0.2 O 0.2 0.4 X
Figure 7.2: Plots of velocity of the gas at t = 0.15. The diamond
signs are the solution obtained using MMPDE5. The
dashed line is the solution obtained using uniform mesh.
Figure 7.3: Plots of pressure of the gas at t = 0.15. The diamond
signs are the solution obtained using MMPDE5. The dashed Iine is the solution obtained using uniform mesh.
Figure 7.4: Plots of intemal energy of the gas t = 0.15. The diamond signs are the solution obtained using MMPDE5. The dashed Line is the solution obtained using uniform mesh.
Chapter 8
Future Work
The method of modified equations was derived in Chapter 3 was applied to partial
differential equations in one space dimension. It would be of interest to extend this
work to twvo and three space dimensions and see what additionai information, both
qualitative and quantitative, we can obtain about the properties of different numerical
schemes. The deveiopment of a Mapie progam to derive these modified equations
autornatically for a given ordinary or partial equation and a prescribed numerical
procedure would be interesting.
The compact finite difference methods and moving mesh methods that we have
derived. look very promising but have not been applied to enough different problems
that we can conclude that they are really useful and can be considered an improve-
ment on standard methods. -4 systematic study of the applicability of them to a
large number of different problems, both iinear and nonlinear, should be carried out.
Among features that such study should consider are
1. -4re the compact methods r e d y fourth order for nontrivial problems?
1. While a fourth method requires fewer grid points in order to produce a solution
of a certain accuracy, more equations must be solved, so it is not clear that will
necessarily be faster than second order methods.
3. 1s the added complication in programming worth the increase in speed?
4. How useful are these methods for problems modcled by a system of diffusive-
convective equations when the convective effects dominate?
Extensions to two and three space dimensions would also be of interest. We used
only a simple monitor function based on arc length. In many problems it might be
more interesting and useful to include the curvature in the monitor function.
The development of compact methods For a system of partial differential equations
is quite tedious, so i t would be useful to study the application of a computer algebra
systern. such as Maple, to derive the numerical formulae for a given problem and
produce the relevant Fortran or C++ code.
Appendix .4
von Neumann Stability .4nalysis
In this appendix, we will discuss Fourier or von Neumann method for stability analysis
for the difference schemes used in Chapter 3.
A.1 Stability Analysis for Upwind Scheme of the Equation (3.3)
The upwind scheme of the equation (3.3) is given by the following equation:
where v = e. In the von Neumann method, the independent solutions of the differ-
ence equations are al1 of the form
where I = a k is a real wave number, and G = G ( k ) , called the amplification
factor, is in general a complex constant. The difference equations are stable if
IGI 5 1.
To find G, we substitute equation (A.2) in equation (Al) and s i m p l e to get
w here
The modulus of this amplification factor
ICI = [(l - u + VCOSP)* + (-usinp)*li
is plotted in Fi y r e A.1 for several values of u. It is clear from this plot that u must be
less than or equd to 1 if the von Neumann stability condition JGJ 5 1 is to be met.
The amplification factor, equation (A.3), can ais0 be expressed in the exponential
form for a cornplex number
where 4 is the phase angle given by
The phase angle for the exact solution of the convection equation (de) is deter-
rnined in a similar manner once the amplification factor is known. In order to find
the exact amplification factor, we substitute the eiementd solution
into the equation (3.3) and find that a = -Ikc, which gives
The exact amplification factor is then
which reduces to
where
and
The relative phase shift error after one time step is given by
and plotted in Figure A.2 for several values of v. For small wave numbers (Le., small
O), the relative phase error reduces to
If the relative phase error exceeds 1 for a given value of P, the corresponding Fourier
component of the numerical solution has a wave speed geater than the exact solution.
This is a leading phase error. If the relative phase error is less than 1, the wave speed
of the numerical solution is less than the exact wave speed. This is a lagging phase
error. The upsind differencing method has a leading phase error for 0.5 < v < t and
a lagging phase error for u < 0.5.
A . Stability analysis for the Lay-Wendroff scheme of the equation (3.3)
The Lau-Wendroff approximation of the equation (3.3) is
To find G, we substitute equation (A.2) in equation (A.7) and simplify to get
The modulus of this amplification factor
r 2 IGI = [(i - u2(i - u c o s ~ ) ) + (-vsinp) '1 '
is plotted in Figure A.3 for several values of u. It is clear hom this plot that u must
be less than or equal to 1 if the von Neumann stability condition IGI 5 1 is to be
met. The relative phase error is given by
tan-[ [(-v sin 4)/(1- g(1- v COS P ) ] -- - 4 e -,Op
The Lax-Wendroff differencing method has a predominantly lagging phase error ex-
cept for large wave number with < v < 1.
-4.3 S tability Anaiysis for the FTCS Scherne of Equation (3.35)
The FTCS approximation of Equation (3.35) is
(A.10)
To find G, substituting equation (A.2) into Equation (A.lO) and simplifying, we get
G = 1+2r(cosp- 1 ) , (A.11)
where r = d4t/Ax2. For stability (GI 5 1, i.e.,
-1 5 1 +2r (cosB- 1) 5 1.
The upper limit is aiways satisfied for r 2 1, because (cos 4 - 1) varies between -2
and O as b ranges from -00 to m. For the lower limit
implies
7- S &
(1 - cos 8) -
The minimum value of r corresponds to the maximum value of (1 - cosp). As f l ranges fiom -ca to oo, (1 - cos p) varies between O and 2. Consequently, the mini-
mum value of r is f. Thus IGI 5 1 if
Consequently, the FTCS approximation (3.37) of the equation (3.35) is conditiondly
stable. Since the amplification factor of the FTCS scheme has no irnaginary part, it
has no phase shift. In order to find the exact amplification (decay) factor, we substi-
tute the elemental solution
into
which reduces to
(A. 12)
Hence, the amplitude of the exact solution decreases by the factor erB2 dunng
one time step, assuming no boundary condition influence. The amplification factor
(.4.11) is plotted in Figure A.4 for two values of r and is compared with the exact
amplification factor of the solution. In Figure A.4, we observe that the FTCS (3.37)
is highly dissipative for large values 0 when r = 4. -4s expected, the amplification
factor agrees closer with the exact decay when r = i.
A.4 Stability Analysis for the BTCS Scheme of Equation (3.41)
The BTCS approximation of Equation (3.41) is
1 cAt d 4 t f + l - f: + -- (fs' - 12') = - (fzl - 2f:+' + fz':') (A. 13) 2 Ax Arc2
To find G. we substitute equation jA.2) in equation (A. 13) and simplify to get
Since 1 - cos$ 2 O for al1 values of ,O, IGI 5 1 for ail values of v and r. Thus the
BTCS approximation (3.42) of the equation (3.41) is unconditionally stable.
Figure A.1: Amplification factor modulus for upwind scheme. The solid line is the graph of IGI ( A 4 for u = 0.5, the dia-
mond signs are the graph of IGI (A.4) for u = 0.75, the dashed line is the gaph of IGl (A.4) for v = 1.0, and the
plus signs are the graph of (GI (A.4) for = 1.25.
Figure A.2: Relative phase error of upwind scheme. The solid iine is
the graph of @/4= (A.5) for u = 0.25, the diamond signs
are the gaph of q5/q5= (A.5) for u = 0.5, the dashed line is the g a p h of 4/ge (A.5) for u = 1.0, and the plus signs
are the graph of 4/& (A.5) for v = 0.75,
. . . O
.+.... +.*- f... -. . .-..
O +
Figure A.3: Amplification factor modulus for Law-Wendroff scheme.
The solid line is the graph of IGI (A.9) for u = 0.25, the diamond signs are the graph of IGI (A.9) for v = 0.5, the
dashed line is the graph of IGl (-4.9) for u = 1.0, and the
plus signs are the graph of IGJ (A.9) for u = 0.75.
O 0.5 t 1.5 2 2.5 3 3.5 Beta
Figure -4.4: Amplification factor rnodulus for FTCS scheme. The di-
amond signs are the graph of G (-4.11) for T = 116, the
solid line is the graph 1G.l (A.12) for r = 116, the plus signs are the graph of G (A.11) for r = 112, and the
dashed line is the graph (Gel (A.12) for r = 1/2.
Appendix B
Maple Programs for MDEs
In this appendix we give the fint version of a Maple prograrn for modified equations. #- 1 b o r a iater version or iiir p r o g a i , aïid nore e x z ~ p ! ~ ; see [2!. This version, however,
is included here because it is the one that is actudly used in this thesis.
B. 1 Modified Equation For First Order ODE
Following is the Maple prograrn for the method of modified equations for y' = y* by
the ciassical RK2 method. To find a modified equation for any first order ODE we
have to change the definition of f below and/or change the method.
> D(h) := 0; # h is constant.
D ( h ) :=O
# t is the variable we differentiate with respect to.
The foliowing is the Taylor series > s := O : > for k from 2 to n do > s := s + (Doak) (v)*ha(k-l)/k! ; > od:
The equation is
The nurnericd method is M2.
> f := ( t a u ) -> v-2;
By equating truncation errors (Griffiths & Sanz-Serna, p. 998), we get the follow-
ing local truncation enor
00
w f ( t ) = (w( t + h) - w ( t ) ) / h - C d k ) ( t ) h ( ' - ' ) / k ! k=2
--
We eliminate the higher-order terms by differentiation and solution of the resulting
linear system.
Now replace al1 t hose higher derivat ives.
> for k from 2 to n do
W . k : = convert (series (D (W. (k-1)
Now we must substitute until w.k contains only w and Db)(w) for j > kW
> for j from 1 t o k-1 do
W. k : = convert (sarias (subs ( (DQQ j ) (a) =W. j ,W. k) ,h, Order- (k-1) ) , polynom) :
od;
> uhile bas (W. k , ( D Q W (w) ) do
w .k := convert (series (subs ( (Da&) (W)W =k Dv-k) -1 :
od;
> u - k := collect(u.k,h,factor) :
-4s in Gauss-Jordan reduction, we now remove t e m s in D ( ~ ) ( w ) from lower-order
terms.
>
>
>
>
>
for j from 1 to k-1 do
v . j := convert(series(subs((DPOk)(w)~.k,u.j),h,Order-(j-l)),polyn~m):
w.j := collect(v.j,h,factor):
od ;
od;
--
The following iç the right-hand side of the modified equation.
> modeq := wl;
8 .2 Modified Equation For Second Order ODE
Here we give the Maple program for the method of modified equations for y'' + y = O
by the classical Euler's method. To find a rnodified equation for any second order
ODE, we have to change the definition of matrices A and lu below and/or change the
method.
# h is constant.
# t is the variable ve diffexentiate vith respect to.
D( t ) := 1
> vith(1inalg) : Warning: new definition for n o m Warning: new definition for trace
Following is the Taylor series
The equation is
y M + y = 0
The numerical method is Euler's Method.
The local truncation error is
> u l := evaim((v - u)*(l/h) - SI;
We eliminate the higher-order terms by differentiation, and solution of the result-
ing linear system.
> u:=array[l. .n , l . .2J:
> for m from 1 to 2 do
> w [l ,ml : =eval (ul Cm, 11 ;
> od:
Now replace al1 those higher derivatives.
> for k from 2 to n do > for 1 from 1 to 2 do
> v [k ,l] : = aval (convert (series (D (v [k-1 ,l] ) ,h ,Order- (k-1) ) .polynom) ) ;
> od;
Now we must substitute until w[k,l] contains only w and D ( f ) ( w ) far j > k.
> for j from 1 to k-1 do for 1 from 1 to 2 do
u [k, 11 : = eval (convert (series (VV ,hD Order-(k-1) ) ,polpom) ) ;
od ;
> for 1 from 1 to 2 do
> while has(w [k,l] , {(DQQk) (a. 1). ( D m ) (a.2))) do
> w:=subs(seq((DBQk) (a.i)=u[k,i] ,i=l. .2) .w[k,U ;
> v [k, 11 : = eval (convert (series (w ,h,0rder- (k-1) ) ,polpom) ;
> od;
> w [k,l] := eval(col1ect (w[k,l] ,h,factor) ) :
> od;
> u[k,i] :=eval(w[k,l3);
> w[k,21 :=eval(uCkD21) ;
Like Gauss-Jordan reduction we now remow terms in D(k)(w) hom lower-order
t erms.
>
> od:
for j from 1 to k-1 do for 1 from 1 to 2 do
od:
od:
The following is the right-hand side of the modified equation.
> modeqv := evalm([[wCl,l]], CwC1,2]~1);
1 1 1 1 a2 + 5 h ai - - a2 h2 - - a l h3 + - a2 h4
LI 3 4 5 modeqv := 1
> f 1 :=collect(coeff (collect (~11, 11 ,a1 ,factor) ,al) ,h,factor) : > f2:=collect(coeff ~collect(wCi,1] ,a2,factor) ,a21 ,h,factor) : > f 3 : =collect (coeff (collect (w[1,2] ,ai ,factor) ,al) ,h, f actor) : > f4:=collect(coeff (collect ( w [ i ,2] ,a2,factor) ,&) ,h,factor) :
B.3 Modified Equation For f t + c f , = O For Las- Wendroff Method
Following is the Maple progam for the method of modified equations for ft +cf, = O
by Lau-Wendroff method. To find a modified equation for any linear PDE we have
to change the definition of u below. The left-hand side of the modified equation is
D[l](f) i.e derivative of f w.r.t. t. If there is second derivative with respect z in the
given PDE, then in the defination of u ,the coefficient of second order derivative term
say c is multiplied by ht. And in the defination of v below, the c is replaced by c/ht .
> h[t]:=(t,x)->h[t]: # h-t is constant. I t is delta t.
ht := ( t , z ) -+ hl
> h[x] :=(t ,x)->h[x] : # h-x is constant. It is delta r .
h, := ( t J ) + h,
# t is the variable we differentiate with respect t o .
t := ( t J ) 3 t
# x is the variable we differentiate with respect to .
x := ( t , x ) + x
# c is constant.
Following are Taylor series > s:=o: > sl:=O: > s2:=0: > for k from O to n do > s:=s+(D[i]O&)(f)*h[t]'k/k!; #DClI(f) is the derivative of f u z t . t. > si :=si+(D[23Q@k) (f )*hCx] -k/k! ; #Dr21 (f 1 is the derivative of f v.r. t . x . > ~2:=~2+(~[21~~k)(f)*(-h[x])'k/k!; > od:
The equation is
The Lay-WendrofT approximation of the above equation is
f;" = 1' - cht/(2hr)(f'+i - /'- 1) + c2J$/(2h;) (.f"+i - 2 * I; + fj-l);
We denote the Lax-Wendroff approximation by u.
u := s - f + cht(sl - s2)/(2hZ) - c2h:(sl - 2 f + s2)/(2h:) :
In the above expression s is f;+', s 1 is fj+ and s2 is f&, .
> u:=s-f+c*hCt] *(sl-s2)/(2*h[xf 1-cœ2*h[t] a2*(sl-2*f+s2)/(2*h[x] -2) :
> f o r j from 1 t o (n-2) do if j <=2 then
for p from j to 2 do for k from p+j t o n do
for 1 from p t o 2 do w.1.k. (p+(j-1)) :=convert(mtaylor(D~ll (v.p. (le-1) j) ,
[h[t] ,h[x] 3 ,Order- Ck-1) ) , polynod ;
Ch E t ] , h [XI 1 , Order- (k- 1 ) , polynod ; for z from O to (n-5) do
v . 1 . k . (p+( j-1)) : = c o n ~ e r t ( m t a ~ l o r ( s u b s ( ~ ~ q ) ) ((D[2]QO(m+z)) (f)))=((DClIOQ(m+q))@(DC2~ @@(m+z+i)))(f) , w . i . k . (p+(j-l))), ChCt] ,h[xIJ ,Order-(k-1) ,polynom) ;
od ; od ;
fi; od ;
od ; od ; for r from p to 2 do
W . (k+(a-2)*p+(n-3)*j-(j-l)*(j-2)*1/2-(2*n-5) . (k+r+(n-2)*p+(n-3)*j-(j-l)*(j-2)*1/2=(2*n-3) . (k+(n-2)*p+(n-3)*j-(j-l)*(j-2)*1/2-(2*n-S)) := convert (mtaylor (subs ( (D Cl1 Wk-(r+p+j -3) 1) ( (D L21 Wk+p+j-3) ( f )
v . r . k . (p+j-1) , W . (k+r+(n-3)*p+(n-3)*j-(j-1)*(~-2)*1/2-(2*n-4)) . (k+(n-~!*p+(n-3)*j-(j-l)*(j-2)*1/2-(2*n-4} . (k+r+(n-3)*p+(n-3)+j-(j-l)s(jw2)*1/2-(2*n-4))) , [h [tl , h l x ] , Order) , polynom) ;
formfrom 1 t o (n-1) do for s from 1 t o 2 do
if n<=5 then q:=O:
else for q from O to (11-51 do
> od ; > fi; > od ; > od; > od ; > od ; > od ;
> else > p:=2: > 1:=2: > r:=2: > for k from p+j to n do
> for m from 1 to (n-1) do
for s from 1 to 2 do if n<=5 then q:=o: z:=o:
else for q from O t o (11-51 do
for z from O to (n-5) do
W . 1. k. (p+( j-1)) :=convert (mtaylor (subs (D t q ) ) ((~[2]g@(rn+z)) (f))l=((D~llPP(m+q))Q(D~ @@(m+z+i))>(f) ,w.l.k. ( p + ( j - I l ) ) , [h Ct] , h Cxl] ,Order- (k-1) ) ,polynom) ;
od ; od ;
fi; od ;
od ;
u. (k+(n-2)*p+(n-3)*j-(j-l)*(j-2)*1/2-(2*n-5)) . (k+r+(n-2)*p+(a-3)*~-( j-1)*( j-2)*1/2-(2*n-3) . (k+(n-2)*p+(n-3)*j-(j-1)*(j-2)*1/2-(2*n-S) := convert (mtaylor(subs ( (D Cl] @~(k-(r+p+j -3) 1) ((D[2]@P(r+p+j-3) (f )=
w.r.k. (p+j-1) , W . (k+r+(n-3)*p+(n-3)*j-(j-l)*(j-2)*1/2-(2*n-4)) . (k+(n-2)*p+(n-3)*j-(j-l)*(j-2)*1/2-(2*n-4)) . (k+r+(n-3)*p+(n-3)*j-(j-l)*(j-2)*1/2-(2*n-4))) , Eh Ctl , h [XI 1 , Order) ,polynom) ;
for m from 1 to (n-1) do for s from 1 t o 2 do
if n<=S then q:=O:
else for q from O to (n-5) do
od; fi;
od:
> vl:=simplify("): > f o r q from 2 t o n do > v.q:=coilect (v. (q-1) , (DC21aQq) (f 1) : > od:
Appendix C
Sixth-Order Formula for u,,
This worksheet explores the use of the Share Library Package FINDIF to generate a
high-order accurate compact finite difference formula for the second derivative of a
function aven on a uniform grid.
W e now set up the pentadiagonal stencil and mask for a high-order formula for
the second derivative on a uniform grid. > stencil := [seq([k*h] ,k=-2. .2)] ;
We create compact formulas by telling FINDIF that we know the values of f and f"
at al1 points except the centre, where we know only f. > mask := CCO,21,CO,21,COI,C0,21,10,211;
> ans := FINDIF(stenci1 ,mask,difexp, 6) ;
> simple := subs(p[ll=O ,") ;
simple := - - 1 I
We want a simple formula, and setting the Free parameter to zero gives us a simple
sixt h-order formula, namely > (DQQ2) (f 1 (O) = simple Cl] ;
This is Our compact tridiagonal (for the unknown derivatives) formula. > middle := ":
For efficiency reasons, we prefer to construct a formula that may be factored
analytically. The normal tridiagonal matrix looks like this. > uith(linalg1: Waroing: new definition for nom Warning : new def init ion for trace > T := toeplitz([ll,2,0,0,0] ;
CVe modify this so we may factor T exactly (we have to construct special formulas
for the first row and the 1 s t row, anyway, so we might as well do so in a way that
will allow us to be very efficient). > t[i,l] := c ;
> L := matrix(5,5,0): > for i t o 5 do L [ i , i ] := alpha: od: > for i to 4 do L[i+l,i] := beta: od: > print(L);
> eqs := {alphaebeta = 2,
egs := {a@= 2 ,@ +a2 = I I }
> possibles : = solve (eqs , (alpha, beta)) ;
\
, p = R O O ~ O ~ ( -z4 + 4 - 11 -z2 ) j That is, if we choose 0 to be one of the four roots of chat quartic, and then a to
be the corresponding combination of a, then we have an exact factorization (with
c = a?). > subs (possibles, beta) ;
> betas := [""] :
By symmetry, the formula for o! will just give the other roots: > alphas := map(m->radsimp(2/m,ratdenom) . betas) ;
> evalf ("1 ;
For stability reasons, we choose cr to be the larger one. We may as well choose the
positive root (it makes no difference). It is easy to see that this value of alpha and
beta will do to factorize T regardless of its dimension. > alpha := alphas [31 ;
> beta : = betas C33 ;
We now find sixth order formulas for the edge values. > C := 'cj:
> leftedge := [seq( [k*h] ,k=-1. .6)1;
> d i f exp-left : = c* (DQ12) Cf) (0)+2*(DQQ2) (f) (h) ;
dz feqde f t := C D ( ~ ) ( f ) ( O ) + 2 ~ ( * ) ( / ) ( h )
> ans-lef t : = FINDIF(1ef tedge . mask, di f exp-lef t , 6) : > indet s (ans-lef t 121 ) ;
> series (ans-left C2l A 7 1 ;
> c* (DOQ2) (f) (O) + 2* (DQW) (f (hl = ans-left [lf ;
Now the right edge. The mask remains the same, but we change the stencil. > rightedge := b e q ( [(k-?)*hl ,k=l. -811 ;
rightedge := [ [ - 6 hl , [ -5 h l , 1-4 hl, [ -3 hl , 1-2 hl , [-hl, [ O ] , [ h l ]
> ans-right := FINDIF(rightedge, mask, difexp-right, 6 ) : > series (ans-right [SI ,h,7) ;
REFERENCES
and 1. A. Stegun. Hondbook of Mathematacal Functions. Dove
Mohammad O. Ahmed and Robert M. Corless. The method of modified equa-
tions in Maple. In Electronic Pmceedings 3rd International IMA CS conference
on Applications of Cornputer Algebra, 1997.
[3] W. F . Ames. Numerical Methods /or Partial Diflerential Equations. Academic,
New York, 3rd edition, 1988.
[4] D. A. Anderson. -4pplication of adaptive grids to transient problems. In Adaptave
Computational Methods for Partial Dzflerential Equations, edited by J . Chandra
1. Babuska and J. E. Flaherty, pages 208-223. SIAM, Philadelphia, PA, 1983.
[5] D. A. Anderson, C. John Tannehill, and H. Pletcher Richard. Computational
Flvid Mechanics and Heat Transfer. Hemisphere Publishing Corporation, New
York, 1984.
[6] D . .4rmbruster, J. Guckenheimer, and P. Holmes. Kuramoto-Sivashinsky dy-
namics of the center-unstable mainifold. SIAM J Appl. Math., 49:676491, 1989.
(71 U. M. Ascher, R. M. M. Mattheij, and R. D. Russeli. Numerical Solution of
Boundaq Value Problems For Ordinary Di'erentzal Equations. Computationd
Mathematics. Prentice-Hail, Engiewood CBffs, New Jersey, 1988.
[BI Wolf-Jürgen Beyn. Numerical methods for dynarnical systems. In Advances
in Numericul Analysis edited by Will Light, volume 1, pages 175-236. Oxford
Science Publications, 1991.
[9] C. De. Boor. Good approximation by splznes with variable b o t s II, volume 363
of Lecture Notes. Springer-Verlag, Berlin, 1973.
[IO] P. S. Brown, G. D. Byme, and -4. C. Hindmarsh. .4 variable-coefficient ODE
solver. SIAM J . Sci. Stat. Cornput., 10:1038-1051, 1989.
[ I l ] Richard L. Burden and Douglas J. Faires. Numerical Analysis. Prindle, Weber
and Schmidt, Boston, 3rd edition, 1985.
[12] M. P. Calvo, A. Murua, and J. M. Sam-Serna. Modified equations for ODES. In
Contempomry Mathematics, edited by Peter Kloeden and Ken Palmer, volume
172. pages 63-74. American Mathematical Society, 1994.
[13] hl. Ciment and S. H. Leventhal. Higher order compact implicit scheme for hyper-
bolic equations. Paper presented ut SIAM Full Meeting, Alesandna, Va, 23-25,
October 1974.
[14] Robert M. Corless. Maple program for method of modified equations. Private
communzcata'on, 1993.
[El Robert M. Corless. Error backward. In Contempomry Mathematics, edited by
Peter Kloeden and Ken Pdmer, volume 172, pages 31-62. American Mathemat-
ical Society, 1994.
[16] Robert M. Corless. An elementary solution of a minimax problern arising in
dgonthms for automatic mesh selection. Preprint, 1997.
[17] Robert M. Corless, D. J. JeBey, and H. Rasmussen. Numerical evaluation of
.Airy functions with complex argument. J. Comp. Phys., 99(l) :lO6-114, 1992.
[la] Robert M. Corless and J. Rokicki. The symbolic generation of finite-difference
formulae. In ICIAM / GAMM795, ~Wwnerical Anolysis, Scientific Computing,
Cornputer Science, Hambvrg July 3-7, 1995, volume 76, pages 381-382, 1996.
(191 J. E. Flaherty, J. M. Coyle, R. Ludwig, and S. F. Davis. Adaptive finite element
methods for parabolic partial differential equations. In Adaptive Computational
Methods /or Partial Diflerential Equtztions, edited by 1. Babuska, J. Chandra
and J. E. Flaherty. pages 144-164. SIAM, Philadelphia, PA, 1983.
[201 C. Foias. B. Xicolaeno, G. R. Sell, and R. Temam. Inertial manifolds for
the Kuramcto-Sivashinsky equation and an estimate of their Iowest dimension.
J. Math. Pures et appl.. 67: 197-226, 1988.
(211 L. R. Foy. Steady state solutions of hyperbolic systems of conservation laws with
viscosity terms. Communications on Pure and Applied Mathematics, 17: 177-188,
1964.
[22] D. Gottlieb, L. Lustman, and S. Orzag. Spectral calculations of one-dimensional
inviscid flows. SIAM J. Sci. Statzst. Comput., 2:29ô-310, 1981.
[23] D. F. Griffiths. The dynamics of some linear multistep methods with stepsize
control. In Numerical Analysis, edited by D. F. Griffiths and G. W. Watson,
pages 113-134. Longman Scientific And Technical, 1987.
[241 D. F. Gdfiths and J. M. Sam-Serna. On the scope of the method of rnodified
equations. SIAM J. Sci. Comput., 7:994-1008, 1986.
(251 Ernst Hairer, Syvert P. Norsett, and Gerhard Wanner. Solving Ordznary Differ-
entzal Equations, volume 1. Number 8 in Computational Mathematics. Springer-
Verlag, Berlin, 1987.
(261 D. F. Hawken, J. J. Gottlieb, and J. S. Hansen. Review of some adaptive node-
movement techniques in finite element and finite difference solutions of PDEs.
J. Comput. Phys., 95254-302, 1991.
[27] Nicholas J. Higham. Accuracy and Stability of Numerical Algorithms. SIAM,
1996.
[?BI .A. C. Hindmarsh. LSODE and LSODI: Two new initial value ordinary differen-
tial equation solvers. A CM Newsletter, 15: 10-11, 1980.
[29] D. Joe Hoffman. Numerical MeWods for Engzneers and Scientists. McGraw-Hill
Inc., New York, 1994.
[30] W. Huang, Y. Ren, and R. D. Russell. Moving mesh methods based on moving
rnesh partial differential equations. J. Conrput. Phys., 1 l3:279-290, 1994.
[31] W. Huang, Y. Ren, and R. D. Russell. Moving mesh partial differential equations
(MMPDES) based on the equidistributing principle. SIAM J. Numer. Anal.,
31(3):709-730, 1994.
[32] John H. Hubbard and Beverly H. West. Differential Equations: A Dynamical
Systems Approach, Part 1. Springer-Verlag, 1991.
[33] J. G. Hyman and B. Nicolaenko. The Kuramoto-Sivashinsky equation: A bridge
betmeen PDEs and dynamical systems. Physica D, 18: 1 13-126, 1986.
[34] J.G. H p a n , B. Nicoiaenko, and S. Zaleski. Order and complexity in the
Kuramo t O-Sivashinsky mode1 of weakly turbulent interfaces. Ph ysica D, 23:265-
292, 1986.
[35] J. G. Keverekidis, B. Nicolaenko, and J. C. Scovel. Back in the saddle again: A
computer assisted study of the Kuramoto-Sivashinsky equation. SIAM J. Appl.
Math., 50360-790, 1990.
[36] Y. Kuramoto. Diffusion-induced chaos in reactions systems. Suppl. Prog. O/
Theor. Phys., 64:346-367, 1978.
1371 Y. Kuramoto. Instability and turbulence of wavefronts in reaction-diffusion sys-
tems. Prog. of Theor. Phys., 63(6): 1885-1903, 1980.
[38] Y. Kuramoto and T. Tsuzki. On the formation of dissipative structures in
reaction-diffusion systems. Prog. of Theor. Phys., 54:687-699, 1975.
[39] Y. Kuramoto and T. Tsurki. Persistent propagation of concentration waves in
dissipative media far from thermal equiiibrium. Prog. of Theor. Phys., 55356-
369, 1976.
[40] P. D. Lay. Weak solutions of nonlinear hyperbolic equations and their numericd
computation. Communications on Pvre and Applied Mathematics, 7:159-193,
1954.
[d l ] P. D. La. Hyperbolic systems of conservation laws and the mathematical theory
of shock waves. SIAM Regional Conference Series, Amowsmith, 1973.
[42] P. D. L a s and B. Wendroff. Systems of conservation laws. Communications on
Pvre and Applied Mathematics, 13:217-237. 1960.
1131 M. A. Lopez-Marcos. Numerical analysis of pseudospectral methods for the
Kuramot~Sivashinsky equation. IMA J. Num. Anal., 14:233-242, 1994.
[441 J. Melvin Maron and J. Robert Lopez. Numerical Analysis-A Pmctzccl Ap-
proach. Wadsworth Publishing Company, Belmont, California, 3rd edition, 1991.
1451 D. W. Michelson and G. Sivashinsky. Nonfinear analysis of hydrodynamic insta-
bility in laminar fiames-II. Numencal experiments. Acta Astsonautica, 4:1207-
[46] K. W. Morton and D. F. Mayers. Numerical Solution of Partial Dflerential
Equations. Cambridge University Press, Cambridge, 1994.
1471 B. Nicolaenko and B. Scheurer. Remarks on the Kurarnoto-Sivashinsky equation.
Physica D, 12:391-395, 1984.
[48] B. Nicolaenko, B. Scheurer, and R. Temam. Some global dynamics properties of
the Kurarnoto-Sivashinsky equation: noniinear stability and attractors. Physica
D, 16:153-183. 1985.
[49] F. MT. J. Olver. Introduction to Asymptotics and Special Functions. Academic,
?iew York, 1974.
[SOI S. -4. Orszag and M. Israeli. Yumerical simulation of viscous incompressible
flows. In Annual Reuiew of Fluid Mechanies, edited by Milton Van Dyke, vol-
ume 6. pages 281-318. -4nnual Reviews Inc., Palo Alto, California, 1974.
[5l] M. F . Pettigrew. Ph.D Thesis. On the compact f i i t e difference scheme with
applications. The University of Western Ontario, 1989.
[52] M. F. Pettigrew and H. Rasmussen. A compact method for second order bound-
ary value problems on nonunifom grids. Cornputers Math. Applic., 31 (9) : 1-16,
1996.
[53] L. R. Petzold. A description of DASSL: A differential/algebric system solver.
SAND82-8637, Sandia Labs., Livemore, Cal., 1982.
[54] Y. Ren. Ph.D Thesis. Theory and compvtataon of moving mesh methodi for
solving tirne-dependent partial differential epuations. Simon Fraser University,
1992.
[55] Y. Ren and R. D. Russell. Moving mesh techniques based upon equidistribution.
SIAM J. Sci. Statist. Comput., 13:1265-1286, 1994.
[56] R. D. Richtmyer and K. W. Morton. Difference Methods for Initial- Value Prob-
lems. John Wiley & Sons, New York, 1967.
[57] P. J. Roache. Comput~tiond Fluzd Dynamics. Hermosa Publishers, Albuqerque,
1972.
[58] R. D. Russell. Mesh selection methods. In Lecture Notes in Compute~ Science,
volume 76. Springer-Verlag, N.Y., 1979.
[59] G. Sivashinsky. Nonlinear analysis of hydrodynamic instability in laminar
Barnes-1. Derivat ion of basic equations. Acta Astronautica, 4: 1 177-1206, 1977.
1601 G. Sivashinsky. On flame propagation under conditions of stoichiometry. SIAM
J . Appl. Math, 39:67-82, 1980.
[61] Gary .A. Sod. A survey of several finite difference rnethods for systems of non-
linear hyperbolic conservation laws. J. Comput. Phys., 27: 1-31, 1978.
[62] A. M. Stuart and A. R. Humphries. Mode1 problems in numerical stability theory
for initial value problems. SIAM Review, 36(2):226-257, 1994.
[63] A. M. Stuart and A. R. Humphries. Dynomicul Systems and Numericul Analysàs.
Cambridge University Press, 1996.
[64] L. H. Thomas. Ellipitic problems in linear difference equations over a netwok.
Watson Sci. Comput. Lab. Rep. Columbia University,New York, 1949.
[65] L. D. Tyler. Heuristic analysis of convective finite dinerence techniques. In
Proceedings of Second International Conference on Num erical Methods in Fluid
Dynamics, edited by M. Holt, page 314. Springer-Verlag, Berlin, 1971.
[66] R. F. Wanning and B. J . Hyett. The modiiied equation approach to the stabiüty
and accuracy of Bnite merence methods. J. Cornput. Phys., l 4 : 1 5 H 79, 1974.
[67] W. Wasow. Asymptotic Expansions for Ordinary D2&rentiaf Equations. Inter-
science Pub. (John Wiley), New York, 1965.
[68] W. Wasow . Asympto tic Ezpansions for Ordinary Diflerential Equations. Robert
E. Krieger Pub., reprint edition, 1976.
(691 W. Wasow. Linear Turning Point Theoy . Springer-Verlag, New York, 1985.
1'701 .4. B. White. On seiection of equidistributing meshes for two-point boundary
problems. SIAM J. Numer. Anal., 16:472-502, 1979.
[71] W. M. Yan and K. L. Chung. -4 fast algorithm for solving special tridiagonal
systerns. Compuling, ZX?O3-2ll, 1994.
IMAGE EVALUATION TEST TARGET (QA-3)
APPLIED 4 IMAGE. lnc t 653 East Main Çtreet -
--: Rochester. NY 14609 USA -- --= Phone: 71 6/482-03M3 ,=-= Fex: 71 6128&5989