You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: paper/basic_training.tex
+19-48Lines changed: 19 additions & 48 deletions
Original file line number
Diff line number
Diff line change
@@ -1081,62 +1081,33 @@ \subsubsection{Grid based Ewald summation}
1081
1081
Grid-based Ewald summation approaches involve five general steps :
1082
1082
\begin{enumerate}
1083
1083
\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.
\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.
\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.
%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.
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.
1128
1087
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?}
1129
1090
1130
1091
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:
1132
1100
1133
1101
\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.
0 commit comments