Professional Documents
Culture Documents
ut cux ;
c0
(11.1)
1
u x i ( x u ) i
[(1 ) ui 1 2 ui (1 ) ui 1 ]
2x
Note: = 0 central
(11.2)
A. Explicit Schemes
(i) Explicit Euler (for time march)
uin 1 uin
c
O(t, x2)
unconditionally unstable
uin 1
u in
in FTCS
1-step method
ct
1
x
1
ct
n
n
(ui 1 ui 1 )
(uin1 uin1 )
2
2x
(11.3; HC:6-6)
2
For = 1 (FTBS)
O(t, x)
c
2 m
2 m
m 1 cos
i sin
x
M
M
conditionally stable; C
1-step method
uin 1
uin
ct
1
x
ct
(uin uin1 )
x
(11.4; HC:6-4)
3
O(t2, x2)
conditionally stable;
2-step method
uin1
uin1
ct
C
1
x
ct n
(ui 1 uin1 )
x
(11.5; HC:6-7)
uin 1
O(t2, x2)
conditionally stable;
1-step method
ct
C
1
x
2
2
c
t
c
t
n
n
n
uin
(uin1 uin1 )
(
u
2
u
u
i 1
i
i 1 )
2
2x
2x
(11.6; HC:6-11)
Note: Before applying central space differencing, the Lax-Wendroff
technique leads to the equation
uin 1
uin
c t
u
c
2
x i
2
x 2
i
2
artificial dissipation
B. Implicit Schemes
(i) Implicit Euler (for time march)
uin 1 uin
c
O(t, x2)
unconditionally stable
uin 1
uin
ct
(uin11 uin11 )
2x
(11.7; HC:6-12)
6
For = 1 (BTBS)
O(t, x)
c
2 m
2 m
m 1 cos
i sin
x
M
M
unconditionally stable
uin 1
uin
ct
(uin 1 uin11 )
x
(11.8; HC:6-13)
uin 1
O(t2, x2)
unconditionally stable
uin
ct
C. Splitting Methods
D. Multi-Step Methods
O(t2, x2)
conditionally stable;
ct
C
2
x
Lax-Wendroff:
apply equations at i +
O(t2, x2)
ct
conditionally stable; C
1
x
see equations in H&C: 6-19, 6-20
(ii) MacCormack Method
O(t2, x2)
conditionally stable;
ct
C
1
x
11
u
u
u
t
x
or
u
E
t
x
(11.10)
where E = u2/2
(11.11)
A. Explicit Schemes
uin 1
uin
( Ein1 Ein1 )
2x
uin1
u in
to give
1 n
t
n
(ui 1 ui 1 )
( Ein1 Ein1 )
2
2x
or, in terms of u,
13
n 1
i
1 n
t
n
(ui 1 ui 1 )
((uin1 ) 2 (uin1 ) 2 )
2
4x
(11.12; HC:6-34)
explicit method
nonlinear terms appear at level n on RHS; no linearization needed
O(t, x2)
conditionally stable: Courant number =
C umax
t
1
x
14
Expand
E E u
E E
E
A
t u t
u x
x
E
where A
Jacobian
u
E
E
u
t
x
Then, one can show that
2u E E
A u
2
x x x x
t
15
n
ui
E E t
A O(t 2 )
x x x 2
like an error term in modified PDE
uin1
uin
( Ein1 Ein1 )
2x
(t ) 2
n
n
n
n
n
n
n
n
[(
u
u
)(
E
E
)
(
u
u
)(
E
E
i 1
i
i 1
i
i
i 1
i
i 1 )]
2
4(x)
(11.13; HC:6-39)
- see H&C for derivation, page 210.
16
explicit method
nonlinear terms appear at level n on RHS; no linearization needed
O(t2, x2)
conditionally stable: Courant number =
C umax
t
1
x
17
t
1
x
t n
( Ei 1 Ein )
x
1 n
t *
n 1
*
ui ui ui
( Ei Ei*1 )
2
x
ui*
uin
(11.14; HC:6-40,6-41)
18
(iv) FTBS
uin 1
uin
( Ein Ein1 )
x
(11.15; HC:6-49)
explicit method
nonlinear terms appear at level n on RHS; no linearization needed
O(t, x)
conditionally stable: Courant number =
C umax
t
1
x
19
B. Implicit Schemes
(i) Beam and Warming Method
implicit method; use tridiagonal solver
FDE is nonlinear; linearized by lagging the Jacobian
O(t2, x2)
unconditionally stable
O(t2) implies dispersion error (very large); add 4th order
damping term (like adding artificial viscosity). Since 4th
order, it doesnt affect the O(x2) accuracy.
advantages of implicit scheme (stable, larger t) is lost due
to dispersion errors (large oscillations)
20
t
t
n
n 1
n 1
Ai 1ui 1 ui
Ain1uin11
4x
4x
4
u
n
n
n
n
n
n
n
4
ui
( Ei 1 Ei 1 )
Ai 1ui 1
Ai 1ui 1 e (x)
2x
4x
4x
x 4
(11.16; HC:6-47,6-48)
for stability, we must choose 0 < e 0.125
the damping term can be approximated by
4
u
4
n
n
n
n
n
e (x)
(
u
4
u
6
u
4
u
u
e
i2
i 1
i
i 1
i 2 )
4
x
(ii) BTBS
Applying Implicit Euler and backward space differencing to (11.11):
uin 1
uin
( Ein 1 Ein11 )
x
n 1
1
1 n n 1
n 1 2
(u ) u u
2
2
22
t n n 1
t n n 1
ui 1 ui 1 1
ui ui uin
2x
2x
(11.17; HC:6-51)
implicit method
use bidiagonal solver (lower bidiagonal matrix forward sweep)
O(t, x)
unconditionally stable
C. RK Schemes
popular explicit methods for solving ODEs; easy to program
uses weighted average of several solutions over time interval
t improves accuracy
RK2 or 2-stage RK method 2nd order accurate
RK4 or 4-stage RK method 4th order accurate; most commonly
used RK method
Modified RK methods reduces storage requirements
better stability than comparable explicit schemes
requires significantly more computations per time step
difficult to estimate errors
see H&C, p. 219-227.
24
D. Other Schemes
Flux Corrected Transport
25