Notes for AA214, Chapter 7. T. H. Pulliam Stanford University

Similar documents
Advanced CFD Methods 1

CS Software Engineering for Scientific Computing. Lecture 16: Particle Methods; Homework #4

Lecture Notes to Accompany. Scientific Computing An Introductory Survey. by Michael T. Heath. Chapter 10

Finite Difference Approach to Option Pricing

Numerical Analysis Lecture Notes

SIXTY STUDY QUESTIONS TO THE COURSE NUMERISK BEHANDLING AV DIFFERENTIALEKVATIONER I

Understanding Poles and Zeros

Homework 2 Solutions

3.2 Sources, Sinks, Saddles, and Spirals

Lecture 8 : Dynamic Stability

Introduction to CFD Basics

The Fourth International DERIVE-TI92/89 Conference Liverpool, U.K., July Derive 5: The Easiest... Just Got Better!

Numerical Methods for Differential Equations

(Refer Slide Time: 01:11-01:27)

Numerical Methods for Differential Equations

Fourth-Order Compact Schemes of a Heat Conduction Problem with Neumann Boundary Conditions

Sound. References: L.D. Landau & E.M. Lifshitz: Fluid Mechanics, Chapter VIII F. Shu: The Physics of Astrophysics, Vol. 2, Gas Dynamics, Chapter 8

7. LU factorization. factor-solve method. LU factorization. solving Ax = b with A nonsingular. the inverse of a nonsingular matrix

On the behaviour of time discretisations of the electric eld integral equation

A Posteriori Error Estimation for Predictive Models

AN INTRODUCTION TO NUMERICAL METHODS AND ANALYSIS

Derive 5: The Easiest... Just Got Better!

Grid adaptivity for systems of conservation laws

Stability of the LMS Adaptive Filter by Means of a State Equation

Figure 2.1: Center of mass of four points.

Mathematical test criteria for filtering complex systems: Plentiful observations

Section Continued

Lecture 13 Linear quadratic Lyapunov theory

ALGEBRAIC EIGENVALUE PROBLEM

Chapter 5. Methods for ordinary differential equations. 5.1 Initial-value problems

4. Complex integration: Cauchy integral theorem and Cauchy integral formulas. Definite integral of a complex-valued function of a real variable

Machine Learning and Data Mining. Regression Problem. (adapted from) Prof. Alexander Ihler

Dynamical Systems Analysis II: Evaluating Stability, Eigenvalues

Optimization of Supply Chain Networks

NOV /II. 1. Let f(z) = sin z, z C. Then f(z) : 3. Let the sequence {a n } be given. (A) is bounded in the complex plane

x1 x 2 x 3 y 1 y 2 y 3 x 1 y 2 x 2 y 1 0.

7 Gaussian Elimination and LU Factorization

The Characteristic Polynomial

Heavy Parallelization of Alternating Direction Schemes in Multi-Factor Option Valuation Models. Cris Doloc, Ph.D.

WAVES AND FIELDS IN INHOMOGENEOUS MEDIA

Nonlinear normal modes of three degree of freedom mechanical oscillator

Math Assignment 6

Advanced Computational Fluid Dynamics AA215A Lecture 5

G.A. Pavliotis. Department of Mathematics. Imperial College London

Parametric Curves. (Com S 477/577 Notes) Yan-Bin Jia. Oct 8, 2015

Using the Theory of Reals in. Analyzing Continuous and Hybrid Systems

On computer algebra-aided stability analysis of dierence schemes generated by means of Gr obner bases

A First Course in Elementary Differential Equations. Marcel B. Finan Arkansas Tech University c All Rights Reserved

1 The 1-D Heat Equation

Dimension Theory for Ordinary Differential Equations

3. Reaction Diffusion Equations Consider the following ODE model for population growth

GEC320 COURSE COMPACT. Four hours per week for 15 weeks (60 hours)

8. Linear least-squares

Eigenvalues and Eigenvectors

Essential Mathematics for Computer Graphics fast

ORDINARY DIFFERENTIAL EQUATIONS

Module 6 Case Studies

Recall the basic property of the transpose (for any A): v A t Aw = v w, v, w R n.

Stability Analysis for Systems of Differential Equations

Dynamic Domains in Strongly Driven Ferromagnetic Films

Numerical Analysis An Introduction

FIELDS-MITACS Conference. on the Mathematics of Medical Imaging. Photoacoustic and Thermoacoustic Tomography with a variable sound speed

Pricing Discrete Barrier Options

1 Finite difference example: 1D implicit heat equation

Numerical Methods for Engineers

Estimated Pre Calculus Pacing Timeline

Introduction to the Finite Element Method

7. DYNAMIC LIGHT SCATTERING 7.1 First order temporal autocorrelation function.

Advanced Signal Processing and Digital Noise Reduction

Chapter 6: Solving Large Systems of Linear Equations

5.4 The Heat Equation and Convection-Diffusion

Time domain modeling

Numerical Resolution Of The Schrödinger Equation

What are the place values to the left of the decimal point and their associated powers of ten?

APPLIED MATHEMATICS ADVANCED LEVEL

ASYMPTOTIC MEAN-SQUARE STABILITY OF TWO-STEP METHODS FOR STOCHASTIC ORDINARY DIFFERENTIAL EQUATIONS

Vector and Matrix Norms

Introduction to Matrix Algebra

Computer Graphics CS 543 Lecture 12 (Part 1) Curves. Prof Emmanuel Agu. Computer Science Dept. Worcester Polytechnic Institute (WPI)

Models of Cortical Maps II

Section 1.1. Introduction to R n

ROUTH S STABILITY CRITERION

Fast solver for the three-factor Heston-Hull/White problem. F.H.C. Naber tw

OpenGamma Quantitative Research Numerical Solutions to PDEs with Financial Applications

1 VECTOR SPACES AND SUBSPACES

COMPARISON OF SOLUTION ALGORITHM FOR FLOW AROUND A SQUARE CYLINDER

Roots of Polynomials

NUMERICAL ANALYSIS PROGRAMS

Monochromatic electromagnetic fields with maximum focal energy density

Diffusion: Diffusive initial value problems and how to solve them

ARBITRAGE-FREE OPTION PRICING MODELS. Denis Bell. University of North Florida

Matrices and Polynomials

RAJALAKSHMI ENGINEERING COLLEGE MA 2161 UNIT I - ORDINARY DIFFERENTIAL EQUATIONS PART A

Numerical Analysis Lecture Notes

2010 Solutions. a + b. a + b 1. (a + b)2 + (b a) 2. (b2 + a 2 ) 2 (a 2 b 2 ) 2

Feature Commercial codes In-house codes

SOLUTION OF SHIFF SYSTEMS BY USING DIFFERENTIAL TRANSFORM METHOD

Pricing Options under Heston s Stochastic Volatility Model via Accelerated Explicit Finite Differencing Methods

Transcription:

Notes for AA214, Chapter 7 T. H. Pulliam Stanford University 1

Stability of Linear Systems Stability will be defined in terms of ODE s and O E s ODE: Couples System O E : Matrix form from applying Eq. 1 d u dt = A u f(t) (1) un+1 = C u n g n (2) For Example: Euler Explicit C = [I ha] 2

Inherent Stability of ODE s Stability of Eq. 1 depends entirely on the eigensystem of A. λ m -spectrum of A: function of finite-difference scheme,bc For a stationary matrix A, Eq. 1 is inherently stable if, when f is constant, u remains bounded as t. (3) Note that inherent stability depends only on the transient solution of the ODE s. u(t) = c 1 ( e λ 1 h )n x1 + + c m ( e λ m h )n xm + + c M ( e λ M h )n xm + P.S. (4) 3

ODE s are inherently stable if and only if R(λ m ) 0 for all m (5) For inherent stability, all of the λ eigenvalues must lie on, or to the left of, the imaginary axis in the complex λ plane. This criterion is satisfied for the model ODE s representing both diffusion and biconvection. 4

Numerical Stability of O E s Stability of Eq. 2 related to the eigensystem of its matrix, C. σ m -spectrum of C: determined by the O E and are a function of λ m u n = c 1 (σ 1 ) n x1 + + c m (σ m ) n xm + + c M (σ M ) n xm + P.S. (6) Spurious roots play a similar role in stability. The O E companion to Statement 3 is For a stationary matrix C, Eq. 2 is numerically stable if, when g is constant, u n remains bounded as n. (7) 5

Definition of stability: referred to as asymptotic or time stability. Time-marching method is numerically stable if and only if (σ m ) k 1 for all m and k (8) This condition states that, for numerical stability, all of the σ eigenvalues (both principal and spurious, if there are any) must lie on or inside the unit circle in the complex σ-plane. This definition of stability for O E s is consistent with the stability definition for ODE s. 6

Our Approach leads to Review The PDE s are converted to ODE s by approximating the space derivatives on a finite mesh. Inherent stability of the ODE s is established by guaranteeing that R(λ) 0. Time-march methods are developed which guarantee that σ(λh) 1 and this is taken to be the condition for numerical stability. 7

Time-Space Stability and Convergence of O E s A more classical view (but consistent) in the time-space sense. The homogeneous part of Eq. 2, u n+1 = C u n Applying simple recursion u n = C n u 0 Using vector and matrix p-norms u n = C n u 0 C n u 0 C n u 0 (9) Assume that the initial data vector is bounded, the solution vector is bounded if where C represents any p-norm of C. C 1 (10) 8

This is often used as a sufficient condition for stability. Well known relation between spectral radii and matrix norms The spectral radius of a matrix is its L 2 norm when the matrix is normal, i.e., it commutes with its transpose. The spectral radius is the lower bound of all norms. The matrix norm approach and the σ λ analysis are consistent when both A and C have a complete eigensystem. 9

Numerical Stability Concepts: Complex σ-plane σ-root Traces Relative to the Unit Circle The O E solution to the homogeneous part u n = c 1 σ n 1 x 1 + + c m σ n m x m + + c M σ n M x M Semi-discrete approach leads to a relation between the σ and the λ eigenvalues. Numerical stability of the O E requires that σ-roots lie within unit circle in the complex σ-plane. Trace the locus of the σ-roots as a function of the parameter λh 10

Stability in the Complex-σ Plane Define σ exact = e λh and Separate: Dissipation (λh = β < 0) Convection (λh = iω) Plot Real(σ) and Imag(σ) for varying λh of both types. Ι(σ) Ι(σ) λh= 0 h= 0 ω λ h= οο R (σ) R (σ) λ h σ = e, λh - oo σ = e i, h oo a) Dissipation b) Convection ω ω h Figure 1: Exact traces of σ-roots for model equations. 11

σ λ Relations for Various Schemes 1. σ 1 λh = 0 Explicit Euler 2. σ 2 2λhσ 1 = 0 Leapfrog 3. σ 2 (1 + 3 2 λh)σ + 1 λh = 0 2 AB2 4. σ 3 (1 + 23 12 λh)σ2 + 16 12 λhσ 12 5 λh = 0 AB3 5. σ ( 1 λh) 1 = 0 Implicit Euler 6. σ (1 1 2 λh) (1 + 2 1 λh) = 0 Trapezoidal 7. σ 2 (1 3 2 λh) 4 3 σ + 1 3 = 0 2nd-Order Backward 8. σ 2 (1 12 5 λh) (1 + 12 8 λh)σ + 12 1 λh = 0 AM3 9. σ 2 (1 + 13 λh + 15 12 24 λ2 h 2 )σ + 12 1 λh(1 + 2 5 λh) = 0 ABM3 10. σ 3 (1 + 2λh)σ 2 + 3 2 λhσ 1 λh = 0 2 Gazdag 11. σ 1 λh 1 2 λ2 h 2 = 0 RK2 12. σ 1 λh 1 2 λ2 h 2 1 6 λ3 h 3 1 24 λ4 h 4 = 0 RK4 13. σ 2 (1 1 3 λh) 4 3 λhσ (1 + 3 1 λh) = 0 Milne 4th Table 7.1. Some λ σ Relations 12

Traces of σ-roots for various methods. σ 1 σ 1 λ h=-2 a) Euler Explicit ωh = 1 σ 2 σ 1 σ 2 σ 1 b) Leapfrog σ 2 σ 1 σ 2 σ 1 λ h=-1 Diffusion c) AB2 Convection 13

Traces of σ-roots for various methods. σ 1 σ 1 λ h=- οο d) Trapezoidal ω h = 2/3 σ 2 σ 3 σ 1 σ 1 σ 2 e) Gazdag σ 3 σ 1 σ 1 λ h=-2 f) RK2 σ 1 σ 1 g) RK4 λ h=-2.8 ω h = 2 2 Diffusion Convection 14

Types of Stability Conditional Stability: Explicit Methods O E s where λh Constant λ spectrum, e.g. λ b h = ah x (1 cos(k x) + isin(k x)) Given x, wave speed a, and difference scheme: λ fixed Adjust h = t to satisfy stability bound Time accuracy: use an appropriate h Mildly-unstable: Prof. Milton VanDyke Lock bike fork and peddle as fast as you can, you may cross the street before you fall over and a truck hits you. 15

Un-Conditional Stability: Implicit Methods A numerical method is unconditionally stable if it is stable for all ODE s that are inherently stable. O E s where λh is stable Time accuracy: use an appropriate h Steady-State: any h which converges fast. Computationally expensive compared with Explicit Methods 16

Stability Contours in the Complex λh Plane. Another view of stability properties of a time-marching method is to plot the locus of the complex λh for which σ = 1 σ refers to the maximum absolute value of any σ, principal or spurious, that is a root to the characteristic polynomial for a given λh. Inherently stable ODE s lies in the left half complex-sigma plane 17

Example for Euler Explicit Euler explicit: σ ee = 1 + hλ Wave equation: central differencing, λ c = ai sin(k x) x σ ee = 1 ah x isin(k x) σ ee > 1.0 for all h, unconditionally unstable Wave equation: 1 st order backward differencing, λ b h = ah x (1 cos(k x) + isin(k x)) σ ee 1.0 for all some h, conditionally stable Note: CF L = ah x, CFL Number 18

Complex λ-plane, Euler explcit, σ ee = 1 + λh Let λh = x + iy, then σ ee = 1 + x + iy σ ee = (1 + x) 2 + y 2 Contour of σ ee = 0.8 leads to (1 + x) 2 + y 2 = (0.8) 2 : circle in x, y centered at x = 1 with radius 0.8, Stable Contour of σ ee = 1.2 leads to (1 + x) 2 + y 2 = (1.2) 2 : circle in x, y centered at x = 1 with radius 1.2, Un-Stable 19

Example for Euler Implicit Euler implicit: σ ei = 1 1 λh Wave equation: central differencing, λ c = ai sin(k x) x σ ei = 1 1 + ah x isin(k x) σ ei < 1.0 for all h, unconditionally stable Even for Compex λh: unconditional stability 20

Complex λ-plane, Euler Implcit, σ ei = 1 1 λh Let λh = x + iy, then σ ei = 1 1 x iy σ ei = 1 (1 x)2 + y 2 Contour of σ ei = 0.8 leads to (1 x) 2 + y 2 = ( 1 0.8 )2 : circle in x, y centered at x = 1 with radius 1 0.8, Stable Contour of σ ei = 1.2 leads to (1 x) 2 + y 2 = ( 1 1.2 )2 : circle in x, y centered at x = 1 with radius 1 1.2 < 1.0, Un-Stable The unstable contours are in the right half of the inherent stable of the ODE s 21

I( λ h) I( λ h) I( λ h) Stable Unstable 1 Stable Unstable 1 Stable R( R( R( λ h) λ h) Unstable λ h) a) Euler Explicit θ = 0 θ = 1/2 θ = 1 b) Trapezoid Implicit c) Euler Implicit Figure 2: Stability contours for the θ-method. 22

Stability contours for some explicit methods. 23

Stability contours for Runge-Kutta methods. I( λh) Stable Regions RK3 RK4 3.0 2.0 RK2 1.0 R( λh) -3.0-2.0 RK1-1.0 24

Fourier Stability Analysis Classical stability analysis for numerical schemes Fourier or von Neumann approach. Periodic in space derivative, similar to modified wave number Usually carried out on point operators Does not depend on an intermediate stage of ODE s. Strictly speaking it applies only to difference approximations of PDE s that produce O E s Serves as a fairly reliable necessary stability condition, but it is by no means a sufficient one. 25

The Basic Procedure Impose a spatial harmonic as an initial value on the mesh Will its amplitude grow or decay in time? Determined by finding the conditions under which u(x, t) = e αt e iκx (11) Is a solution to the difference equation, where κ is real and κ x lies in the range 0 κ x π. For the general term, u (n+l) j+m = eα(t+l t) e iκ(x+m x) = e αl t e iκm x u (n) j u (n) j is common to every term and can be factored out. 26

Find the term e α t, which we represent by σ, thus: Since e αt = ( e α t) n = σ n σ e α t For numerical stability σ 1 (12) Solve for the σ s produced by any given method A necessary condition for stability, make sure that, in the worst possible combination of parameters, condition 12 is satisfied. 27

Example 1 Finite-difference approximation to the model diffusion equation Richardson s method of overlapping steps. u (n+1) j = u (n 1) j + ν 2 t ( x 2 u (n) j+1 2u(n) j Substitution of Eq. 11 into Eq. 13 or ) + u (n) j 1 σ = σ 1 + ν 2 t x 2 ( e iκ x 2 + e iκ x) σ 2 + (13) [ ] 4ν t (1 cos κ x) σ 1 = 0 (14) x2 } {{ } 2b Eq. 11 is a solution of Eq. 13 if σ is a root of Eq. 14. 28

The two roots of Eq. 14 are One σ is always > 1. σ 1,2 = b ± b 2 + 1 Therefore, that by the Fourier stability test, Richardson s method of overlapping steps is unstable for all ν, κ and t. 29

Example 2 Finite-difference approximation for the model biconvection equation u (n+1) j = u (n) j a t ( ) u (n) j+1 2 x u(n) j 1 (15) σ = 1 a t x i sin κ x σ > 1 for all nonzero a and κ. Thus we have another finite-difference approximation that, by the Fourier stability test, is unstable for any choice of the free parameters. 30