Neighbor Tables for Short-Ranged Potentials


A & T pgs. 145-151

We have already discussed how to cutoff short-ranged potentials at the box edge, necessitated by the need to have a continuous force for molecular dynamics. But what happens as the number of particles grows? Clearly the code fragment the operation count and hence the CPU scales as N 2, because the number of pairs of to be summed is N(N-1)/2. . This is its "complexity". (The cutoff actually reduces the required number of pairs to be summed to get force in box of side length L by 4pi(rc/L)3.)

But as the system gets bigger we do not have to keep increasing the cutoff radius. Once the cutoff radius gets outside the second neighbor distance, or more rigorously we can fix rc by the requirement that V(rc) < kT. If this is satisfied, we can use a more efficient scheme to reduce the complexity to N.


Long-Ranged Potentials

A & T pgs. 155-165

Long-ranged potentials can not be handled as we discussed with the Lennard-Jones system. By long-ranged we mean that the limit ( v(r) r 3 ) does not tend to zero at large r. (Why is this important? Consider trying to make the box bigger and bigger. How quickly does the potential have to drop off before we can simply ignore distant particles?) Surprisingly we can still treat these types of interactions in PBCs and in some cases with the same complexity as for short-ranged potentials.

Suppose we have a potential between pairs of particles in vacuo which goes like v(r). There are two distinct issues which sometimes get confused:

The answer to the first question is usually (but not always) the image potential. The image potential is uniquely defined by the "bare" potential:

Vimage (r) = sum over array of images v(r+image) - background.

A particle interacting with another particle will see an infinite array of the other particle. One has to decide if this is physically correct. Inhomogeneous systems like a single charged impurity are problematical. With the image potential, one is essentially computing the interaction at a low but finite concentration. The background is put in to make the sum converge. If one sums spherical shells, the series will be conditionally convergent. However one has a choice about surface charges. The Ewald method has the great advantage that it respects the Poisson equation. This implies for example that the long-wavelength limits are correct.

To answer the second question see the more detailed description . The image expansion is implemented by splitting the interaction into a part in real space and a part in k-space in such a way that both sums are quickly convergent. The complexity of the method described is N 3/2 worse than the short-ranged potential but still better than the simplest direct method for any pairwise sum. The coefficient isn't so bad because the new features are Fourier transforms which are fast.

What tests can you make for your Ewald code? You can put the charges on a perfect lattice and make sure that you get the known Madelung constants. For example in a 3D cubic lattice with lattice spacing "a" the energy per atom should be exactly -1.41864874 e2/a .

(See exercises in CLAMPS)

In the last 10 years methods have been developed to do this computation quicker. Some of the methods go by the name Fast Multipole Methods, others are called particle-mesh methods. They are advantageous if the number of particles is greater than about 1000.



Calendar
© DDJ/DMC 1998-2001