ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/electrostaticMethodsPaper/electrostaticMethods.tex
Revision: 2645
Committed: Mon Mar 20 21:40:49 2006 UTC (19 years, 1 month ago) by gezelter
Content type: application/x-tex
File size: 60629 byte(s)
Log Message:
changes

File Contents

# Content
1 %\documentclass[prb,aps,twocolumn,tabularx]{revtex4}
2 %\documentclass[aps,prb,preprint]{revtex4}
3 \documentclass[11pt]{article}
4 \usepackage{endfloat}
5 \usepackage{amsmath,bm}
6 \usepackage{amssymb}
7 \usepackage{epsf}
8 \usepackage{times}
9 \usepackage{mathptmx}
10 \usepackage{setspace}
11 \usepackage{tabularx}
12 \usepackage{graphicx}
13 \usepackage{booktabs}
14 \usepackage{bibentry}
15 \usepackage{mathrsfs}
16 \usepackage[ref]{overcite}
17 \pagestyle{plain}
18 \pagenumbering{arabic}
19 \oddsidemargin 0.0cm \evensidemargin 0.0cm
20 \topmargin -21pt \headsep 10pt
21 \textheight 9.0in \textwidth 6.5in
22 \brokenpenalty=10000
23 \renewcommand{\baselinestretch}{1.2}
24 \renewcommand\citemid{\ } % no comma in optional reference note
25
26 \begin{document}
27
28 \title{Is the Ewald Summation necessary? Pairwise alternatives to the accepted standard for long-range electrostatics}
29
30 \author{Christopher J. Fennell and J. Daniel Gezelter\footnote{Corresponding author. \ Electronic mail:
31 gezelter@nd.edu} \\
32 Department of Chemistry and Biochemistry\\
33 University of Notre Dame\\
34 Notre Dame, Indiana 46556}
35
36 \date{\today}
37
38 \maketitle
39 \doublespacing
40
41 \nobibliography{}
42 \begin{abstract}
43 A new method for accumulating electrostatic interactions was derived
44 from the previous efforts described in \bibentry{Wolf99} and
45 \bibentry{Zahn02} as a possible replacement for lattice sum methods in
46 molecular simulations. Comparisons were performed with this and other
47 pairwise electrostatic summation techniques against the smooth
48 particle mesh Ewald (SPME) summation to see how well they reproduce
49 the energetics and dynamics of a variety of simulation types. The
50 newly derived Shifted-Force technique shows a remarkable ability to
51 reproduce the behavior exhibited in simulations using SPME with an
52 $\mathscr{O}(N)$ computational cost, equivalent to merely the
53 real-space portion of the lattice summation.
54
55 \end{abstract}
56
57 \newpage
58
59 %\narrowtext
60
61 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
62 % BODY OF TEXT
63 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
64
65 \section{Introduction}
66
67 In molecular simulations, proper accumulation of the electrostatic
68 interactions is essential and is one of the most
69 computationally-demanding tasks. The common molecular mechanics force
70 fields represent atomic sites with full or partial charges protected
71 by Lennard-Jones (short range) interactions. This means that nearly
72 every pair interaction involves a calculation of charge-charge forces.
73 Coupled with relatively long-ranged $r^{-1}$ decay, the monopole
74 interactions quickly become the most expensive part of molecular
75 simulations. Historically, the electrostatic pair interaction would
76 not have decayed appreciably within the typical box lengths that could
77 be feasibly simulated. In the larger systems that are more typical of
78 modern simulations, large cutoffs should be used to incorporate
79 electrostatics correctly.
80
81 There have been many efforts to address the proper and practical
82 handling of electrostatic interactions, and these have resulted in a
83 variety of techniques.\cite{Roux99,Sagui99,Tobias01} These are
84 typically classified as implicit methods (i.e., continuum dielectrics,
85 static dipolar fields),\cite{Born20,Grossfield00} explicit methods
86 (i.e., Ewald summations, interaction shifting or
87 truncation),\cite{Ewald21,Steinbach94} or a mixture of the two (i.e.,
88 reaction field type methods, fast multipole
89 methods).\cite{Onsager36,Rokhlin85} The explicit or mixed methods are
90 often preferred because they physically incorporate solvent molecules
91 in the system of interest, but these methods are sometimes difficult
92 to utilize because of their high computational cost.\cite{Roux99} In
93 addition to the computational cost, there have been some questions
94 regarding possible artifacts caused by the inherent periodicity of the
95 explicit Ewald summation.\cite{Tobias01}
96
97 In this paper, we focus on a new set of shifted methods devised by
98 Wolf {\it et al.},\cite{Wolf99} which we further extend. These
99 methods along with a few other mixed methods (i.e. reaction field) are
100 compared with the smooth particle mesh Ewald
101 sum,\cite{Onsager36,Essmann99} which is our reference method for
102 handling long-range electrostatic interactions. The new methods for
103 handling electrostatics have the potential to scale linearly with
104 increasing system size since they involve only a simple modification
105 to the direct pairwise sum. They also lack the added periodicity of
106 the Ewald sum, so they can be used for systems which are non-periodic
107 or which have one- or two-dimensional periodicity. Below, these
108 methods are evaluated using a variety of model systems to establish
109 their usability in molecular simulations.
110
111 \subsection{The Ewald Sum}
112 The complete accumulation electrostatic interactions in a system with
113 periodic boundary conditions (PBC) requires the consideration of the
114 effect of all charges within a (cubic) simulation box as well as those
115 in the periodic replicas,
116 \begin{equation}
117 V_\textrm{elec} = \frac{1}{2} {\sum_{\mathbf{n}}}^\prime \left[ \sum_{i=1}^N\sum_{j=1}^N \phi\left( \mathbf{r}_{ij} + L\mathbf{n},\bm{\Omega}_i,\bm{\Omega}_j\right) \right],
118 \label{eq:PBCSum}
119 \end{equation}
120 where the sum over $\mathbf{n}$ is a sum over all periodic box
121 replicas with integer coordinates $\mathbf{n} = (l,m,n)$, and the
122 prime indicates $i = j$ are neglected for $\mathbf{n} =
123 0$.\cite{deLeeuw80} Within the sum, $N$ is the number of electrostatic
124 particles, $\mathbf{r}_{ij}$ is $\mathbf{r}_j - \mathbf{r}_i$, $L$ is
125 the cell length, $\bm{\Omega}_{i,j}$ are the Euler angles for $i$ and
126 $j$, and $\phi$ is the solution to Poisson's equation
127 ($\phi(\mathbf{r}_{ij}) = q_i q_j |\mathbf{r}_{ij}|^{-1}$ for
128 charge-charge interactions). In the case of monopole electrostatics,
129 eq. (\ref{eq:PBCSum}) is conditionally convergent and is divergent for
130 non-neutral systems.
131
132 The electrostatic summation problem was originally studied by Ewald
133 for the case of an infinite crystal.\cite{Ewald21}. The approach he
134 took was to convert this conditionally convergent sum into two
135 absolutely convergent summations: a short-ranged real-space summation
136 and a long-ranged reciprocal-space summation,
137 \begin{equation}
138 \begin{split}
139 V_\textrm{elec} = \frac{1}{2}& \sum_{i=1}^N\sum_{j=1}^N \Biggr[ q_i q_j\Biggr( {\sum_{\mathbf{n}}}^\prime \frac{\textrm{erfc}\left( \alpha|\mathbf{r}_{ij}+\mathbf{n}|\right)}{|\mathbf{r}_{ij}+\mathbf{n}|} \\ &+ \frac{1}{\pi L^3}\sum_{\mathbf{k}\ne 0}\frac{4\pi^2}{|\mathbf{k}|^2} \exp{\left(-\frac{\pi^2|\mathbf{k}|^2}{\alpha^2}\right) \cos\left(\mathbf{k}\cdot\mathbf{r}_{ij}\right)}\Biggr)\Biggr] \\ &- \frac{\alpha}{\pi^{1/2}}\sum_{i=1}^N q_i^2 + \frac{2\pi}{(2\epsilon_\textrm{S}+1)L^3}\left|\sum_{i=1}^N q_i\mathbf{r}_i\right|^2,
140 \end{split}
141 \label{eq:EwaldSum}
142 \end{equation}
143 where $\alpha$ is a damping parameter, or separation constant, with
144 units of \AA$^{-1}$, $\mathbf{k}$ are the reciprocal vectors and are
145 equal to $2\pi\mathbf{n}/L^2$, and $\epsilon_\textrm{S}$ is the
146 dielectric constant of the surrounding medium. The final two terms of
147 eq. (\ref{eq:EwaldSum}) are a particle-self term and a dipolar term
148 for interacting with a surrounding dielectric.\cite{Allen87} This
149 dipolar term was neglected in early applications in molecular
150 simulations,\cite{Brush66,Woodcock71} until it was introduced by de
151 Leeuw {\it et al.} to address situations where the unit cell has a
152 dipole moment which is magnified through replication of the periodic
153 images.\cite{deLeeuw80,Smith81} If this term is taken to be zero, the
154 system is said to be using conducting (or ``tin-foil'') boundary
155 conditions, $\epsilon_{\rm S} = \infty$. Figure
156 \ref{fig:ewaldTime} shows how the Ewald sum has been applied over
157 time. Initially, due to the small sizes of the systems that could be
158 feasibly simulated, the entire simulation box was replicated to
159 convergence. In more modern simulations, the simulation boxes have
160 grown large enough that a real-space cutoff could potentially give
161 convergent behavior. Indeed, it has often been observed that the
162 reciprocal-space portion of the Ewald sum can be vanishingly
163 small compared to the real-space portion.\cite{XXX}
164
165 \begin{figure}
166 \centering
167 \includegraphics[width = \linewidth]{./ewaldProgression.pdf}
168 \caption{How the application of the Ewald summation has changed with
169 the increase in computer power. Initially, only small numbers of
170 particles could be studied, and the Ewald sum acted to replicate the
171 unit cell charge distribution out to convergence. Now, much larger
172 systems of charges are investigated with fixed distance cutoffs. The
173 calculated structure factor is used to sum out to great distance, and
174 a surrounding dielectric term is included.}
175 \label{fig:ewaldTime}
176 \end{figure}
177
178 The original Ewald summation is an $\mathscr{O}(N^2)$ algorithm. The
179 separation constant $(\alpha)$ plays an important role in balancing
180 the computational cost between the direct and reciprocal-space
181 portions of the summation. The choice of this value allows one to
182 select whether the real-space or reciprocal space portion of the
183 summation is an $\mathscr{O}(N^2)$ calculation (with the other being
184 $\mathscr{O}(N)$).\cite{Sagui99} With the appropriate choice of
185 $\alpha$ and thoughtful algorithm development, this cost can be
186 reduced to $\mathscr{O}(N^{3/2})$.\cite{Perram88} The typical route
187 taken to reduce the cost of the Ewald summation even further is to set
188 $\alpha$ such that the real-space interactions decay rapidly, allowing
189 for a short spherical cutoff. Then the reciprocal space summation is
190 optimized. These optimizations usually involve utilization of the
191 fast Fourier transform (FFT),\cite{Hockney81} leading to the
192 particle-particle particle-mesh (P3M) and particle mesh Ewald (PME)
193 methods.\cite{Shimada93,Luty94,Luty95,Darden93,Essmann95} In these
194 methods, the cost of the reciprocal-space portion of the Ewald
195 summation is reduced from $\mathscr{O}(N^2)$ down to $\mathscr{O}(N
196 \log N)$.
197
198 These developments and optimizations have made the use of the Ewald
199 summation routine in simulations with periodic boundary
200 conditions. However, in certain systems, such as vapor-liquid
201 interfaces and membranes, the intrinsic three-dimensional periodicity
202 can prove problematic. The Ewald sum has been reformulated to handle
203 2D systems,\cite{Parry75,Parry76,Heyes77,deLeeuw79,Rhee89}, but the
204 new methods are computationally expensive.\cite{Spohr97,Yeh99}
205 Inclusion of a correction term in the Ewald summation is a possible
206 direction for handling 2D systems while still enabling the use of the
207 modern optimizations.\cite{Yeh99}
208
209 Several studies have recognized that the inherent periodicity in the
210 Ewald sum can also have an effect on three-dimensional
211 systems.\cite{Roberts94,Roberts95,Luty96,Hunenberger99a,Hunenberger99b,Weber00}
212 Solvated proteins are essentially kept at high concentration due to
213 the periodicity of the electrostatic summation method. In these
214 systems, the more compact folded states of a protein can be
215 artificially stabilized by the periodic replicas introduced by the
216 Ewald summation.\cite{Weber00} Thus, care must be taken when
217 considering the use of the Ewald summation where the assumed
218 periodicity would introduce spurious effects in the system dynamics.
219
220 \subsection{The Wolf and Zahn Methods}
221 In a recent paper by Wolf \textit{et al.}, a procedure was outlined
222 for the accurate accumulation of electrostatic interactions in an
223 efficient pairwise fashion. This procedure lacks the inherent
224 periodicity of the Ewald summation.\cite{Wolf99} Wolf \textit{et al.}
225 observed that the electrostatic interaction is effectively
226 short-ranged in condensed phase systems and that neutralization of the
227 charge contained within the cutoff radius is crucial for potential
228 stability. They devised a pairwise summation method that ensures
229 charge neutrality and gives results similar to those obtained with the
230 Ewald summation. The resulting shifted Coulomb potential
231 (Eq. \ref{eq:WolfPot}) includes image-charges subtracted out through
232 placement on the cutoff sphere and a distance-dependent damping
233 function (identical to that seen in the real-space portion of the
234 Ewald sum) to aid convergence
235 \begin{equation}
236 V_{\textrm{Wolf}}(r_{ij})= \frac{q_i q_j \textrm{erfc}(\alpha r_{ij})}{r_{ij}}-\lim_{r_{ij}\rightarrow R_\textrm{c}}\left\{\frac{q_iq_j \textrm{erfc}(\alpha r_{ij})}{r_{ij}}\right\}.
237 \label{eq:WolfPot}
238 \end{equation}
239 Eq. (\ref{eq:WolfPot}) is essentially the common form of a shifted
240 potential. However, neutralizing the charge contained within each
241 cutoff sphere requires the placement of a self-image charge on the
242 surface of the cutoff sphere. This additional self-term in the total
243 potential enabled Wolf {\it et al.} to obtain excellent estimates of
244 Madelung energies for many crystals.
245
246 In order to use their charge-neutralized potential in molecular
247 dynamics simulations, Wolf \textit{et al.} suggested taking the
248 derivative of this potential prior to evaluation of the limit. This
249 procedure gives an expression for the forces,
250 \begin{equation}
251 F_{\textrm{Wolf}}(r_{ij}) = q_i q_j\left\{\left[\frac{\textrm{erfc}\left(\alpha r_{ij}\right)}{r^2_{ij}}+\frac{2\alpha}{\pi^{1/2}}\frac{\exp{\left(-\alpha^2r_{ij}^2\right)}}{r_{ij}}\right]-\left[\frac{\textrm{erfc}\left(\alpha R_{\textrm{c}}\right)}{R_{\textrm{c}}^2}+\frac{2\alpha}{\pi^{1/2}}\frac{\exp{\left(-\alpha^2R_{\textrm{c}}^2\right)}}{R_{\textrm{c}}}\right]\right\},
252 \label{eq:WolfForces}
253 \end{equation}
254 that incorporates both image charges and damping of the electrostatic
255 interaction.
256
257 More recently, Zahn \textit{et al.} investigated these potential and
258 force expressions for use in simulations involving water.\cite{Zahn02}
259 In their work, they pointed out that the forces and derivative of
260 the potential are not commensurate. Attempts to use both
261 eqs. (\ref{eq:WolfPot}) and (\ref{eq:WolfForces}) together will lead
262 to poor energy conservation. They correctly observed that taking the
263 limit shown in equation (\ref{eq:WolfPot}) {\it after} calculating the
264 derivatives gives forces for a different potential energy function
265 than the one shown in eq. (\ref{eq:WolfPot}).
266
267 Zahn \textit{et al.} introduced a modified form of this summation
268 method as a way to use the technique in Molecular Dynamics
269 simulations. They proposed a new damped Coulomb potential,
270 \begin{equation}
271 V_{\textrm{Zahn}}(r_{ij}) = q_iq_j\left\{\frac{\mathrm{erfc}\left(\alpha r_{ij}\right)}{r_{ij}}-\left[\frac{\mathrm{erfc}\left(\alpha R_\mathrm{c}\right)}{R_\mathrm{c}^2}+\frac{2\alpha}{\pi^{1/2}}\frac{\exp\left(-\alpha^2R_\mathrm{c}^2\right)}{R_\mathrm{c}}\right]\left(r_{ij}-R_\mathrm{c}\right)\right\},
272 \label{eq:ZahnPot}
273 \end{equation}
274 and showed that this potential does fairly well at capturing the
275 structural and dynamic properties of water compared the same
276 properties obtained using the Ewald sum.
277
278 \subsection{Simple Forms for Pairwise Electrostatics}
279
280 The potentials proposed by Wolf \textit{et al.} and Zahn \textit{et
281 al.} are constructed using two different (and separable) computational
282 tricks: \begin{enumerate}
283 \item shifting through the use of image charges, and
284 \item damping the electrostatic interaction.
285 \end{enumerate} Wolf \textit{et al.} treated the
286 development of their summation method as a progressive application of
287 these techniques,\cite{Wolf99} while Zahn \textit{et al.} founded
288 their damped Coulomb modification (Eq. (\ref{eq:ZahnPot})) on the
289 post-limit forces (Eq. (\ref{eq:WolfForces})) which were derived using
290 both techniques. It is possible, however, to separate these
291 tricks and study their effects independently.
292
293 Starting with the original observation that the effective range of the
294 electrostatic interaction in condensed phases is considerably less
295 than $r^{-1}$, either the cutoff sphere neutralization or the
296 distance-dependent damping technique could be used as a foundation for
297 a new pairwise summation method. Wolf \textit{et al.} made the
298 observation that charge neutralization within the cutoff sphere plays
299 a significant role in energy convergence; therefore we will begin our
300 analysis with the various shifted forms that maintain this charge
301 neutralization. We can evaluate the methods of Wolf
302 \textit{et al.} and Zahn \textit{et al.} by considering the standard
303 shifted potential,
304 \begin{equation}
305 V_\textrm{SP}(r) = \begin{cases}
306 v(r)-v_\textrm{c} &\quad r\leqslant R_\textrm{c} \\ 0 &\quad r >
307 R_\textrm{c}
308 \end{cases},
309 \label{eq:shiftingPotForm}
310 \end{equation}
311 and shifted force,
312 \begin{equation}
313 V_\textrm{SF}(r) = \begin{cases}
314 v(r)-v_\textrm{c}-\left(\frac{d v(r)}{d r}\right)_{r=R_\textrm{c}}(r-R_\textrm{c})
315 &\quad r\leqslant R_\textrm{c} \\ 0 &\quad r > R_\textrm{c}
316 \end{cases},
317 \label{eq:shiftingForm}
318 \end{equation}
319 functions where $v(r)$ is the unshifted form of the potential, and
320 $v_c$ is $v(R_\textrm{c})$. The Shifted Force ({\sc sf}) form ensures
321 that both the potential and the forces goes to zero at the cutoff
322 radius, while the Shifted Potential ({\sc sp}) form only ensures the
323 potential is smooth at the cutoff radius
324 ($R_\textrm{c}$).\cite{Allen87}
325
326 The forces associated with the shifted potential are simply the forces
327 of the unshifted potential itself (when inside the cutoff sphere),
328 \begin{equation}
329 F_{\textrm{SP}} = -\left( \frac{d v(r)}{dr} \right),
330 \end{equation}
331 and are zero outside. Inside the cutoff sphere, the forces associated
332 with the shifted force form can be written,
333 \begin{equation}
334 F_{\textrm{SF}} = -\left( \frac{d v(r)}{dr} \right) + \left(\frac{d
335 v(r)}{dr} \right)_{r=R_\textrm{c}}.
336 \end{equation}
337
338 If the potential, $v(r)$, is taken to be the normal Coulomb potential,
339 \begin{equation}
340 v(r) = \frac{q_i q_j}{r},
341 \label{eq:Coulomb}
342 \end{equation}
343 then the Shifted Potential ({\sc sp}) forms will give Wolf {\it et
344 al.}'s undamped prescription:
345 \begin{equation}
346 V_\textrm{SP}(r) =
347 q_iq_j\left(\frac{1}{r}-\frac{1}{R_\textrm{c}}\right) \quad
348 r\leqslant R_\textrm{c},
349 \label{eq:SPPot}
350 \end{equation}
351 with associated forces,
352 \begin{equation}
353 F_\textrm{SP}(r) = q_iq_j\left(\frac{1}{r^2}\right) \quad r\leqslant R_\textrm{c}.
354 \label{eq:SPForces}
355 \end{equation}
356 These forces are identical to the forces of the standard Coulomb
357 interaction, and cutting these off at $R_c$ was addressed by Wolf
358 \textit{et al.} as undesirable. They pointed out that the effect of
359 the image charges is neglected in the forces when this form is
360 used,\cite{Wolf99} thereby eliminating any benefit from the method in
361 molecular dynamics. Additionally, there is a discontinuity in the
362 forces at the cutoff radius which results in energy drift during MD
363 simulations.
364
365 The shifted force ({\sc sf}) form using the normal Coulomb potential
366 will give,
367 \begin{equation}
368 V_\textrm{SF}(r) = q_iq_j\left[\frac{1}{r}-\frac{1}{R_\textrm{c}}+\left(\frac{1}{R_\textrm{c}^2}\right)(r-R_\textrm{c})\right] \quad r\leqslant R_\textrm{c}.
369 \label{eq:SFPot}
370 \end{equation}
371 with associated forces,
372 \begin{equation}
373 F_\textrm{SF}(r) = q_iq_j\left(\frac{1}{r^2}-\frac{1}{R_\textrm{c}^2}\right) \quad r\leqslant R_\textrm{c}.
374 \label{eq:SFForces}
375 \end{equation}
376 This formulation has the benefits that there are no discontinuities at
377 the cutoff radius, while the neutralizing image charges are present in
378 both the energy and force expressions. It would be simple to add the
379 self-neutralizing term back when computing the total energy of the
380 system, thereby maintaining the agreement with the Madelung energies.
381 A side effect of this treatment is the alteration in the shape of the
382 potential that comes from the derivative term. Thus, a degree of
383 clarity about agreement with the empirical potential is lost in order
384 to gain functionality in dynamics simulations.
385
386 Wolf \textit{et al.} originally discussed the energetics of the
387 shifted Coulomb potential (Eq. \ref{eq:SPPot}) and found that it was
388 insufficient for accurate determination of the energy with reasonable
389 cutoff distances. The calculated Madelung energies fluctuated around
390 the expected value as the cutoff radius was increased, but the
391 oscillations converged toward the correct value.\cite{Wolf99} A
392 damping function was incorporated to accelerate the convergence; and
393 though alternative forms for the damping function could be
394 used,\cite{Jones56,Heyes81} the complimentary error function was
395 chosen to mirror the effective screening used in the Ewald summation.
396 Incorporating this error function damping into the simple Coulomb
397 potential,
398 \begin{equation}
399 v(r) = \frac{\mathrm{erfc}\left(\alpha r\right)}{r},
400 \label{eq:dampCoulomb}
401 \end{equation}
402 the shifted potential (eq. (\ref{eq:SPPot})) becomes
403 \begin{equation}
404 V_{\textrm{DSP}}(r) = q_iq_j\left(\frac{\textrm{erfc}\left(\alpha r\right)}{r}-\frac{\textrm{erfc}\left(\alpha R_\textrm{c}\right)}{R_\textrm{c}}\right) \quad r\leqslant R_\textrm{c},
405 \label{eq:DSPPot}
406 \end{equation}
407 with associated forces,
408 \begin{equation}
409 F_{\textrm{DSP}}(r) = q_iq_j\left(\frac{\textrm{erfc}\left(\alpha r\right)}{r^2}+\frac{2\alpha}{\pi^{1/2}}\frac{\exp{\left(-\alpha^2r^2\right)}}{r}\right) \quad r\leqslant R_\textrm{c}.
410 \label{eq:DSPForces}
411 \end{equation}
412 Again, this damped shifted potential suffers from a
413 force-discontinuity at the cutoff radius, and the image charges play
414 no role in the forces. To remedy these concerns, one may derive a
415 {\sc sf} variant by including the derivative term in
416 eq. (\ref{eq:shiftingForm}),
417 \begin{equation}
418 \begin{split}
419 V_\mathrm{DSF}(r) = q_iq_j\Biggr{[}&\frac{\mathrm{erfc}\left(\alpha r\right)}{r}-\frac{\mathrm{erfc}\left(\alpha R_\mathrm{c}\right)}{R_\mathrm{c}} \\ &\left.+\left(\frac{\mathrm{erfc}\left(\alpha R_\mathrm{c}\right)}{R_\mathrm{c}^2}+\frac{2\alpha}{\pi^{1/2}}\frac{\exp\left(-\alpha^2R_\mathrm{c}^2\right)}{R_\mathrm{c}}\right)\left(r-R_\mathrm{c}\right)\ \right] \quad r\leqslant R_\textrm{c}.
420 \label{eq:DSFPot}
421 \end{split}
422 \end{equation}
423 The derivative of the above potential will lead to the following forces,
424 \begin{equation}
425 \begin{split}
426 F_\mathrm{DSF}(r) = q_iq_j\Biggr{[}&\left(\frac{\textrm{erfc}\left(\alpha r\right)}{r^2}+\frac{2\alpha}{\pi^{1/2}}\frac{\exp{\left(-\alpha^2r^2\right)}}{r}\right) \\ &\left.-\left(\frac{\textrm{erfc}\left(\alpha R_{\textrm{c}}\right)}{R_{\textrm{c}}^2}+\frac{2\alpha}{\pi^{1/2}}\frac{\exp{\left(-\alpha^2R_{\textrm{c}}^2\right)}}{R_{\textrm{c}}}\right)\right] \quad r\leqslant R_\textrm{c}.
427 \label{eq:DSFForces}
428 \end{split}
429 \end{equation}
430 If the damping parameter $(\alpha)$ is set to zero, the undamped case,
431 eqs. (\ref{eq:SPPot} through \ref{eq:SFForces}) are correctly
432 recovered from eqs. (\ref{eq:DSPPot} through \ref{eq:DSFForces}).
433
434 This new {\sc sf} potential is similar to equation \ref{eq:ZahnPot}
435 derived by Zahn \textit{et al.}; however, there are two important
436 differences.\cite{Zahn02} First, the $v_\textrm{c}$ term from
437 eq. (\ref{eq:shiftingForm}) is equal to eq. (\ref{eq:dampCoulomb})
438 with $r$ replaced by $R_\textrm{c}$. This term is {\it not} present
439 in the Zahn potential, resulting in a potential discontinuity as
440 particles cross $R_\textrm{c}$. Second, the sign of the derivative
441 portion is different. The missing $v_\textrm{c}$ term would not
442 affect molecular dynamics simulations (although the computed energy
443 would be expected to have sudden jumps as particle distances crossed
444 $R_c$). The sign problem is a potential source of errors, however.
445 In fact, it introduces a discontinuity in the forces at the cutoff,
446 because the force function is shifted in the wrong direction and
447 doesn't cross zero at $R_\textrm{c}$.
448
449 Eqs. (\ref{eq:DSFPot}) and (\ref{eq:DSFForces}) result in an
450 electrostatic summation method in which the potential and forces are
451 continuous at the cutoff radius and which incorporates the damping
452 function proposed by Wolf \textit{et al.}\cite{Wolf99} In the rest of
453 this paper, we will evaluate exactly how good these methods ({\sc sp},
454 {\sc sf}, damping) are at reproducing the correct electrostatic
455 summation performed by the Ewald sum.
456
457 \subsection{Other alternatives}
458 In addition to the methods described above, we considered some other
459 techniques that are commonly used in molecular simulations. The
460 simplest of these is group-based cutoffs. Though of little use for
461 charged molecules, collecting atoms into neutral groups takes
462 advantage of the observation that the electrostatic interactions decay
463 faster than those for monopolar pairs.\cite{Steinbach94} When
464 considering these molecules as neutral groups, the relative
465 orientations of the molecules control the strength of the interactions
466 at the cutoff radius. Consequently, as these molecular particles move
467 through $R_\textrm{c}$, the energy will drift upward due to the
468 anisotropy of the net molecular dipole interactions.\cite{Rahman71} To
469 maintain good energy conservation, both the potential and derivative
470 need to be smoothly switched to zero at $R_\textrm{c}$.\cite{Adams79}
471 This is accomplished using a standard switching function. If a smooth
472 second derivative is desired, a fifth (or higher) order polynomial can
473 be used.\cite{Andrea83}
474
475 Group-based cutoffs neglect the surroundings beyond $R_\textrm{c}$,
476 and to incorporate the effects of the surroundings, a method like
477 Reaction Field ({\sc rf}) can be used. The original theory for {\sc
478 rf} was originally developed by Onsager,\cite{Onsager36} and it was
479 applied in simulations for the study of water by Barker and
480 Watts.\cite{Barker73} In modern simulation codes, {\sc rf} is simply
481 an extension of the group-based cutoff method where the net dipole
482 within the cutoff sphere polarizes an external dielectric, which
483 reacts back on the central dipole. The same switching function
484 considerations for group-based cutoffs need to made for {\sc rf}, with
485 the additional pre-specification of a dielectric constant.
486
487 \section{Methods}
488
489 In classical molecular mechanics simulations, there are two primary
490 techniques utilized to obtain information about the system of
491 interest: Monte Carlo (MC) and Molecular Dynamics (MD). Both of these
492 techniques utilize pairwise summations of interactions between
493 particle sites, but they use these summations in different ways.
494
495 In MC, the potential energy difference between configurations dictates
496 the progression of MC sampling. Going back to the origins of this
497 method, the acceptance criterion for the canonical ensemble laid out
498 by Metropolis \textit{et al.} states that a subsequent configuration
499 is accepted if $\Delta E < 0$ or if $\xi < \exp(-\Delta E/kT)$, where
500 $\xi$ is a random number between 0 and 1.\cite{Metropolis53}
501 Maintaining the correct $\Delta E$ when using an alternate method for
502 handling the long-range electrostatics will ensure proper sampling
503 from the ensemble.
504
505 In MD, the derivative of the potential governs how the system will
506 progress in time. Consequently, the force and torque vectors on each
507 body in the system dictate how the system evolves. If the magnitude
508 and direction of these vectors are similar when using alternate
509 electrostatic summation techniques, the dynamics in the short term
510 will be indistinguishable. Because error in MD calculations is
511 cumulative, one should expect greater deviation at longer times,
512 although methods which have large differences in the force and torque
513 vectors will diverge from each other more rapidly.
514
515 \subsection{Monte Carlo and the Energy Gap}\label{sec:MCMethods}
516
517 The pairwise summation techniques (outlined in section
518 \ref{sec:ESMethods}) were evaluated for use in MC simulations by
519 studying the energy differences between conformations. We took the
520 SPME-computed energy difference between two conformations to be the
521 correct behavior. An ideal performance by an alternative method would
522 reproduce these energy differences exactly (even if the absolute
523 energies calculated by the methods are different). Since none of the
524 methods provide exact energy differences, we used linear least squares
525 regressions of energy gap data to evaluate how closely the methods
526 mimicked the Ewald energy gaps. Unitary results for both the
527 correlation (slope) and correlation coefficient for these regressions
528 indicate perfect agreement between the alternative method and SPME.
529 Sample correlation plots for two alternate methods are shown in
530 Fig. \ref{fig:linearFit}.
531
532 \begin{figure}
533 \centering
534 \includegraphics[width = \linewidth]{./dualLinear.pdf}
535 \caption{Example least squares regressions of the configuration energy
536 differences for SPC/E water systems. The upper plot shows a data set
537 with a poor correlation coefficient ($R^2$), while the lower plot
538 shows a data set with a good correlation coefficient.}
539 \label{fig:linearFit}
540 \end{figure}
541
542 Each system type (detailed in section \ref{sec:RepSims}) was
543 represented using 500 independent configurations. Additionally, we
544 used seven different system types, so each of the alternative
545 (non-Ewald) electrostatic summation methods was evaluated using
546 873,250 configurational energy differences.
547
548 Results and discussion for the individual analysis of each of the
549 system types appear in the supporting information, while the
550 cumulative results over all the investigated systems appears below in
551 section \ref{sec:EnergyResults}.
552
553 \subsection{Molecular Dynamics and the Force and Torque Vectors}\label{sec:MDMethods}
554 We evaluated the pairwise methods (outlined in section
555 \ref{sec:ESMethods}) for use in MD simulations by
556 comparing the force and torque vectors with those obtained using the
557 reference Ewald summation (SPME). Both the magnitude and the
558 direction of these vectors on each of the bodies in the system were
559 analyzed. For the magnitude of these vectors, linear least squares
560 regression analyses were performed as described previously for
561 comparing $\Delta E$ values. Instead of a single energy difference
562 between two system configurations, we compared the magnitudes of the
563 forces (and torques) on each molecule in each configuration. For a
564 system of 1000 water molecules and 40 ions, there are 1040 force
565 vectors and 1000 torque vectors. With 500 configurations, this
566 results in 520,000 force and 500,000 torque vector comparisons.
567 Additionally, data from seven different system types was aggregated
568 before the comparison was made.
569
570 The {\it directionality} of the force and torque vectors was
571 investigated through measurement of the angle ($\theta$) formed
572 between those computed from the particular method and those from SPME,
573 \begin{equation}
574 \theta_f = \cos^{-1} \left(\hat{F}_\textrm{SPME} \cdot \hat{F}_\textrm{M}\right),
575 \end{equation}
576 where $\hat{f}_\textrm{M}$ is the unit vector pointing along the force
577 vector computed using method M.
578
579 Each of these $\theta$ values was accumulated in a distribution
580 function and weighted by the area on the unit sphere. Non-linear
581 Gaussian fits were used to measure the width of the resulting
582 distributions.
583
584 \begin{figure}
585 \centering
586 \includegraphics[width = \linewidth]{./gaussFit.pdf}
587 \caption{Sample fit of the angular distribution of the force vectors
588 accumulated using all of the studied systems. Gaussian fits were used
589 to obtain values for the variance in force and torque vectors.}
590 \label{fig:gaussian}
591 \end{figure}
592
593 Figure \ref{fig:gaussian} shows an example distribution with applied
594 non-linear fits. The solid line is a Gaussian profile, while the
595 dotted line is a Voigt profile, a convolution of a Gaussian and a
596 Lorentzian. Since this distribution is a measure of angular error
597 between two different electrostatic summation methods, there is no
598 {\it a priori} reason for the profile to adhere to any specific shape.
599 Gaussian fits was used to compare all the tested methods. The
600 variance ($\sigma^2$) was extracted from each of these fits and was
601 used to compare distribution widths. Values of $\sigma^2$ near zero
602 indicate vector directions indistinguishable from those calculated
603 when using the reference method (SPME).
604
605 \subsection{Short-time Dynamics}
606
607 The effects of the alternative electrostatic summation methods on the
608 short-time dynamics of charged systems were evaluated by considering a
609 NaCl crystal at a temperature of 1000 K. A subset of the best
610 performing pairwise methods was used in this comparison. The NaCl
611 crystal was chosen to avoid possible complications from the treatment
612 of orientational motion in molecular systems. All systems were
613 started with the same initial positions and velocities. Simulations
614 were performed under the microcanonical ensemble, and velocity
615 autocorrelation functions (Eq. \ref{eq:vCorr}) were computed for each
616 of the trajectories,
617 \begin{equation}
618 C_v(t) = \frac{\langle v_i(0)\cdot v_i(t)\rangle}{\langle v_i(0)\cdot v_i(0)\rangle}.
619 \label{eq:vCorr}
620 \end{equation}
621 Velocity autocorrelation functions require detailed short time data,
622 thus velocity information was saved every 2 fs over 10 ps
623 trajectories. Because the NaCl crystal is composed of two different
624 atom types, the average of the two resulting velocity autocorrelation
625 functions was used for comparisons.
626
627 \subsection{Long-Time and Collective Motion}\label{sec:LongTimeMethods}
628
629 The effects of the same subset of alternative electrostatic methods on
630 the {\it long-time} dynamics of charged systems were evaluated using
631 the same model system (NaCl crystals at 1000K). The power spectrum
632 ($I(\omega)$) was obtained via Fourier transform of the velocity
633 autocorrelation function, \begin{equation} I(\omega) =
634 \frac{1}{2\pi}\int^{\infty}_{-\infty}C_v(t)e^{-i\omega t}dt,
635 \label{eq:powerSpec}
636 \end{equation}
637 where the frequency, $\omega=0,\ 1,\ ...,\ N-1$. Again, because the
638 NaCl crystal is composed of two different atom types, the average of
639 the two resulting power spectra was used for comparisons. Simulations
640 were performed under the microcanonical ensemble, and velocity
641 information was saved every 5 fs over 100 ps trajectories.
642
643 \subsection{Representative Simulations}\label{sec:RepSims}
644 A variety of representative simulations were analyzed to determine the
645 relative effectiveness of the pairwise summation techniques in
646 reproducing the energetics and dynamics exhibited by SPME. We wanted
647 to span the space of modern simulations (i.e. from liquids of neutral
648 molecules to ionic crystals), so the systems studied were:
649 \begin{enumerate}
650 \item liquid water (SPC/E),\cite{Berendsen87}
651 \item crystalline water (Ice I$_\textrm{c}$ crystals of SPC/E),
652 \item NaCl crystals,
653 \item NaCl melts,
654 \item a low ionic strength solution of NaCl in water (0.11 M),
655 \item a high ionic strength solution of NaCl in water (1.1 M), and
656 \item a 6 \AA\ radius sphere of Argon in water.
657 \end{enumerate}
658 By utilizing the pairwise techniques (outlined in section
659 \ref{sec:ESMethods}) in systems composed entirely of neutral groups,
660 charged particles, and mixtures of the two, we hope to discern under
661 which conditions it will be possible to use one of the alternative
662 summation methodologies instead of the Ewald sum.
663
664 For the solid and liquid water configurations, configurations were
665 taken at regular intervals from high temperature trajectories of 1000
666 SPC/E water molecules. Each configuration was equilibrated
667 independently at a lower temperature (300~K for the liquid, 200~K for
668 the crystal). The solid and liquid NaCl systems consisted of 500
669 $\textrm{Na}^{+}$ and 500 $\textrm{Cl}^{-}$ ions. Configurations for
670 these systems were selected and equilibrated in the same manner as the
671 water systems. The equilibrated temperatures were 1000~K for the NaCl
672 crystal and 7000~K for the liquid. The ionic solutions were made by
673 solvating 4 (or 40) ions in a periodic box containing 1000 SPC/E water
674 molecules. Ion and water positions were then randomly swapped, and
675 the resulting configurations were again equilibrated individually.
676 Finally, for the Argon / Water ``charge void'' systems, the identities
677 of all the SPC/E waters within 6 \AA\ of the center of the
678 equilibrated water configurations were converted to argon
679 (Fig. \ref{fig:argonSlice}).
680
681 These procedures guaranteed us a set of representative configurations
682 from chemically-relevant systems sampled from an appropriate
683 ensemble. Force field parameters for the ions and Argon were taken
684 from the force field utilized by {\sc oopse}.\cite{Meineke05}
685
686 \begin{figure}
687 \centering
688 \includegraphics[width = \linewidth]{./slice.pdf}
689 \caption{A slice from the center of a water box used in a charge void
690 simulation. The darkened region represents the boundary sphere within
691 which the water molecules were converted to argon atoms.}
692 \label{fig:argonSlice}
693 \end{figure}
694
695 \subsection{Comparison of Summation Methods}\label{sec:ESMethods}
696 We compared the following alternative summation methods with results
697 from the reference method (SPME):
698 \begin{itemize}
699 \item {\sc sp} with damping parameters ($\alpha$) of 0.0, 0.1, 0.2,
700 and 0.3 \AA$^{-1}$,
701 \item {\sc sf} with damping parameters ($\alpha$) of 0.0, 0.1, 0.2,
702 and 0.3 \AA$^{-1}$,
703 \item reaction field with an infinite dielectric constant, and
704 \item an unmodified cutoff.
705 \end{itemize}
706 Group-based cutoffs with a fifth-order polynomial switching function
707 were utilized for the reaction field simulations. Additionally, we
708 investigated the use of these cutoffs with the SP, SF, and pure
709 cutoff. The SPME electrostatics were performed using the TINKER
710 implementation of SPME,\cite{Ponder87} while all other method
711 calculations were performed using the OOPSE molecular mechanics
712 package.\cite{Meineke05} All other portions of the energy calculation
713 (i.e. Lennard-Jones interactions) were handled in exactly the same
714 manner across all systems and configurations.
715
716 The althernative methods were also evaluated with three different
717 cutoff radii (9, 12, and 15 \AA). It should be noted that the damping
718 parameter chosen in SPME, or so called ``Ewald Coefficient'', has a
719 significant effect on the energies and forces calculated. Typical
720 molecular mechanics packages set this to a value dependent on the
721 cutoff radius and a tolerance (typically less than $1 \times 10^{-4}$
722 kcal/mol). Smaller tolerances are typically associated with increased
723 accuracy at the expense of increased time spent calculating the
724 reciprocal-space portion of the summation.\cite{Perram88,Essmann95}
725 The default TINKER tolerance of $1 \times 10^{-8}$ kcal/mol was used
726 in all SPME calculations, resulting in Ewald Coefficients of 0.4200,
727 0.3119, and 0.2476 \AA$^{-1}$ for cutoff radii of 9, 12, and 15 \AA\
728 respectively.
729
730 \section{Results and Discussion}
731
732 \subsection{Configuration Energy Differences}\label{sec:EnergyResults}
733 In order to evaluate the performance of the pairwise electrostatic
734 summation methods for Monte Carlo simulations, the energy differences
735 between configurations were compared to the values obtained when using
736 SPME. The results for the subsequent regression analysis are shown in
737 figure \ref{fig:delE}.
738
739 \begin{figure}
740 \centering
741 \includegraphics[width=5.5in]{./delEplot.pdf}
742 \caption{Statistical analysis of the quality of configurational energy
743 differences for a given electrostatic method compared with the
744 reference Ewald sum. Results with a value equal to 1 (dashed line)
745 indicate $\Delta E$ values indistinguishable from those obtained using
746 SPME. Different values of the cutoff radius are indicated with
747 different symbols (9\AA\ = circles, 12\AA\ = squares, and 15\AA\ =
748 inverted triangles).}
749 \label{fig:delE}
750 \end{figure}
751
752 The most striking feature of this plot is how well the Shifted Force
753 ({\sc sf}) and Shifted Potential ({\sc sp}) methods capture the energy
754 differences. For the undamped {\sc sf} method, and the
755 moderately-damped {\sc sp} methods, the results are nearly
756 indistinguishable from the Ewald results. The other common methods do
757 significantly less well.
758
759 The unmodified cutoff method is essentially unusable. This is not
760 surprising since hard cutoffs give large energy fluctuations as atoms
761 or molecules move in and out of the cutoff
762 radius.\cite{Rahman71,Adams79} These fluctuations can be alleviated to
763 some degree by using group based cutoffs with a switching
764 function.\cite{Adams79,Steinbach94,Leach01} However, we do not see
765 significant improvement using the group-switched cutoff because the
766 salt and salt solution systems contain non-neutral groups. Interested
767 readers can consult the accompanying supporting information for a
768 comparison where all groups are neutral.
769
770 For the {\sc sp} method, inclusion of potential damping improves the
771 agreement with Ewald, and using an $\alpha$ of 0.2 \AA $^{-1}$ shows
772 an excellent correlation and quality of fit with the SPME results,
773 particularly with a cutoff radius greater than 12
774 \AA . Use of a larger damping parameter is more helpful for the
775 shortest cutoff shown, but it has a detrimental effect on simulations
776 with larger cutoffs.
777
778 In the {\sc sf} sets, increasing damping results in progressively
779 worse correlation with Ewald. Overall, the undamped case is the best
780 performing set, as the correlation and quality of fits are
781 consistently superior regardless of the cutoff distance. The undamped
782 case is also less computationally demanding (because no evaluation of
783 the complementary error function is required).
784
785 The reaction field results illustrates some of that method's
786 limitations, primarily that it was developed for use in homogenous
787 systems; although it does provide results that are an improvement over
788 those from an unmodified cutoff.
789
790 \subsection{Magnitudes of the Force and Torque Vectors}
791
792 Evaluation of pairwise methods for use in Molecular Dynamics
793 simulations requires consideration of effects on the forces and
794 torques. Investigation of the force and torque vector magnitudes
795 provides a measure of the strength of these values relative to SPME.
796 Figures \ref{fig:frcMag} and \ref{fig:trqMag} respectively show the
797 force and torque vector magnitude regression results for the
798 accumulated analysis over all the system types.
799
800 \begin{figure}
801 \centering
802 \includegraphics[width=5.5in]{./frcMagplot.pdf}
803 \caption{Statistical analysis of the quality of the force vector magnitudes for a given electrostatic method compared with the reference Ewald sum. Results with a value equal to 1 (dashed line) indicate force magnitude values indistinguishable from those obtained using SPME. Different values of the cutoff radius are indicated with different symbols (9\AA\ = circles, 12\AA\ = squares, and 15\AA\ = inverted triangles).}
804 \label{fig:frcMag}
805 \end{figure}
806
807 Figure \ref{fig:frcMag}, for the most part, parallels the results seen
808 in the previous $\Delta E$ section. The unmodified cutoff results are
809 poor, but using group based cutoffs and a switching function provides
810 a improvement much more significant than what was seen with $\Delta
811 E$. Looking at the {\sc sp} sets, the slope and $R^2$
812 improve with the use of damping to an optimal result of 0.2 \AA
813 $^{-1}$ for the 12 and 15 \AA\ cutoffs. Further increases in damping,
814 while beneficial for simulations with a cutoff radius of 9 \AA\ , is
815 detrimental to simulations with larger cutoff radii. The undamped
816 {\sc sf} method gives forces in line with those obtained using
817 SPME, and use of a damping function results in minor improvement. The
818 reaction field results are surprisingly good, considering the poor
819 quality of the fits for the $\Delta E$ results. There is still a
820 considerable degree of scatter in the data, but it correlates well in
821 general. To be fair, we again note that the reaction field
822 calculations do not encompass NaCl crystal and melt systems, so these
823 results are partly biased towards conditions in which the method
824 performs more favorably.
825
826 \begin{figure}
827 \centering
828 \includegraphics[width=5.5in]{./trqMagplot.pdf}
829 \caption{Statistical analysis of the quality of the torque vector magnitudes for a given electrostatic method compared with the reference Ewald sum. Results with a value equal to 1 (dashed line) indicate torque magnitude values indistinguishable from those obtained using SPME. Different values of the cutoff radius are indicated with different symbols (9\AA\ = circles, 12\AA\ = squares, and 15\AA\ = inverted triangles).}
830 \label{fig:trqMag}
831 \end{figure}
832
833 To evaluate the torque vector magnitudes, the data set from which
834 values are drawn is limited to rigid molecules in the systems
835 (i.e. water molecules). In spite of this smaller sampling pool, the
836 torque vector magnitude results in figure \ref{fig:trqMag} are still
837 similar to those seen for the forces; however, they more clearly show
838 the improved behavior that comes with increasing the cutoff radius.
839 Moderate damping is beneficial to the {\sc sp} and helpful
840 yet possibly unnecessary with the {\sc sf} method, and they also
841 show that over-damping adversely effects all cutoff radii rather than
842 showing an improvement for systems with short cutoffs. The reaction
843 field method performs well when calculating the torques, better than
844 the Shifted Force method over this limited data set.
845
846 \subsection{Directionality of the Force and Torque Vectors}
847
848 Having force and torque vectors with magnitudes that are well
849 correlated to SPME is good, but if they are not pointing in the proper
850 direction the results will be incorrect. These vector directions were
851 investigated through measurement of the angle formed between them and
852 those from SPME. The results (Fig. \ref{fig:frcTrqAng}) are compared
853 through the variance ($\sigma^2$) of the Gaussian fits of the angle
854 error distributions of the combined set over all system types.
855
856 \begin{figure}
857 \centering
858 \includegraphics[width=5.5in]{./frcTrqAngplot.pdf}
859 \caption{Statistical analysis of the quality of the Gaussian fit of the force and torque vector angular distributions for a given electrostatic method compared with the reference Ewald sum. Results with a variance ($\sigma^2$) equal to zero (dashed line) indicate force and torque directions indistinguishable from those obtained using SPME. Different values of the cutoff radius are indicated with different symbols (9\AA\ = circles, 12\AA\ = squares, and 15\AA\ = inverted triangles).}
860 \label{fig:frcTrqAng}
861 \end{figure}
862
863 Both the force and torque $\sigma^2$ results from the analysis of the
864 total accumulated system data are tabulated in figure
865 \ref{fig:frcTrqAng}. All of the sets, aside from the over-damped case
866 show the improvement afforded by choosing a longer simulation cutoff.
867 Increasing the cutoff from 9 to 12 \AA\ typically results in a halving
868 of the distribution widths, with a similar improvement going from 12
869 to 15 \AA . The undamped {\sc sf}, Group Based Cutoff, and
870 Reaction Field methods all do equivalently well at capturing the
871 direction of both the force and torque vectors. Using damping
872 improves the angular behavior significantly for the {\sc sp}
873 and moderately for the {\sc sf} methods. Increasing the damping
874 too far is destructive for both methods, particularly to the torque
875 vectors. Again it is important to recognize that the force vectors
876 cover all particles in the systems, while torque vectors are only
877 available for neutral molecular groups. Damping appears to have a
878 more beneficial effect on non-neutral bodies, and this observation is
879 investigated further in the accompanying supporting information.
880
881 \begin{table}[htbp]
882 \centering
883 \caption{Variance ($\sigma^2$) of the force (top set) and torque (bottom set) vector angle difference distributions for the Shifted Potential and Shifted Force methods. Calculations were performed both with (Y) and without (N) group based cutoffs and a switching function. The $\alpha$ values have units of \AA$^{-1}$ and the variance values have units of degrees$^2$.}
884 \begin{tabular}{@{} ccrrrrrrrr @{}}
885 \\
886 \toprule
887 & & \multicolumn{4}{c}{Shifted Potential} & \multicolumn{4}{c}{Shifted Force} \\
888 \cmidrule(lr){3-6}
889 \cmidrule(l){7-10}
890 $R_\textrm{c}$ & Groups & $\alpha = 0$ & $\alpha = 0.1$ & $\alpha = 0.2$ & $\alpha = 0.3$ & $\alpha = 0$ & $\alpha = 0.1$ & $\alpha = 0.2$ & $\alpha = 0.3$\\
891 \midrule
892
893 9 \AA & N & 29.545 & 12.003 & 5.489 & 0.610 & 2.323 & 2.321 & 0.429 & 0.603 \\
894 & \textbf{Y} & \textbf{2.486} & \textbf{2.160} & \textbf{0.667} & \textbf{0.608} & \textbf{1.768} & \textbf{1.766} & \textbf{0.676} & \textbf{0.609} \\
895 12 \AA & N & 19.381 & 3.097 & 0.190 & 0.608 & 0.920 & 0.736 & 0.133 & 0.612 \\
896 & \textbf{Y} & \textbf{0.515} & \textbf{0.288} & \textbf{0.127} & \textbf{0.586} & \textbf{0.308} & \textbf{0.249} & \textbf{0.127} & \textbf{0.586} \\
897 15 \AA & N & 12.700 & 1.196 & 0.123 & 0.601 & 0.339 & 0.160 & 0.123 & 0.601 \\
898 & \textbf{Y} & \textbf{0.228} & \textbf{0.099} & \textbf{0.121} & \textbf{0.598} & \textbf{0.144} & \textbf{0.090} & \textbf{0.121} & \textbf{0.598} \\
899
900 \midrule
901
902 9 \AA & N & 262.716 & 116.585 & 5.234 & 5.103 & 2.392 & 2.350 & 1.770 & 5.122 \\
903 & \textbf{Y} & \textbf{2.115} & \textbf{1.914} & \textbf{1.878} & \textbf{5.142} & \textbf{2.076} & \textbf{2.039} & \textbf{1.972} & \textbf{5.146} \\
904 12 \AA & N & 129.576 & 25.560 & 1.369 & 5.080 & 0.913 & 0.790 & 1.362 & 5.124 \\
905 & \textbf{Y} & \textbf{0.810} & \textbf{0.685} & \textbf{1.352} & \textbf{5.082} & \textbf{0.765} & \textbf{0.714} & \textbf{1.360} & \textbf{5.082} \\
906 15 \AA & N & 87.275 & 4.473 & 1.271 & 5.000 & 0.372 & 0.312 & 1.271 & 5.000 \\
907 & \textbf{Y} & \textbf{0.282} & \textbf{0.294} & \textbf{1.272} & \textbf{4.999} & \textbf{0.324} & \textbf{0.318} & \textbf{1.272} & \textbf{4.999} \\
908
909 \bottomrule
910 \end{tabular}
911 \label{tab:groupAngle}
912 \end{table}
913
914 Although not discussed previously, group based cutoffs can be applied
915 to both the {\sc sp} and {\sc sf} methods. Use off a
916 switching function corrects for the discontinuities that arise when
917 atoms of a group exit the cutoff before the group's center of mass.
918 Though there are no significant benefit or drawbacks observed in
919 $\Delta E$ and vector magnitude results when doing this, there is a
920 measurable improvement in the vector angle results. Table
921 \ref{tab:groupAngle} shows the angular variance values obtained using
922 group based cutoffs and a switching function alongside the standard
923 results seen in figure \ref{fig:frcTrqAng} for comparison purposes.
924 The {\sc sp} shows much narrower angular distributions for
925 both the force and torque vectors when using an $\alpha$ of 0.2
926 \AA$^{-1}$ or less, while {\sc sf} shows improvements in the
927 undamped and lightly damped cases. Thus, by calculating the
928 electrostatic interactions in terms of molecular pairs rather than
929 atomic pairs, the direction of the force and torque vectors are
930 determined more accurately.
931
932 One additional trend to recognize in table \ref{tab:groupAngle} is
933 that the $\sigma^2$ values for both {\sc sp} and
934 {\sc sf} converge as $\alpha$ increases, something that is easier
935 to see when using group based cutoffs. Looking back on figures
936 \ref{fig:delE}, \ref{fig:frcMag}, and \ref{fig:trqMag}, show this
937 behavior clearly at large $\alpha$ and cutoff values. The reason for
938 this is that the complimentary error function inserted into the
939 potential weakens the electrostatic interaction as $\alpha$ increases.
940 Thus, at larger values of $\alpha$, both the summation method types
941 progress toward non-interacting functions, so care is required in
942 choosing large damping functions lest one generate an undesirable loss
943 in the pair interaction. Kast \textit{et al.} developed a method for
944 choosing appropriate $\alpha$ values for these types of electrostatic
945 summation methods by fitting to $g(r)$ data, and their methods
946 indicate optimal values of 0.34, 0.25, and 0.16 \AA$^{-1}$ for cutoff
947 values of 9, 12, and 15 \AA\ respectively.\cite{Kast03} These appear
948 to be reasonable choices to obtain proper MC behavior
949 (Fig. \ref{fig:delE}); however, based on these findings, choices this
950 high would introduce error in the molecular torques, particularly for
951 the shorter cutoffs. Based on the above findings, empirical damping
952 up to 0.2 \AA$^{-1}$ proves to be beneficial, but damping is arguably
953 unnecessary when using the {\sc sf} method.
954
955 \subsection{Short-Time Dynamics: Velocity Autocorrelation Functions of NaCl Crystals}
956
957 In the previous studies using a {\sc sf} variant of the damped
958 Wolf coulomb potential, the structure and dynamics of water were
959 investigated rather extensively.\cite{Zahn02,Kast03} Their results
960 indicated that the damped {\sc sf} method results in properties
961 very similar to those obtained when using the Ewald summation.
962 Considering the statistical results shown above, the good performance
963 of this method is not that surprising. Rather than consider the same
964 systems and simply recapitulate their results, we decided to look at
965 the solid state dynamical behavior obtained using the best performing
966 summation methods from the above results.
967
968 \begin{figure}
969 \centering
970 \includegraphics[width = \linewidth]{./vCorrPlot.pdf}
971 \caption{Velocity auto-correlation functions of NaCl crystals at 1000 K while using SPME, {\sc sf} ($\alpha$ = 0.0, 0.1, \& 0.2), and {\sc sp} ($\alpha$ = 0.2). The inset is a magnification of the first trough. The times to first collision are nearly identical, but the differences can be seen in the peaks and troughs, where the undamped to weakly damped methods are stiffer than the moderately damped and SPME methods.}
972 \label{fig:vCorrPlot}
973 \end{figure}
974
975 The short-time decays through the first collision are nearly identical
976 in figure \ref{fig:vCorrPlot}, but the peaks and troughs of the
977 functions show how the methods differ. The undamped {\sc sf} method
978 has deeper troughs (see inset in Fig. \ref{fig:vCorrPlot}) and higher
979 peaks than any of the other methods. As the damping function is
980 increased, these peaks are smoothed out, and approach the SPME
981 curve. The damping acts as a distance dependent Gaussian screening of
982 the point charges for the pairwise summation methods; thus, the
983 collisions are more elastic in the undamped {\sc sf} potential, and the
984 stiffness of the potential is diminished as the electrostatic
985 interactions are softened by the damping function. With $\alpha$
986 values of 0.2 \AA$^{-1}$, the {\sc sf} and {\sc sp} functions are
987 nearly identical and track the SPME features quite well. This is not
988 too surprising in that the differences between the {\sc sf} and {\sc
989 sp} potentials are mitigated with increased damping. However, this
990 appears to indicate that once damping is utilized, the form of the
991 potential seems to play a lesser role in the crystal dynamics.
992
993 \subsection{Collective Motion: Power Spectra of NaCl Crystals}
994
995 The short time dynamics were extended to evaluate how the differences
996 between the methods affect the collective long-time motion. The same
997 electrostatic summation methods were used as in the short time
998 velocity autocorrelation function evaluation, but the trajectories
999 were sampled over a much longer time. The power spectra of the
1000 resulting velocity autocorrelation functions were calculated and are
1001 displayed in figure \ref{fig:methodPS}.
1002
1003 \begin{figure}
1004 \centering
1005 \includegraphics[width = \linewidth]{./spectraSquare.pdf}
1006 \caption{Power spectra obtained from the velocity auto-correlation functions of NaCl crystals at 1000 K while using SPME, {\sc sf} ($\alpha$ = 0, 0.1, \& 0.2), and {\sc sp} ($\alpha$ = 0.2). Apodization of the correlation functions via a cubic switching function between 40 and 50 ps was used to clear up the spectral noise resulting from data truncation, and had no noticeable effect on peak location or magnitude. The inset shows the frequency region below 100 cm$^{-1}$ to highlight where the spectra begin to differ.}
1007 \label{fig:methodPS}
1008 \end{figure}
1009
1010 While high frequency peaks of the spectra in this figure overlap,
1011 showing the same general features, the low frequency region shows how
1012 the summation methods differ. Considering the low-frequency inset
1013 (expanded in the upper frame of figure \ref{fig:dampInc}), at
1014 frequencies below 100 cm$^{-1}$, the correlated motions are
1015 blue-shifted when using undamped or weakly damped {\sc sf}. When
1016 using moderate damping ($\alpha = 0.2$ \AA$^{-1}$) both the {\sc sf}
1017 and {\sc sp} methods give near identical correlated motion behavior as
1018 the Ewald method (which has a damping value of 0.3119). This
1019 weakening of the electrostatic interaction with increased damping
1020 explains why the long-ranged correlated motions are at lower
1021 frequencies for the moderately damped methods than for undamped or
1022 weakly damped methods. To see this effect more clearly, we show how
1023 damping strength alone affects a simple real-space electrostatic
1024 potential,
1025 \begin{equation}
1026 V_\textrm{damped}=\sum^N_i\sum^N_{j\ne i}q_iq_j\left[\frac{\textrm{erfc}({\alpha r})}{r}\right]S(r),
1027 \end{equation}
1028 where $S(r)$ is a switching function that smoothly zeroes the
1029 potential at the cutoff radius. Figure \ref{fig:dampInc} shows how
1030 the low frequency motions are dependent on the damping used in the
1031 direct electrostatic sum. As the damping increases, the peaks drop to
1032 lower frequencies. Incidentally, use of an $\alpha$ of 0.25
1033 \AA$^{-1}$ on a simple electrostatic summation results in low
1034 frequency correlated dynamics equivalent to a simulation using SPME.
1035 When the coefficient lowers to 0.15 \AA$^{-1}$ and below, these peaks
1036 shift to higher frequency in exponential fashion. Though not shown,
1037 the spectrum for the simple undamped electrostatic potential is
1038 blue-shifted such that the lowest frequency peak resides near 325
1039 cm$^{-1}$. In light of these results, the undamped {\sc sf} method
1040 producing low-lying motion peaks within 10 cm$^{-1}$ of SPME is quite
1041 respectable and shows that the shifted force procedure accounts for
1042 most of the effect afforded through use of the Ewald summation.
1043 However, it appears as though moderate damping is required for
1044 accurate reproduction of crystal dynamics.
1045 \begin{figure}
1046 \centering
1047 \includegraphics[width = \linewidth]{./comboSquare.pdf}
1048 \caption{Regions of spectra showing the low-frequency correlated motions for NaCl crystals at 1000 K using various electrostatic summation methods. The upper plot is a zoomed inset from figure \ref{fig:methodPS}. As the damping value for the {\sc sf} potential increases, the low-frequency peaks red-shift. The lower plot is of spectra when using SPME and a simple damped Coulombic sum with damping coefficients ($\alpha$) ranging from 0.15 to 0.3 \AA$^{-1}$. As $\alpha$ increases, the peaks are red-shifted toward and eventually beyond the values given by SPME. The larger $\alpha$ values weaken the real-space electrostatics, explaining this shift towards less strongly correlated motions in the crystal.}
1049 \label{fig:dampInc}
1050 \end{figure}
1051
1052 \section{Conclusions}
1053
1054 This investigation of pairwise electrostatic summation techniques
1055 shows that there are viable and more computationally efficient
1056 electrostatic summation techniques than the Ewald summation, chiefly
1057 methods derived from the damped Coulombic sum originally proposed by
1058 Wolf \textit{et al.}\cite{Wolf99,Zahn02} In particular, the
1059 {\sc sf} method, reformulated above as eq. (\ref{eq:DSFPot}),
1060 shows a remarkable ability to reproduce the energetic and dynamic
1061 characteristics exhibited by simulations employing lattice summation
1062 techniques. The cumulative energy difference results showed the
1063 undamped {\sc sf} and moderately damped {\sc sp} methods
1064 produced results nearly identical to SPME. Similarly for the dynamic
1065 features, the undamped or moderately damped {\sc sf} and
1066 moderately damped {\sc sp} methods produce force and torque
1067 vector magnitude and directions very similar to the expected values.
1068 These results translate into long-time dynamic behavior equivalent to
1069 that produced in simulations using SPME.
1070
1071 Aside from the computational cost benefit, these techniques have
1072 applicability in situations where the use of the Ewald sum can prove
1073 problematic. Primary among them is their use in interfacial systems,
1074 where the unmodified lattice sum techniques artificially accentuate
1075 the periodicity of the system in an undesirable manner. There have
1076 been alterations to the standard Ewald techniques, via corrections and
1077 reformulations, to compensate for these systems; but the pairwise
1078 techniques discussed here require no modifications, making them
1079 natural tools to tackle these problems. Additionally, this
1080 transferability gives them benefits over other pairwise methods, like
1081 reaction field, because estimations of physical properties (e.g. the
1082 dielectric constant) are unnecessary.
1083
1084 We are not suggesting any flaw with the Ewald sum; in fact, it is the
1085 standard by which these simple pairwise sums are judged. However,
1086 these results do suggest that in the typical simulations performed
1087 today, the Ewald summation may no longer be required to obtain the
1088 level of accuracy most researchers have come to expect
1089
1090 \section{Acknowledgments}
1091 \newpage
1092
1093 \bibliographystyle{jcp2}
1094 \bibliography{electrostaticMethods}
1095
1096
1097 \end{document}