Errors, residuals, and validation¶
An accurate linear solve is only one part of an accurate PDE solution. Use the notation from the model problem to distinguish the following quantities.
1. Sampled solution error¶
At test points \(Z=\{z_k\}_{k=1}^{N_Z}\), define
These are sampled errors. RMS is not a continuous \(L^2(\Omega)\) norm; that requires integration or quadrature weights. For vectors, state whether the pointwise norm is Euclidean or componentwise maximum. Use independent off-node samples as well as solution nodes.
2. Algebraic residual¶
For the assembled system,
This tests the numerical linear solve. A tiny residual says nothing by itself about the approximation of the continuous PDE.
For a method with nodal unknowns, insert the sampled exact solution \(U_*\) instead:
Hence, when \(A_h\) is invertible,
The exact-data defect \(\tau_h\) probes consistency; the inverse factor shows why consistency alone does not guarantee accuracy. For global coefficient methods, sampled exact values are not a valid coefficient vector: first define a compatible representation or test the reconstructed field instead.
3. Local reproduction and solve residuals¶
The local algebraic residual is
Polynomial reproduction separately checks \(\sum_jw_{ij}\lambda_jp-\tau_i p\) on \(p\in\Pi_q\). Record normalization and matrix scaling. Neither diagnostic measures the stability of the global system.
4. Off-node PDE residual¶
For a reconstructed field,
These test the reconstructed function, not the nodal sparse equation. For nearest-stencil LHI, evaluate the derivatives of the selected local approximation; a jump between two stencil owners is not differentiated by that operation. Thus it is a patchwise residual, not a distributional residual of one globally smooth function.
For Stokes, report separately
An analytically divergence-free trial space controls \(r_d\) within each reconstructed field but does not ensure an accurate pressure gradient. Pressure values need a consistent gauge before comparison.
A useful validation sequence¶
- Check polynomial reproduction and derivative signs on a small stencil.
- Check exact-data consistency and the linear solve residual independently.
- Compare nodal and independent off-node solution errors.
- Refine multiple clouds with a fixed parameter policy.
- For evolution, refine time separately and inspect divergence, energy, and growing modes as appropriate.
The curved validation report applies several of these checks. The heat tutorial separates temporal error from the spatial discretization using a semidiscrete reference.
Background: Flyer et al. and Bayona et al.. Match sample locations and norm definitions before comparing results across studies.