Solution Verification and Convergence
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.
Solution verification estimates numerical error in one computed result after the implementation has been tested. A familiar convergence slope is not enough: iterative error must already be smaller, at least three meaningfully separated resolutions must sample the same continuum problem, and the data must show an asymptotic regime rather than a fitted wish. Richardson analysis and a grid-convergence index are conditional tools for that regime.
Required background. Probability and Inference for Gravity supplies uncertainty summaries and interpretation of finite samples.
Helpful background. Formulations of General Relativity supplies the continuum variables and gauges being compared; Differential Equations for Relativity supplies consistency and convergence concepts; Computational Relativity supplies the shared numerical workflow; and Mathematical Relativity distinguishes numerical evidence from continuum convergence theorems.
Error components before extrapolation
Section titled “Error components before extrapolation”Separate algebraic or iterative error, discretization error, roundoff, input interpolation, and model error. Make the estimated algebraic error in the solution or reported observable much smaller than the change between the two finest discretizations. A residual measures how nearly the discrete equations are satisfied; converting it into solution error requires their conditioning. Residual and solution norms can also have different units, so comparing their raw magnitudes is not a stopping rule.
For an invertible linear system and approximation , define . Then
using compatible vector and induced matrix norms. In a dimensionless example, and give unit solution error however small positive becomes. For a nonlinear solve, the inverse Jacobian gives a local sensitivity estimate when the iterate is sufficiently close to a regular solution. Use such an estimate, or demonstrate that tighter solver tolerances change the observable negligibly compared with grid refinement; residual control alone does not prove this. The distinction between residual, backward error and forward error is developed in Higham 2002, § 7.1, Theorems 7.1–7.2.
Define one scalar quantity of interest or a norm on fields at a common physical time and frame. If waveforms are aligned, fix the alignment rule before measuring convergence and also show an unaligned diagnostic. If adaptive meshes are compared, define an effective resolution only when the refinement hierarchy changes systematically; counting total points is not a mesh spacing.
The standardized numerical-relativity tests in Babiuc et al. 2008, §§3–8 illustrate why constraints, solution error, and runtime behavior can converge differently. Report the quantity that supports the scientific claim, not only the norm that looks cleanest.
Observed order from three grids
Section titled “Observed order from three grids”Let grid 1 be finest and grid 3 coarsest, with spacings . Prefer approximately uniform refinement ratios
larger than about so differences are not dominated by noise. For equal ratio and monotone convergence, an observed order is
The extrapolated limit based on the fine pair is
These formulas follow by assuming with one nonzero leading coefficient over the sampled range. Subtracting adjacent values removes the unknown limit ; taking their ratio removes . For unequal ratios, solve
for a positive under the same single-leading-term assumption. Taking absolute values does not repair an alternating-sign sequence: such a sequence does not fit this model with one fixed . Oscillatory differences, near-zero denominators, shocks, mesh-interface motion, or mixed error orders can make a single meaningless. Celik and collaborators state a disciplined reporting procedure in Celik et al. 2008, “Preliminaries,” recommended Steps 1–5, Eqs. (1)–(10).
Do not force to the formal scheme order by rescaling curves. A lower stable order may reveal boundaries, interpolation, limiters, or nonsmooth data. An implausibly high order often signals cancellation or an unresolved leading term. Add a finer run and predict its difference before seeing it.
Grid-convergence index and its limits
Section titled “Grid-convergence index and its limits”For a nonzero scalar, a fine-grid relative grid-convergence index can be written
where the safety factor and procedure are declared. This is an engineering estimate conditioned on the assumed error expansion and sampled regime. It is not a confidence interval derived from random sampling, nor does it include model, gauge, boundary, or calibration uncertainty.
A complete three-grid calculation
Section titled “A complete three-grid calculation”Suppose a dimensionless observable takes these values:
| Grid | Spacing | Observable |
|---|---|---|
| finest, 1 | 0.05 | 2.0075 |
| middle, 2 | 0.10 | 2.0300 |
| coarsest, 3 | 0.20 | 2.1200 |
The differences are and , so , , and . The fine-grid absolute error estimate is . With a declared safety factor , the relative GCI is , or .
These synthetic data follow exactly. A fourth grid at is therefore predicted to give . In a real calculation that prediction is a test, not a value to impose on the code. A small extra term or roundoff can spoil the fit, and the safety factor does not turn an untested expansion into a rigorous bound.
For fields, compute , , and norms after conservative restriction or projection to a common representation. State the measure and normalization: for example, a uniform-grid root-mean-square error is , whereas the discrete integral norm is . They differ by the square root of the domain length. Local defects can disappear in an average norm, while can be dominated by a moving feature. For a waveform, report amplitude and phase errors mode by mode and verify that time and frame choices do not set the slope.
The periodic scalar-wave experiment supplies an actual four-grid calculation with separate spatial and temporal errors. Its analytic solution lets you compare the extrapolation logic with the true error before applying it to a black-hole simulation whose continuum result is unknown.
The benchmark suite should include a manufactured scalar wave with known continuum error, plus robust-stability, linear-wave, and gauge-wave tests. A physical black-hole or matter observable supplies an independent check. Manufactured smooth data verify the formal regime; a shock or mesh-refinement boundary tests the lower-regularity production regime.
Rerun and rejection rules
Section titled “Rerun and rejection rules”The environment record should pin equations, input checksums, code and dependency revisions, compiler, precision, solver tolerances, every mesh, refinement criterion, boundary treatment, output time, norms, and analysis scripts. Save iterative residual histories and raw , not only the fitted and GCI.
A clean rerun would solve the scalar-wave benchmark on at least three grids with ratios above , repeat the fit after adding a fourth finer grid, and emit residuals, norms, observed order, extrapolated value, and GCI. It would then repeat the logic on the claimed production observable. No absent executable is claimed here.
Reject the error estimate if estimated algebraic solution or observable errors are comparable to grid differences, grid ratios are too small, the three solutions do not represent identical continuum data, observed order changes materially after adding a finer run, convergence oscillates without a suitable model, or the result depends on forced rescaling. The principal failure mode is fitting an asymptotic formula before the asymptotic regime has begun.
Check your understanding
Section titled “Check your understanding”At spacings , , and , a quantity is , , and . The differences suggest second-order convergence. However, the nonlinear-solver uncertainty in each value is estimated as . May Richardson extrapolation support a four-digit result?
Solution
No. The fine–medium difference is only , smaller than the iterative uncertainty, so the apparent ratio of differences need not represent discretization error. Tighten the solver until its residual contribution is well below the grid differences, recompute all grids, and add a finer run to test the predicted second-order behavior. Only then evaluate the extrapolation and GCI.
References
Section titled “References”- Babiuc, Maria C., et al. 2008. “Implementation of Standard Testbeds for Numerical Relativity.” Classical and Quantum Gravity 25, 125012. arXiv.
- Celik, Ismail B., et al. 2008. “Procedure for Estimation and Reporting of Uncertainty Due to Discretization in CFD Applications.” Journal of Fluids Engineering 130, 078001. DOI.
- Higham, Nicholas J. Accuracy and Stability of Numerical Algorithms. 2nd ed. Philadelphia: Society for Industrial and Applied Mathematics, 2002. DOI.