Technical background
In a previousblog (loanword)In , we introduced the basic origin and representation of Lagrange interpolation. Here we are going to introduce an application scenario of Lagrange interpolation: lattice-point Lagrange interpolation. The advantage of this scenario is that if we want to sum or integrate over the whole space of real numbers, the computation grows with the shape of the variables. For example, in molecular dynamics simulationsCalculate the electrostatic potential energy, just calculating the charge distribution function is a\(O(N^2)\)The amount of computation in which\(N\)represents the number of point charges. And if we discretize the space, divide it into a series of lattice points, and interpolate the constant number of neighboring lattice points, then our summation computation can be reduced to\(O(N)\)。
lattice-point Lagrangian interpolation
Given a function\(y=f(x-x_r)\), which we can interpolate to the nearest 4 integer grid points:\(\lfloor x_r\rfloor-1.5,\lfloor x_r\rfloor-0.5,\lfloor x_r\rfloor+0.5,\lfloor x_r\rfloor+1.5\), according to the Lagrangian interpolation form there:
provided that\(\lfloor x_r\rfloor\)The nearest center point is the origin, i.e.\(\lfloor x_r\rfloor=0\), then its coefficient has:
Its image is roughly shown below (image from reference link 1):
Truncation of remote interaction terms
We apply this lattice point Lagrangian interpolation obtained above to the calculation of the electrostatic potential energy. In a previousblog (loanword)One of the electrostatic potential calculations presented is a charge distribution function that looks like this:
included among these\(S(\mathbf{k})=\sum_{i=0}^{N-1}q_ie^{j\mathbf{k}\mathbf{r}_i}=\sum_{i=0}^{N-1}q_ie^{j\mathbf{k}_xx_i}e^{j\mathbf{k}_yy_i}e^{j\mathbf{k}_zz_i}\). Replacing these latter exponential terms with lattice point Lagrangian interpolation yields:
With the functional form, we can abbreviate\(S(\mathbf{k})\)for a summation over three-dimensional spatial lattice points:
Take the coefficient terms separately again:
Here.\(Q\)is actually a shape as\((N_x,N_y,N_z)\)The tensor of the\(m_x,m_y,m_z\)corresponds to the tensor index of a particular lattice point, and the tensor elements corresponding to each index are computed by the coefficient function, and with such a concept, rewrite the\(S(\mathbf{k})\)The function of the
We will see that this interpolation comes out\(S(\mathbf{k})\)function actually computes the tensor\(Q\)exist\(\mathbf{k}\)at the Fourier transform, then it is possible to further abbreviate\(S(\mathbf{k})\)The form of the
included among these\(F^{*}\)denotes the inverse Fourier transform.\(V\)denotes the inverse Fourier transform normalization constant. Following the previous 4-lattice-point Lagrangian interpolation, at this point the obtained\(S(\mathbf{k})\)value is a tensor of shape (4, 4, 4), which means that each of the 64 lattice points for the inverted lattice vector\(\mathbf{k}\)contribution (the effect of interpolated individual point charges). Then similar can be obtained:
Substituting into the Ewald form of the long-range interaction term (see thiswritings) is available in:
This is the trick of calculating the long-range interaction potential in the Particle-Mesh-Ewald method calculations. Since\(\mathbf{k}\)space cannot converge quickly, then reducing the computational complexity of the charge distribution term can likewise have the effect of substantial computational savings.
Truncation of the short-range interaction term
In the previous article on Ewald summation we described the different forms of convergence of the electrostatic potential energy calculation after splitting it into long-range, short-range and self-interaction terms. The simplification of the computational effort has been accomplished by the long range interaction term through the above sections, and there is also a short range interaction term\(E^{S}\), we know that the spacing of the short-range interaction terms with respect to the atomic real space is rapidly convergent, and we have already computed the nearest-neighbor table for a given cutoff truncation once in the calculation of the LJ potential energy. It is then easy to consider introducing the concept of a nearest-neighbor table and use this nearest-neighbor table directly to make a cutoff of the short-range interaction term for the electrostatic potential energy. Thus the short-range interaction term can be written as:
A presupposition here is that\(d_{cutoff}<<L_{pbc}\), so omitting the periodic box within the other boxes of the\(i\)Charge on the center box\(\mathbf{r}_i\)Role of the Branch.
Particle-Mesh-Ewald
Based on the approximate remote interaction terms and after the short-range interaction terms obtained in the above section, we can rewrite the total electrostatic potential energy in the PME (Particle-Mesh-Ewald) algorithm:
Summary outline
This paper presents the fundamentals of reducing the computational complexity of the electrostatic potential energy term in molecular force fields using the Particle Mesh Ewald algorithm based on lattice-point Lagrangian interpolation. The computation of electrostatic potential energy is split into a remote interaction term and a short-range interaction term in the Ewald summation framework, where the short-range interaction term converges rapidly about the point charge spacing in real space, while the remote interaction term converges slowly in inverse easy space. Therefore, in the calculation of remote interactions, the interpolation method can be used to reduce the computational complexity of individual inverted-easy lattice points, thus allowing the overall remote interaction term calculation to converge quickly as well.
copyright statement
This article was first linked to:/dechinphy/p/
Author ID: DechinPhy
More original articles:/dechinphy/
Buy the blogger coffee:/dechinphy/gallery/image/
Reference Links
- /notebooks/62979247598