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

Electrostatic interactions decay slowly with distance. An electrostatic interaction calculation must include particles within at least 100 A for reasonable accuracy. Due to this long-range behavior, the task of computing Coulomb potentials is often the most time consuming part of any MD simulation. Computing electrostatic energy by direct summation of all pairwise interactions would be prohibitively slow even in a system without periodic boundary condition. To complicate things in periodic systems it is necessary to compute contributions from all periodic images (lattice sum). To accelerate these calculations, fast and efficient algorithms are needed.

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. The first step of PME calculation is to assign charges to grid cells. Charges in the grid cells are obtained by interpolation.
  2. After interpolation discrete Fourier transform is computed.
  3. Then potential in grid cells is calculated. Coulomb interaction decays rapidly in Fourier space, and summation converges fast.
  4. Inverse Fourier transform is computed to transform gridded potentials to real space.
  5. Finally gridded potentials are interpolated back to atomic centers.

Simulation parameters controlling speed and accuracy of PME calculations.

Having learned how electrostatic potential is calculated, we can now examine the parameters controlling speed and accuracy of PME calculations.

Poll 6. Electrostatic interactions

Which of the following statements is incorrect? For more accurate electrostatic calculations you need to:

  1. Decrease grid spacing
  2. Increase the grid dimensions
  3. *Increase direct space tolerance
  4. Increase the interpolation order
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