On the importance of numerical integration details for homogeneous flow simulation
Stephen Sanderson, Debra J. Searles
TL;DR
This paper tackles the sensitivity of Sllod-based homogeneous flow simulations to numerical integration details by developing a reversible, energy-conserving integration scheme with $O(δt^3)$ accuracy and implementing it in LAMMPS. A conserved quantity $\mathcal{H}'$, built by augmenting the phase space with a Nosé-Hoover thermostat and an energy reservoir $\kappa$, guides the integration to maintain energy balance under general flow tensors, while a carefully designed operator-splitting propagator ensures reversibility. The authors demonstrate that energy-nonconserving schemes introduce systematic biases in direct averages of the pressure tensor and viscosity at high flow rates, which are mitigated when $\mathcal{H}'$ is preserved and TTCF-based viscosity calculations align with the corrected direct results. Practically, the work provides actionable implementation details for public MD codes, improving the accuracy of transient responses, mixed-flow states, and high-rate rheology in Sllod simulations.
Abstract
The Sllod equations of motion enable modeling of homogeneous flow at the atomic scale, and are commonly used to predict fluid properties such as viscosity. However, few publicly available codes support such simulations, and those that do often do not implement a reversible numerical integration scheme or have other subtle problems. Here, we demonstrate a reversible and energy-conserving integration scheme for the Sllod equations of motion with error on the order of $δt^3$, in line with typical operator splitting integrators used in standard molecular dynamics simulations. We discuss various implementation details, and implement the scheme in LAMMPS where we find that our changes enable more accurate simulation of transient responses, mixed flows, and steady states, especially at high rates of flow. Importantly, we show that a lack of energy conservation can manifest as a systematic error in the direct ensemble average of the pressure tensor, leading to an error in the calculated viscosity which becomes significant at high flow rates.
