Stability, Constraints, and CFL Limits
Scrollable formula. Use Left and Right arrow keys to reveal hidden content.
Scrollable table. Use Left and Right arrow keys to reveal additional columns.
Scrollable figure. Use Left and Right arrow keys to inspect hidden content.
A numerical evolution can remain bounded while drifting away from the constraint surface of the continuum formulation. Conversely, a convergent spatial operator can become unstable when the timestep is too large. Stability, constraint preservation, and accuracy are therefore separate questions. A useful test measures field energy, high-frequency content, and constraint norms while scanning the Courant factor and resolution.
Required background. Ordinary Differential Equations supplies amplification factors, eigenvalues, and time-integration stability.
Helpful background. Formulations of General Relativity provides continuum constraint propagation and characteristic speeds, while Partial Differential Equations and Green Functions supplies energy estimates and domains of dependence.
The discrete domain of dependence
Section titled “The discrete domain of dependence”For a hyperbolic equation with characteristic speed , an explicit local scheme usually requires
with a method-dependent . In several dimensions, on mapped meshes, or with refinement, the relevant bound uses the largest local coordinate characteristic speed and the smallest effective spacing. Courant, Friedrichs, and Lewy 1928, § 2 derives the necessary mesh restriction by comparing the difference equation’s domain of dependence with the hyperbolic equation’s characteristic domain. That condition is necessary for convergence; it is not sufficient to make every discretization stable.
For a linear constant-coefficient periodic problem, von Neumann analysis diagonalizes translation-invariant stencils into Fourier modes and tests their amplification factors. The relation among stability, consistency, and convergence for linear initial-value problems is developed in Lax and Richtmyer 1956, Part I §§ 5–8, pp. 271–275. Boundaries, variable coefficients, and nonnormal systems require an energy estimate or stronger analysis beyond the periodic symbol.
Wave-and-constraint benchmark
Section titled “Wave-and-constraint benchmark”Write the one-dimensional wave equation as
with auxiliary constraint
In the continuum, consistent initial data preserve . A discrete scheme may approximate the three evolution equations stably while boundary closures, interpolation, or inconsistent derivative operators inject constraint error. Monitor
along with field error and a high-frequency norm.
For a completely specified baseline, take , uniform points, periodic centered differences
and classical four-stage RK4. Initialize
where and are independent uniform samples on produced by NumPy’s PCG64 generator with seed . The unperturbed part is a right-moving semidiscrete wave and satisfies the discrete constraint exactly; the perturbation gives a known constraint seed.
Use exactly the same in the two derivative equations and in . Then
A common Runge–Kutta update preserves this linear invariant up to roundoff at every step, including steps above the stability threshold. The energy can therefore blow up while the constraint remains near its seed until roundoff is amplified. This baseline tests derivative consistency and shows why a small constraint is insufficient evidence of stability. A separate negative test can replace one occurrence of by a different stencil; the resulting nonzero must then be explained by that operator difference.
For Fourier angle , has symbol , while RK4 is stable on the imaginary axis for . Thus the predicted Courant limit for the unit-speed periodic problem is . Evolve to at , shortening only the last step. Record the maximum energy, the discrete constraint relative to its initial seed, and the Fourier norm of modes satisfying , together with the individual modes . These have the largest derivative eigenvalues; the Nyquist mode is actually annihilated by , so measuring only the largest wavenumbers can miss the instability. Below threshold, the random component should remain bounded and the smooth error should converge; above it, an excited mode must grow more strongly as increases. Repeat at to check the apparently stable side of the boundary rather than inferring it from three coarse runs.
Constraint damping and projection
Section titled “Constraint damping and projection”Constraint damping modifies the evolution so small violations decay, while projection maps numerical data back onto the constraint surface. Both can be useful, but neither licenses hiding the undamped behavior. Report the damping coefficient in physical units or relative to the grid, derive how it changes characteristic or stiff timescales, and rerun the CFL scan. A coefficient proportional to can impose a new timestep restriction.
Projection may reduce discontinuously while altering conserved quantities or physical modes. Measure that change. A stable field norm with a growing constraint is a failed formulation–discretization pairing for long evolutions, even if the waveform looks smooth.
The role of boundary stability and the extension from periodic symbols to initial-boundary problems is treated in Lax and Richtmyer 1956, Part II §§ 12–14, pp. 279–281. Calabrese, Hinder, and Husa 2006, §§ 5–5.1, Eq. 119, and Figs. 2–5 uses random-data numerical-stability and noisy-convergence tests to expose high-frequency failures that smooth data can miss. That paper explicitly distinguishes this procedure from the Apples-with-Apples robust-stability test; the labels should not be conflated.
Choosing an operational timestep
Section titled “Choosing an operational timestep”The analytic bound should be checked empirically, not estimated from the first run that survives. For each grid, record maximum field energy, constraint norm, and highest-mode amplitude over a fixed number of crossing times. Define failure thresholds before scanning. The production Courant factor should include a safety margin for variable characteristic speeds, moving meshes, nonlinear states, and different boundary patches.
Convergence above a threshold cannot be restored by adding enough artificial dissipation if the underlying amplification factor remains outside the time integrator’s stable region. Dissipation can move eigenvalues, but then the combined operator must be analyzed and its accuracy measured. A short run that ends before the unstable mode grows is not evidence of stability.
Reproducible environment and failure criteria
Section titled “Reproducible environment and failure criteria”Pin the implementation revision, precision, derivative and dissipation operators, boundary closure, integrator tableau, timestep rule, characteristic-speed estimate, damping or projection parameters, random seed, mesh sequence, and norm definitions. A clean rerun exports the Courant scan, energy and constraint histories, Fourier-mode amplitudes, refinement errors, and the predicted stability boundary.
The validity regime is the declared mesh, boundary treatment, coefficient range, and time interval. Failure modes include a CFL violation, resolution-amplified noise, constraint growth hidden by a field norm, an incorrect characteristic speed, and damping that introduces unrecognized stiffness. Reject stability inferred from one resolution, one smooth input, or a final-time snapshot without growth history.
Check your understanding
Section titled “Check your understanding”A run has bounded field energy and convergent , but grows exponentially at a rate that increases with resolution. Is the discretization stable for the constrained system?
Solution
No. The physical-looking variables do not exhaust the state’s required properties. Resolution-amplified constraint growth indicates a discrete constraint or boundary instability. Inspect the constraint-propagation operator, boundary closure, derivative consistency, and Courant factor; then repeat the random-noise and convergence tests with the constraint norm as an acceptance condition.
References
Section titled “References”- Calabrese, G., Hinder, I., and Husa, S. (2006), “Numerical Stability for Finite Difference Approximations of Einstein’s Equations,” Journal of Computational Physics 218, 607–634. arXiv.
- Courant, R., Friedrichs, K., and Lewy, H. (1928), “On the Partial Difference Equations of Mathematical Physics,” Mathematische Annalen 100, 32–74. DOI.
- Lax, P. D., and Richtmyer, R. D. (1956), “Survey of the Stability of Linear Finite Difference Equations,” Communications on Pure and Applied Mathematics 9, 267–293. DOI.