Casaseminar Eno Weno Scheme
Casaseminar Eno Weno Scheme
Casaseminar Eno Weno Scheme
Further topics
and time Integration
Tefa Kaisara
CASA Seminar
29 November, 2006
Short review Further topics Time Integration
Outline
1 Short review
ENO/WENO
2 Further topics
Subcell resolution
Other building blocks
3 Time Integration
TVD Runge-Kutta methods
TVD multistep methods
Lax-Wendroff procedure
Short review Further topics Time Integration
Outline
1 Short review
ENO/WENO
2 Further topics
Subcell resolution
Other building blocks
3 Time Integration
TVD Runge-Kutta methods
TVD multistep methods
Lax-Wendroff procedure
Short review Further topics Time Integration
ENO/WENO
ENO/WENO
ENO Procedure
Compute the divided differences, using the cell averages.
For cell Ii start with the two-point stencil S̃(i) = {xi− 1 , xi+ 1 }.
2 2
ENO/WENO
(r )
X
k−1
vi+ 1 = crj v̄i−r +j r = 0, . . . , k − 1 (1.1)
2
j=0
(r )
I WENO takes a convex combination of the vi+ 1 ’s.
2
Short review Further topics Time Integration
Outline
1 Short review
ENO/WENO
2 Further topics
Subcell resolution
Other building blocks
3 Time Integration
TVD Runge-Kutta methods
TVD multistep methods
Lax-Wendroff procedure
Short review Further topics Time Integration
Subcell resolution
Examples
rational functions
trigonometric polynomials
exponential functions
radial functions
idea
Find suitable smooth indicators similar to Newton divided difference
for the polynomial case.
Short review Further topics Time Integration
Outline
1 Short review
ENO/WENO
2 Further topics
Subcell resolution
Other building blocks
3 Time Integration
TVD Runge-Kutta methods
TVD multistep methods
Lax-Wendroff procedure
Short review Further topics Time Integration
Consider,
system of ODEs
ut = L(u)
resulting from spatial approximation to PDE;
ut = −f (u)x
Construction
Assume: First order Euler forward time stepping
u n+1 = u n + ∆tL(u n )
X
i−1
u (i)
= αik u k + ∆tβik L(u (k ) ) , i = 1, . . . , m (3.2)
k=0
n
u (0) = u ,u(m)
= u n+1
Consistency;
X
i−1
αik = 1.
k =0
Short review Further topics Time Integration
Lemma
The Runge-Kutta method (3.2) is TVD under the CFL coefficient (3.1)
αik
c = min
i,k βik
Optimal schemes
Second order TVD Runge-Kutta
u (1) = u n + ∆tL(u n )
1 n 1 (1) 1
u n+1 = u + u + ∆tL(u (1) )
2 2 2
with CFL c = 1.
Third order TVD R-K
u (1) = u n + ∆tL(u n )
3 n 1 (1) 1
u (2) = u + u + ∆tL(u (1) )
4 4 4
1 n 2 (2) 2
u n+1 = u + u + ∆tL(u (2) )
3 3 3
Fourth order TVD Runge-Kutta method does not exist with for
positive αik and βik
Short review Further topics Time Integration
Consider
αik ≥ 0 and βik negative
introduce an adjoint operator L̃
it approximates the same spatial derivatives as L
TVD for first order Euler, backward in time:
u n+1 = u n − ∆t L̃u n
Short review Further topics Time Integration
Lemma
The Runge-Kutta method (3.2) is TVD under the CFL coefficient (3.1)
αik
c = min
i,k |βik |
1
u (1) = un + ∆tL(u n )
2
Example
Burgers’ equation
1 2
ut + u =0
2 x
u (1) = u n − 20∆tL(u n )
41 (1) 1
u n+1 = un + u − ∆tL(u (1) )
40 40
Short review Further topics Time Integration
conclusion
It is much safer to use TVD Runge-Kutta Method for solving
hyperbolic problem.
Short review Further topics Time Integration
Construction
Similar to Runge-kutta Methods
General From
X
m−1
u n+1 = (αk u n−k + ∆tβk L(u n−k )) (3.3)
k =0
Lemma
The multi-step method (3.3) is TVD under the CFL coefficient (3.1)
αk
c = min
k βk
provided; αk ≥ 0 and βk ≥ 0
Short review Further topics Time Integration
Examples
(m=2) three step , second order scheme, TVD with c=0.5
3 n 3 1
u n+1 =u + ∆tL(u n ) + u n−2 (3.4)
4 2 4
(m=4) five step,third order scheme, TVD with c=0.5
25 n 25 7 n−4 5
u n+1 = u + ∆tL(u n ) + u + ∆tL(u n−4 )
32 16 32 16
Lemma
The multi-step method (3.3) is TVD under the CFL coefficient (3.1)
αk
c = min
k |βk |
provided; αk ≥ 0 and , L is replaced by L̃ for βk negative.
Lax-Wendroff procedure
Idea
Taylor series expansion in time:
∆t 2
u(x, t + ∆t) = u(x, t) + ut (x, t)∆t + utt (x, t) + ... (3.5)
2
Illustration
ut = −f (u)x
Lax-Wendroff procedure
Z t n+1 Z t n+1 !
1
ūin+1 = ūin − f (u(xi+ 1 , t)) dt − f (u(xi− 1 , t)) dt
∆xi tn
2
tn
2
(3.7)
Discretize time using suitable Gaussian quadrature
Z n+1 X
1 t
f (u(xi+ 1 , t)) dt ≈ ωα f (u(xi+ 1 , t n + βα ∆t))
∆t t n 2
α
2
Short review Further topics Time Integration
Lax-Wendroff procedure
±
f (u(xi+ 1 , t n + βα ∆t)) ≈ h(u(xi+ 1,t
n
+ βα ∆t)
2 2
± n n
to u(xi+ 1 , t ) and its spacial derivatives at t .
2
Short review Further topics Time Integration
Lax-Wendroff procedure
limitations
Algebra is very complicated for multi dimensional systems
difficult to prove stability properties for higher order methods
Short review Further topics Time Integration