For the aircraft, see Martin P3M

Particle–Particle-Particle–Mesh (P3M) is a Fourier-based Ewald summation method[1][2] to calculate potentials in N-body simulations.[3][4][5]

The potential could be the electrostatic potential among N point charges i.e. molecular dynamics, the gravitational potential among N gas particles in e.g. smoothed particle hydrodynamics, or any other useful function. It is based on the particle mesh method, where particles are interpolated onto a grid, and the potential is solved for this grid (e.g. by solving the discrete Poisson equation). This interpolation introduces errors in the force calculation, particularly for particles that are close together. Essentially, the particles are forced to have a lower spatial resolution during the force calculation. The P3M algorithm attempts to remedy this by calculating the potential through a direct sum for particles that are close, and through the particle mesh method for particles that are separated by some distance.


  1. ^ "Fourier-based Ewald Summation Methods (Web Version)". Retrieved 2009-03-01. 
  2. ^ "Fourier-based Ewald Summation Methods (Published Version)".  
  3. ^ "P3M3DP-the three-dimensional periodic particle-particle/particle-mesh program".  
  4. ^ "How to mesh up Ewald sums. II. An accurate error estimate for the particle–particle–particle-mesh algorithm". Retrieved 2009-03-01. 
  5. ^ "N-body simulations, section P3M and PM Tree Codes". Retrieved 2009-03-01. 

Further reading