Von Neumann stability analysis
In numerical analysis, von Neumann stability analysis (also known as Fourier stability analysis) is a procedure used to check the stability of finite difference schemes as applied to linear partial differential equations.[1] The analysis is based on the Fourier decomposition of numerical error and was developed at Los Alamos National Laboratory after having been briefly described in a 1947 article by British researchers Crank and Nicolson.[2] This method is an example of explicit time integration where the function that defines governing equation is evaluated at the current time. Later, the method was given a more rigorous treatment in an article[3] co-authored by John von Neumann.
Numerical stability
The stability of numerical schemes is closely associated with numerical error. A finite difference scheme is stable if the errors made at one time step of the calculation do not cause the errors to be magnified as the computations are continued. A neutrally stable scheme is one in which errors remain constant as the computations are carried forward. If the errors decay and eventually damp out, the numerical scheme is said to be stable. If, on the contrary, the errors grow with time the numerical scheme is said to be unstable. The stability of numerical schemes can be investigated by performing von Neumann stability analysis. For time-dependent problems, stability guarantees that the numerical method produces a bounded solution whenever the solution of the exact differential equation is bounded. Stability, in general, can be difficult to investigate, especially when the equation under consideration is nonlinear.
In certain cases, von Neumann stability is necessary and sufficient for stability in the sense of Lax–Richtmyer (as used in the Lax equivalence theorem): The PDE and the finite difference scheme models are linear; the PDE is constant-coefficient with periodic boundary conditions and has only two independent variables; and the scheme uses no more than two time levels.[4] Von Neumann stability is necessary in a much wider variety of cases. It is often used in place of a more detailed stability analysis to provide a good guess at the restrictions (if any) on the step sizes used in the scheme because of its relative simplicity.
Illustration of the method
The von Neumann method is based on the decomposition of the errors into Fourier series. To illustrate the procedure, consider the one-dimensional heat equation [math]\displaystyle{ \frac{\partial u}{\partial t} = \alpha \frac{\partial^2 u}{\partial x^2} }[/math] defined on the spatial interval [math]\displaystyle{ L }[/math], with the notation [math]\displaystyle{ u_j^n = u(x_j,t^n) }[/math]
We can discretize the heat equation[5] as
[math]\displaystyle{ u_j^{n + 1} = u_j^n + r \left(u_{j + 1}^n - 2 u_j^n + u_{j - 1}^n \right) }[/math] |
|
( ) |
where [math]\displaystyle{ r = \frac{\alpha\, \Delta t}{\left( \Delta x \right)^2} }[/math]
Then the solution [math]\displaystyle{ u_j^{n} }[/math] of the discrete equation approximates the analytical solution [math]\displaystyle{ u(x,t) }[/math] of the PDE on the grid.
Define the round-off error [math]\displaystyle{ \epsilon_j^n }[/math] as [math]\displaystyle{ \epsilon_j^n = N_j^n - u_j^n }[/math] where [math]\displaystyle{ u_j^n }[/math] is the solution of the discretized equation (1) that would be computed in the absence of round-off error, and [math]\displaystyle{ N_j^n }[/math] is the numerical solution obtained in finite precision arithmetic. Since the exact solution [math]\displaystyle{ u_j^n }[/math] must satisfy the discretized equation exactly, the error [math]\displaystyle{ \epsilon_j^n }[/math] must also satisfy the discretized equation.[6] Here we assumed that [math]\displaystyle{ N_j^n }[/math] satisfies the equation, too (this is only true in machine precision). Thus
[math]\displaystyle{ \epsilon_j^{n + 1} = \epsilon_j^n + r \left(\epsilon_{j + 1}^n - 2 \epsilon_j^n + \epsilon_{j - 1}^n \right) }[/math] |
|
( ) |
is a recurrence relation for the error. Equations (1) and (2) show that both the error and the numerical solution have the same growth or decay behavior with respect to time. For linear differential equations with periodic boundary condition, the spatial variation of error may be expanded in a finite Fourier series with respect to [math]\displaystyle{ x }[/math], in the interval [math]\displaystyle{ L }[/math], as
[math]\displaystyle{ \epsilon(x,t) = \sum_{m=-M}^{M} E_m(t) e^{{ i} k_m x} }[/math] |
|
( ) |
where the wavenumber [math]\displaystyle{ k_m = \frac{\pi m}{L} }[/math] with [math]\displaystyle{ m = -M,\dots,-2,-1,0,1,2,\dots,M }[/math] and [math]\displaystyle{ M = L/\Delta x }[/math]. The time dependence of the error is included by assuming that the amplitude of error [math]\displaystyle{ E_m }[/math] is a function of time. Often the assumption is made that the error grows or decays exponentially with time, but this is not necessary for the stability analysis.
If the boundary condition is not periodic, then we may use the finite Fourier integral with respect to [math]\displaystyle{ x }[/math]:
[math]\displaystyle{ \epsilon(x,t) = \int_{-\frac{\pi}{\Delta x}}^{\frac{\pi}{\Delta x}} E_{k}(t) e^{i k x} dk }[/math] |
|
( ) |
Since the difference equation for error is linear (the behavior of each term of the series is the same as series itself), it is enough to consider the growth of error of a typical term:
[math]\displaystyle{ \epsilon_m(x,t) = E_m(t) e^{ik_m x} }[/math] |
|
( ) |
if a Fourier series is used or
[math]\displaystyle{ \epsilon_k(x,t) = E_k(t) e^{ikx} }[/math] |
|
( ) |
if a Fourier integral is used.
As the Fourier series can be considered to be a special case of the Fourier integral, we will continue the development using the expressions for the Fourier integral.
The stability characteristics can be studied using just this form for the error with no loss in generality. To find out how error varies in steps of time, substitute equation (5b) into equation (2), after noting that [math]\displaystyle{ \begin{align} \epsilon_j^n & = E_m(t) e^{ik_m x} \\ \epsilon_j^{n+1} & = E_m(t+\Delta t) e^{ik_m x} \\ \epsilon_{j+1}^n & = E_m(t) e^{ik_m (x+\Delta x)} \\ \epsilon_{j-1}^n & = E_m(t) e^{ik_m (x-\Delta x)}, \end{align} }[/math] to yield (after simplification)
[math]\displaystyle{ \frac{E_{m}(t + \Delta t)}{E_{m}(t)} = 1 + r \left(e^{i k_m \Delta x} + e^{-i k_m \Delta x} - 2\right). }[/math] |
|
( ) |
Introducing [math]\displaystyle{ \theta = k_m \Delta x \in [-\pi,\pi] }[/math] and using the identities [math]\displaystyle{ \sin\left(\frac{\theta}{2}\right)= \frac{e^{i \theta/2} - e^{-i \theta/2}}{2i} \qquad \rightarrow \qquad \sin^2\left(\frac{\theta}{2}\right) = -\frac{ e^{i \theta} + e^{-i\theta} - 2 }{4} }[/math] equation (6) may be written as
[math]\displaystyle{ \frac{E_{m}(t + \Delta t)}{E_{m}(t)} = 1 - 4 r \sin^2 (\theta /2) }[/math] |
|
( ) |
Define the amplification factor
[math]\displaystyle{ G \equiv \frac{E_m(t + \Delta t)}{E_m(t)} }[/math] |
|
( ) |
The necessary and sufficient condition for the error to remain bounded is that [math]\displaystyle{ | G | \leq 1. }[/math] Thus, from equations (7) and (8), the condition for stability is given by
[math]\displaystyle{ \left| 1 - 4 r \sin^2 (\theta /2) \right| \leq 1 }[/math] |
|
( ) |
Note that the term [math]\displaystyle{ 4 r \sin^2 (\theta /2) }[/math] is always positive. Thus, to satisfy Equation (9):
[math]\displaystyle{ 4 r \sin^2 (\theta /2) \leq 2 }[/math] |
|
( ) |
For the above condition to hold for all [math]\displaystyle{ m }[/math] (and therefore all [math]\displaystyle{ \sin^2 (\theta /2) }[/math]). The highest value the sinusoidal term can take is 1 and for that particular choice if the upper threshold condition is satisfied, then so will be for all grid points, thus we have
[math]\displaystyle{ r=\frac{\alpha \Delta t}{\left( \Delta x \right)^2} \leq \frac{1}{2} }[/math] |
|
( ) |
Equation (11) gives the stability requirement for the FTCS scheme as applied to one-dimensional heat equation. It says that for a given [math]\displaystyle{ \Delta x }[/math], the allowed value of [math]\displaystyle{ \Delta t }[/math] must be small enough to satisfy equation (10).
Similar analysis shows that a FTCS scheme for linear advection is unconditionally unstable.
References
- ↑ Analysis of Numerical Methods by E. Isaacson, H. B. Keller
- ↑ Crank, J.; Nicolson, P. (1947), "A Practical Method for Numerical Evaluation of Solutions of Partial Differential Equations of Heat Conduction Type", Proc. Camb. Phil. Soc. 43: 50–67, doi:10.1007/BF02127704
- ↑ Charney, J. G.; Fjørtoft, R.; von Neumann, J. (1950), "Numerical Integration of the Barotropic Vorticity Equation", Tellus 2: 237–254, doi:10.3402/tellusa.v2i4.8607
- ↑ Smith, G. D. (1985), Numerical Solution of Partial Differential Equations: Finite Difference Methods, 3rd ed., pp. 67–68
- ↑ in this case, using the FTCS discretization scheme
- ↑ Anderson, J. D., Jr. (1994). Computational Fluid Dynamics: The Basics with Applications. McGraw Hill.
![]() | Original source: https://en.wikipedia.org/wiki/Von Neumann stability analysis.
Read more |