Академический Документы
Профессиональный Документы
Культура Документы
Hyperbolic PDEs: The leapfrog scheme (LTE, stability & phase error)
and the Lax-Wendroff scheme (LTE, stability & phase error)
(Lecture 16, Week 6)
Markus Schmuck
wjn+1 − wjn−1 n − wn
wj+1 j−1
+a =0
2k 2h
⇒ wjn+1 = wjn−1 − p(wj+1
n
− wj−1
n
) (∗)
Step 1: Insert the ansatz wjn = ξ n eiωj into (∗), that is,
( )
ξ 2 = 1 − pξ eiω − e−iω
or ξ 2 + 2ipξ sin ω − 1 = 0.
and hence (∗) is stable for all |p| ≤ 1 (independent of a > 0 or a < 0).
0.8
u(x,t)
0.6
0.4
0.2
0.8
u(x,t)
0.6
0.4
0.2
Dx 1 δ2
u(x, t + k ) ≈ u − ak u + a2 k 2 x2 u
2h 2 h
as our numerical scheme. That means,
p n p2 n
wjn+1 = wjn − (wj+1 − wj−1
n
) + (wj+1 − 2wjn + wj−1
n
)
| 2 {z } | 2 {z }
FTCS scheme extra term
1 1
wjn+1 = (1 − p2 )wjn − p(1 − p)wj+1
n n
+ p(1 + p)wj−1 . (LW)
2 2
1 1
ξ = (1 − p2 ) − p(1 − p)eiω + p(1 + p)e−iω
2 2
= 1 + p (cos ω − 1) − ip sin ω
2
Hence,
[ ]2
|ξ|2 = 1 − 2p2 s2 + 4p2 s2 c 2 , where s = sin(ω/2), c = cos(ω/2)
= 1 + 4p2 s2 (c 2 − 1) + 4p4 s4
= 1 − 4p2 (1 − p2 )s4
⇒ |ξ|2 ≤ 1 for all |p| ≤ 1 and |ξ|2 > 1 for all |p| > 1
⇒ Scheme is stable for all |p| ≤ 1
M. Schmuck (Heriot-Watt University) Numerical Methods for PDEs, Lecture 16 11/ 14
Phase shift in the Lax-Wendroff method
We have
[ ]
p sin ω
ϕ = − tan−1
1 − 2p2 sin2 (ω/2)
[ ]
1
= − tan−1 p(ω − ω 3 + . . . )(1 + p2 ω 2 /2 + . . . )
6
[ ]
−1 2 1 2 1
= − tan pω(1 + ω ( p − ) + . . . )
2 6
( )
1 2
= −pω 1 − ω (1 − p ) + . . . .
2
6
Observations:
• The same shift as for the first root of the Leapfrog scheme
• Second troublesome root of the Leapfrog scheme disappeared
0.8
u(x,t)
0.6
0.4
0.2
0.8
u(x,t)
0.6
0.4
0.2