Splitting the interaction
A long-range interaction connects every particle to every other particle and to its periodic images. Splitting makes that calculation practical: evaluate nearby interactions directly and evaluate a smooth, collective contribution in Fourier space.
The discussion below uses the Coulomb kernel . Charges supply the pair weight ; the Coulomb unit-conversion factor is omitted from the equations and multiplies the resulting energies and forces.
One interaction, two contributions
Choose a long-range function and define its complement:
The two parts have different jobs:
This complementary split is an identity. Applying a cutoff or shifting either part can change the interaction it represents. Approximating its evaluation with finite Fourier sums, a mesh, or finite precision introduces further error. Error Analysis distinguishes these contributions.
The long-range part still contributes at short distances. Nearby pairs therefore contribute to both calculations: directly through and through the collective long-range calculation for .
An example: Ewald splitting
The classical Ewald choice uses the error function and complementary error function:
Their sum is because . The inverse length controls the split. The long-range function has the finite limit
For a nonzero angular wavevector , with , its Fourier kernel is
Increasing makes the short-range term decay faster, so fewer distant pairs matter. It also makes the Fourier kernel decay more slowly, requiring more reciprocal modes. Decreasing reverses the tradeoff. Ewald’s short-range term approaches zero continuously but is not exactly zero at any finite cutoff; discarding its tail introduces a truncation error. See the OpenMM Ewald description for the corresponding energy sums.
cuPotential’s Prolate splitting
The prolate approach to Ewald summation is described by Liang, Lu, Barnett, Greengard, and Jiang in Accelerating molecular dynamics simulations using fast Ewald summation with prolates, Nature Communications 17, 6681 (2026). The paper introduces ESP, which uses prolate spheroidal wave functions for splitting and spreading.
The OpenMM integration selects Prolate by default, using cuPotential’s C2 Prolate splitting.
Inside the cutoff, write the long-range kernel in terms of a dimensionless function :
The function is finite and even at the origin. At the cutoff, it matches the Coulomb kernel through two derivatives:
Consequently, the short-range part satisfies
Matching at the cutoff reduces high-frequency Fourier content. The prolate construction concentrates the reciprocal contribution at low frequencies while making the short-range contribution compact. Its Fourier kernel has a nonzero, oscillatory tail, so truncating reciprocal modes still introduces error.
Fourier and periodic conventions
Let be one periodic cell of volume , and let range over its reciprocal lattice. For a cubic cell of side , with integer vector . These guides use cell-integral Fourier coefficients:
The point-charge density and its transform, called the structure factor, are
Here is the periodic delta distribution. In Fourier formulas, refers to the periodic long-range kernel under the boundary convention below. For Coulomb interactions, periodization is understood in the Ewald sense; an unregularized sum of positive image kernels is not a convergent definition.
Self energy and the zero mode
For a neutral Coulomb system with conducting, or tin-foil, boundaries, the uncorrected long-range energy is
The factor prevents counting pairs twice. This smooth sum includes each particle interacting with its own finite long-range contribution at zero separation. Remove that central self interaction with
For the Ewald example, this becomes . Interactions with a particle’s periodic images remain part of the energy.
The Coulomb kernel is singular at , so that mode is omitted rather than evaluated. This also fixes the potential’s arbitrary constant. A non-neutral cell requires a matching uniform neutralizing background and its split-dependent energy correction; omitting the zero mode alone does not supply that correction. cuPotential’s Coulomb splitting plan provides both the self and net-charge corrections. Direct, reciprocal, self, background, and any exclusion corrections must use the same split.
Continue with Spreading for the mesh calculation. The convergence plots show how numerical errors change as the calculation is refined.