--- trunk/multipole/multipole_2/multipole2.tex 2014/06/05 19:55:14 4174 +++ trunk/multipole/multipole_2/multipole2.tex 2014/06/14 23:35:39 4184 @@ -35,18 +35,20 @@ preprint, %\linenumbers\relax % Commence numbering lines \usepackage{amsmath} \usepackage{times} -\usepackage{mathptm} +\usepackage{mathptmx} +\usepackage{tabularx} \usepackage[version=3]{mhchem} % this is a great package for formatting chemical reactions \usepackage{url} \usepackage[english]{babel} +\newcolumntype{Y}{>{\centering\arraybackslash}X} \begin{document} -\preprint{AIP/123-QED} +%\preprint{AIP/123-QED} -\title[Efficient electrostatics for condensed-phase multipoles]{Real space alternatives to the Ewald -Sum. II. Comparison of Simulation Methodologies} % Force line breaks with \\ +\title{Real space alternatives to the Ewald +Sum. II. Comparison of Methods} % Force line breaks with \\ \author{Madan Lamichhane} \affiliation{Department of Physics, University @@ -65,12 +67,30 @@ We have tested our recently developed shifted potentia % but any date may be explicitly specified \begin{abstract} -We have tested our recently developed shifted potential, gradient-shifted force, and Taylor-shifted force methods for the higher-order multipoles against Ewald’s method in different types of liquid and crystalline system. In this paper, we have also investigated the conservation of total energy in the molecular dynamic simulation using all of these methods. The shifted potential method shows better agreement with the Ewald in the energy differences between different configurations as compared to the direct truncation. Both the gradient shifted force and Taylor-shifted force methods reproduce very good energy conservation. But the absolute energy, force and torque evaluated from the gradient shifted force method shows better result as compared to taylor-shifted force method. Hence the gradient-shifted force method suitably mimics the electrostatic interaction in the molecular dynamic simulation. + We have tested the real-space shifted potential (SP), + gradient-shifted force (GSF), and Taylor-shifted force (TSF) methods + for multipoles that were developed in the first paper in this series + against the multipolar Ewald sum as a reference method. The tests + were carried out in a variety of condensed-phase environments which + were designed to test all levels of the multipole-multipole + interactions. Comparisons of the energy differences between + configurations, molecular forces, and torques were used to analyze + how well the real-space models perform relative to the more + computationally expensive Ewald treatment. We have also investigated the + energy conservation properties of the new methods in molecular + dynamics simulations using all of these methods. The SP method shows + excellent agreement with configurational energy differences, forces, + and torques, and would be suitable for use in Monte Carlo + calculations. Of the two new shifted-force methods, the GSF + approach shows the best agreement with Ewald-derived energies, + forces, and torques and exhibits energy conservation properties that + make it an excellent choice for efficiently computing electrostatic + interactions in molecular dynamics simulations. \end{abstract} -\pacs{Valid PACS appear here}% PACS, the Physics and Astronomy +%\pacs{Valid PACS appear here}% PACS, the Physics and Astronomy % Classification Scheme. -\keywords{Electrostatics, Multipoles, Real-space} +%\keywords{Electrostatics, Multipoles, Real-space} \maketitle @@ -100,45 +120,51 @@ To simulate interfacial systems, Parry’s extension o method may require modification to compute interactions for interfacial molecular systems such as membranes and liquid-vapor interfaces.\cite{Parry:1975if,Parry:1976fq,Clarke77,Perram79,Rhee:1989kl} -To simulate interfacial systems, Parry’s extension of the 3D Ewald sum +To simulate interfacial systems, Parry's extension of the 3D Ewald sum is appropriate for slab geometries.\cite{Parry:1975if} The inherent -periodicity in the Ewald’s method can also be problematic for -interfacial molecular systems.\cite{Fennell:2006lq} Modified Ewald -methods that were developed to handle two-dimensional (2D) -electrostatic interactions in interfacial systems have not had similar -particle-mesh treatments.\cite{Parry:1975if, Parry:1976fq, Clarke77, - Perram79,Rhee:1989kl,Spohr:1997sf,Yeh:1999oq} +periodicity in the Ewald method can also be problematic for molecular +interfaces.\cite{Fennell:2006lq} Modified Ewald methods that were +developed to handle two-dimensional (2D) electrostatic interactions in +interfacial systems have not seen similar particle-mesh +treatments,\cite{Parry:1975if, Parry:1976fq, Clarke77, + Perram79,Rhee:1989kl,Spohr:1997sf,Yeh:1999oq} and still scale poorly +with system size. \subsection{Real-space methods} Wolf \textit{et al.}\cite{Wolf:1999dn} proposed a real space $O(N)$ method for calculating electrostatic interactions between point charges. They argued that the effective Coulomb interaction in -condensed systems is actually short ranged.\cite{Wolf92,Wolf95}. For -an ordered lattice (e.g. when computing the Madelung constant of an -ionic solid), the material can be considered as a set of ions +condensed phase systems is actually short ranged.\cite{Wolf92,Wolf95} +For an ordered lattice (e.g., when computing the Madelung constant of +an ionic solid), the material can be considered as a set of ions interacting with neutral dipolar or quadrupolar ``molecules'' giving an effective distance dependence for the electrostatic interactions of -$r^{-5}$ (see figure \ref{fig:NaCl}. For this reason, careful -applications of Wolf's method are able to obtain accurate estimates of -Madelung constants using relatively short cutoff radii. Recently, -Fukuda used neutralization of the higher order moments for the -calculation of the electrostatic interaction of the point charges -system.\cite{Fukuda:2013sf} +$r^{-5}$ (see figure \ref{fig:schematic}). For this reason, careful +application of Wolf's method can obtain accurate estimates of Madelung +constants using relatively short cutoff radii. Recently, Fukuda used +neutralization of the higher order moments for calculation of the +electrostatic interactions in point charge +systems.\cite{Fukuda:2013sf} -\begin{figure}[h!] +\begin{figure} \centering - \includegraphics[width=0.50 \textwidth]{chargesystem.pdf} - \caption{Top: NaCl crystal showing how spherical truncation can - breaking effective charge ordering, and how complete \ce{(NaCl)4} - molecules interact with the central ion. Bottom: A dipolar - crystal exhibiting similar behavior and illustrating how the - effective dipole-octupole interactions can be disrupted by - spherical truncation.} - \label{fig:NaCl} + \includegraphics[width=\linewidth]{schematic.pdf} + \caption{Top: Ionic systems exhibit local clustering of dissimilar + charges (in the smaller grey circle), so interactions are + effectively charge-multipole at longer distances. With hard + cutoffs, motion of individual charges in and out of the cutoff + sphere can break the effective multipolar ordering. Bottom: + dipolar crystals and fluids have a similar effective + \textit{quadrupolar} ordering (in the smaller grey circles), and + orientational averaging helps to reduce the effective range of the + interactions in the fluid. Placement of reversed image multipoles + on the surface of the cutoff sphere recovers the effective + higher-order multipole behavior.} + \label{fig:schematic} \end{figure} The direct truncation of interactions at a cutoff radius creates -truncation defects. Wolf \textit{et al.} further argued that +truncation defects. Wolf \textit{et al.} argued that truncation errors are due to net charge remaining inside the cutoff sphere.\cite{Wolf:1999dn} To neutralize this charge they proposed placing an image charge on the surface of the cutoff sphere for every @@ -158,19 +184,17 @@ potential is found to be decreasing as $r^{-5}$. If on Considering the interaction of one central ion in an ionic crystal with a portion of the crystal at some distance, the effective Columbic -potential is found to be decreasing as $r^{-5}$. If one views the -\ce{NaCl} crystal as simple cubic (SC) structure with an octupolar +potential is found to decrease as $r^{-5}$. If one views the \ce{NaCl} +crystal as a simple cubic (SC) structure with an octupolar \ce{(NaCl)4} basis, the electrostatic energy per ion converges more rapidly to the Madelung energy than the dipolar approximation.\cite{Wolf92} To find the correct Madelung constant, Lacman suggested that the NaCl structure could be constructed in a way that the finite crystal terminates with complete \ce{(NaCl)4} -molecules.\cite{Lacman65} Any charge in a NaCl crystal is surrounded -by opposite charges. Similarly for each pair of charges, there is an -opposite pair of charge adjacent to it. The central ion sees what is -effectively a set of octupoles at large distances. These facts suggest -that the Madelung constants are relatively short ranged for perfect -ionic crystals.\cite{Wolf:1999dn} +molecules.\cite{Lacman65} The central ion sees what is effectively a +set of octupoles at large distances. These facts suggest that the +Madelung constants are relatively short ranged for perfect ionic +crystals.\cite{Wolf:1999dn} One can make a similar argument for crystals of point multipoles. The Luttinger and Tisza treatment of energy constants for dipolar lattices @@ -188,15 +212,30 @@ multipolar arrangements (see Fig. \ref{fig:NaCl}), cau unstable. In ionic crystals, real-space truncation can break the effective -multipolar arrangements (see Fig. \ref{fig:NaCl}), causing significant -swings in the electrostatic energy as the cutoff radius is increased -(or as individual ions move back and forth across the boundary). This -is why the image charges were necessary for the Wolf sum to exhibit -rapid convergence. Similarly, the real-space truncation of point -multipole interactions breaks higher order multipole arrangements, and -image multipoles are required for real-space treatments of -electrostatic energies. +multipolar arrangements (see Fig. \ref{fig:schematic}), causing +significant swings in the electrostatic energy as individual ions move +back and forth across the boundary. This is why the image charges are +necessary for the Wolf sum to exhibit rapid convergence. Similarly, +the real-space truncation of point multipole interactions breaks +higher order multipole arrangements, and image multipoles are required +for real-space treatments of electrostatic energies. +The shorter effective range of electrostatic interactions is not +limited to perfect crystals, but can also apply in disordered fluids. +Even at elevated temperatures, there is, on average, local charge +balance in an ionic liquid, where each positive ion has surroundings +dominated by negaitve ions and vice versa. The reversed-charge images +on the cutoff sphere that are integral to the Wolf and DSF approaches +retain the effective multipolar interactions as the charges traverse +the cutoff boundary. + +In multipolar fluids (see Fig. \ref{fig:schematic}) there is +significant orientational averaging that additionally reduces the +effect of long-range multipolar interactions. The image multipoles +that are introduced in the TSF, GSF, and SP methods mimic this effect +and reduce the effective range of the multipolar interactions as +interacting molecules traverse each other's cutoff boundaries. + % Because of this reason, although the nature of electrostatic % interaction short ranged, the hard cutoff sphere creates very large % fluctuation in the electrostatic energy for the perfect crystal. In @@ -253,11 +292,12 @@ multipoles up to octupolar rough approximation. Atomic sites can also be assigned point multipoles and polarizabilities to increase the accuracy of the molecular model. Recently, water has been modeled with point -multipoles up to octupolar -order.\cite{Ichiye10_1,Ichiye10_2,Ichiye10_3} Atom-centered point +multipoles up to octupolar order using the soft sticky +dipole-quadrupole-octupole (SSDQO) +model.\cite{Ichiye10_1,Ichiye10_2,Ichiye10_3} Atom-centered point multipoles up to quadrupolar order have also been coupled with point polarizabilities in the high-quality AMOEBA and iAMOEBA water -models.\cite{Ren:2003uq,Ren:2004kx,Ponder:2010vl,Wang:2013fk}. But +models.\cite{Ren:2003uq,Ren:2004kx,Ponder:2010vl,Wang:2013fk} But using point multipole with the real space truncation without accounting for multipolar neutrality will create energy conservation issues in molecular dynamics (MD) simulations. @@ -297,136 +337,147 @@ where the multipole operator for site $\bf a$, \begin{equation} U_{\bf{ab}}(r)=\hat{M}_{\bf a} \hat{M}_{\bf b} \frac{1}{r} \label{kernel}. \end{equation} -where the multipole operator for site $\bf a$, -\begin{equation} -\hat{M}_{\bf a} = C_{\bf a} - D_{{\bf a}\alpha} \frac{\partial}{\partial r_{\alpha}} -+ Q_{{\bf a}\alpha\beta} - \frac{\partial^2}{\partial r_{\alpha} \partial r_{\beta}} + \dots -\end{equation} -is expressed in terms of the point charge, $C_{\bf a}$, dipole, -$D_{{\bf a}\alpha}$, and quadrupole, $Q_{{\bf a}\alpha\beta}$, for -object $\bf a$. Note that in this work, we use the primitive -quadrupole tensor, $Q_{a\alpha,\beta}=\frac{1}{2}\sum_{k\;in\;a}q_k -r_{k\alpha}r_{k\beta}$ to represent point quadrupoles on a site. +where the multipole operator for site $\bf a$, $\hat{M}_{\bf a}$, is +expressed in terms of the point charge, $C_{\bf a}$, dipole, ${\bf D}_{\bf + a}$, and quadrupole, $\mathbf{Q}_{\bf a}$, for object +$\bf a$, etc. -Interactions between multipoles can be expressed as higher derivatives -of the bare Coulomb potential, so one way of ensuring that the forces -and torques vanish at the cutoff distance is to include a larger -number of terms in the truncated Taylor expansion, e.g., -% -\begin{equation} -f_n^{\text{shift}}(r)=\sum_{m=0}^{n+1} \frac {(r-R_c)^m}{m!} f^{(m)} \Big \lvert _{R_c} . -\end{equation} -% -The combination of $f(r)$ with the shifted function is denoted $f_n(r)=f(r)-f_n^{\text{shift}}(r)$. -Thus, for $f(r)=1/r$, we find -% -\begin{equation} -f_1(r)=\frac{1}{r}- \frac{1}{R_c} + (r - R_c) \frac{1}{R_c^2} - \frac{(r-R_c)^2}{R_c^3} . -\end{equation} -This function is an approximate electrostatic potential that has -vanishing second derivatives at the cutoff radius, making it suitable -for shifting the forces and torques of charge-dipole interactions. +% Interactions between multipoles can be expressed as higher derivatives +% of the bare Coulomb potential, so one way of ensuring that the forces +% and torques vanish at the cutoff distance is to include a larger +% number of terms in the truncated Taylor expansion, e.g., +% % +% \begin{equation} +% f_n^{\text{shift}}(r)=\sum_{m=0}^{n+1} \frac {(r-r_c)^m}{m!} f^{(m)} \Big \lvert _{r_c} . +% \end{equation} +% % +% The combination of $f(r)$ with the shifted function is denoted $f_n(r)=f(r)-f_n^{\text{shift}}(r)$. +% Thus, for $f(r)=1/r$, we find +% % +% \begin{equation} +% f_1(r)=\frac{1}{r}- \frac{1}{r_c} + (r - r_c) \frac{1}{r_c^2} - \frac{(r-r_c)^2}{r_c^3} . +% \end{equation} +% This function is an approximate electrostatic potential that has +% vanishing second derivatives at the cutoff radius, making it suitable +% for shifting the forces and torques of charge-dipole interactions. -In general, the TSF potential for any multipole-multipole interaction -can be written +The TSF potential for any multipole-multipole interaction can be +written \begin{equation} U^{\text{TSF}}= (\text{prefactor}) (\text{derivatives}) f_n(r) \label{generic} \end{equation} -with $n=0$ for charge-charge, $n=1$ for charge-dipole, $n=2$ for -charge-quadrupole and dipole-dipole, $n=3$ for dipole-quadrupole, and -$n=4$ for quadrupole-quadrupole. To ensure smooth convergence of the -energy, force, and torques, the required number of terms from Taylor -series expansion in $f_n(r)$ must be performed for different -multipole-multipole interactions. +where $f_n(r)$ is a shifted kernel that is appropriate for the order +of the interaction (see Ref. \onlinecite{PaperI}), with $n=0$ for +charge-charge, $n=1$ for charge-dipole, $n=2$ for charge-quadrupole +and dipole-dipole, $n=3$ for dipole-quadrupole, and $n=4$ for +quadrupole-quadrupole. To ensure smooth convergence of the energy, +force, and torques, a Taylor expansion with $n$ terms must be +performed at cutoff radius ($r_c$) to obtain $f_n(r)$. -To carry out the same procedure for a damped electrostatic kernel, we -replace $1/r$ in the Coulomb potential with $\text{erfc}(\alpha r)/r$. -Many of the derivatives of the damped kernel are well known from -Smith's early work on multipoles for the Ewald -summation.\cite{Smith82,Smith98} +% To carry out the same procedure for a damped electrostatic kernel, we +% replace $1/r$ in the Coulomb potential with $\text{erfc}(\alpha r)/r$. +% Many of the derivatives of the damped kernel are well known from +% Smith's early work on multipoles for the Ewald +% summation.\cite{Smith82,Smith98} -Note that increasing the value of $n$ will add additional terms to the -electrostatic potential, e.g., $f_2(r)$ includes orders up to -$(r-R_c)^3/R_c^4$, and so on. Successive derivatives of the $f_n(r)$ -functions are denoted $g_2(r) = f^\prime_2(r)$, $h_2(r) = -f^{\prime\prime}_2(r)$, etc. These higher derivatives are required -for computing multipole energies, forces, and torques, and smooth -cutoffs of these quantities can be guaranteed as long as the number of -terms in the Taylor series exceeds the derivative order required. +% Note that increasing the value of $n$ will add additional terms to the +% electrostatic potential, e.g., $f_2(r)$ includes orders up to +% $(r-r_c)^3/r_c^4$, and so on. Successive derivatives of the $f_n(r)$ +% functions are denoted $g_2(r) = f^\prime_2(r)$, $h_2(r) = +% f^{\prime\prime}_2(r)$, etc. These higher derivatives are required +% for computing multipole energies, forces, and torques, and smooth +% cutoffs of these quantities can be guaranteed as long as the number of +% terms in the Taylor series exceeds the derivative order required. For multipole-multipole interactions, following this procedure results -in separate radial functions for each distinct orientational -contribution to the potential, and ensures that the forces and torques -from {\it each} of these contributions will vanish at the cutoff -radius. For example, the direct dipole dot product ($\mathbf{D}_{i} -\cdot \mathbf{D}_{j}$) is treated differently than the dipole-distance +in separate radial functions for each of the distinct orientational +contributions to the potential, and ensures that the forces and +torques from each of these contributions will vanish at the cutoff +radius. For example, the direct dipole dot product +($\mathbf{D}_{\bf a} +\cdot \mathbf{D}_{\bf b}$) is treated differently than the dipole-distance dot products: \begin{equation} -U_{D_{i}D_{j}}(r)= -\frac{1}{4\pi \epsilon_0} \left( \mathbf{D}_{i} \cdot -\mathbf{D}_{j} \right) \frac{g_2(r)}{r} --\frac{1}{4\pi \epsilon_0} -\left( \mathbf{D}_{i} \cdot \hat{r} \right) -\left( \mathbf{D}_{j} \cdot \hat{r} \right) \left(h_2(r) - - \frac{g_2(r)}{r} \right) +U_{D_{\bf a}D_{\bf b}}(r)= -\frac{1}{4\pi \epsilon_0} \left[ \left( + \mathbf{D}_{\bf a} \cdot +\mathbf{D}_{\bf b} \right) v_{21}(r) + +\left( \mathbf{D}_{\bf a} \cdot \hat{r} \right) +\left( \mathbf{D}_{\bf b} \cdot \hat{r} \right) v_{22}(r) \right] \end{equation} -The electrostatic forces and torques acting on the central multipole -site due to another site within cutoff sphere are derived from +For the Taylor shifted (TSF) method with the undamped kernel, +$v_{21}(r) = -\frac{1}{r^3} + \frac{3 r}{r_c^4} - \frac{8}{r_c^3} + +\frac{6}{r r_c^2}$ and $v_{22}(r) = \frac{3}{r^3} + \frac{3 r}{r_c^4} +- \frac{6}{r r_c^2}$. In these functions, one can easily see the +connection to unmodified electrostatics as well as the smooth +transition to zero in both these functions as $r\rightarrow r_c$. The +electrostatic forces and torques acting on the central multipole due +to another site within the cutoff sphere are derived from Eq.~\ref{generic}, accounting for the appropriate number of derivatives. Complete energy, force, and torque expressions are presented in the first paper in this series (Reference -\citep{PaperI}). +\onlinecite{PaperI}). \subsection{Gradient-shifted force (GSF)} -A second (and significantly simpler) method involves shifting the -gradient of the raw coulomb potential for each particular multipole +A second (and conceptually simpler) method involves shifting the +gradient of the raw Coulomb potential for each particular multipole order. For example, the raw dipole-dipole potential energy may be shifted smoothly by finding the gradient for two interacting dipoles which have been projected onto the surface of the cutoff sphere without changing their relative orientation, -\begin{displaymath} -U_{D_{i}D_{j}}(r_{ij}) = U_{D_{i}D_{j}}(r_{ij}) - U_{D_{i}D_{j}}(R_c) - - (r_{ij}-R_c) \hat{r}_{ij} \cdot - \vec{\nabla} V_{D_{i}D_{j}}(r) \Big \lvert _{R_c} -\end{displaymath} -Here the lab-frame orientations of the two dipoles, $\mathbf{D}_{i}$ -and $\mathbf{D}_{j}$, are retained at the cutoff distance (although -the signs are reversed for the dipole that has been projected onto the -cutoff sphere). In many ways, this simpler approach is closer in -spirit to the original shifted force method, in that it projects a -neutralizing multipole (and the resulting forces from this multipole) -onto a cutoff sphere. The resulting functional forms for the -potentials, forces, and torques turn out to be quite similar in form -to the Taylor-shifted approach, although the radial contributions are -significantly less perturbed by the Gradient-shifted approach than -they are in the Taylor-shifted method. +\begin{equation} +U_{D_{\bf a}D_{\bf b}}(r) = U_{D_{\bf a}D_{\bf b}}(r) - +U_{D_{\bf a} D_{\bf b}}(r_c) + - (r_{ab}-r_c) ~~~\hat{r}_{ab} \cdot + \nabla U_{D_{\bf a}D_{\bf b}}(r_c). +\end{equation} +Here the lab-frame orientations of the two dipoles, $\mathbf{D}_{\bf + a}$ and $\mathbf{D}_{\bf b}$, are retained at the cutoff distance +(although the signs are reversed for the dipole that has been +projected onto the cutoff sphere). In many ways, this simpler +approach is closer in spirit to the original shifted force method, in +that it projects a neutralizing multipole (and the resulting forces +from this multipole) onto a cutoff sphere. The resulting functional +forms for the potentials, forces, and torques turn out to be quite +similar in form to the Taylor-shifted approach, although the radial +contributions are significantly less perturbed by the gradient-shifted +approach than they are in the Taylor-shifted method. +For the gradient shifted (GSF) method with the undamped kernel, +$v_{21}(r) = -\frac{1}{r^3} + \frac{3 r}{r_c^4} + \frac{4}{r_c^3}$ and +$v_{22}(r) = \frac{3}{r^3} + \frac{9 r}{r_c^4} - \frac{12}{r_c^3}$. +Again, these functions go smoothly to zero as $r\rightarrow r_c$, and +because the Taylor expansion retains only one term, they are +significantly less perturbed than the TSF functions. + In general, the gradient shifted potential between a central multipole and any multipolar site inside the cutoff radius is given by, \begin{equation} -U^{\text{GSF}} = \sum \left[ U(\mathbf{r}, \hat{\mathbf{a}}, \hat{\mathbf{b}}) - -U(\mathbf{r}_c,\hat{\mathbf{a}}, \hat{\mathbf{b}}) - (r-r_c) \hat{r} -\cdot \nabla U(\mathbf{r},\hat{\mathbf{a}}, \hat{\mathbf{b}}) \Big \lvert _{r_c} \right] + U^{\text{GSF}} = \sum \left[ U(\mathbf{r}, \hat{\mathbf{a}}, \hat{\mathbf{b}}) - + U(r_c \hat{\mathbf{r}},\hat{\mathbf{a}}, \hat{\mathbf{b}}) - (r-r_c) \hat{\mathbf{r}} + \cdot \nabla U(r_c \hat{\mathbf{r}},\hat{\mathbf{a}}, \hat{\mathbf{b}}) \right] \label{generic2} \end{equation} where the sum describes a separate force-shifting that is applied to -each orientational contribution to the energy. +each orientational contribution to the energy. In this expression, +$\hat{\mathbf{r}}$ is the unit vector connecting the two multipoles +($a$ and $b$) in space, and $\hat{\mathbf{a}}$ and $\hat{\mathbf{b}}$ +represent the orientations the multipoles. The third term converges more rapidly than the first two terms as a function of radius, hence the contribution of the third term is very small for large cutoff radii. The force and torque derived from -equation \ref{generic2} are consistent with the energy expression and -approach zero as $r \rightarrow R_c$. Both the GSF and TSF methods +Eq. \ref{generic2} are consistent with the energy expression and +approach zero as $r \rightarrow r_c$. Both the GSF and TSF methods can be considered generalizations of the original DSF method for higher order multipole interactions. GSF and TSF are also identical up to the charge-dipole interaction but generate different expressions in the energy, force and torque for higher order multipole-multipole interactions. Complete energy, force, and torque expressions for the GSF potential are presented in the first paper in this series -(Reference \citep{PaperI}) +(Reference~\onlinecite{PaperI}). \subsection{Shifted potential (SP) } @@ -439,33 +490,37 @@ U_{SP}(\vec r)=\sum U(\vec r) - U(\vec r_c) interactions with the central multipole and the image. This effectively shifts the total potential to zero at the cutoff radius, \begin{equation} -U_{SP}(\vec r)=\sum U(\vec r) - U(\vec r_c) +U^{\text{SP}} = \sum \left[ U(\mathbf{r}, \hat{\mathbf{a}}, \hat{\mathbf{b}}) - +U(r_c \hat{\mathbf{r}},\hat{\mathbf{a}}, \hat{\mathbf{b}}) \right] \label{eq:SP} \end{equation} where the sum describes separate potential shifting that is done for each orientational contribution to the energy (e.g. the direct dipole product contribution is shifted {\it separately} from the dipole-distance terms in dipole-dipole interactions). Note that this -is not a simple shifting of the total potential at $R_c$. Each radial +is not a simple shifting of the total potential at $r_c$. Each radial contribution is shifted separately. One consequence of this is that multipoles that reorient after leaving the cutoff sphere can re-enter the cutoff sphere without perturbing the total energy. -The potential energy between a central multipole and other multipolar -sites then goes smoothly to zero as $r \rightarrow R_c$. However, the -force and torque obtained from the shifted potential (SP) are -discontinuous at $R_c$. Therefore, MD simulations will still -experience energy drift while operating under the SP potential, but it -may be suitable for Monte Carlo approaches where the configurational -energy differences are the primary quantity of interest. +For the shifted potential (SP) method with the undamped kernel, +$v_{21}(r) = -\frac{1}{r^3} + \frac{1}{r_c^3}$ and $v_{22}(r) = +\frac{3}{r^3} - \frac{3}{r_c^3}$. The potential energy between a +central multipole and other multipolar sites goes smoothly to zero as +$r \rightarrow r_c$. However, the force and torque obtained from the +shifted potential (SP) are discontinuous at $r_c$. MD simulations +will still experience energy drift while operating under the SP +potential, but it may be suitable for Monte Carlo approaches where the +configurational energy differences are the primary quantity of +interest. -\subsection{The Self term} +\subsection{The Self Term} In the TSF, GSF, and SP methods, a self-interaction is retained for the central multipole interacting with its own image on the surface of the cutoff sphere. This self interaction is nearly identical with the self-terms that arise in the Ewald sum for multipoles. Complete expressions for the self terms are presented in the first paper in -this series (Reference \citep{PaperI}) +this series (Reference \onlinecite{PaperI}). \section{\label{sec:methodology}Methodology} @@ -480,68 +535,131 @@ disordered and ordered condensed-phase systems. These arrays.\cite{Sauer,LT,Nagai01081960,Nagai01091963} In this work, we used the multipolar Ewald sum as a reference method for comparing energies, forces, and torques for molecular models that mimic -disordered and ordered condensed-phase systems. These test-cases -include: -\begin{itemize} -\item Soft Dipolar fluids ($\sigma = 3.051$, $\epsilon =0.152$, $|D| = 2.35$) -\item Soft Dipolar solids ($\sigma = 2.837$, $\epsilon =1.0$, $|D| = 2.35$) -\item Soft Quadrupolar fluids ($\sigma = 3.051$, $\epsilon =0.152$, $Q_{\alpha\alpha} =\left\{-1,-1,-2.5\right\}$) -\item Soft Quadrupolar solids ($\sigma = 2.837$, $\epsilon = 1.0$, $Q_{\alpha\alpha} =\left\{-1,-1,-2.5\right\}$) -\item A mixed multipole model (SSDQ) for water ($\sigma = 3.051$, $\epsilon = 0.152$, $D_z = 2.35$, $Q_{\alpha\alpha} =\left\{-1.35,0,-0.68\right\}$) -\item A mixed multipole models for water with 48 dissolved ions, 24 - \ce{Na+}: ($\sigma = 2.579$, $\epsilon =0.118$, $q = 1e$) and 24 - \ce{Cl-}: ($\sigma = 4.445$, $\epsilon =0.1$l, $q = -1e$) -\end{itemize} -All Lennard-Jones parameters are in units of \AA\ $(\sigma)$ and kcal -/ mole $(\epsilon)$. Partial charges are reported in electrons, while -dipoles are in Debye units, and quadrupoles are in units of Debye-\AA. +disordered and ordered condensed-phase systems. The parameters used +in the test cases are given in table~\ref{tab:pars}. -The last test case exercises all levels of the multipole-multipole -interactions we have derived so far and represents the most complete -test of the new methods. In the following section, we present results -for the total electrostatic energy, as well as the electrostatic -contributions to the force and torque on each molecule. These -quantities have been computed using the SP, TSF, and GSF methods, as -well as a hard cutoff, and have been compared with the values obtaine -from the multipolar Ewald sum. In Mote Carlo (MC) simulations, the -energy differences between two configurations is the primary quantity -that governs how the simulation proceeds. These differences are the -most imporant indicators of the reliability of a method even if the -absolute energies are not exact. For each of the multipolar systems -listed above, we have compared the change in electrostatic potential -energy ($\Delta E$) between 250 statistically-independent -configurations. In molecular dynamics (MD) simulations, the forces -and torques govern the behavior of the simulation, so we also compute -the electrostatic contributions to the forces and torques. +\begin{table} +\label{tab:pars} +\caption{The parameters used in the systems used to evaluate the new + real-space methods. The most comprehensive test was a liquid + composed of 2000 SSDQ molecules with 48 dissolved ions (24 \ce{Na+} and 24 \ce{Cl-} + ions). This test excercises all orders of the multipolar + interactions developed in the first paper.} +\begin{tabularx}{\textwidth}{r|cc|YYccc|Yccc} \hline + & \multicolumn{2}{c|}{LJ parameters} & + \multicolumn{5}{c|}{Electrostatic moments} & & & & \\ + Test system & $\sigma$& $\epsilon$ & $C$ & $D$ & + $Q_{xx}$ & $Q_{yy}$ & $Q_{zz}$ & mass & $I_{xx}$ & $I_{yy}$ & + $I_{zz}$ \\ \cline{6-8}\cline{10-12} + & (\AA) & (kcal/mol) & (e) & (debye) & \multicolumn{3}{c|}{(debye \AA)} & (amu) & \multicolumn{3}{c}{(amu + \AA\textsuperscript{2})} \\ \hline + Soft Dipolar fluid & 3.051 & 0.152 & & 2.35 & & & & 18.0153 & 1.77&0.6145& 1.155 \\ + Soft Dipolar solid & 2.837 & 1.0 & & 2.35 & & & & $10^4$ & 17.6 &17.6 & 0 \\ +Soft Quadrupolar fluid & 3.051 & 0.152 & & & -1&-1&-2.5 & 18.0153 & 1.77&0.6145&1.155 \\ +Soft Quadrupolar solid & 2.837 & 1.0 & & & -1&-1&-2.5 & $10^4$ & 17.6&17.6&0 \\ + SSDQ water & 3.051 & 0.152 & & 2.35 & -1.35&0&-0.68 & 18.0153 & 1.77&0.6145&1.155 \\ + \ce{Na+} & 2.579 & 0.118 & +1& & & & & 22.99 & & &\\ + \ce{Cl-} & 4.445 & 0.1 & -1& & & & & 35.4527& & & \\ \hline +\end{tabularx} +\end{table} +The systems consist of pure multipolar solids (both dipole and +quadrupole), pure multipolar liquids (both dipole and quadrupole), a +fluid composed of sites containing both dipoles and quadrupoles +simultaneously, and a final test case that includes ions with point +charges in addition to the multipolar fluid. The solid-phase +parameters were chosen so that the systems can explore some +orientational freedom for the multipolar sites, while maintaining +relatively strict translational order. The SSDQ model used here is +not a particularly accurate water model, but it does test +dipole-dipole, dipole-quadrupole, and quadrupole-quadrupole +interactions at roughly the same magnitudes. The last test case, SSDQ +water with dissolved ions, exercises \textit{all} levels of the +multipole-multipole interactions we have derived so far and represents +the most complete test of the new methods. -\subsection{Model systems} -To sample independent configurations of multipolar crystals, a body -centered cubic (bcc) crystal which is a minimum energy structure for -point dipoles was generated using 3,456 molecules. The multipoles -were translationally locked in their respective crystal sites for -equilibration at a relatively low temperature (50K), so that dipoles -or quadrupoles could freely explore all accessible orientations. The -translational constraints were removed, and the crystals were -simulated for 10 ps in the microcanonical (NVE) ensemble with an -average temperature of 50 K. Configurations were sampled at equal -time intervals for the comparison of the configurational energy -differences. The crystals were not simulated close to the melting -points in order to avoid translational deformation away of the ideal -lattice geometry. +In the following section, we present results for the total +electrostatic energy, as well as the electrostatic contributions to +the force and torque on each molecule. These quantities have been +computed using the SP, TSF, and GSF methods, as well as a hard cutoff, +and have been compared with the values obtained from the multipolar +Ewald sum. In Monte Carlo (MC) simulations, the energy differences +between two configurations is the primary quantity that governs how +the simulation proceeds. These differences are the most imporant +indicators of the reliability of a method even if the absolute +energies are not exact. For each of the multipolar systems listed +above, we have compared the change in electrostatic potential energy +($\Delta E$) between 250 statistically-independent configurations. In +molecular dynamics (MD) simulations, the forces and torques govern the +behavior of the simulation, so we also compute the electrostatic +contributions to the forces and torques. -For dipolar, quadrupolar, and mixed-multipole liquid simulations, each -system was created with 2048 molecules oriented randomly. These were +\subsection{Implementation} +The real-space methods developed in the first paper in this series +have been implemented in our group's open source molecular simulation +program, OpenMD,\cite{openmd} which was used for all calculations in +this work. The complementary error function can be a relatively slow +function on some processors, so all of the radial functions are +precomputed on a fine grid and are spline-interpolated to provide +values when required. -system with 2,048 molecules simulated for 1ns in NVE ensemble at 300 K -temperature after equilibration. We collected 250 different -configurations in equal interval of time. For the ions mixed liquid -system, we converted 48 different molecules into 24 \ce{Na+} and 24 -\ce{Cl-} ions and equilibrated. After equilibration, the system was run -at the same environment for 1ns and 250 configurations were -collected. While comparing energies, forces, and torques with Ewald -method, Lennard-Jones potentials were turned off and purely -electrostatic interaction had been compared. +Using the same simulation code, we compare to a multipolar Ewald sum +with a reciprocal space cutoff, $k_\mathrm{max} = 7$. Our version of +the Ewald sum is a re-implementation of the algorithm originally +proposed by Smith that does not use the particle mesh or smoothing +approximations.\cite{Smith82,Smith98} In all cases, the quantities +being compared are the electrostatic contributions to energies, force, +and torques. All other contributions to these quantities (i.e. from +Lennard-Jones interactions) are removed prior to the comparisons. + +The convergence parameter ($\alpha$) also plays a role in the balance +of the real-space and reciprocal-space portions of the Ewald +calculation. Typical molecular mechanics packages set this to a value +that depends on the cutoff radius and a tolerance (typically less than +$1 \times 10^{-4}$ kcal/mol). Smaller tolerances are typically +associated with increasing accuracy at the expense of computational +time spent on the reciprocal-space portion of the +summation.\cite{Perram88,Essmann:1995pb} A default tolerance of $1 \times +10^{-8}$ kcal/mol was used in all Ewald calculations, resulting in +Ewald coefficient 0.3119 \AA$^{-1}$ for a cutoff radius of 12 \AA. + +The real-space models have self-interactions that provide +contributions to the energies only. Although the self interaction is +a rapid calculation, we note that in systems with fluctuating charges +or point polarizabilities, the self-term is not static and must be +recomputed at each time step. +\subsection{Model systems} +To sample independent configurations of the multipolar crystals, body +centered cubic (bcc) crystals, which exhibit the minimum energy +structures for point dipoles, were generated using 3,456 molecules. +The multipoles were translationally locked in their respective crystal +sites for equilibration at a relatively low temperature (50K) so that +dipoles or quadrupoles could freely explore all accessible +orientations. The translational constraints were then removed, the +systems were re-equilibrated, and the crystals were simulated for an +additional 10 ps in the microcanonical (NVE) ensemble with an average +temperature of 50 K. The balance between moments of inertia and +particle mass were chosen to allow orientational sampling without +significant translational motion. Configurations were sampled at +equal time intervals in order to compare configurational energy +differences. The crystals were simulated far from the melting point +in order to avoid translational deformation away of the ideal lattice +geometry. + +For dipolar, quadrupolar, and mixed-multipole \textit{liquid} +simulations, each system was created with 2,048 randomly-oriented +molecules. These were equilibrated at a temperature of 300K for 1 ns. +Each system was then simulated for 1 ns in the microcanonical (NVE) +ensemble. We collected 250 different configurations at equal time +intervals. For the liquid system that included ionic species, we +converted 48 randomly-distributed molecules into 24 \ce{Na+} and 24 +\ce{Cl-} ions and re-equilibrated. After equilibration, the system was +run under the same conditions for 1 ns. A total of 250 configurations +were collected. In the following comparisons of energies, forces, and +torques, the Lennard-Jones potentials were turned off and only the +purely electrostatic quantities were compared with the same values +obtained via the Ewald sum. + \subsection{Accuracy of Energy Differences, Forces and Torques} The pairwise summation techniques (outlined above) were evaluated for use in MC simulations by studying the energy differences between @@ -554,7 +672,7 @@ we used least square regressions analysiss for the six should be identical for all methods. Since none of the real-space methods provide exact energy differences, -we used least square regressions analysiss for the six different +we used least square regressions analysis for the six different molecular systems to compare $\Delta E$ from Hard, SP, GSF, and TSF with the multipolar Ewald reference method. Unitary results for both the correlation (slope) and correlation coefficient for these @@ -565,7 +683,7 @@ also been compared by using least squares regression a configurations and 250 configurations were recorded for comparison. Each system provided 31,125 energy differences for a total of 186,750 data points. Similarly, the magnitudes of the forces and torques have -also been compared by using least squares regression analyses. In the +also been compared using least squares regression analysis. In the forces and torques comparison, the magnitudes of the forces acting in each molecule for each configuration were evaluated. For example, our dipolar liquid simulation contains 2048 molecules and there are 250 @@ -699,16 +817,16 @@ reproduce the Ewald-derived configurational energy dif The combined correlation coefficient and slope for all six systems is shown in Figure ~\ref{fig:slopeCorr_energy}. Most of the methods -reproduce the Ewald-derived configurational energy differences with -remarkable fidelity. Undamped hard cutoffs introduce a significant -amount of random scatter in the energy differences which is apparent -in the reduced value of the correlation coefficient for this method. -This can be understood easily as configurations which exhibit only -small traversals of a few dipoles or quadrupoles out of the cutoff -sphere will see large energy jumps when hard cutoffs are used. The +reproduce the Ewald configurational energy differences with remarkable +fidelity. Undamped hard cutoffs introduce a significant amount of +random scatter in the energy differences which is apparent in the +reduced value of the correlation coefficient for this method. This +can be easily understood as configurations which exhibit small +traversals of a few dipoles or quadrupoles out of the cutoff sphere +will see large energy jumps when hard cutoffs are used. The orientations of the multipoles (particularly in the ordered crystals) -mean that these jumps can go either up or down in energy, producing a -significant amount of random scatter. +mean that these energy jumps can go in either direction, producing a +significant amount of random scatter, but no systematic error. The TSF method produces energy differences that are highly correlated with the Ewald results, but it also introduces a significant @@ -716,40 +834,41 @@ effect on crystalline systems. smaller cutoff values. The TSF method alters the distance dependence of different orientational contributions to the energy in a non-uniform way, so the size of the cutoff sphere can have a large -effect on crystalline systems. +effect, particularly for the crystalline systems. Both the SP and GSF methods appear to reproduce the Ewald results with excellent fidelity, particularly for moderate damping ($\alpha = -0.1-0.2$\AA$^{-1}$) and commonly-used cutoff values ($r_c = 12$\AA). -With the exception of the undamped hard cutoff, and the TSF method -with short cutoffs, all of the methods would be appropriate for use in -Monte Carlo simulations. +0.1-0.2$\AA$^{-1}$) and with a commonly-used cutoff value ($r_c = +12$\AA). With the exception of the undamped hard cutoff, and the TSF +method with short cutoffs, all of the methods would be appropriate for +use in Monte Carlo simulations. \subsection{Magnitude of the force and torque vectors} -The comparison of the magnitude of the combined forces and torques for -the data accumulated from all system types are shown in Figures +The comparisons of the magnitudes of the forces and torques for the +data accumulated from all six systems are shown in Figures ~\ref{fig:slopeCorr_force} and \ref{fig:slopeCorr_torque}. The correlation and slope for the forces agree well with the Ewald sum -even for the hard cutoff method. +even for the hard cutoffs. -For the system of molecules with higher order multipoles, the -interaction is quite short ranged. Moreover, the force decays more -rapidly than the electrostatic energy hence the hard cutoff method can -also produces reasonable agreement. Although the pure cutoff gives -the good match of the electrostatic force for pairs of molecules -included within the cutoff sphere, the discontinuity in the force at -the cutoff radius can potentially cause problems the total energy -conservation as molecules enter and leave the cutoff sphere. This is -discussed in detail in section \ref{sec:}. +For systems of molecules with only multipolar interactions, the pair +energy contributions are quite short ranged. Moreover, the force +decays more rapidly than the electrostatic energy, hence the hard +cutoff method can also produce reasonable agreement for this quantity. +Although the pure cutoff gives reasonably good electrostatic forces +for pairs of molecules included within each other's cutoff spheres, +the discontinuity in the force at the cutoff radius can potentially +cause energy conservation problems as molecules enter and leave the +cutoff spheres. This is discussed in detail in section +\ref{sec:conservation}. The two shifted-force methods (GSF and TSF) exhibit a small amount of systematic variation and scatter compared with the Ewald forces. The shifted-force models intentionally perturb the forces between pairs of -molecules inside the cutoff sphere in order to correct the energy -conservation issues, so it is not particularly surprising that this -perturbation is evident in these same molecular forces. The GSF -perturbations are minimal, particularly for moderate damping and and +molecules inside each other's cutoff spheres in order to correct the +energy conservation issues, and this perturbation is evident in the +statistics accumulated for the molecular forces. The GSF +perturbations are minimal, particularly for moderate damping and commonly-used cutoff values ($r_c = 12$\AA). The TSF method shows reasonable agreement in the correlation coefficient but again the systematic error in the forces is concerning if replication of Ewald @@ -791,13 +910,13 @@ The other real-space methods can cause some significan The results shows that the torque from the hard cutoff method reproduces the torques in quite good agreement with the Ewald sum. -The other real-space methods can cause some significant deviations, -but excellent agreement with the Ewald sum torques is recovered at -moderate values of the damping coefficient ($\alpha = -0.1-0.2$\AA$^{-1}$) and cutoff radius ($r_c \ge 12$\AA). The TSF -method exhibits the only fair agreement in the slope as compared to -Ewald even for larger cutoff radii. It appears that the severity of -the perturbations in the TSF method are most apparent in the torques. +The other real-space methods can cause some deviations, but excellent +agreement with the Ewald sum torques is recovered at moderate values +of the damping coefficient ($\alpha = 0.1-0.2$\AA$^{-1}$) and cutoff +radius ($r_c \ge 12$\AA). The TSF method exhibits only fair agreement +in the slope when compared with the Ewald torques even for larger +cutoff radii. It appears that the severity of the perturbations in +the TSF method are most in evidence for the torques. \subsection{Directionality of the force and torque vectors} @@ -806,21 +925,21 @@ directionality is shown in terms of circular variance these quantities. Force and torque vectors for all six systems were analyzed using Fisher statistics, and the quality of the vector directionality is shown in terms of circular variance -($\mathrm{Var}(\theta$) in figure +($\mathrm{Var}(\theta)$) in figure \ref{fig:slopeCorr_circularVariance}. The force and torque vectors -from the new real-space method exhibit nearly-ideal Fisher probability +from the new real-space methods exhibit nearly-ideal Fisher probability distributions (Eq.~\ref{eq:pdf}). Both the hard and SP cutoff methods exhibit the best vectorial agreement with the Ewald sum. The force and torque vectors from GSF method also show good agreement with the Ewald method, which can also be systematically improved by using moderate -damping and a reasonable cutoff radius. For $\alpha = 0.2$ and $r_c = +damping and a reasonable cutoff radius. For $\alpha = 0.2$ and $r_c = 12$\AA, we observe $\mathrm{Var}(\theta) = 0.00206$, which corresponds -to a distribution with 95\% of force vectors within $6.37^\circ$ of the -corresponding Ewald forces. The TSF method produces the poorest +to a distribution with 95\% of force vectors within $6.37^\circ$ of +the corresponding Ewald forces. The TSF method produces the poorest agreement with the Ewald force directions. -Torques are again more perturbed by the new real-space methods, than -forces, but even here the variance is reasonably small. For the same +Torques are again more perturbed than the forces by the new real-space +methods, but even here the variance is reasonably small. For the same method (GSF) with the same parameters ($\alpha = 0.2, r_c = 12$\AA), the circular variance was 0.01415, corresponds to a distribution which has 95\% of torque vectors are within $16.75^\circ$ of the Ewald @@ -840,7 +959,7 @@ systematically improved by varying $\alpha$ and $r_c$. \label{fig:slopeCorr_circularVariance} \end{figure} -\subsection{Energy conservation} +\subsection{Energy conservation\label{sec:conservation}} We have tested the conservation of energy one can expect to see with the new real-space methods using the SSDQ water model with a small @@ -848,23 +967,26 @@ and 48 dissolved ions at a density of 0.98 g cm${-3}$ orders of multipole-multipole interactions derived in the first paper in this series and provides the most comprehensive test of the new methods. A liquid-phase system was created with 2000 water molecules -and 48 dissolved ions at a density of 0.98 g cm${-3}$ and a +and 48 dissolved ions at a density of 0.98 g cm$^{-3}$ and a temperature of 300K. After equilibration, this liquid-phase system was run for 1 ns under the Ewald, Hard, SP, GSF, and TSF methods with -a cutoff radius of 9\AA. The value of the damping coefficient was +a cutoff radius of 12\AA. The value of the damping coefficient was also varied from the undamped case ($\alpha = 0$) to a heavily damped -case ($\alpha = 0.3$ \AA$^{-1}$) for the real space methods. A sample -was also run using the multipolar Ewald sum. +case ($\alpha = 0.3$ \AA$^{-1}$) for all of the real space methods. A +sample was also run using the multipolar Ewald sum with the same +real-space cutoff. In figure~\ref{fig:energyDrift} we show the both the linear drift in energy over time, $\delta E_1$, and the standard deviation of energy fluctuations around this drift $\delta E_0$. Both of the shifted-force methods (GSF and TSF) provide excellent energy -conservation (drift less than $10^{-6}$ kcal / mol / ns / particle), +conservation (drift less than $10^{-5}$ kcal / mol / ns / particle), while the hard cutoff is essentially unusable for molecular dynamics. SP provides some benefit over the hard cutoff because the energetic jumps that happen as particles leave and enter the cutoff sphere are -somewhat reduced. +somewhat reduced, but like the Wolf method for charges, the SP method +would not be as useful for molecular dynamics as either of the +shifted-force methods. We note that for all tested values of the cutoff radius, the new real-space methods can provide better energy conservation behavior @@ -873,64 +995,103 @@ $k$-space cutoff values. \begin{figure} \centering - \includegraphics[width=\textwidth]{newDrift.pdf} + \includegraphics[width=\textwidth]{newDrift_12.pdf} \label{fig:energyDrift} \caption{Analysis of the energy conservation of the real-space electrostatic methods. $\delta \mathrm{E}_1$ is the linear drift in - energy over time and $\delta \mathrm{E}_0$ is the standard deviation - of energy fluctuations around this drift. All simulations were of a - 2000-molecule simulation of SSDQ water with 48 ionic charges at 300 - K starting from the same initial configuration.} + energy over time (in kcal / mol / particle / ns) and $\delta + \mathrm{E}_0$ is the standard deviation of energy fluctuations + around this drift (in kcal / mol / particle). All simulations were + of a 2000-molecule simulation of SSDQ water with 48 ionic charges at + 300 K starting from the same initial configuration. All runs + utilized the same real-space cutoff, $r_c = 12$\AA.} \end{figure} \section{CONCLUSION} -We have generalized the charged neutralized potential energy -originally developed by the Wolf et al.\cite{Wolf:1999dn} for the -charge-charge interaction to the charge-multipole and -multipole-multipole interaction in the SP method for higher order -multipoles. Also, we have developed GSF and TSF methods by -implementing the modification purposed by Fennel and -Gezelter\cite{Fennell:2006lq} for the charge-charge interaction to the -higher order multipoles to ensure consistency and smooth truncation of -the electrostatic energy, force, and torque for the spherical -truncation. The SP methods for multipoles proved its suitability in MC -simulations. On the other hand, the results from the GSF method -produced good agreement with the Ewald's energy, force, and -torque. Also, it shows very good energy conservation in MD -simulations. The direct truncation of any molecular system without -multipole neutralization creates the fluctuation in the electrostatic -energy. This fluctuation in the energy is very large for the case of -crystal because of long range of multipole ordering (Refer paper -I).\cite{PaperI} This is also significant in the case of the liquid -because of the local multipole ordering in the molecules. If the net -multipole within cutoff radius neutralized within cutoff sphere by -placing image multiples on the surface of the sphere, this fluctuation -in the energy reduced significantly. Also, the multipole -neutralization in the generalized SP method showed very good agreement -with the Ewald as compared to direct truncation for the evaluation of -the $\triangle E$ between the configurations. In MD simulations, the -energy conservation is very important. The conservation of the total -energy can be ensured by i) enforcing the smooth truncation of the -energy, force and torque in the cutoff radius and ii) making the -energy, force and torque consistent with each other. The GSF and TSF -methods ensure the consistency and smooth truncation of the energy, -force and torque at the cutoff radius, as a result show very good -total energy conservation. But the TSF method does not show good -agreement in the absolute value of the electrostatic energy, force and -torque with the Ewald. The GSF method has mimicked Ewald’s force, -energy and torque accurately and also conserved energy. Therefore, the -GSF method is the suitable method for evaluating required force field -in MD simulations. In addition, the energy drift and fluctuation from -the GSF method is much better than Ewald’s method for finite-sized -reciprocal space. +In the first paper in this series, we generalized the +charge-neutralized electrostatic energy originally developed by Wolf +\textit{et al.}\cite{Wolf:1999dn} to multipole-multipole interactions +up to quadrupolar order. The SP method is essentially a +multipole-capable version of the Wolf model. The SP method for +multipoles provides excellent agreement with Ewald-derived energies, +forces and torques, and is suitable for Monte Carlo simulations, +although the forces and torques retain discontinuities at the cutoff +distance that prevents its use in molecular dynamics. -Note that the TSF, GSF, and SP models are $\mathcal{O}(N)$ methods -that can be made extremely efficient using spline interpolations of -the radial functions. They require no Fourier transforms or $k$-space -sums, and guarantee the smooth handling of energies, forces, and -torques as multipoles cross the real-space cutoff boundary. +We also developed two natural extensions of the damped shifted-force +(DSF) model originally proposed by Fennel and +Gezelter.\cite{Fennell:2006lq} The GSF and TSF approaches provide +smooth truncation of energies, forces, and torques at the real-space +cutoff, and both converge to DSF electrostatics for point-charge +interactions. The TSF model is based on a high-order truncated Taylor +expansion which can be relatively perturbative inside the cutoff +sphere. The GSF model takes the gradient from an images of the +interacting multipole that has been projected onto the cutoff sphere +to derive shifted force and torque expressions, and is a significantly +more gentle approach. +Of the two newly-developed shifted force models, the GSF method +produced quantitative agreement with Ewald energy, force, and torques. +It also performs well in conserving energy in MD simulations. The +Taylor-shifted (TSF) model provides smooth dynamics, but these take +place on a potential energy surface that is significantly perturbed +from Ewald-based electrostatics. + +% The direct truncation of any electrostatic potential energy without +% multipole neutralization creates large fluctuations in molecular +% simulations. This fluctuation in the energy is very large for the case +% of crystal because of long range of multipole ordering (Refer paper +% I).\cite{PaperI} This is also significant in the case of the liquid +% because of the local multipole ordering in the molecules. If the net +% multipole within cutoff radius neutralized within cutoff sphere by +% placing image multiples on the surface of the sphere, this fluctuation +% in the energy reduced significantly. Also, the multipole +% neutralization in the generalized SP method showed very good agreement +% with the Ewald as compared to direct truncation for the evaluation of +% the $\triangle E$ between the configurations. In MD simulations, the +% energy conservation is very important. The conservation of the total +% energy can be ensured by i) enforcing the smooth truncation of the +% energy, force and torque in the cutoff radius and ii) making the +% energy, force and torque consistent with each other. The GSF and TSF +% methods ensure the consistency and smooth truncation of the energy, +% force and torque at the cutoff radius, as a result show very good +% total energy conservation. But the TSF method does not show good +% agreement in the absolute value of the electrostatic energy, force and +% torque with the Ewald. The GSF method has mimicked Ewald’s force, +% energy and torque accurately and also conserved energy. + +The only cases we have found where the new GSF and SP real-space +methods can be problematic are those which retain a bulk dipole moment +at large distances (e.g. the $Z_1$ dipolar lattice). In ferroelectric +materials, uniform weighting of the orientational contributions can be +important for converging the total energy. In these cases, the +damping function which causes the non-uniform weighting can be +replaced by the bare electrostatic kernel, and the energies return to +the expected converged values. + +Based on the results of this work, the GSF method is a suitable and +efficient replacement for the Ewald sum for evaluating electrostatic +interactions in MD simulations. Both methods retain excellent +fidelity to the Ewald energies, forces and torques. Additionally, the +energy drift and fluctuations from the GSF electrostatics are better +than a multipolar Ewald sum for finite-sized reciprocal spaces. +Because they use real-space cutoffs with moderate cutoff radii, the +GSF and SP models approach $\mathcal{O}(N)$ scaling as the system size +increases. Additionally, they can be made extremely efficient using +spline interpolations of the radial functions. They require no +Fourier transforms or $k$-space sums, and guarantee the smooth +handling of energies, forces, and torques as multipoles cross the +real-space cutoff boundary. + +\begin{acknowledgments} + JDG acknowledges helpful discussions with Christopher + Fennell. Support for this project was provided by the National + Science Foundation under grant CHE-1362211. Computational time was + provided by the Center for Research Computing (CRC) at the + University of Notre Dame. +\end{acknowledgments} + %\bibliographystyle{aip} \newpage \bibliography{references}