T. H. Pulliam NASA Ames
T. H. Pulliam NASA Ames
T. H. Pulliam
NASA Ames
1
Stability of Linear Systems
d~u
= A ~u − ~f (t) (1)
dt
– O∆E : Matrix form from applying Eq. 1
~un+1 = C ~un − ~g n (2)
2
Inherent Stability of ODE’s
3
• ODE’s are inherently stable if and only if
4
Numerical Stability of O∆E ’s
5
• Definition of stability: referred to as asymptotic or time stability.
• Time-marching method is numerically stable if and only if
6
Review
7
Time-Space Stability and Convergence of O∆E’s
||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 L2 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
10
Stability in the Complex-σ Plane
Ι(σ) Ι(σ)
λ h= 0 ωh= 0
R (σ) R (σ)
λ h= οο
i ωh
σ = e λ h , λh - oo σ=e , ωh oo
a) Dissipation b) Convection
11
σ − λ Relations for Various Schemes
1. σ − 1 − λh = 0 Explicit Euler
2. σ 2 − 2λ h σ − 1 = 0 Leapfrog
3. σ 2 − (1 + 3 λh)σ + 1 λh = 0 AB2
2 2
4. 3
σ − (1 + 23 2
λh)σ + 16 λhσ − 5 λ h = 0 AB3
12 12 12
5. σ ( 1 − λ h) − 1 = 0 Implicit Euler
6. σ (1 − 1 λ h ) − (1 + 1 λh ) = 0 Trapezoidal
2 2
7. σ 2 (1 − 2 λ h ) − 4 σ + 1 = 0 2nd-Order
3 3 3
Backward
8. σ 2 (1 − 5 λ h ) − (1 + 8 λh)σ + 1 λ h = 0 AM3
12 12 12
9. σ 2 − (1 + 13 λh + 15 λ2 h2 )σ + 1 λh(1 + 5 λh) = 0 ABM3
12 24 12 2
10. σ 3 − (1 + 2λ h )σ 2 + 3 λhσ − 1 λ h = 0 Gazdag
2 2
11. σ − 1 − λ h − 1 λ2 h2 = 0 RK2
2
12. σ − 1 − λ h − λ2 h2 − 1 λ3 h3 − 1 λ4 h4 = 0
1 RK4
2 6 24
13. σ 2 (1 − 1 λ h ) − 4 λ hσ − (1 + 1 λ h ) = 0 Milne 4th
3 3 3
12
Traces of σ-roots for various methods.
σ1
σ1
λ h=-2
a) Euler Explicit
ωh = 1
σ2 σ1
σ2 σ1
b) Leapfrog
σ1
σ2 σ1 σ2
λ h=-1
c) AB2
Diffusion Convection
13
Traces of σ-roots for various methods.
σ1 σ1
σ3 σ1
σ1
σ2 σ3
e) Gazdag
σ1 σ1
λ h=-2 f) RK2
σ1 σ1
g) RK4
λ h=-2.8 ωh= 2 2
Diffusion Convection
14
Types of Stability
15
• Un-Conditional Stability: Implicit Methods
16
Stability Contours in the Complex λh Plane.
17
Example for Euler Explicit
ah
σee =1− isin(k∆x)
∆x
– |σee | > 1.0 for all h, unconditionally unstable
• Wave equation: 1st order backward differencing,
ah
λb h = − ∆x (1 − cos(k∆x) + isin(k∆x))
– |σee | ≤ 1.0 for all some h, conditionally stable
ah
– Note: CF L = ∆x , CFL Number
18
• Complex λ-plane, Euler explcit, σee = 1 + λh
– Let λh = x + iy, then σee = 1 + x + iy
p
|σee | = (1 + x)2 + y 2
19
Example for Euler Implicit
1
• Euler implicit: σei = 1−λh
1
σei = ah
1 + ∆x isin(k∆x)
20
1
• Complex λ-plane, Euler Implcit, σei = 1−λh
1
– Let λh = x + iy, then σei = 1−x−iy
1
|σei | = p
(1 − x)2 + y 2
1 2
– Contour of |σei | = 0.8 leads to (1 − x)2 + y 2 = ( 0.8 ) : circle in
1
x, y centered at x = 1 with radius 0.8 , Stable
1 2
– Contour of |σei | = 1.2 leads to (1 − x)2 + y 2 = ( 1.2 ) : circle in
1
x, y centered at x = 1 with radius 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 1
Stable Unstable
Stable
R(λ h) R(λ h) Unstable R( λ h)
22
Stability contours for some explicit methods.
23
Stability contours for Runge-Kutta methods.
I( λh)
3.0
Stable RK4
Regions
RK3
2.0
RK2
1.0
RK1
R(λ h)
24
Fourier Stability Analysis
25
The Basic Procedure
(n)
• uj is common to every term and can be factored out.
26
• Find the term eα∆t , which we represent by σ, thus:
σ ≡ eα∆t
α∆t n
αt
• Since e = e = σn
27
Example 1
28
– The two roots of Eq. 14 are
p
σ1,2 = −b ± b2 + 1
29
Example 2
30