Professional Documents
Culture Documents
Computational Aerodynamics
Instructor: Prof. Marco Panesi
1. 1
AE 410
Summary of the Previous Lecture
1. Method of Lines
1. 2
AE 410
Advection Equation with Periodic Boundary Condition
The flow simulated is periodic. At a given time what enters on one side of
the domain must be the same as what leaves the opposite side.
The solution is
u(x, t) = u0 (x at)
1. 3
AE 410
Advection Equation (Solution)
The wave moves from left to right with speed a.
1. 4
AE 410
Fourier Series
m= 1
1
X 2⇡
u0 (x) = fˆm eikm x , km = m
1
L
1. 5
AE 410
The Matrix Operator Periodic Domains
N
X1
m = bj exp [i(2⇡j(m 1)/N )], m = 1, . . . , N
j=0
p
Note that: i= 1
With the corresponding ~xm eigenvectors:
2 3
exp [i(2⇡(m 1)/N )]
6 7
6 exp [i(2⇡(m 1)/N ) · 2] 7
~xm =6
6 ..
7,
7 8m = 1, . . . , N
4 . 5
exp [i(2⇡(m 1)/N ) · N ]
1.
AE 410
Semi-discrete approach to PDEs
d~u
= A~u; ~u(0) = ~u0
dt
1. 7
AE 410
Method of Lines
Suppose that A is a complete matrix (i.e., all the eigenvectors are linearly
independent). Then we can diagonalize A:
1
X AX = ⇤
where:
dX 1 ~u 1
=⇤X ~u
dt
We call:
1
w
~ =X ~u Characteristic variables
dw
~ 1
= ⇤w;
~ w(0)
~ =X ~u0 = w
~0
dt
1. 9
AE 410
Method of Lines
We are interested in the solution in terms of u(t) and we have to transform
back.
~u(t) = X w(t)
~ = Xe⇤ t w
~0
We found that the solution can be expressed in terms of eigenvalues and
eigenvectors:
Eigenvalue
N
X
mt
~u(t) = (w
~ 0 )m ~xm e
|{z}
m=1 Eigenvector
1. 10
AE 410
Example 1: 2nd Order Finite Difference
@u? @u ?
+ a ?
=0 u? (x? , 0) = u0 (x? )
@t? @x ?
x? u? ?
a
x = ?,u = ? t = t? ?
L U L
1. 11
AE 410
Example 1
1 i-1 i i+1 Nx L
0 h 1
@u @u
+ =0 x 2 [0, 1), u(x + 1) = u(x)
@t @x
Use a second order central finite difference with 51 nodes (points).
1. 12
AE 410
Example 1
N
X1
m = bj exp [i(2⇡j(m 1)/N )], m = 1, . . . , N
j=0
1. 13
AE 410
Example 1
In our case
✓ ◆
i 2⇡(m 1)
sin , m = 1, . . . N
h N
These are the analytical eigenvalues!
1. 14
AE 410
Computational Domain
1. 15
AE 410
The Matrix Operator
1. 16
AE 410
The Analytical Eigenvalues
1. 17
AE 410
Eigenvectors
1. 18
AE 410
Eigenvectors Part 2
1. 19
AE 410
Example 1
NOTE-- Eigenvalues:
NOTE-- Eigenvectors:
1. 20
AE 410
Example 1
Example 1.1:
~u0 = Re{~x2 }
Example 1.2:
1. 21
AE 410
Solution Example 1.1
1. 22
AE 410
Solution Example 1.2
1. 24
AE 410
The Modified Wave Number Analysis
@ ikm x ikm x
e = ikm e Continuous Problem
@x
M~xm = m~
xm Discrete Problem
2 i(
2⇡(m 1) 3 2 3
e )·1 ikm x1
N
e
6 ( i
2⇡(m 1)
)·2 7 6 eikm x2 7
6e N 7
~xm =6 7 = ... = 6
6 .
7
7 = e ikm ~
x
6 .. 7 4 .. 5
4 . 5
e i(
2⇡(m
N
1)
)·N eikm xN
1. 25
AE 410
The Modified Wave Number Analysis
The exact and the continuous solutions have the same eigenvectors! But
✓ ◆
i 2⇡
ikm 6 = sin m ; m = 0 . . . Nx 1
h Nx
Knowing that:
2⇡ 2⇡ L 2⇡
= = h
Nx L Nx L
The discrete eigenvalues do not match the continuous eigenvalues!
1. 26
AE 410
The Modified Wave Number Analysis
The discrete eigenvalues do not match the continuous eigenvalues!
1. 27
AE 410
The Modified Wave Number Analysis
1. 28
AE 410
The Modified Wave Number Analysis
1. 29
AE 410
Fourier Analysis
d~u
= aM~u, ~u0 = u0 (~x)
dt
Nx
X
a mt
~u(t) = (w
~ 0 )m ~xm e
m=1
Nx
X
ikm ~
x a hi sin (km h)t
= (w
~ 0 )m e e
m=1
1. 30
AE 410
Fourier Analysis
Nx
X sin (km h)
ikm [~
x a t ]
= (w
~ 0 )m e km h
m=1 2 3
6 sin (km h) 7
6 7
ikm 6
6~x a t7
7
Nx 4 km h 5
X | {z }
= (w
~ 0 )m e a⇤
m=1
Nx
X
ikm [~
x a⇤ t]
= (w
~ 0 )m e
m=1
1. 31
AE 410
Numerical Phase Speed
Since a* is function of
the wavenumber the
numerical approximation
introduces dispersion.
1. 32
AE 410
The Modified Wave Number Analysis
d ⇤ d
(~u ~u) = ~ 0⇤ w
(w ~ 0) = 0
dt dt
NON-DISSIPATIVE
1. 33
AE 410
1. 34
AE 410
Numerical Solution of the ODE
1. 35
AE 410
What have we learned?
1. 36
AE 410