Fast Ewald Summation with Prolates for Charged Systems in the NPT Ensemble
Jiuyang Liang, Libin Lu, Shidong Jiang
TL;DR
The paper addresses the challenge of efficiently and accurately computing long-range electrostatics and the associated pressure tensor in NPT molecular dynamics simulations of charged, periodic systems. It introduces ESP with prolate spheroidal wave functions (PSWFs) for both splitting and spreading, enabling a spectrally accurate, scalable mesh-Ewald-like method that reduces Fourier-space overhead. A unified, NPT-consistent pressure formulation is derived for isotropic to fully flexible cells, including corrections for non-neutral systems, and a four-step FFT-based algorithm is proposed that requires only a single forward FFT for the long-range pressure with diagonal scaling. The method is implemented in LAMMPS and GROMACS, validated on bulk water, LiTFSI ionic liquids, and a transmembrane bc1 complex, and demonstrates strong scaling and substantial reductions in Fourier-grid requirements, yielding 2–3x speedups in large-scale NPT simulations while preserving thermodynamic accuracy. Overall, ESP provides a practical, high-accuracy, and scalable solution for pressure-sensitive simulations of charged systems in the NPT ensemble.
Abstract
We present an NPT extension of Ewald summation with prolates (ESP), a spectrally accurate and scalable particle-mesh method for molecular dynamics simulations of periodic, charged systems. Building on the recently introduced ESP framework, this work focuses on rigorous and thermodynamically consistent pressure/stress evaluation in the isothermal--isobaric ensemble. ESP employs prolate spheroidal wave functions as both splitting and spreading kernels, reducing the Fourier grid size needed to reach a prescribed pressure accuracy compared with current widely used mesh-Ewald methods based on Gaussian splitting and B-spline spreading. We derive a unified pressure-tensor formulation applicable to isotropic, semi-isotropic, anisotropic, and fully flexible cells, and show that the long-range pressure can be evaluated with a single forward FFT followed by diagonal scaling, whereas force evaluation requires both forward and inverse transforms. We provide production implementations in LAMMPS and GROMACS and validate pressure and force accuracy on bulk water, LiTFSI ionic liquids, and a transmembrane system. Benchmarks on up to $3\times 10^3$ CPU cores demonstrate strong scaling and reduced communication cost at matched accuracy, particularly for NPT pressure evaluation.
