Skip to article frontmatterSkip to article content

Absolute stability

The CFL criterion gives a necessary condition for convergence. It suggests, but cannot confirm, that a step size of O(h)O(h) may be adequate in the advection equation. More details emerge when we adopt the semidiscretization point of view.

Let the advection equation (12.2.1) over [0,1][0,1] be subjected to periodic end conditions. Suppose we use the central-difference matrix Dx\mathbf{D}_x defined in (12.1.7) to discretize the space derivative, leaving us with

u=cDxu.\mathbf{u}' = -c \mathbf{D}_x \mathbf{u}.

To apply an IVP solver, we need to compare the stability region of the solver with the eigenvalues of cDx-c \mathbf{D}_x, as in Absolute stability. You can verify (see Exercise 1) that for mm points in [0,1)[0,1), these are

λk=icmsin(2πkm),k=0,,m1. \lambda_k = - i\, c m \sin \left( \frac{2\pi k}{m} \right), \qquad k = 0,\ldots,m-1.

Two things stand out about these eigenvalues: they are purely imaginary, which is consistent with conservation of magnitude, and they extend no farther than O(m)=O(h1)O(m)=O(h^{-1}) away from the origin. These characteristics suggest how to analyze the use of different time-stepping methods by referring to stability regions.

Many PDEs that conserve quantities will have imaginary eigenvalues, causing Euler and some other IVP methods to fail regardless of step size. Diffusion problems, in which the eigenvalues are negative and real, are compatible with a wider range of integrators, though possibly with onerous step size requirements due to stiffness.

The location of eigenvalues near ±ic/h\pm ic/h also confirms what the CFL condition was suggesting. In order to use RK4, for example, whose stability region intersects the imaginary axis at around ±2.8i\pm 2.8i, the time step stability restriction is τc/h2.8\tau c/h \le 2.8, or τ=O(h)\tau=O(h). This is much more favorable than for diffusion, whose eigenvalues were as large as O(h2)O(h^{-2}), and it makes explicit IVP methods much more attractive for advection problems than for diffusion.

12.3.1Advection–diffusion equations

The traffic flow equation (12.1.4) combines a nonlinear advection with a diffusion term. The simplest linear problem with the same feature is the advection–diffusion equation

ut+cux=ϵuxx.u_t+c u_x=\epsilon u_{xx}.

The parameter ε controls the relative strength between the two mechanisms, and the eigenvalues accordingly vary between the purely imaginary ones of advection and the negative real ones of diffusion.

In a nonlinear problem, the eigenvalues come from the linearization about an exact solution, as in Stiffness.

12.3.2Boundary effects

Boundary conditions can have a dramatic effect on the eigenvalues of the semidiscretization. For instance, Demo 12.2.6 solves linear advection ut=uxu_t=u_x on [0,1][0,1] with the homogeneous inflow condition u(0,t)=0u(0,t)=0. Exclusion of the boundary node from the semidiscretization u\mathbf{u} to get the interior vector v\mathbf{v} is equivalent to

v=Eu,u=[v0]=ETv,\mathbf{v} = \mathbf{E} \mathbf{u}, \quad \mathbf{u} = \begin{bmatrix} \mathbf{v} \\ 0 \end{bmatrix} = \mathbf{E}^T \mathbf{v},

where E\mathbf{E} is the (m+1)×(m+1)(m+1)\times (m+1) identity with the last row deleted. The ODE on the interior nodes is

dvdt=E(Dxu)=EDxETv.\frac{d\mathbf{v}}{dt} = \mathbf{E} \left( \mathbf{D}_x \mathbf{u} \right) = \mathbf{E} \mathbf{D}_x \mathbf{E}^T \mathbf{v}.

As a result, we conclude that A=EDxET\mathbf{A} = \mathbf{E} \mathbf{D}_x \mathbf{E}^T is the appropriate matrix for determining the eigenvalues of the semidiscretization. More simply, we can simply delete the last row and last column from Dx\mathbf{D}_x.

12.3.3Exercises

  1. ✍ Let Dx\mathbf{D}_{x} be m×mm\times m and given by (12.2.2). For any integer k{0,,m1}k \in \{0,\ldots,m-1\}, define ω=exp(2ikπ/m)\omega = \exp(2ik\pi/m) and v=[1,  ω,  ω2,  ,  ωm1].\mathbf{v} = \bigl[ 1,\; \omega,\; \omega^2,\; \ldots,\; \omega^{m-1} \bigr]. Show that v\mathbf{v} is an eigenvector of Dx\mathbf{D}_{x}, with eigenvalue

    λ=imsin2kπm.\lambda = i\, m \sin \frac{2k\pi}{m}.

    (See also Exercise 11.3.7.)

  2. ⌨ Refer to the semidiscretization of the advection–diffusion equation on x[0,1]x\in[0,1] with c=1c=1, ϵ=0.01\epsilon=0.01, and periodic end conditions in Demo 12.3.2. For m=100m=100, find the upper bound on τ that gives absolute stability for Euler time stepping. (Hint: The stability region of Euler is the set of complex values whose distance from -1 is less than or equal to one. The effect of τ is to uniformly scale that distance for the eigenvalues.)

  3. ⌨ Refer to the semidiscretization in Demo 12.3.3. Find the upper bound on τ that gives absolute stability for Euler time stepping. (See the hint in the previous exercise.)

  4. ⌨ Modify Demo 12.3.3 so that it produces the eigenvalues of the problem ut+ux=0u_t+u_x=0 with an outflow condition u(1,t)=0u(1,t)=0. What is the behavior of solutions as tt\to\infty?