Abstract
In finite element methods (FEMs), the accuracy of the solution cannot increase indefinitely because the round-off error increases when the number of degrees of freedom (DoFs) is large enough. This means that the accuracy that can be reached is limited. A priori information of the highest attainable accuracy is therefore of great interest. In this paper, we devise an innovative method to obtain the highest attainable accuracy. In this method, the truncation error is extrapolated when it converges at the analytical rate, for which only a few primary $h$-refinements are required, and the bound of the round-off error is provided through extensive numerical experiments. The highest attainable accuracy is obtained by minimizing the sum of these two types of errors. We validate this method using a one-dimensional Helmholtz equation in space. It shows that the highest attainable accuracy can be accurately predicted, and the CPU time required is much less compared with that using the successive $h$-refinement.
Introduction: The Limits of Numerical Precision
In numerical simulation, it is often assumed that increasing the number of degrees of freedom (DoFs) through mesh refinement ($h$-refinement) or higher-order polynomials ($p$-refinement) will monotonically improve solution accuracy. However, practical implementations are constrained by the finite precision of computer hardware, typically IEEE-754 double precision. As the number of DoFs increases, the resulting linear systems become larger and more ill-conditioned, causing floating-point round-off errors to accumulate.
This creates a fundamental trade-off: while discretization (truncation) error decreases with refinement, round-off error eventually begins to dominate. The resulting total error curve is U-shaped, reaching a "sweet spot" of highest attainable accuracy ($E_{min}$) at an optimal number of DoFs ($N_{opt}$).
Methodology: A Predictive Algorithm for Optimal Accuracy
To avoid the high computational cost of "brute-force" refinement—repeatedly running simulations until the error floor is hit—the authors propose a four-step predictive algorithm:
- Normalization and Scaling: Scaling schemes (S, M1, and M2) are used to normalize solution magnitudes, making round-off error offsets predictable across different problems.
- Truncation Error Extrapolation: Using a small number of coarse-grid calculations, the algorithm determines the convergence rate ($\beta_T$) and offset ($\alpha_T$).
- Round-off Error Modeling: Round-off error is modeled as a power law $E_R = \alpha_R N_h^{\beta_R}$, where $\beta_R$ is found to be nearly constant for specific FEM formulations.
- Optimization: The highest attainable accuracy is predicted by minimizing the sum of the extrapolated truncation error and the modeled round-off error.
Key Insights and Comparative Analysis
The study highlights several critical findings regarding error behavior in 1D FEM:
- Predictable Round-off Slopes: The rate of round-off error growth ($\beta_R$) is approximately 2 for Standard FEM (continuous Lagrange elements) and 1 for Mixed FEM.
- The Role of Scaling: By scaling the solution to a unit norm, the round-off error offset ($\alpha_R$) becomes remarkably consistent (roughly $10^{-16}$ to $10^{-17}$), enabling robust predictions.
- Element Order Sensitivity: High-order elements ($p$-refinement) reduce truncation error rapidly but are more sensitive to round-off, reaching their accuracy limit at lower DoF counts than lower-order elements.
- Mixed FEM Advantages: Mixed FEM typically achieves higher maximum accuracy than Standard FEM for the same polynomial degree due to its slower round-off error growth rate.
Results and Efficiency
The proposed "PRED+" algorithm was validated using benchmark problems including Poisson, Diffusion, and Helmholtz equations. In the Helmholtz case, the algorithm accurately predicted the highest attainable accuracy while saving significant computational resources. Specifically, the method reduced CPU time by over 60% for Standard FEM and 40% for Mixed FEM compared to traditional successive refinement methods.
Conclusion and Future Work
While currently limited to one-dimensional analysis and uniform refinement, this framework provides a practical tool for engineers to estimate the limits of their simulations. Future research will focus on extending these predictive models to 2D and 3D problems, where the complexities of mesh topology and iterative solver tolerances will play a larger role, and where the potential for computational savings is even greater.
Summary updated