lecture 5 von neumann stability analysis - uliege.be...the wave equation. eˆ (k, tn) title...

14
1 1 Lecture 5 Von Neumann stability analysis Mathématiques appliquées (MATH0504-1) B. Dewals, C. Geuzaine 15/12/2020

Upload: others

Post on 04-Sep-2021

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Lecture 5 Von Neumann stability analysis - uliege.be...the wave equation. eˆ (k, tn) Title 05_VonNeumann Created Date 12/15/2020 10:46:26 AM

11

Lecture 5 Von Neumann stability analysisMathématiques appliquées (MATH0504-1)B. Dewals, C. Geuzaine

15/12/2020

Page 2: Lecture 5 Von Neumann stability analysis - uliege.be...the wave equation. eˆ (k, tn) Title 05_VonNeumann Created Date 12/15/2020 10:46:26 AM

2

Learning objectives of this lecture

Generalize the procedure used in the last lecture to determine the stability of finite difference schemes applied to the diffusion equation

Page 3: Lecture 5 Von Neumann stability analysis - uliege.be...the wave equation. eˆ (k, tn) Title 05_VonNeumann Created Date 12/15/2020 10:46:26 AM

3

Outline

Error modes and Fourier decomposition

Von Neuman stability analysis

Page 4: Lecture 5 Von Neumann stability analysis - uliege.be...the wave equation. eˆ (k, tn) Title 05_VonNeumann Created Date 12/15/2020 10:46:26 AM

44

1 – Error modes and Fourier decomposition

Page 5: Lecture 5 Von Neumann stability analysis - uliege.be...the wave equation. eˆ (k, tn) Title 05_VonNeumann Created Date 12/15/2020 10:46:26 AM

5

Introduction

We consider a linear PDE whose solution is approximated with a time-stepping finite difference scheme.The discretizations in space and time are assumed to be on regular grids xj (with index j), and tn (with index n), respectively, with

The approximation of the solution u on this grid is denoted by

u(x j, tn)⇠ unj

x j = jDx, tn = nDt

Page 6: Lecture 5 Von Neumann stability analysis - uliege.be...the wave equation. eˆ (k, tn) Title 05_VonNeumann Created Date 12/15/2020 10:46:26 AM

6

Evolution of the error

Let us consider that at time step 0, an error

appears in the solution, and let us assume that this error (function of the spatial variable x) is both integrable and square integrable.Since the PDE is linear, the time evolution of the initial error will be the same as the one of the solution for the homogeneous problem.

e(x, t0)

Page 7: Lecture 5 Von Neumann stability analysis - uliege.be...the wave equation. eˆ (k, tn) Title 05_VonNeumann Created Date 12/15/2020 10:46:26 AM

7

Example

For example, consider the transport equation

with the finite difference approximation

which leads to the difference equation:

ut +aux = f

ut ⇡un+1

j �unj

Dt, ux ⇡

unj+1 �un

j

Dx

Page 8: Lecture 5 Von Neumann stability analysis - uliege.be...the wave equation. eˆ (k, tn) Title 05_VonNeumann Created Date 12/15/2020 10:46:26 AM

8

Example

At step n+1 the error satisfies

i.e.

Page 9: Lecture 5 Von Neumann stability analysis - uliege.be...the wave equation. eˆ (k, tn) Title 05_VonNeumann Created Date 12/15/2020 10:46:26 AM

9

Stability

The finite difference scheme is said to be stable if the L2-norm (in space) of the error does not diverge with time, i.e. if there exists a real constant C such that

limn!•

||e(x, tn)||2 C||e(x, t0)||2

Page 10: Lecture 5 Von Neumann stability analysis - uliege.be...the wave equation. eˆ (k, tn) Title 05_VonNeumann Created Date 12/15/2020 10:46:26 AM

10

Sufficient condition

Using the spatial Fourier decomposition of the error (it exists because the error is integrable)

a sufficient condition for stability is that each mode does not diverge, i.e. that there exists a real constant C such that

limn!•

|e(k, tn)|2 C|e(k, t0)|2, 8k

e(x, tn) =Z

e(k, tn)eikxdk

Page 11: Lecture 5 Von Neumann stability analysis - uliege.be...the wave equation. eˆ (k, tn) Title 05_VonNeumann Created Date 12/15/2020 10:46:26 AM

11

Sufficient condition

Indeed, using Parseval’s identity:

(We assume uniform convergence with n of the suite so we can pass the limit under the integration sign.)

limn!•

||e(x, tn)||2 = limn!•

Z|e(k, tn)|2dk

CZ

|e(k, t0)|2dk

=C||e(x, t0)||2

e(k, tn)

Page 12: Lecture 5 Von Neumann stability analysis - uliege.be...the wave equation. eˆ (k, tn) Title 05_VonNeumann Created Date 12/15/2020 10:46:26 AM

1212

2 – Von Neumann stability analysis

Page 13: Lecture 5 Von Neumann stability analysis - uliege.be...the wave equation. eˆ (k, tn) Title 05_VonNeumann Created Date 12/15/2020 10:46:26 AM

13

Stability analysis procedure

By linearity of the equation, each error mode sampled on the spatial grid, defined as

can be studied individually. The procedure is thus:1. Inject in the difference equation2. Simplify the exponentials, which leads to a

(linear) recurrence relation for (usually simply denoted by ) with coefficients that depend on k

3. The scheme is stable if no mode diverges

ek(x j, tn)

e(k, tn)en

ek(x j, tn) = e(k, tn)eikx j

Page 14: Lecture 5 Von Neumann stability analysis - uliege.be...the wave equation. eˆ (k, tn) Title 05_VonNeumann Created Date 12/15/2020 10:46:26 AM

14

Take-home message

This Von Neumann stability analysis generalizes the procedure that we applied in the last lecture for the diffusion equation. The solution of the recurrence relation for will involve the amplification factors: if the modulus of any of these amplification factors is greater than one, the scheme diverges.Next, we will apply this general stability analysis to the wave equation.

e(k, tn)