Académique Documents
Professionnel Documents
Culture Documents
|
also lead to different effective wave speeds:
\
c x
.
j
c f c f
Consider linear convection equations:
+ c = 0
c
t cx
, ) =
For the exact solution:
f (x
f (
i k t
k
t 0) e
x +o
=
f
k
(0) e
i k ( x c ) t
(sin o ce i ) k c =
k = k =
num. i kx
For the numerical sol.: if
f = f
num.
( )
i k
t
x
df
e
k
e
i kx
j
= f
num.
| c e |
t ( ) c = f
num
k
.
i k
j
x
k | k
t ( ) c
(
ef
i
f
e
)
k
dt
\
cx
.
j
which we can solve exactly (our interest here is only error due to spatial approx.)
f
num.
k
t ( ) = f e
i k
eff
ct
k
(0)
c
eff
c
f
numerical
( , = ) x f (0
i
e
k
t )
x i k
eff
ct
= f (0 e
i k
)
( x c
eff
t )
k k
k = k =
c
eff
o
=
eff
k
=
eff
(defining o
c o k
eff
= i k
eff
c i k = c
eff
Often, c
eff
/ c < 1 => numerical solution is too slow.
Sinc c e
eff
is a function of the effective wavenumber,
the scheme is dispersive (even though the PDE is not)
2.29
Numerical Fluid Mechanics
PFJ L Lecture 15,
6
6
Springer. All rights reserved. This content is excluded
from our Creative Commons license. For more information,
see http://ocw.mit.edu/fairuse.
Source: Lomax, H., T. Pulliam, and D. Zingg.
Fundamentals of Computational Fluid Dynamics. Springer, 2001.
Evaluation of the Stability of a FD Scheme
1
t |
)
c
Recall:
= L ( ) L (| c + = L ( )
Stability:
< Const. (for linear systems)
Ax Ax Ax
L
Ax
Heuristic stability:
Stability is defined with reference to an error (e.g. round-off) made in
the calculation, which is damped (stability) or grows (instability)
Heuristic Procedure: Try it out
Introduce an isolated error and observed how the error behaves
Requires an exhaustive search to ensure full stability, hence mainly
informational approach
Energy Method
Basic idea:
n
Find a quantity, L
2
norm e.g.
(
|
j
)
2
j
Shows that it remains bounded for all n
Less used than Von Neumann method, but can be applied to
nonlinear equations and to non-periodic BCs
Von Neumann method (Fourier Analysis method)
2.29
Numerical Fluid Mechanics PFJ L Lecture 15, 7
7
Evaluation of the Stability of a FD Scheme
Energy Method Example
Consider again: 0 c
t x
| c
+
| c
=
c c
n+1 n n n
| | | |
j j j j1
A possible FD formula (upwind scheme for c>0): + c = 0
At Ax
(t = nt, x = jx) which can be rewritten: t
1
1
(1 ) 0 with
n n n
j j j
c t
+
x
| | |
A
= + = =
A
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
Numerical Fluid Mechanics PFJ L Lecture 15, 8
8
Evaluation of the Stability of a FD Scheme
Energy Method Example
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
Numerical Fluid Mechanics PFJ L Lecture 15, 9
9
Von Neumann Stability
Widely used procedure
Assumes initial error can be represented as a Fourier Series and
considers growth or decay of these errors
In theoretical sense, applies only to periodic BC problems and to
linear problems
Superposition of Fourier modes can then be used
c x t t
|
Again, use, f ( , ) x t =
f
k
( ) t e
i kx
but for the error:
( , ) =
c
|
( ) e
i x
k =
| =
Being interested in error growth/decay, consider only one mode:
i x t i |x
c
|
|
| = ( ) ( ) t e ~ e e where is in general complex and function of : |
t
e s 1
Strict Stability: for the error not to grow in time,
in other words, for t = nt, the condition for strict stability can be written:
At At
e s 1 or for = e , s 1
von Neumann condition
Norm of amplification factor smaller than 1
2.29
Numerical Fluid Mechanics PFJ L Lecture 15, 10
10
Evaluation of the Stability of a FD Scheme
Von Neumann Example
(t = nt, x = jx) which can be rewritten:
1
1
(1 ) with
n n n
j j j
c t
x
| | |
+
A
= + =
A
j j-1
n
n+1
Consider again:
0 c
t x
| c
+
| c
=
c c
n+1 n n n
| | | |
j j j j1
A possible FD formula (upwind scheme) + c = 0
At Ax
Consider the Fourier error decomposition (one mode) and discretize it:
i x t i |x n nA i | jAx | t
( , ) = c
|
( ) e = e e c
j
= e e c x t t
Insert it in the FD scheme, assuming the error mode satisfies the FD:
n+1 n n (n+1) At i | jAx nAt i | jAx nAt i | ( j1) Ax
j
(1 c )
j
+ c
j1
e e = ) e e + e c = (1 e
n nAt i | jAx
Cancel the common term (which is
c
j
= e e
) and obtain:
At i | Ax
(1 ) + e e =
2.29
Numerical Fluid Mechanics PFJ L Lecture 15, 11
11
Evaluation of the Stability of a FD Scheme
von Neumann Example
At
The magnitude of = e is then obtained by multiplying with its
complex conjugate:
i | Ax i | Ax
2
i | Ax i | Ax
| e + e |
=
(
(1 ) + e
) (
(1 ) + e
)
= 1 2 (1 )
1
|
2
\ .
i | Ax i | Ax
e + e
2
| Ax
Since = cos( | Ax) and 1 cos( | Ax) = 2sin ( )
2 2
2 | Ax
= 2 (1
(
cos( A )
)
= (1 ) sin ( ) 1 ) 1 | x 1 4
2
2
Thus, the strict von Neumann stability criterion gives
2
| Ax
s 1 1 4(1 )sin ( ) s 1
2
2
| Ax
Since sin ( ) > 0 |
( (
1 cos( | Ax)
)
> 0 |
)
2
we obtain the same result as for the energy method:
1 (1 ) 0 0 1 ( )
c t c t
x x
A A
s > s s =
A A
Equivalent to the
CFL condition
2.29
Numerical Fluid Mechanics PFJ L Lecture 15, 12
12
(from Lecture 12)
Partial Differential Equations
Hyperbolic PDE: B
2
- 4 A C > 0
Examples: c
2
u
2
c
2
u
Wave equation, 2
nd
order (1) = c
ct
2
cx
2
cu cu
Sommerfeld Wave/radiation equation,
(2) c = 0
ct cx 1
st
order
cu
Unsteady (linearized) inviscid convection
(3) + (U V ) u = g
ct
(Wave equation first order)
(4) (U V) u = g
Steady (linearized) inviscid convection
Allows non-smooth solutions
t
Information travels along characteristics, e.g.:
c
For (3) above:
d x
= ( ( )) U x
c
t
dt
d x
c
For (4), along streamlines: = U
ds
Domain of dependence of u(x,T) =characteristic path
e.g., for (3), it is: x
c
(t) for 0< t < T
0
x, y
Finite Differences, Finite Volumes and Finite Elements
2.29
Numerical Fluid Mechanics PFJ L Lecture 15, 13
13
(from Lecture 12)
Partial Differential Equations
Hyperbolic PDE
Waves on a String
2 2
t
c ( , )
2
c ( , ) u x t u x t
2
= c
2
0 < x < L, 0 < t <
ct cx
Initial Conditions
Boundary Conditions
u(0,t) u(L,t)
Wave Solutions
u(x,0), u
t
(x,0) x
Typically Initial Value Problems in Time, Boundary Value Problems in Space
Time-Marching Solutions: Explicit Schemes Generally Stable
2.29
Numerical Fluid Mechanics PFJ L Lecture 15, 14
14
MIT OpenCourseWare
http://ocw.mit.edu
2.29 Numerical Fluid Mechanics
Fall 2011
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.