Professional Documents
Culture Documents
Tema8 MOL 2021
Tema8 MOL 2021
Introduction
1 Introduction
Basic MOL
2 Basic MOL
Basic Stability
Introduction 1 Introduction
Basic MOL
2 Basic MOL
Basic Stability
Examples
The Advection equation
Example 1:
Advection equation
ut = −νux
Example 2:
Advection-Diffusion
equation The Advection-Diffusion equation (heat equation is the particular case
Example 3:
Advection-
Diffusion-Reaction
ν = 0)
equation
ut = −νux + αuxx
MOL Stability
Linear Differential
Systems The Advection-Diffusion-Reaction equation
Numerical methods
for Systems
MOL
ut = −νux + αuxx + r(u)
In this unit MOL is applied to parabolic problems but also works solving
hyperbolic problems in a similar way
Grado en I. Aeroespacial Tema 8: The Method of Lines (MOL) Apuntes 4/42
Index
Introduction 1 Introduction
Basic MOL
2 Basic MOL
Basic Stability
Examples
Example 1:
Advection equation
Example 2:
Advection-Diffusion
equation
Example 3:
Advection-
Diffusion-Reaction
equation
MOL Stability
Linear Differential
Systems
Numerical methods
for Systems
MOL
The colored strip is the domain on which the PDE is defined. MOL
approximations are defined along the dashed lines (xi , t)
Grado en I. Aeroespacial Tema 8: The Method of Lines (MOL) Apuntes 7/42
Basic MOL
Index MOL proceeds as follows:
Introduction
The PDE holds at each grid point, thus
Basic MOL
Introduction
Basic MOL
Adding IC and BC information we get a semi-discrete system of first
Basic Stability
order ODEs
Examples
−ν
Example 1:
0 ν
Advection equation
Example 2: u1 = ∆x−ν
u1 + ∆x u0 (t) u1 (0) = f (x1 )
Advection-Diffusion u0 =
(u2 − u1) u2 (0) = f (x2 )
equation 2 ∆x
Example 3:
Advection- ..
Diffusion-Reaction
equation
.
0 −ν
MOL Stability um = ∆x (um − um−1 ) um (0) = f (xm )
Linear Differential
Systems
Numerical methods
for Systems
Integrate the system using one of the methods reviewed in Unit 5, for
MOL
example Euler’s method.
Introduction 1 Introduction
Basic MOL
2 Basic MOL
Basic Stability
Examples
MOL for the Advection equation
Example 1:
Advection equation
Example 2:
Advection-Diffusion
BD space discretization for ux + Explicit Euler is stable if
equation
Example 3:
Advection- ∆x
Diffusion-Reaction
equation M t ≤ ∆tmax =
ν
MOL Stability
Linear Differential
Systems CD space discretization for ux + Leap-Frog is stable if
Numerical methods
for Systems
MOL
∆x
∆t ≤ ∆tmax =
ν
FD is unstable in any case
Grado en I. Aeroespacial Tema 8: The Method of Lines (MOL) Apuntes 12/42
Basic Stability
Index MOL for the Advection-Diffusion equation
Introduction
Basic MOL
BD for ux and CD for uxx + Explicit Euler is stable if
Basic Stability
Examples 1
Example 1: ∆t ≤ ∆tmax = ν 2α
Advection equation
Example 2: ∆x + (∆x)2
Advection-Diffusion
equation
Example 3:
Advection-
Diffusion-Reaction
equation MOL for the Advection-Diffusion-Reaction equation
MOL Stability
Linear Differential
Systems
Numerical methods
BD for ux and CD for uxx + Explicit Euler is stable if
for Systems
MOL
1
∆t ≤ ∆tmax = ν 2α β
∆x + (∆x)2
− 2
Introduction
Basic MOL
Basic Stability
Examples Other MOL schemes are stable for ∆t and ∆x good enough. Nevertheless,
Example 1:
Advection equation there are not general rules, each concrete equation and each combination
Example 2:
Advection-Diffusion
equation
is different.
Example 3:
Advection-
Diffusion-Reaction
equation Some examples are simulated in the next section and stability concepts
MOL Stability
Linear Differential
will be describe in detail at the end of this lesson
Systems
Numerical methods
for Systems
MOL
Introduction 1 Introduction
Basic MOL
2 Basic MOL
Basic Stability
MOL Stability
Linear Differential
where ∆x = 1/m is the space step size. We can numerically solve this
Systems
Numerical methods system with Euler’s method with certain ∆t.
for Systems
MOL
If ∆x, ∆t are small enough and the method is stable, the numerical
solution should be close to the analytical solution (see next figure ).
Introduction
Basic MOL
Basic Stability
Examples
Example 1:
Advection equation
Example 2:
Advection-Diffusion
equation
Example 3:
Advection-
Diffusion-Reaction
equation
MOL Stability
Linear Differential
Systems
Numerical methods
for Systems
MOL
Introduction
Basic MOL
Basic Stability
Next graphics show numerical results solving example 1 using 2-point
Examples
Example 1: Backward Differences for space-discretization and explicit Euler method
Advection equation
Example 2:
Advection-Diffusion
for time integration. The plotted times are t = 0, 0,25, 0,5 (MATLAB)
equation
Example 3:
Advection-
Diffusion-Reaction
equation
Matlab simulation graphs were extracted from: Wouwer A.V., Sauez P.
MOL Stability and Vilas C. Simulation of ODE/PDE Models with MATLAB, OCTAVE
Linear Differential
Systems and SCILAB. Springer (eBook)
Numerical methods
for Systems
MOL
Introduction
Basic MOL
Introduction
MOL Stability
Linear Differential
Systems
Numerical result is sta-
Numerical methods
for Systems ble but not accurate
MOL
(wave attenuates)
Introduction
Basic MOL
Basic Stability
Numerical solution for
Examples ∆t = 1, 05∆x/ν >
Example 1:
Advection equation ∆tmax using 2-point BD
Example 2:
Advection-Diffusion
equation
for space-discretization
Example 3:
Advection-
and Euler for time inte-
Diffusion-Reaction
equation gration.
MOL Stability
Linear Differential
Systems
Numerical methods
Numerical result is uns-
for Systems
MOL table
Introduction
Introduction
ui (t) denotes u(xi , t), u0 (t) = u(x0 , t) = 0 and um (t) = u(xm , t) = 0.
Basic MOL
The semi-discrete system obtained has (m − 1) unknowns for
Basic Stability
i = 1, 2, . . . (m − 1). Each equation is
Examples
Example 1:
Advection equation
−1 0, 005
Example 2:
Advection-Diffusion u0i = (ui − ui−1 ) + (ui+1 − 2ui + ui−1 )
equation ∆x ∆x2
Example 3:
Advection-
Diffusion-Reaction
equation with initial condition ui (0) = f (xi )
MOL Stability If Explicit Euler is applied to integrate the system, then, stability
Linear Differential
Systems
Numerical methods
requirement is
for Systems 1
MOL ∆t ≤ ∆tmax = 1 0,01
∆x + ∆x2
MOL Stability
explicit Euler method
Linear Differential
Systems
and ∆t = ∆tmax .
Numerical methods
for Systems
MOL
Numerical result is ex-
cellent
MOL Stability
explicit Euler method
Linear Differential
Systems
and ∆t = 0, 1∆tmax .
Numerical methods
for Systems
MOL
Numerical result is sa-
tisfactory
MOL Stability
explicit Euler method
Linear Differential
Systems
and ∆t = 1, 0027∆tmax .
Numerical methods
for Systems
MOL
Numerical result is uns-
table
1
∆t ≤ ∆tmax = 1 0,01 5
∆x + ∆x2
+ 2
MOL Stability
explicit Euler method
Linear Differential
Systems
and ∆t = ∆tmax .
Numerical methods
for Systems
MOL
Numerical result is ex-
cellent
MOL Stability
explicit Euler method
Linear Differential
Systems
and ∆t = 0, 1∆tmax .
Numerical methods
for Systems
MOL
Numerical result is sa-
tisfactory
MOL Stability
explicit Euler method
Linear Differential
Systems
and ∆t = 1, 0027∆tmax .
Numerical methods
for Systems
MOL
Numerical result is uns-
table
Introduction 1 Introduction
Basic MOL
2 Basic MOL
Basic Stability
Introduction 1 Introduction
Basic MOL
2 Basic MOL
Basic Stability
Basic Stability We say a solution u(t) is stable if ∀ > 0 there exists δ > 0 s.t. if u? (t) is
Examples other solution s.t ku(0) − u? (0)k < δ, then
Example 1:
Advection equation
Example 2:
Advection-Diffusion
ku(t) − u? (t)k < ∀t ≥ 0
equation
Example 3:
Advection-
Diffusion-Reaction
We say u(t) is asymptotically stable if ku(t) − u? (t)k tends to zero when t
equation
increases. We say the linear differential system is stable if all its solutions
MOL Stability
Linear Differential are asymptotically stable.
Systems
Numerical methods
for Systems Stability Criteria for Linear Differential Systems
MOL
Examples
where A is an m × m constant matrix.. For simplicity, assume A is
Example 1:
Advection equation
diagonalizable, i.e., there exists D = diag(λ1 , λ2 , . . . , λm ) diagonal matrix
Example 2:
Advection-Diffusion
and P invertible s.t.
equation
Example 3:
Advection-
Diffusion-Reaction
equation
A = P DP −1 ⇒ P −1 AP = D
MOL Stability
Linear Differential
Systems
Let v(t) = P −1 u(t), thus P −1 u0 (t) = P −1 Au(t) ⇒ v 0 (t) = Dv(t) It
Numerical methods
for Systems
decouples into m independent equations
MOL
Introduction
Basic MOL
All that equations are of test type
Basic Stability
Examples
The integration method for the whole system also decouples into the
Example 1:
Advection equation
application of the method to each equation
Example 2:
Advection-Diffusion
equation
For the overall method to be stable, each of the decoupled problem must
Example 3:
Advection-
be stable
Diffusion-Reaction
equation
Introduction 1 Introduction
Basic MOL
2 Basic MOL
Basic Stability
We analyse stability for the first case (BD formula). Other cases are left as
exercises
Grado en I. Aeroespacial Tema 8: The Method of Lines (MOL) Apuntes 41/42
Example: advection equation. Step 2 and 3
Index Considering BD approximation to ux (details at class):
Introduction
ν 2π(k − 1) 2π(k − 1)
Basic MOL λk = cos − 1 − sin i
∆x m m
Basic Stability
Examples Thus all eigenvalues are in the left half complex plane (only λ1 = 0 has
Example 1:
Advection equation null real part). Solutions are stable
Example 2:
Advection-Diffusion
equation
Example 3:
Advection- Finally, step 3 imposes λk ∆t must be inside the stability region of the
Diffusion-Reaction
equation numerical time integration method. If we denote α = (2π(k − 1))/m, then
MOL Stability
Linear Differential ν∆t
Systems λk ∆t = [(cos(α) − 1) + i sin (α)]
Numerical methods
for Systems
∆x
MOL
are in a circle of radius ν∆t/∆x and center (−ν∆t/∆x, 0). If Euler’s
(explicit) method is applied, stability requirement is
ν∆t ∆x
≤ 1 ⇔ ∆t ≤
∆x ν
Grado en I. Aeroespacial Tema 8: The Method of Lines (MOL) Apuntes 42/42