Skip to content

Commit 5e8dbf7

Browse files
committed
Finish editing text of LR electrostatics part
1 parent 538a5a7 commit 5e8dbf7

File tree

1 file changed

+19
-48
lines changed

1 file changed

+19
-48
lines changed

paper/basic_training.tex

Lines changed: 19 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,62 +1081,33 @@ \subsubsection{Grid based Ewald summation}
10811081
Grid-based Ewald summation approaches involve five general steps :
10821082
\begin{enumerate}
10831083
\item Charge assignment: In this step, charges are interpolated onto the grid.
1084-
While the original PME method uses Lagrangian interpolation for charge assignment, the SPME method uses the smoother cardinal B-splines (hence the name Smooth-PME). These interpolation functions make sure that the charge density is distributed over the neighboring grid points.
1085-
1086-
%\[
1087-
%Q(k_1,k_2,k_3) = \sum_{i=0}^{N}\sum_{p_a=0}^{K_a-1} q_i \prod_{d=1}^3 %M_n(u_i^d - k_d - p_dK_d)
1088-
%\]
1089-
\item Transformation of the grid to reciprocal space : Fast Fourier Transform (FFT) is used to convert the charges on the grid to their equivalent fourier space structure factors.
1090-
%\[
1091-
%S(m) = \sum_j q_j \exp(mr_j)
1092-
%\]
1093-
%\[
1094-
%=\prod_{i=1}^{3} b_i(m_i)F(Q)(m_1,m_2,m_3)
1095-
%\]
1096-
%where
1097-
%\[
1098-
%b_i(m_i) = \exp(2\pi i (n-1)m_iK_i) X
1099-
%\]
1100-
%\[ [\sum_{k=0}^{n-2}M_n(m+1)\exp{2\pi im_ik/Ki}]^{-1}
1101-
%\]
1102-
1103-
\item Energy calculation : Reciprocal space potential is calculated by solving the Poisson equation in Fourier space. As noted earlier, solving the Poisson equation in Fourier space is simply a division by $k^2$, where k is the reciprocal space frequency. At the same time, the grid is modified to store the reciprocal space potential.
1104-
1105-
%\[
1106-
%E^{rec} = \frac{1}{2} \sum_{m_a=1}^{K_a-1} Q(m_1,m_2,m_3)(\theta_{rec}%*Q)(m_1,m_2,m_3)
1107-
%\]
1108-
%where
1109-
%\[
1110-
%\theta_{rec} = F(BXC)
1111-
%\]
1112-
%
1113-
%\[
1114-
%B(m_1,m_2,m_3) = \prod_{i=1}^{3} |b_i(m_i)|^2
1115-
%\]
1116-
%and
1117-
%\[
1118-
%C(m_1,m_2,m_3) = \frac{1}{\pi V} \frac{ \exp{- \pi^2 m^2 \beta^2}}{m^2}
1119-
%\]
1120-
%Here * is the convolution operation which is simply a product in the %reciprocal space.
1121-
1122-
\item Transformation of the grid back to real space : Inverse FFT is used to convert the reciprocal space potential back to the real space.
1123-
\item Force calculation : Force is given by the gradient of the energy. PME, SPME and P3M use different methods for calculating it. SPME specifically calculated it by analytic differentiation in the real space.
1124-
%\[
1125-
%\frac{\delta E_{rec}}{\delta r_i^a} = \sum_{m_a=0}^{K_a-1} \frac{\delta Q_{rec}}{\delta r_i^a}(m_1,m_2,m_3) (\theta_{rec}*Q)(m_1,m_2,m_3)
1126-
%\]
1127-
\end{enumerate}
1084+
While the original PME method uses Lagrangian interpolation for charge assignment, the SPME method uses the smoother cardinal B-splines (hence the name Smooth-PME) to distribute charge onto the grid.
1085+
1086+
\item Transformation of the grid to reciprocal space: A Fast Fourier Transform (FFT) is used to convert the charges on the grid to their equivalent Fourier space structure factors.
11281087

1088+
\item Energy calculation: The reciprocal space potential is calculated by solving the Poisson equation in Fourier space. At the same time, the grid is modified to store the reciprocal space potential.
1089+
\todo[inline, color={yellow!20}]{DLM: What does ``the grid is modified'' mean here and is it important? Does this mean just that the potential is stored at for each grid point?}
11291090

11301091

1131-
Optimizing the performance of grid based methods is tricky as many of the choices would already have been made in the implementation of the method. As a user, there are a few ways to tweak the performance of the SPME :
1092+
\item Transformation of the grid back to real space: An Inverse FFT is used to convert the reciprocal space potential back to the real space.
1093+
\item Force calculation: The force is given by the gradient of the potential.
1094+
PME, SPME and P3M use different methods for calculating the force given the resulting potential.
1095+
\end{enumerate}
1096+
1097+
1098+
Optimizing the performance of grid based methods can be somewhat challenging; many key choices are made in method implementation and only relative few settings are exposed to the user.
1099+
Some typical options include:
11321100

11331101
\begin{itemize}
1134-
\item Grid dimensions : A fine grid would be slower as the interpolation and calculations would have to be done at larger number of points. However its accuracy will be higher than a coarse grid.
1135-
\item Screening function : Some variants of Ewald summation have used screening function other than gaussian. In SPME implementations, one uses the Gaussian. The screening function can be varied via the spread of the gaussian. However, as discussed earlier, it is tightly coupled with direct space cutoff.
1136-
\item Cutoff of the direct space : Although it can be changed, it is generally kept the same as van der waals cutoff for the ease of implementation. Decreasing the cutoff improves the direct space performance but increases the complexity of the reciprocal space calculations.
1102+
\item Grid dimensions or spacing: A fine grid would be slower, requiring interpolation and calculations for more grid points, but in principle accuracy should be higher.
1103+
\item Screening function: The width of the Gaussian screening function can often be tuned, but the ideal width is coupled with the direct space cutoff giving limited room for tuning. In some cases alternate, non-Gaussian screening functions are available.
1104+
\item Direcf-space cutoff: This is typically kept at or near the value used for the van der Waals cutoff.
1105+
Decreasing the cutoff improves the direct space performance but increases the complexity of the reciprocal space calculations.
11371106
\end{itemize}
11381107

11391108

1109+
1110+
11401111
\begin{Checklists*}[p!]
11411112

11421113
\begin{checklist}{Take stock of your plans}

0 commit comments

Comments
 (0)