Electrostatic Interactions

Overview

Teaching: 10 min
Exercises: 0 min
Questions
  • How electrostatic interactions are calculated in periodic systems?

Objectives
  • Learn what parameters control the accuracy of electrostatic calculations

Coulomb interactions

graph: electrostatic potential

Due to the long-range behavior of Coulomb interactions, the task of computing Coulomb potentials is often the most time consuming part of any MD simulation. Therefore, fast and efficient algorithms are required to accelerate these calculations.

Particle Mesh Ewald (PME)

Particle Mesh Ewald (PME) method is the most widely used method using the Ewald decomposition technique. The potential is decomposed into two parts: a fast decaying and a slow decaying. A fast decaying part is computed in real space. A slow decaying part is computed in Fourier space (reciprocal space).

Graph: PME Decomposition

Fast decaying short-ranged potential (Particle part).

The real space sum is short-ranged and as for the LJ potentials, it can be truncated when sufficiently decayed. It is a direct sum of contributions from all particles within a cutoff radius. It is the Particle part of PME.

Slow decaying long-ranged potential (Mesh part).

The Fourier space part, on the other hand, is long-ranged but smooth and periodic. This part is a slowly varying function. PME takes advantage of the fact that all periodic functions can be represented with a sum of sine or cosine components, and slowly varying functions can be accurately described by only a limited number of low frequency components (k vectors). In other words Fourier transform of the long-range Coulomb interaction decays rapidly in Fourier space, and summation converges fast.

PME algorithm

The long range contribution can then be efficiently computed in Fourier space using FFT. Fourier transform calculation is discrete and requires the input data to be on a regular grid. It is the Mesh part of PME. As point charges in a simulation are non-equispaced, they need to be interpolated to obtain charge values in equispaced grid cells.

Image: PME Grid

  1. Assign charges to grid cells. Charges in grid cells are obtained by interpolation.
  2. Compute Fourier transform.
  3. Compute potential. Coulomb interaction decays rapidly in Fourier space, and summation converges fast.
  4. Compute inverse Fourier transform.
  5. Interpolate gridded potentials back to atomic centers.

Simulation parameters controlling speed and accuracy of PME calculations.

Variable \ MD package GROMACS NAMD AMBER
Fourier grid spacing fourierspacing (1.2) PMEGridSpacing (1.5)  
Grid Dimension X fourier-nx PMEGridSizeX nfft1
Grid Dimension Y fourier-ny PMEGridSizeY nfft2
Grid Dimension Z fourier-nz PMEGridSizeZ nfft3
Direct space tolerance ewald-rtol (\(10^{-5}\)) PMETolerance (\(10^{-5}\)) dsum_tol (\(10^{-6}\))
Interpolation order pme-order (4) PMEInterpOrder (4) order (4)
Variable \ MD package GROMACS NAMD AMBER
Fourier grid spacing fourierspacing (1.2) PMEGridSpacing (1.5)  
Grid Dimension [X,Y,Z] fourier-[nx,ny,nz] PMEGridSize[X,Y,Z] nfft[1,2,3]
Direct space tolerance ewald-rtol (\(10^{-5}\)) PMETolerance (\(10^{-5}\)) dsum_tol (\(10^{-6}\))
Interpolation order pme-order (4) PMEInterpOrder (4) order (4)

Key Points

  • Calculation of electrostatic potentials is the most time consuming part of any MD simulation

  • Long-range part of electrostatic interactions is calculated by approximating Coulomb potentials on a grid

  • Denser grid increases accuracy, but significantly slows down simulation