The need for accuracy and smoothness in numerical simulations
Carl Christian Kjelgaard Mikkelsen, Lorién López-Villellas
TL;DR
The paper analyzes the use of Richardson extrapolation to estimate discretization error in constrained molecular dynamics and related differential-algebraic systems. It derives the asymptotic error framework, defines Richardson estimates, and demonstrates how to extract the dominant error order from data, using both smooth and non-smooth test problems. Empirically, it shows successful use when a valid asymptotic expansion exists (e.g., a howitzer shell model with Euler integration) but also uncovers failures in MD simulations with non-smooth force fields or insufficient solver accuracy, underscoring the need for sufficient smoothness and precision. The work provides practical guidance and diagnostic criteria for applying error estimation in constrained dynamics and time-integration settings, with code and data available for replication.
Abstract
We consider the problem of estimating the error when solving a system of differential algebraic equations. Richardson extrapolation is a classical technique that can be used to judge when computational errors are irrelevant and estimate the discretization error. We have simulated molecular dynamics with constraints using the GROMACS library and found that the output is not always amenable to Richardson extrapolation. We derive and illustrate Richardson extrapolation using a variety of numerical experiments. We identify two necessary conditions that are not always satisfied by the GROMACS library.
