Professional Documents
Culture Documents
MIT2 29F11 Lect 15
MIT2 29F11 Lect 15
f n f
d f k (t )
n
n
Generic PDE:
n , with f ( x, t ) f k (t ) ei kx
ik f k (t ) f k (t ) for ik
t x
dt
k
operators
2.29
CFL condition:
Definition
Examples: 1st order linear convection/wave eqn, 2nd order wave eqn
Other FD schemes
2.29
f ( x, t )
Exact
f k (t ) ei kx
f k (t ) ei kx
f k (t ) ei kx
x
2x
j
ei kx
e
x j
i k (x j x )
where keff
e
2x
i k (x j x )
i kx
e i kx e
2x
sin(k x )
i kx j
sin(kx) i kx j
i kx
e i keff e j
x
sin(k x )
k 3x 2
k
...
x
6
ei kx
x
3
2
sin(k
x
)
k
x
CDS,
order: keff
k
...
x
6
CDS, 4th order: keff sin(k x) 4 cos(kx)
3x
Pade scheme, 4th order: i keff 3 i
sin(kx)
2 cos(k x ) x
2nd
kmax x
k max
2.29
ei kx
x also
f
f
c
0
Consider linear convection equations:
t
i k x t
f (x, t ) f k (0) e
f k (0) ei k (x c t )
For the exact solution:
k
num .
k
(t )e
i kx
num.
k
df
dt
i kx j
num.
k
(since i k c)
ei kx
i kx j
num .
(t ) c
f
i
k
e
(
t
)
c
k
eff
x j
which we can solve exactly (our interest here is only error due to spatial approx.)
f numerical ( x, t )
ceff
c
eff keff
f k (0) ei k x i keff c t
ceff
f k (0) ei k (x ceff t )
2.29
Numerical Fluid Mechanics
Heuristic stability:
Energy Method
Basic idea:
n
Find a quantity, L2 norm e.g. j
Consider again:
0
c
t
x
jn1 jn
t
n
jn j1
t
c t
x
For the rest of this derivation, please see equations 2.18 through 2.22 in
Durran, D. Numerical Methods for Wave Equations in Geophysical Fluid
Dynamics. Springer, 1998. ISBN: 9780387983769.
2.29
For the rest of this derivation, please see equations 2.18 through 2.22 in
Durran, D. Numerical Methods for Wave Equations in Geophysical Fluid
Dynamics. Springer, 1998. ISBN: 9780387983769.
2.29
Again, use, f ( x, t )
f k (t ) e
i kx
ix
(
t
)
e
e t 1
in other words, for t = nt, the condition for strict stability can be written:
e t 1 or for e t ,
10
0
c
t
x
Consider again:
jn1 jn
t
jn 1 (1 ) jn jn1 with
jn nj1
x
0
n+1
c t
x
n
j-1
Consider the Fourier error decomposition (one mode) and discretize it:
( x, t ) (t ) ei x e t ei x nj e nt ei jx
Insert it in the FD scheme, assuming the error mode satisfies the FD:
n1
(1 ) nj nj1
j
e (n1) t ei jx (1 ) e nt ei jx e nt ei ( j1)x
11
ei x e i x
(1 ) e
(1 ) e 1 2 (1 ) 1
ei x e i x
x
Since
cos( x) and 1 cos( x) 2sin 2 (
)
2
2
x
2
1 2 (1 ) 1 cos( x ) 1 4 (1 ) sin 2 (
)
2
2
i x
i x
Since sin 2 (
x
2
) 0
x
2
) 1
1 cos( x) 0
c t
(
)
x
Equivalent to the
CFL condition
PFJL Lecture 15,
12
Examples:
2
2u
2 u
c
(1)
x 2
t 2
u
u
(2)
c
0
t
x
u
(3)
(U ) u g
t
(4) (U ) u g
d xc
U( x c (t ))
dt
d xc
U
ds
x, y
PFJL Lecture 15,
13
Waves on a String
2u ( x, t )
t 2
2u( x, t )
c
0 x L, 0 t
x 2
Initial Conditions
2
uL,t)
u0,t)
Boundary Conditions
Wave Solutions
u(x,0), ut(x,0)
2.29
14
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.