modeling)ii)) linear)stability)analysis) and...

38
Modeling II Linear Stability Analysis and Wave Equa9ons

Upload: others

Post on 12-Nov-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Modeling)II)) Linear)Stability)Analysis) and WaveEquaonspeople.bu.edu/andasari/courses/Fall2015/LectureNotes/...• Max real part (blue line) of eigenvalues is 0.25 • It means that

Modeling  II    Linear  Stability  Analysis  

and    Wave  Equa9ons  

Page 2: Modeling)II)) Linear)Stability)Analysis) and WaveEquaonspeople.bu.edu/andasari/courses/Fall2015/LectureNotes/...• Max real part (blue line) of eigenvalues is 0.25 • It means that

Nondimensional  Equa9ons  From previous lecture, we have a system of nondimensional PDEs:

(21.1)

(21.2)

(21.3)

where here the “*” sign has been dropped for convenience.

Page 3: Modeling)II)) Linear)Stability)Analysis) and WaveEquaonspeople.bu.edu/andasari/courses/Fall2015/LectureNotes/...• Max real part (blue line) of eigenvalues is 0.25 • It means that

Parameters  The parameter values:

Initial conditions:

Boundary conditions: zero-flux on all boundaries.

Page 4: Modeling)II)) Linear)Stability)Analysis) and WaveEquaonspeople.bu.edu/andasari/courses/Fall2015/LectureNotes/...• Max real part (blue line) of eigenvalues is 0.25 • It means that

Homogeneous  Steady  States  

leaving

A homogeneous steady state of a PDE model is a solution that is constant in space in time. For equations (21.1), (21.2), and (21.3) we take

(21.4)

(21.5)

(21.6)

Page 5: Modeling)II)) Linear)Stability)Analysis) and WaveEquaonspeople.bu.edu/andasari/courses/Fall2015/LectureNotes/...• Max real part (blue line) of eigenvalues is 0.25 • It means that

Homogeneous  Steady  States  

Hence, there are four possible steady state points:

Possibilities of steady state points:

(21.7)

Page 6: Modeling)II)) Linear)Stability)Analysis) and WaveEquaonspeople.bu.edu/andasari/courses/Fall2015/LectureNotes/...• Max real part (blue line) of eigenvalues is 0.25 • It means that

Inhomogeneous  Perturba9ons  

•  It is of interest to determine whether or not the steady states are stable.

•  We analyze stability properties by considering the effect of small perturbations.

•  To do this, we must look at spatially non-uniform (also called inhomogeneous) perturbations and explore whether they are amplified or attenuated.

•  If an amplification occurs, then a situation close to the spatially uniform steady state will destabilize, leading to some new state in which spatial variations predominate.

Page 7: Modeling)II)) Linear)Stability)Analysis) and WaveEquaonspeople.bu.edu/andasari/courses/Fall2015/LectureNotes/...• Max real part (blue line) of eigenvalues is 0.25 • It means that

Inhomogeneous  Perturba9ons  We take the distributions of the variables

where are small.

Using the facts that are constants and uniform, the temporal and spatial derivatives give

Page 8: Modeling)II)) Linear)Stability)Analysis) and WaveEquaonspeople.bu.edu/andasari/courses/Fall2015/LectureNotes/...• Max real part (blue line) of eigenvalues is 0.25 • It means that

Inhomogeneous  Perturba9ons  The second-order spatial derivatives:

For taxis terms: (21.8)

Page 9: Modeling)II)) Linear)Stability)Analysis) and WaveEquaonspeople.bu.edu/andasari/courses/Fall2015/LectureNotes/...• Max real part (blue line) of eigenvalues is 0.25 • It means that

Inhomogeneous  Perturba9ons  The terms

are quadratic in the perturbations or their derivatives and consequently are of smaller magnitude than other terms, thus they can be omitted, leaving

and, similarly

(21.9)

(21.10)

Page 10: Modeling)II)) Linear)Stability)Analysis) and WaveEquaonspeople.bu.edu/andasari/courses/Fall2015/LectureNotes/...• Max real part (blue line) of eigenvalues is 0.25 • It means that

Inhomogeneous  Perturba9ons  And for the reaction terms:

Page 11: Modeling)II)) Linear)Stability)Analysis) and WaveEquaonspeople.bu.edu/andasari/courses/Fall2015/LectureNotes/...• Max real part (blue line) of eigenvalues is 0.25 • It means that

Inhomogeneous  Perturba9ons  Combining all together we rewrite the approximate linearized equations of (21.1) – (21.3) as

which are linear in the quantities

(21.11)

(21.12)

(21.13)

Page 12: Modeling)II)) Linear)Stability)Analysis) and WaveEquaonspeople.bu.edu/andasari/courses/Fall2015/LectureNotes/...• Max real part (blue line) of eigenvalues is 0.25 • It means that

Finding  Eigenvalues  We find eigenvalues by setting the equations (21.11), (21.12), and (21.13) to have no spatial variations, or

Then let

(21.14)

(21.15)

(21.16)

Page 13: Modeling)II)) Linear)Stability)Analysis) and WaveEquaonspeople.bu.edu/andasari/courses/Fall2015/LectureNotes/...• Max real part (blue line) of eigenvalues is 0.25 • It means that

Finding  Eigenvalues  Differentiating with respect to gives us a Jacobian matrix of the reaction terms:

Eigenvalues are obtained by taking (21.17)

(21.18)

Page 14: Modeling)II)) Linear)Stability)Analysis) and WaveEquaonspeople.bu.edu/andasari/courses/Fall2015/LectureNotes/...• Max real part (blue line) of eigenvalues is 0.25 • It means that

Stability  of  the  Steady  States  Steady states in (21.7) are linearly stable if Re λ < 0 since in this case the perturbations go to zero as time goes to infinity.

Using the parameter values given and substituting into (21.18), we obtain the stability of the steady state:

gives 2 λs > 0 and 1 λ < 0 : unstable

gives 1 λ > 0 and 2 λs < 0 : unstable

gives 3s λ < 0 : stable

gives 1 λ > 0 and 2 λs < 0 : unstable

Page 15: Modeling)II)) Linear)Stability)Analysis) and WaveEquaonspeople.bu.edu/andasari/courses/Fall2015/LectureNotes/...• Max real part (blue line) of eigenvalues is 0.25 • It means that

Dispersion  Rela9on  Now we consider the full equations (21.11) – (21.13) and differentiate with respect to the second-order spatial derivatives

to get the transport Jacobian

(21.19)

Page 16: Modeling)II)) Linear)Stability)Analysis) and WaveEquaonspeople.bu.edu/andasari/courses/Fall2015/LectureNotes/...• Max real part (blue line) of eigenvalues is 0.25 • It means that

Dispersion  Rela9on  The linearized system of equations (21.11) – (21.13) can now be represented in a compact form

to be solved in a domain with zero-flux boundary conditions

where

(21.20)

(21.21)

Page 17: Modeling)II)) Linear)Stability)Analysis) and WaveEquaonspeople.bu.edu/andasari/courses/Fall2015/LectureNotes/...• Max real part (blue line) of eigenvalues is 0.25 • It means that

Dispersion  Rela9on  To solve the system of equations in (21.20) subject to the boundary conditions, we first define W(r) to be the time-independent solution of the spatial eigenvalue problem, defined by

where k is the eigenvalue. For example, if the domain is 1D, say , then

where n is an integer. This satisfies zero-flux boundary conditions at x = 0 and x = L.

(21.22)

Page 18: Modeling)II)) Linear)Stability)Analysis) and WaveEquaonspeople.bu.edu/andasari/courses/Fall2015/LectureNotes/...• Max real part (blue line) of eigenvalues is 0.25 • It means that

Dispersion  Rela9on  The eigenvalue in this case is

So

We shall refer to k in this context as the wavenumber.

is a measure of the wavelike pattern: the eigenvalue k is called the wavenumber and 1/k is proportional to the wavelength ω:

Page 19: Modeling)II)) Linear)Stability)Analysis) and WaveEquaonspeople.bu.edu/andasari/courses/Fall2015/LectureNotes/...• Max real part (blue line) of eigenvalues is 0.25 • It means that

Dispersion  Rela9on  With finite domains there is a discrete set of possible wavenumbers since n is an integer.

We now look for solutions of (21.20) in the form

Substituting (21.23) into (21.20) with (21.21) and canceling we get, for each k,

(21.23)

Page 20: Modeling)II)) Linear)Stability)Analysis) and WaveEquaonspeople.bu.edu/andasari/courses/Fall2015/LectureNotes/...• Max real part (blue line) of eigenvalues is 0.25 • It means that

Dispersion  Rela9on  We require nontrivial solutions for Wk so the now the λ are determined by the roots of

Evaluating the determinant with JT and JR we get the eigenvalues λ(k) as functions of the wavenumber k.

(21.24)

Page 21: Modeling)II)) Linear)Stability)Analysis) and WaveEquaonspeople.bu.edu/andasari/courses/Fall2015/LectureNotes/...• Max real part (blue line) of eigenvalues is 0.25 • It means that

Dispersion  Rela9on  Dispersion relation from steady state (0,0,0)

•  Max real part (blue line) of eigenvalues is 0.25

•  It means that the perturbation grows with time.

•  Imaginary part (red line) is zero.

•  With the max real part, there are a range of k where the eigenvalues are positive.

k

λ(k)

Page 22: Modeling)II)) Linear)Stability)Analysis) and WaveEquaonspeople.bu.edu/andasari/courses/Fall2015/LectureNotes/...• Max real part (blue line) of eigenvalues is 0.25 • It means that

Dispersion  Rela9on  Dispersion relation from steady state (0,1,0)

•  Max real part (blue line) of eigenvalues is 0.25.

•  The perturbation grows with time.

•  Imaginary part (red line) is zero.

•  There are a range of k (between k=0 and k⋍30) where the eigenvalues are positive.

k

λ(k)

Page 23: Modeling)II)) Linear)Stability)Analysis) and WaveEquaonspeople.bu.edu/andasari/courses/Fall2015/LectureNotes/...• Max real part (blue line) of eigenvalues is 0.25 • It means that

Dispersion  Rela9on  Dispersion relation from steady state

•  Max real part (blue line) of eigenvalues is -0.0477.

•  The perturbation is damped away.

•  Imaginary part (red line) is zero.

k

λ(k)

Page 24: Modeling)II)) Linear)Stability)Analysis) and WaveEquaonspeople.bu.edu/andasari/courses/Fall2015/LectureNotes/...• Max real part (blue line) of eigenvalues is 0.25 • It means that

Dispersion  Rela9on  Dispersion relation from steady state

•  Max real part (blue line) of eigenvalues is 3.725.

•  Max imaginary part (red line) is 2.1374.

•  The perturbations grows with time.

•  Imaginary part creates oscillating solutions.

k

λ(k)

Page 25: Modeling)II)) Linear)Stability)Analysis) and WaveEquaonspeople.bu.edu/andasari/courses/Fall2015/LectureNotes/...• Max real part (blue line) of eigenvalues is 0.25 • It means that

Simula9on  Results  

Page 26: Modeling)II)) Linear)Stability)Analysis) and WaveEquaonspeople.bu.edu/andasari/courses/Fall2015/LectureNotes/...• Max real part (blue line) of eigenvalues is 0.25 • It means that

1D  Wave  Equa9ons  An example of a hyperbolic PDE is a 1D wave equation for the amplitude function u(x,t) as In order for this equation to be solvable, the following should be provided:

- boundary conditions at x = xmin and at x = xmax - initial condition u(x,0) = f0 - initial velocity ut(x,0) = v0

(21.25)

Page 27: Modeling)II)) Linear)Stability)Analysis) and WaveEquaonspeople.bu.edu/andasari/courses/Fall2015/LectureNotes/...• Max real part (blue line) of eigenvalues is 0.25 • It means that

1D  Wave  Equa9ons  We replace the second derivatives on both sides by their three-point finite central difference approximation as Multiplying both sides by ∆t2 gives From which we solve for Ui,k+1:

(21.26)

Page 28: Modeling)II)) Linear)Stability)Analysis) and WaveEquaonspeople.bu.edu/andasari/courses/Fall2015/LectureNotes/...• Max real part (blue line) of eigenvalues is 0.25 • It means that

1D  Wave  Equa9ons  where From equation (21.26), if k = 0: where Ui,−1 is not given. Therefore, we approximate the initial condition on the derivative (initial velocity) by the central difference as

(21.27)

Page 29: Modeling)II)) Linear)Stability)Analysis) and WaveEquaonspeople.bu.edu/andasari/courses/Fall2015/LectureNotes/...• Max real part (blue line) of eigenvalues is 0.25 • It means that

1D  Wave  Equa9ons  or and make use of this to remove Ui,−1 from equation (21.26) Equating the terms with Ui,1 yields or rewrite

(21.28)

Page 30: Modeling)II)) Linear)Stability)Analysis) and WaveEquaonspeople.bu.edu/andasari/courses/Fall2015/LectureNotes/...• Max real part (blue line) of eigenvalues is 0.25 • It means that

1D  Wave  Equa9ons  We use equation (21.28) together with the initial conditions to get Ui,1 and then go on with equation (21.26) for k = 1, 2, … The following must be taken into account:

- To guarantee stability, r ≤ 1 - The accuracy of the solution gets better as r becomes larger so that ∆x decreases.

The stability condition can be obtained by substituting

into equation (21.26) and applying the Jury test:

Page 31: Modeling)II)) Linear)Stability)Analysis) and WaveEquaonspeople.bu.edu/andasari/courses/Fall2015/LectureNotes/...• Max real part (blue line) of eigenvalues is 0.25 • It means that

1D  Wave  Equa9ons  to get or We need the solution of this equation to be inside the unit circle for stability, which requires:

Page 32: Modeling)II)) Linear)Stability)Analysis) and WaveEquaonspeople.bu.edu/andasari/courses/Fall2015/LectureNotes/...• Max real part (blue line) of eigenvalues is 0.25 • It means that

Exercise  1  Solve the following 1D wave equation:

over the spatial domain 0 ≤ x ≤ 1 and within time interval 0 ≤ t ≤ 8, with

- at x = 0: u(0, t) = 0 - at x = 1: u(1, t) = 0 - at t = 0: u(x, 0) = x(1 – x)

- at t = 0:

Page 33: Modeling)II)) Linear)Stability)Analysis) and WaveEquaonspeople.bu.edu/andasari/courses/Fall2015/LectureNotes/...• Max real part (blue line) of eigenvalues is 0.25 • It means that

2D  Wave  Equa9ons  For 2D wave equations such as In the same fashion as 1D equations, we apply three-point central difference approximation for the 2D equation:

(21.29)

Page 34: Modeling)II)) Linear)Stability)Analysis) and WaveEquaonspeople.bu.edu/andasari/courses/Fall2015/LectureNotes/...• Max real part (blue line) of eigenvalues is 0.25 • It means that

2D  Wave  Equa9ons  which leads to the explicit central difference method: with Since is not given when k = 0, we approximate the initial condition on the derivative (initial velocity) by the central difference, giving:

(21.30)

Page 35: Modeling)II)) Linear)Stability)Analysis) and WaveEquaonspeople.bu.edu/andasari/courses/Fall2015/LectureNotes/...• Max real part (blue line) of eigenvalues is 0.25 • It means that

2D  Wave  Equa9ons  and make use of this to remove from equation (21.30) to get or, rearrange:

(21.31)

Page 36: Modeling)II)) Linear)Stability)Analysis) and WaveEquaonspeople.bu.edu/andasari/courses/Fall2015/LectureNotes/...• Max real part (blue line) of eigenvalues is 0.25 • It means that

2D  Wave  Equa9ons  Stability for approximation equation (21.31) is guaranteed if and only if:

Page 37: Modeling)II)) Linear)Stability)Analysis) and WaveEquaonspeople.bu.edu/andasari/courses/Fall2015/LectureNotes/...• Max real part (blue line) of eigenvalues is 0.25 • It means that

Exercise  2  Solve the following 2D wave equation:

over the spatial domain 0 ≤ x ≤ 2, 0 ≤ y ≤ 2, and within time interval 0 ≤ t ≤ 8, with

- at x = 0 and y = 0: u(0, y, t) = 0 and u(x, 0, t) = 0 - at x = 2 and y = 2: u(2, y, t) = 0 and u(x, 2, t) = 0 - at t = 0: u(x, y, 0) = 0.1*sin(πx)*sin(πy/2)

- at t = 0:

Page 38: Modeling)II)) Linear)Stability)Analysis) and WaveEquaonspeople.bu.edu/andasari/courses/Fall2015/LectureNotes/...• Max real part (blue line) of eigenvalues is 0.25 • It means that

References  (1) Mathematical Biology II: Spatial Models and Biomedical

Applications, J.D. Murray, Springer, Third Edition. (2) Applied Numerical Methods Using MATLAB, Yang

Chao Chung and Morris.