<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">AM</journal-id><journal-title-group><journal-title>Applied Mathematics</journal-title></journal-title-group><issn pub-type="epub">2152-7385</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/am.2014.53051</article-id><article-id pub-id-type="publisher-id">AM-42807</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  Non-Uniform FFT and Its Applications in Particle Simulations
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>ong-Lei</surname><given-names>Wang</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Fredrik</surname><given-names>Hedman</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Massimiliano</surname><given-names>Porcu</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="aff" rid="aff3"><sup>3</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Francesca</surname><given-names>Mocci</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="aff" rid="aff3"><sup>3</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Aatto</surname><given-names>Laaksonen</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib></contrib-group><aff id="aff2"><addr-line>Noruna AB, Stockholm, Sweden</addr-line></aff><aff id="aff1"><addr-line>Department of Materials and Environmental Chemistry, Arrhenius Laboratory, Stockholm University, Stockholm, Sweden</addr-line></aff><aff id="aff3"><addr-line>Department of Materials and Environmental Chemistry, Arrhenius Laboratory, Stockholm University, Stockholm, Sweden；Dipartimento di Scienze Chimiche e Geologiche, Cagliari University, Cittadella Universitaria di Monserrato (CA), Monserrato, Italy</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>yonglei.wang@mmk.su.se(OW)</email>;<email>fredrik.hedman@noruna.se(FH)</email>;<email>massi@dsf.unica.it(MP)</email>;<email>fmocci@unica.it(FM)</email>;<email>aatto.laaksonen@mmk.su.se(AL)</email>;</corresp></author-notes><pub-date pub-type="epub"><day>07</day><month>02</month><year>2014</year></pub-date><volume>05</volume><issue>03</issue><fpage>520</fpage><lpage>541</lpage><history><date date-type="received"><day>October</day>	<month>19,</month>	<year>2013</year></date><date date-type="rev-recd"><day>November</day>	<month>19,</month>	<year>2013</year>	</date><date date-type="accepted"><day>November</day>	<month>26,</month>	<year>2013</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
   Ewald summation method, based on Non-Uniform FFTs (ENUF) to compute the electrostatic interactions and forces, is implemented in two different particle simulation schemes to model molecular and soft matter, in classical all-atom Molecular Dynamics and in Dissipative Particle Dynamics for coarse-grained particles. The method combines the traditional Ewald method with a non-uniform fast Fourier transform library (NFFT), making it highly efficient. It scales linearly with the number of particles as , while being both robust and accurate. It conserves both energy and the momentum to float point accuracy. As demonstrated here, it is straight- forward to implement the method in existing computer simulation codes to treat the electrostatic interactions either between point-charges or charge distributions. It should be an attractive alternative to mesh-based Ewald methods. 
 
</p></abstract><kwd-group><kwd>Ewald Summation Method; Non-Uniform Fast Fourier Transform; Dissipative Particle Dynamics</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>Computer modeling and simulation of molecular systems is an established discipline rapidly expanding and widely used from Materials Science to Biological systems. At finite temperatures and normal pressures, molecular compounds are in continuous rapid motion. In liquids and solutions, molecules collide and interact with each other at close distances. They also interact with external fields. In computer simulations of molecular systems, mechanistic ball and spring models are commonly employed to give a simple picture of atoms with specific sizes and masses bonded together with covalent bonds. Molecular equilibrium geometries and interactions are defined by so-called force fields where a somewhat arbitrary division between intramolecular and intermolecular interactions is made, because this partitioning is a simplification of the more detailed and fundamental understanding furnished by a quantum mechanical description.</p><p>Intramolecular interactions are normally described by bond stretching, angle bending and torsional angle motion terms. These interactions involve the closest bonded atoms described by two-, three-, and four-body terms, respectively. The bond and angle terms are normally given as harmonic wells while the torsion term is most often expressed as a Fourier sum.</p><p>Intermolecular interactions are those between separate molecules but also include all interactions within the same molecule beyond the bonded interactions. Non-bonded interactions are further divided between short- ranged and long-ranged interactions. The short-range interactions mimic the Van der Waals type of forces, while the long-range interactions are electrostatic interactions. The electron distributions around atoms are approxi- mated by fixed point charges, and their interactions are treated by using Coulomb’s law.</p><p>The effective range of short-range interactions is limited to a specified cut-off. By assuming a uniform beyond the cut-off, correction terms to the energy can be obtained by integrating over the non-zero part of the inter- actions [1-3]. Thus the fast-decaying short-range interactions can be accurately approximated by truncation at the cut-off distance in most calculations.</p><p>Artificially collecting and dividing the diffuse and fluctuating electron densities inside and around molecules on single atomic sites are a crude but conceptually simple and effective approximation, since Coulomb’s law can be invoked. However, this simplification comes at a price since the interactions between point charges stretch over very long distances. Furthermore, these long-range interactions cannot be truncated without introducing simulation artifacts [4-7].</p><p>As the system size grows, calculating the electrostatic interactions becomes the major computational bottleneck. Methods based on Ewald summation [8,9] are still considered as the most reliable choice, and a large variety of schemes to compute them in computer simulations have been proposed [10-16]. There is also a multitude of alternative methods for representing electrostatic interactions. Examples are methods based on a cut-off [17-19], tree and multipole based methods [20-25], multigrid methods [26-28], reaction field methods [29-31], the particle mesh method [32,33] and the isotropic sum method [<xref ref-type="bibr" rid="scirp.42807-ref34">34</xref>].</p><p>In this paper, we describe an approach to Ewald summation based on the non-uniform fast Fourier transform technique. We use the acronym ENUF-Ewald summation using Non-Uniform fast Fourier transform (NFFT) technique. Our method combines the traditional Ewald summation technique with the NFFT to calculate electrostatic energies and forces in molecular computer simulations. In the paper, we show that ENUF is an easy-to-implement, practical, and efficient method for calculating electrostatic interactions. Energy and momentum are both conserved to float point accuracy. By a suitable choice of parameters, ENUF can be made to behave as traditional Ewald summation but at the same time gives a computational complexity of<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x2.png" xlink:type="simple"/></inline-formula>, where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x3.png" xlink:type="simple"/></inline-formula> is the number of electrostatic interaction sites in the system. Weighing all these properties together, we believe that ENUF should be an attractive alternative in simulations where the high accuracy of Ewald summation is desired.</p><p>In the next section, we summarize the basic methodology to apply Ewald summation to computing the electrostatic energies and forces within periodic boundary conditions. In Section 3, we introduce the Ewald method where the reciprocal space part is calculated based on non-uniform FFTs and discuss the underlying concepts and use of the libraries. We also give general guidelines to implement the method in existing simulation programs. In Section 4, we discuss its implementation in a general purpose atomistic Molecular Dynamics simulation package M.DynaMix giving its scaling characteristics in a standard desktop computer. In Section 5, we demonstrate its implementation in Dissipative Particle Dynamics package. This method is applied to simulating soft charged mesoscopic particles. It is necessary to use charge distributions in order to avoid non-physical aggregation of soft charged particles if point charges are used. This issue is discussed further in Section 5.</p></sec><sec id="s2"><title>2. Electrostatic Interactions</title><p>We start by describing a model system of charged particles which captures the most salient features of electrostatic interactions in general MD systems. The electrostatic potential of a system with periodic boundary conditions (PBC) is first stated; we follow with the manipulation of the basic formulas to the form in which they are commonly written; this Section ends with a summary of expressions for both energy and forces.</p><sec id="s2_1"><title>2.1. Ewald Summation</title><p>Consider a cubic simulation box with edge length<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x4.png" xlink:type="simple"/></inline-formula>, containing <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x5.png" xlink:type="simple"/></inline-formula> charged particles, each with a charge<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x6.png" xlink:type="simple"/></inline-formula>, located at<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x7.png" xlink:type="simple"/></inline-formula>. The boundary conditions in a system without cut-off is represented by replicating the simulation box in all directions. The total electrostatic potential energy of the charge-charge interactions is then given by</p><disp-formula id="scirp.42807-formula47134"><label>(1)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x8.png"  xlink:type="simple"/></disp-formula><p>where<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x9.png" xlink:type="simple"/></inline-formula>, and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x10.png" xlink:type="simple"/></inline-formula> denotes the length (2-norm) of the vector<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x11.png" xlink:type="simple"/></inline-formula>. Because of the long-range nature of the electrostatic interactions, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x12.png" xlink:type="simple"/></inline-formula>includes contributions from all replicas, but exclude self-interactions, which is expressed in the triple sum in Equation (1). The outer sum is taken over all integer vectors</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x13.png" xlink:type="simple"/></inline-formula>. The <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x14.png" xlink:type="simple"/></inline-formula> symbol on the first summation sign in Equation (1) indicates that</p><p>the self-interaction terms should not be included, i.e., when <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x15.png" xlink:type="simple"/></inline-formula> terms are omitted.</p><p>The sum in Equation (1) is not an absolutely convergent series, but rather conditionally convergent. As a consequence, the order of summation affects the value of the series. In fact, it was discovered by Riemann that any conditionally convergent series of real terms can be rearranged to yield a series which converges to any prescribed sum [<xref ref-type="bibr" rid="scirp.42807-ref35">35</xref>]. In a sense, this is a situation very similar to the case when a linear equation has an infinite number of solutions because it is under-determined; by adding a set of conditions a unique solution may be defined. For the specific case of Equation (1), a physically relevant summation order has to be prescribed and the boundary conditions of the surrounding media have to be specified.</p><p>The lattice sum of Equation (1) can be calculated by a method that was first developed in 1921 by Ewald [<xref ref-type="bibr" rid="scirp.42807-ref8">8</xref>]. He used it to calculate lattice potentials in solids. In the context of Molecular Dynamics, there are several different derivations of the Ewald summation method that are more recent; a small selection is given by [3,9]. In the following discussion we mainly follow the work of de Leeuw et al. [9,36,37].</p><p>In [<xref ref-type="bibr" rid="scirp.42807-ref9">9</xref>], de Leeuw et al. developed a technique using convergence factors that transforms the sum of a conditionally convergent series into a series with a well-defined sum. Furthermore, they showed that applying a specific convergence factor is equivalent to a certain summation order. Assuming an overall charge neutral system, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x16.png" xlink:type="simple"/></inline-formula>, and summing the terms in Equation (1) over all integer vectors <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x17.png" xlink:type="simple"/></inline-formula> in concentric spherical order, they showed that the electrostatic potential energy can be written as</p><disp-formula id="scirp.42807-formula47135"><label>(2)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x18.png"  xlink:type="simple"/></disp-formula><p>when the surrounding media of the periodically replicated cell is a uniform dielectric with dielectric constant <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x19.png" xlink:type="simple"/></inline-formula> and distances are calculated with the minimum image convention. When the surrounding media is a conductor<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x20.png" xlink:type="simple"/></inline-formula>, the energy can be written as</p><disp-formula id="scirp.42807-formula47136"><label>(3)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x21.png"  xlink:type="simple"/></disp-formula><p>From Equation (3) it is clear that the boundary conditions, vacuum or conductor, have an effect on the energy of the system. Depending on the simulated system and the properties of interest, the choice of boundary conditions can affect the obtained results [38,39].</p><p>The function <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x22.png" xlink:type="simple"/></inline-formula> is given by</p><disp-formula id="scirp.42807-formula47137"><label>(4)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x23.png"  xlink:type="simple"/></disp-formula><p>with the two error functions defined as <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x24.png" xlink:type="simple"/></inline-formula> and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x25.png" xlink:type="simple"/></inline-formula>. The number <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x26.png" xlink:type="simple"/></inline-formula> used in Equations (2) and (3) is defined as</p><disp-formula id="scirp.42807-formula47138"><label>(5)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x27.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x28.png" xlink:type="simple"/></inline-formula> is a free parameter.</p><p>Equations (2) and (3) are not in a form that is appropriate for efficient numerical calculations and in the case of Molecular Dynamics simulation we also need expressions for the forces. To arrive at a more suitable form we make the necessary analysis for the electrostatic energy and forces in the following Sections.</p></sec><sec id="s2_2"><title>2.2. Energies in Ewald Summation</title><p>To rearrange and expand Equation (2) we first insert <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x29.png" xlink:type="simple"/></inline-formula> in Equation (4)</p><disp-formula id="scirp.42807-formula47139"><label>(6)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x30.png"  xlink:type="simple"/></disp-formula><p>Next we rescale <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x31.png" xlink:type="simple"/></inline-formula> by making the substitution <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x32.png" xlink:type="simple"/></inline-formula> in Equations (5) and (6) to get</p><disp-formula id="scirp.42807-formula47140"><label>(7)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x33.png"  xlink:type="simple"/></disp-formula><p>and</p><disp-formula id="scirp.42807-formula47141"><label>(8)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x34.png"  xlink:type="simple"/></disp-formula><p>Inserting Equations (7) and (8) into Equation (2) we get</p><disp-formula id="scirp.42807-formula47142"><label>(9)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x35.png"  xlink:type="simple"/></disp-formula><p>Note that the summation in Equation (9) is for <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x36.png" xlink:type="simple"/></inline-formula> in the first sum. We make further simplifications by studying the terms on the right hand side of Equation (9) for <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x37.png" xlink:type="simple"/></inline-formula> and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x38.png" xlink:type="simple"/></inline-formula>.</p><p>When <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x39.png" xlink:type="simple"/></inline-formula> we have the following terms</p><disp-formula id="scirp.42807-formula47143"><label>(10)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x40.png"  xlink:type="simple"/></disp-formula><p>with the terms independent of n included. The <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x41.png" xlink:type="simple"/></inline-formula> symbol indicates that the <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x42.png" xlink:type="simple"/></inline-formula> terms are excluded from the daggered sum.</p><p>When <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x43.png" xlink:type="simple"/></inline-formula> we get</p><disp-formula id="scirp.42807-formula47144"><label>(11)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x44.png"  xlink:type="simple"/></disp-formula><p>The factor <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x45.png" xlink:type="simple"/></inline-formula> in Equation (11) comes from changing the summation from <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x46.png" xlink:type="simple"/></inline-formula> to all pairs <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x47.png" xlink:type="simple"/></inline-formula> and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x48.png" xlink:type="simple"/></inline-formula>, and using the symmetry induced by <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x49.png" xlink:type="simple"/></inline-formula> and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x50.png" xlink:type="simple"/></inline-formula>.</p><p>By combining Equations (10) and (11) we identify the real-space term<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x51.png" xlink:type="simple"/></inline-formula>, the reciprocal-space term<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x52.png" xlink:type="simple"/></inline-formula>, the self-interaction term<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x53.png" xlink:type="simple"/></inline-formula>, and the boundary-condition term<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x54.png" xlink:type="simple"/></inline-formula>. The real-space term is given by</p><disp-formula id="scirp.42807-formula47145"><label>(12)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x55.png"  xlink:type="simple"/></disp-formula><p>and the reciprocal-space term is</p><disp-formula id="scirp.42807-formula47146"><label>(13)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x56.png"  xlink:type="simple"/></disp-formula><p>However, with the symmetries generated by <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x57.png" xlink:type="simple"/></inline-formula> and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x58.png" xlink:type="simple"/></inline-formula>, we get</p><disp-formula id="scirp.42807-formula47147"><label>(14)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x59.png"  xlink:type="simple"/></disp-formula><p>Furthermore, we have</p><disp-formula id="scirp.42807-formula47148"><label>(15)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x60.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.42807-formula47149"><label>(16)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x61.png"  xlink:type="simple"/></disp-formula><p>and finally</p><disp-formula id="scirp.42807-formula47150"><label>(17)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x62.png"  xlink:type="simple"/></disp-formula><p>The reciprocal-space part, Equation (14), can be expanded in two different forms. The first form is in terms of the structure factor<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x63.png" xlink:type="simple"/></inline-formula>,</p><disp-formula id="scirp.42807-formula47151"><label>(18)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x64.png"  xlink:type="simple"/></disp-formula><p>and is given by</p><disp-formula id="scirp.42807-formula47152"><label>(19)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x65.png"  xlink:type="simple"/></disp-formula><p>Now for a fixed<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x66.png" xlink:type="simple"/></inline-formula>, the structure factor <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x67.png" xlink:type="simple"/></inline-formula> is just a complex number<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x68.png" xlink:type="simple"/></inline-formula>, and the simple fact that</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x69.png" xlink:type="simple"/></inline-formula>, gives the real form of Equation (14)</p><disp-formula id="scirp.42807-formula47153"><label>(20)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x70.png"  xlink:type="simple"/></disp-formula><p>The first form in Equation (19) is used in our fast approach to calculating the reciprocal-space part. The last form in Equation (20) is the most common point-of-departure when implementing the reciprocal-space part.</p><p>2.3. Forces in Ewald Summation</p><p>Now that we have calculated the electrostatic energy of the system we can easily compute the electrostatic forces <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x71.png" xlink:type="simple"/></inline-formula> that act on each particle<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x72.png" xlink:type="simple"/></inline-formula>. Splitting the forces in the same way as we have split the energy and using Equation (17) we get the total electrostatic force by finding the negative of the gradient of the electrostatic energy</p><disp-formula id="scirp.42807-formula47154"><label>(21)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x73.png"  xlink:type="simple"/></disp-formula><p>The subscript <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x74.png" xlink:type="simple"/></inline-formula> on the <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x75.png" xlink:type="simple"/></inline-formula> operator indicates that we take the partial derivatives with respect to the position of particle <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x76.png" xlink:type="simple"/></inline-formula> and the <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x77.png" xlink:type="simple"/></inline-formula> in Equation (21) comes from the self-interaction term in Equation (15) being independent of<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x78.png" xlink:type="simple"/></inline-formula>. Before we do this calculation we note a couple basic, but helpful, formulas for calculating derivatives</p><disp-formula id="scirp.42807-formula47155"><label>(22)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x79.png"  xlink:type="simple"/></disp-formula><p>With above formulas, it is straightforward to find the different terms of<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x80.png" xlink:type="simple"/></inline-formula>. The contribution from the real-space term, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x81.png" xlink:type="simple"/></inline-formula>, becomes</p><disp-formula id="scirp.42807-formula47156"><label>(23)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x82.png"  xlink:type="simple"/></disp-formula><p>such that when <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x83.png" xlink:type="simple"/></inline-formula> include all <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x84.png" xlink:type="simple"/></inline-formula> and otherwise only<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x85.png" xlink:type="simple"/></inline-formula>. Equation (20) is convenient to use when calculating the reciprocal-space contribution because it is expressed in terms of charge locations <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x86.png" xlink:type="simple"/></inline-formula> rather than relative distances<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x87.png" xlink:type="simple"/></inline-formula>. Thus the reciprocal-space force is given by</p><disp-formula id="scirp.42807-formula47157"><label>(24)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x88.png"  xlink:type="simple"/></disp-formula><p>Finally, the contribution that depends on the boundary condition</p><disp-formula id="scirp.42807-formula47158"><label>(25)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x89.png"  xlink:type="simple"/></disp-formula><p>2.4. Formulas for Energy and Forces in Ewald Summation</p><p>Consider a periodically replicated system, with the central box consisting of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x90.png" xlink:type="simple"/></inline-formula> point charges <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x91.png" xlink:type="simple"/></inline-formula> and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x92.png" xlink:type="simple"/></inline-formula>. Assume that the surrounding media at the boundary of the periodically replicated system is a uniform dielectric with dielectric constant<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x93.png" xlink:type="simple"/></inline-formula>. The cubic box has edge length<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x94.png" xlink:type="simple"/></inline-formula>; each charge <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x95.png" xlink:type="simple"/></inline-formula> is located at<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x96.png" xlink:type="simple"/></inline-formula>, and distances are calculated with the minimum image convention. After expansion and rearrangements of Equation (2), rescaling <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x97.png" xlink:type="simple"/></inline-formula> and using symmetries induced by <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x98.png" xlink:type="simple"/></inline-formula> and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x99.png" xlink:type="simple"/></inline-formula>, the total electrostatic energy of the system can be written as</p><disp-formula id="scirp.42807-formula47159"><label>(26)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x100.png"  xlink:type="simple"/></disp-formula><p>with the different terms given by</p><disp-formula id="scirp.42807-formula47160"><label>(27)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x101.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.42807-formula47161"><label>(28)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x102.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.42807-formula47162"><label>(29)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x103.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.42807-formula47163"><label>(30)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x104.png"  xlink:type="simple"/></disp-formula><p>Note that <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x105.png" xlink:type="simple"/></inline-formula> is a free parameter. The structure factor <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x106.png" xlink:type="simple"/></inline-formula> is defined as</p><disp-formula id="scirp.42807-formula47164"><label>(31)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x107.png"  xlink:type="simple"/></disp-formula><p>The total electrostatic force, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x108.png" xlink:type="simple"/></inline-formula>, on each particle is</p><disp-formula id="scirp.42807-formula47165"><label>(32)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x109.png"  xlink:type="simple"/></disp-formula><p>Each of the force terms given by</p><disp-formula id="scirp.42807-formula47166"><label>(33)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x110.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.42807-formula47167"><label>(34)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x111.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.42807-formula47168"><label>(35)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x112.png"  xlink:type="simple"/></disp-formula><p>The positive number<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x113.png" xlink:type="simple"/></inline-formula>, the so called Ewald convergence parameter, is chosen for computational con- venience. Observe that <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x114.png" xlink:type="simple"/></inline-formula> for large values of<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x115.png" xlink:type="simple"/></inline-formula>. By choosing <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x116.png" xlink:type="simple"/></inline-formula> large enough in Equation (27), we can ensure that the only terms that contribute in the real-space sum is when<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x117.png" xlink:type="simple"/></inline-formula>. This may be expressed so that all terms with <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x118.png" xlink:type="simple"/></inline-formula> should be included.</p><p>Choose a cut-off in both real-space and reciprocal-space so that the neglected terms in the real-space and reciprocal-space parts are of the same order<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x119.png" xlink:type="simple"/></inline-formula>, or less. The truncation in real-space implies that a sufficient number of terms must be included in the reciprocal-space sums, Equation (28).</p><p>Given a required accuracy<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x120.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x121.png" xlink:type="simple"/></inline-formula>is fixed by</p><disp-formula id="scirp.42807-formula47169"><label>(36)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x122.png"  xlink:type="simple"/></disp-formula><p>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x123.png" xlink:type="simple"/></inline-formula> is determined by</p><disp-formula id="scirp.42807-formula47170"><label>(37)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x124.png"  xlink:type="simple"/></disp-formula><p>We have two conditions and four parameters. With a required <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x125.png" xlink:type="simple"/></inline-formula> we may just as well pick a suitable value for <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x126.png" xlink:type="simple"/></inline-formula> and let the above two equations determine <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x127.png" xlink:type="simple"/></inline-formula> and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x128.png" xlink:type="simple"/></inline-formula>.</p><p>With an optimal choice of parameters the computational effort of the Ewald method becomes <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x129.png" xlink:type="simple"/></inline-formula> [<xref ref-type="bibr" rid="scirp.42807-ref36">36</xref>] giving a considerable improvement over the <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x130.png" xlink:type="simple"/></inline-formula> computational complexity implied by the “infinite” reach of the Coulomb interactions.</p></sec></sec><sec id="s3"><title>3. ENUF: A Fast Method for Calculating Electrostatic Interactions</title><p>In Section 2 we summarized known results and prepared the ground for the development of a fast method for Ewald summation using the discrete nonuniform fast Fourier transform (NDFT).</p><sec id="s3_1"><title>3.1. Discrete Fourier Transforms for Non-Equispaced Data</title><p>The fast Fourier transform for nonuniform data-points (NFFT) [<xref ref-type="bibr" rid="scirp.42807-ref40">40</xref>] is a generalization of the FFT [<xref ref-type="bibr" rid="scirp.42807-ref41">41</xref>]. Several similar approaches have been proposed; some examples are [42-50] with comparisons in [47,51,52].</p><p>The basic idea of NFFT is to combine the standard FFT and linear combinations of a window function that is well localized in both the spatial domain and the frequency domain. A controlled approximation using a cut-off in the frequency domain and a limited number of terms in the spatial domain results in an aliasing error and a truncation error, respectively. The aliasing errors is controlled by the oversampling factor<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x131.png" xlink:type="simple"/></inline-formula>, and the truncation error is controlled by the number of terms, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x132.png" xlink:type="simple"/></inline-formula>, in the spatial/time approximation. For a number of window functions (Gaussian, B-spline, Sinc-power, Kaiser-Bessel), it has been shown that for a fixed over- sampling factor, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x133.png" xlink:type="simple"/></inline-formula>, the error decays exponentially with <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x134.png" xlink:type="simple"/></inline-formula> [<xref ref-type="bibr" rid="scirp.42807-ref53">53</xref>].</p><sec id="s3_1_1"><title>3.1.1. Problem Definition</title><p>We wish to calculate the discrete Fourier transform for nonequispaced data. The problem can be stated as follows. For a finite number of given Fourier coefficients <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x135.png" xlink:type="simple"/></inline-formula> with <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x136.png" xlink:type="simple"/></inline-formula> we want to evaluate the</p><p>trigonometric polynomial <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x137.png" xlink:type="simple"/></inline-formula> at each of the given nonequispaced points</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x138.png" xlink:type="simple"/></inline-formula>. In the literature, points are often called knots. We use the two terms synonymously.</p><p>Obviously, the details of an NDFT depend on the definitions of a sampling set for knots, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x139.png" xlink:type="simple"/></inline-formula>, and an index space<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x140.png" xlink:type="simple"/></inline-formula>. More in-depth discussions and further details can be found in [53,54]. The presentation that follows is mainly drawn from these sources.</p></sec><sec id="s3_1_2"><title>3.1.2. Underlying Concepts</title><p>Consider a d-dimensional domain <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x141.png" xlink:type="simple"/></inline-formula> in which the set of nonequispaced knots, or data points, are located. Let</p><disp-formula id="scirp.42807-formula47171"><label>(38)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x142.png"  xlink:type="simple"/></disp-formula><p>and the set of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x143.png" xlink:type="simple"/></inline-formula> data points<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x144.png" xlink:type="simple"/></inline-formula>. For the application we have in mind <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x145.png" xlink:type="simple"/></inline-formula> is usually 2 or 3. Let <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x146.png" xlink:type="simple"/></inline-formula> be a function space of trigonometric polynomials with degree <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x147.png" xlink:type="simple"/></inline-formula> in dimension<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x148.png" xlink:type="simple"/></inline-formula>; the function space <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x149.png" xlink:type="simple"/></inline-formula> can be defined as</p><disp-formula id="scirp.42807-formula47172"><label>(39)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x150.png"  xlink:type="simple"/></disp-formula><p>The dimension of this function space is<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x151.png" xlink:type="simple"/></inline-formula>. The frequencies <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x152.png" xlink:type="simple"/></inline-formula> with the index set <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x153.png" xlink:type="simple"/></inline-formula> are such that</p><disp-formula id="scirp.42807-formula47173"><label>(40)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x154.png"  xlink:type="simple"/></disp-formula></sec><sec id="s3_1_3"><title>3.1.3. Matrix-Vector Formulation</title><p>With these preliminary definitions we carry on with the problem of calculating the discrete Fourier transform for</p><p>nonequispaced data. For a finite number of given Fourier coefficients <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x155.png" xlink:type="simple"/></inline-formula> with <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x156.png" xlink:type="simple"/></inline-formula> we want to evaluate the trigonometric polynomial <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x157.png" xlink:type="simple"/></inline-formula> at each of the given nonequispaced</p><p>knots in<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x158.png" xlink:type="simple"/></inline-formula>, where the product <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x159.png" xlink:type="simple"/></inline-formula> is the usual scalar product of the two vectors <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x160.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x161.png" xlink:type="simple"/></inline-formula> as<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x162.png" xlink:type="simple"/></inline-formula>. Consequently, for each<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x163.png" xlink:type="simple"/></inline-formula>, we evaluate<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x164.png" xlink:type="simple"/></inline-formula>. This may be reformulated in matrix-vector notation by setting</p><disp-formula id="scirp.42807-formula47174"><label>(41)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x165.png"  xlink:type="simple"/></disp-formula><p>and writing<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x166.png" xlink:type="simple"/></inline-formula>.</p></sec><sec id="s3_1_4"><title>3.1.4. Related Matrix-Vector Products</title><p>A number of related NDFT matrix-vector products can also be defined. To write them down we let <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x167.png" xlink:type="simple"/></inline-formula> be the complex conjugate of the elements of the matrix <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x168.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x169.png" xlink:type="simple"/></inline-formula> the transposed complex conjugate of the matrix<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x170.png" xlink:type="simple"/></inline-formula>. Using these conventions we can name and summarize the related NDFT matrix-vector products and their component representation as</p><disp-formula id="scirp.42807-formula47175"><label>(42)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x171.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.42807-formula47176"><label>(43)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x172.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.42807-formula47177"><label>(44)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x173.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.42807-formula47178"><label>(45)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x174.png"  xlink:type="simple"/></disp-formula></sec><sec id="s3_1_5"><title>3.1.5. NDFT, FFT and NFFT</title><p>From the different NDFT products written in matrix-vector form, as in Equations (42)-(45), it is clear that it takes <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x175.png" xlink:type="simple"/></inline-formula> arithmetic operations to transform between the Fourier-samples and the Fourier-coefficients.</p><p>This is simply because the matrix <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x176.png" xlink:type="simple"/></inline-formula> is<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x177.png" xlink:type="simple"/></inline-formula>, with<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x178.png" xlink:type="simple"/></inline-formula>.</p><p>However, for the special case of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x179.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x180.png" xlink:type="simple"/></inline-formula> equispaced knots<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x181.png" xlink:type="simple"/></inline-formula>, the Fourier-samples <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x182.png" xlink:type="simple"/></inline-formula> can be calculated from the Fourier-coefficients <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x183.png" xlink:type="simple"/></inline-formula> by the fast Fourier transform (FFT) with <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x184.png" xlink:type="simple"/></inline-formula> arithmetic operations.</p><p>The fast Fourier transform for nonequispaced knots (NFFT) is a generalization of the FFT. The essential idea is that of combining a window function with the standard FFT. The window function is a well localized function in both the space domain and frequency domain. Several different window functions and similar approaches have been proposed. The resulting algorithms are approximate and some of them have been shown to have a computational complexity of<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x185.png" xlink:type="simple"/></inline-formula>, where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x186.png" xlink:type="simple"/></inline-formula> is the desired accuracy [<xref ref-type="bibr" rid="scirp.42807-ref53">53</xref>].</p></sec></sec><sec id="s3_2"><title>3.2. Fast Ewald Summation</title><p>Using optimal parameters in the Ewald summation method implies that the time to calculate the real-space part and the reciprocal-space part are approximately equal. As the number of particles in the system grows we would like to combine the calculation of the short-range part of the potential with the real-space part. This implies that we need to choose a real-space cut-off about the same size as the short-range cut-off. With this nonoptimal choice, the reciprocal-space parts of the Ewald summation method become the most time-consuming to calculate [<xref ref-type="bibr" rid="scirp.42807-ref55">55</xref>].</p><p>To show how a fast Ewald summation approach may be obtained from the regular Ewald method, described in Section 2, we focus on the reciprocal-space parts. In Section 3.1, we gave the details of the discrete Fourier transform (DFT) for data that is nonuniformly spaced (NDFT). Based on these definitions we get a number of useful algorithmic primitives. First we reformulate the reciprocal-space part of the regular Ewald method in terms of the NDFT primitives. Then we show how the fast Fourier transform for nonequispaced (NFFT) can be applied, yielding an Ewald method based on the nonuniform fast Fourier transform.</p><sec id="s3_2_1"><title>3.2.1. Reciprocal Space Terms as DFT</title><p>We apply the generalized DFT, described in Section 3.1, to the calculation of the reciprocal-space energy and forces. This allows us to formulate the standard Ewald method for calculating the reciprocal energy and forces in terms of the NDFT primitives.</p></sec><sec id="s3_2_2"><title>3.2.2. Reciprocal Energy</title><p>In the case of the electrostatic energy we have from Equation (28)</p><disp-formula id="scirp.42807-formula47179"><label>(46)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x187.png"  xlink:type="simple"/></disp-formula><p>with the structure factor <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x188.png" xlink:type="simple"/></inline-formula> defined as</p><disp-formula id="scirp.42807-formula47180"><label>(47)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x189.png"  xlink:type="simple"/></disp-formula><p>By comparing the definition of the transposed NDFT in Equation (45) and the structure factor in Equation (47) we note that they have the same structure; after a renumbering of the location indexes, the summation limits are also the same. In fact, by setting the normalized locations, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x190.png" xlink:type="simple"/></inline-formula>, and the samples, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x191.png" xlink:type="simple"/></inline-formula>, we see by inspection that Equation (47) is a 3D instance of Equation (45) with<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x192.png" xlink:type="simple"/></inline-formula>. Furthermore, assuming that the MD simulation box is centered around the origin, the normalized locations can be assumed to be in the domain <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x193.png" xlink:type="simple"/></inline-formula> as defined in Equation (38).</p><p>Consequently, we can use the NDFT approach to calculate each of the components of the structure factor. From a computational point of view this means that we can also expect to utilize an NFFT based algorithm to calculate the components of the structure factor<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x194.png" xlink:type="simple"/></inline-formula>, rather than the straightforward summation normally used in the Ewald method.</p><p>Recasting Equation (46) in terms of Fourier-components</p><disp-formula id="scirp.42807-formula47181"><label>(48)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x195.png"  xlink:type="simple"/></disp-formula><p>Calculating the energy, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x196.png" xlink:type="simple"/></inline-formula>, using Equation (48) means that we</p><p>1) calculate all <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x197.png" xlink:type="simple"/></inline-formula> using the transposed NDFT,</p><p>2) scale each <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x198.png" xlink:type="simple"/></inline-formula> with a factor given by Equation (48),</p><p>3) sum all the scaled components.</p></sec><sec id="s3_2_3"><title>3.2.3. Reciprocal Forces</title><p>We calculate the contribution from the reciprocal-space forces using a similar approach as for the energy. In the formula below, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x199.png" xlink:type="simple"/></inline-formula>, and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x200.png" xlink:type="simple"/></inline-formula>, denote the real and imaginary part of the arguments, respectively. From Equation (24) we have that</p><disp-formula id="scirp.42807-formula47182"><label>(49)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x201.png"  xlink:type="simple"/></disp-formula><p>Now, the structure factor <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x202.png" xlink:type="simple"/></inline-formula> is just a complex number so the expression in the brackets in Equation (49) can be written as the imaginary part of a product</p><disp-formula id="scirp.42807-formula47183"><label>(50)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x203.png"  xlink:type="simple"/></disp-formula><p>Inserting Equation (50) this into Equation (49) gives</p><disp-formula id="scirp.42807-formula47184"><label>(51)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x204.png"  xlink:type="simple"/></disp-formula><p>Note that Equation (51) is a vector equation. Furthermore, each of the three components has the same structure as the conjugated NDFT of Equation (44). By setting the normalized locations, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x205.png" xlink:type="simple"/></inline-formula>, and the samples,</p><disp-formula id="scirp.42807-formula47185"><label>(52)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x206.png"  xlink:type="simple"/></disp-formula><p>we see, again, by inspection that each component of Equation (51) is a 3D instance of Equation (44). Assuming that <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x207.png" xlink:type="simple"/></inline-formula> is in the index set <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x208.png" xlink:type="simple"/></inline-formula> of Equation (40), <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x209.png" xlink:type="simple"/></inline-formula>, and setting<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x210.png" xlink:type="simple"/></inline-formula>, we can formulate <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x211.png" xlink:type="simple"/></inline-formula> directly in Fourier-terms</p><disp-formula id="scirp.42807-formula47186"><label>(53)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x212.png"  xlink:type="simple"/></disp-formula><p>Calculating the reciprocal-space force <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x213.png" xlink:type="simple"/></inline-formula> on particle<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x214.png" xlink:type="simple"/></inline-formula>, using Equation (53), means that we</p><p>1) start with the structure factor components, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x215.png" xlink:type="simple"/></inline-formula>, already obtained when we calulated<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x216.png" xlink:type="simple"/></inline-formula>,</p><p>2) scale each <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x217.png" xlink:type="simple"/></inline-formula> using Equation (52),</p><p>3) giving a new set of Fourier-coefficients that are transformed back to real-space, via Equation (53), using the conjugated NDFT, and finally</p><p>4) with Equation (53), taking the imaginary part of coefficient <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x218.png" xlink:type="simple"/></inline-formula> and scaling it with <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x219.png" xlink:type="simple"/></inline-formula> gives the reciprocal force on particle<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x220.png" xlink:type="simple"/></inline-formula>.</p><p>Thus we can use the NDFT approach to calculate each of the components of the reciprocal forces. Again, from a computational point of view this means we can expect to utilize an NFFT based algorithm to find the respective components.</p></sec><sec id="s3_2_4"><title>3.2.4. Combining the Ewald Method and NFFT</title><p>The reformulation of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x221.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x222.png" xlink:type="simple"/></inline-formula> as in Equations (48) and (53) shows the central role of the transposed and conjugated NDFT in calculating the reciprocal-space energy and forces. Starting with the location of the charged particles, the structure factor <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x223.png" xlink:type="simple"/></inline-formula> is calculated via a transposed NDFT. In the language of Ewald summation, we transform from real-space to reciprocal-space. Scaling the absolute value of the Fourier- components and summing gives<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x224.png" xlink:type="simple"/></inline-formula>. To find <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x225.png" xlink:type="simple"/></inline-formula> we go back from the reciprocal-space to the real-space by first calculating the Fourier-components of the forces and then performing a conjugated NDFT.</p><p>An implementation of Ewald summation uses cut-offs, in reciprocal-space, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x226.png" xlink:type="simple"/></inline-formula>, and real-space,<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x227.png" xlink:type="simple"/></inline-formula>; with <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x228.png" xlink:type="simple"/></inline-formula> large enough and with a required accuracy, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x229.png" xlink:type="simple"/></inline-formula>, truncate the sums Equation (27) and Equation (28) at the respective cut-offs so that the last term added<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x230.png" xlink:type="simple"/></inline-formula>, in each of the sums. When <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x231.png" xlink:type="simple"/></inline-formula> is fixed by</p><disp-formula id="scirp.42807-formula47187"><label>(54)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x232.png"  xlink:type="simple"/></disp-formula><p>Then <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x233.png" xlink:type="simple"/></inline-formula> is determined by</p><disp-formula id="scirp.42807-formula47188"><label>(55)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x234.png"  xlink:type="simple"/></disp-formula><p>We have recast <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x235.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x236.png" xlink:type="simple"/></inline-formula> in terms of Fourier-components and set<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x237.png" xlink:type="simple"/></inline-formula>, where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x238.png" xlink:type="simple"/></inline-formula> is the</p><p>oversampling factor. This gives<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x239.png" xlink:type="simple"/></inline-formula>. In general the computational complexity of the NFFT method</p><p>is<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x240.png" xlink:type="simple"/></inline-formula>, where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x241.png" xlink:type="simple"/></inline-formula> is the desired accuracy in the approximation used within NFFT [<xref ref-type="bibr" rid="scirp.42807-ref53">53</xref>].</p><p>Using Equation (54) and the above defintion of<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x242.png" xlink:type="simple"/></inline-formula>, we see that the complexity becomes<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x243.png" xlink:type="simple"/></inline-formula>. Note that <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x244.png" xlink:type="simple"/></inline-formula> is a function of<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x245.png" xlink:type="simple"/></inline-formula>, for a fixed oversampling factor. With a controlled approximation of the structure factor via the use of nonuniform fast Fourier transform, the original computational complexity of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x246.png" xlink:type="simple"/></inline-formula> becomes<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x247.png" xlink:type="simple"/></inline-formula>.</p><p>At this stage, the path to a fast Ewald method should now be clear. By specifying an accuracy<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x248.png" xlink:type="simple"/></inline-formula>, we replace the transposed and conjugated NDFT with the corresponding operations using the NFFT algorithm. Thus Equations (48) and (53) become a concise procedure to calculate approximations of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x249.png" xlink:type="simple"/></inline-formula> and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x250.png" xlink:type="simple"/></inline-formula>. Most of the mathematical details can be kept separate and hidden in a set of library routines and the remaining formulas pertain to the physics of the problem. Furthermore, with a library implementation based on a state-of-the-art FFT-library, we have good reason to expect it to be efficient.</p></sec><sec id="s3_2_5"><title>3.2.5. Implementation and Results</title><p>In a first implementation [56,57], we used the libraries FFTW [<xref ref-type="bibr" rid="scirp.42807-ref58">58</xref>] and NFFT [<xref ref-type="bibr" rid="scirp.42807-ref54">54</xref>]. Details of the accuracy and scaling properties can be found in reference papers.</p><p>Basing the implementation on libraries has a number of advantages. It makes the implementation task easier and introduces a convenient division of labor in the program code: the mathematical aspects are mainly concentrated to the libraries while the physical aspects of the problem remain. Also, since the code becomes quite compact without becoming convoluted, it becomes easier to check, understand, and explain. Improvements and optimizations of the libraries can be easily included in the program, usually by just relinking the program. For example, the customization of the window function used in the NFFT algorithm---Gaussian functions, dilated cardinal B-splines, Sinc functions, or Kaiser-Bessel functions---is currently achieved by recompiling the NFFT library and relinking the application. Due to the comparatively small size of the NFFT library this is very quick. Furthermore, improvements in either theory or implementation of the used libraries will be easily accessible.</p><p>In summary, we claim that the ENUF method is</p><p>・ efficient and concise, and</p><p>・ has a clear separation of concerns between mathematical and physical details.</p><p>In a sense it can be said that we get the best of two worlds: a concise and efficient algorithm. The separation of mathematical concerns is a bonus that has the potential to simplify implementation and further developments due to the fact that they may occur independently of each-other.</p></sec></sec></sec><sec id="s4"><title>4. ENUF Implemented in M.DynaMix</title><p>M.DynaMix is a highly modular general purpose parallel Molecular Dynamics code for simulations of arbitrary mixtures of either rigid or flexible molecules. It was released by Lyubartsev and Laaksonen in late 90’s [<xref ref-type="bibr" rid="scirp.42807-ref59">59</xref>]. Most common force fields can be used in simulations with a variety of periodic boundary conditions (cubic, rectangular, hexagonal or a truncated octahedron). Quantum corrections to the atomic motion can be done using the Path Integral Molecular Dynamics approach. M.DynaMix has been used in applications from materials design to biological processes.</p><p>M.DynaMix deals with particle system interacting by a force field consisting of Lennard-Jones, electrostatic, covalent bonds, angles and torsion angles potentials as well as of some optional terms, in a periodic rectangular, hexagonal or truncated octahedron cell. Rigid bonds are constrained by the SHAKE algorithm [<xref ref-type="bibr" rid="scirp.42807-ref60">60</xref>]. In case of flexible molecular models the double time step algorithm is used [<xref ref-type="bibr" rid="scirp.42807-ref61">61</xref>]. Algorithms for NVE, NVT and NPT statistical ensembles are implemented, as well as Ewald sum approach for treatment of the electrostatic interactions. An option to calculate free energy by the expanded ensemble method with Wang-Landau optimization of the balancing factor is included in later versions. For its features and capabilities, M.DynaMix is diffused in a large modeling and simulation community. Written in FORTRAN 77, it can be run on a wide variety of hardware architectures both in sequential and parallel execution. The entire program source code consists of a number of FORTRAN files (modules), made of blocks of subroutines, performing different tasks or groups of tasks.</p><sec id="s4_1"><title>4.1. Framework Overview</title><p>The situation outlined for M.DynaMix is very common in the field of computational science: a package created in late 90’s that is still at work in spite of new innovations in computing platforms. In a situation like this, each upgrade requires a trade-off between the need to preserve the existing structure and the wish to obtain as much efficiency as possible.</p><p>To take the best advantage from latest programming techniques and tools, we decide to use C language to create some of the new code segments. On one hand, modules in FORTRAN and C can easily coexist in the same code, just taking account of a few mild guidelines [<xref ref-type="bibr" rid="scirp.42807-ref62">62</xref>]; on the other hand, C language provides several enhancements related to intrinsic features (dynamic memory allocation and direct pointers reference) and possibility to set up complex data structures; furthermore, it allows a more plain access to a large amount of external routine libraries written in C. From a general point of view, M.DynaMix code has been projected with a good modularity degree and has been possible to make the most part of upgrades just switching a block (subroutine) with a new one.</p></sec><sec id="s4_2"><title>4.2. Input Parameters</title><p>To use ENUF method for treating long range interactions, M.DynaMix user needs to set the proper key string in the input file [<xref ref-type="bibr" rid="scirp.42807-ref63">63</xref>]; parameters to specify are the Ewald convergence factor <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x251.png" xlink:type="simple"/></inline-formula> and the number of points for FFT grid in<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x252.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x253.png" xlink:type="simple"/></inline-formula>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x254.png" xlink:type="simple"/></inline-formula> direction; starting from them, the program automatically sets proper values for over-sampling factor <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x255.png" xlink:type="simple"/></inline-formula> and approximation parameter<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x256.png" xlink:type="simple"/></inline-formula>.</p></sec><sec id="s4_3"><title>4.3. Implementation</title><p>Ewald-like methods for computing electrostatic energies typically replace part of the summation in real space with an equivalent summation in Fourier space; among M.DynaMix modules, there is one devoted to this reciprocal space duty. In the starting setup, this module was present in M.DynaMix in a version related to the full Ewald algorithm; ENUF implementation involved the creation of a second instance of this module.</p><p>A scheme of the ENUF module as implemented in M.DynaMix is presented in <xref ref-type="table" rid="table1">Table 1</xref>; the module in this case is a group of files, part of them written in FORTRAN and part in C; each file contains routines related to the algorithm steps. The table displays for each step the programming language used to write corresponding file; Some files make calls to external libraries, typically used to perform non uniform Fourier transform and its inverse.</p><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> ENUF algorithm scheme: for each step is listed the language of the related routines and the presence of calls to external libs</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Step</th><th align="center" valign="middle" >Language</th><th align="center" valign="middle" >Lib Calls</th></tr></thead><tr><td align="center" valign="middle" >1: Coordinate scaling</td><td align="center" valign="middle" >F77</td><td align="center" valign="middle" >No</td></tr><tr><td align="center" valign="middle" >2: Adjoint FFT</td><td align="center" valign="middle" >C</td><td align="center" valign="middle" >Yes</td></tr><tr><td align="center" valign="middle" >3: Energy evaluation</td><td align="center" valign="middle" >F77</td><td align="center" valign="middle" >No</td></tr><tr><td align="center" valign="middle" >4: Factor rescaling</td><td align="center" valign="middle" >F77</td><td align="center" valign="middle" >No</td></tr><tr><td align="center" valign="middle" >5: Regular FFT</td><td align="center" valign="middle" >C</td><td align="center" valign="middle" >Yes</td></tr><tr><td align="center" valign="middle" >6: Forces evaluation</td><td align="center" valign="middle" >F77</td><td align="center" valign="middle" >No</td></tr></tbody></table></table-wrap><sec id="s4_3_1"><title>4.3.1. Coordinate Scaling and Adjoint Transform</title><p>In the first step of the algorithm, particle coordinates are rescaled respect to the simulation box, in order to obtain the proper set of nonequispaced knots as required in Equation (38). Knots are stored in the unidimensional FORTRAN array<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x257.png" xlink:type="simple"/></inline-formula>, in consecutive way, saving coordinates in reverse component order <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x258.png" xlink:type="simple"/></inline-formula> for each knot. Particle charges are located in unidimensional array<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x259.png" xlink:type="simple"/></inline-formula>.</p><p>At the next step, a C routine performs the 3-dim adjoint transform of charges <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x260.png" xlink:type="simple"/></inline-formula> located at knots<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x261.png" xlink:type="simple"/></inline-formula>. C routine access to 1-dim FORTRAN vectors <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x262.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x263.png" xlink:type="simple"/></inline-formula> as three dimensional arrays; the reverse component order adopted in <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x264.png" xlink:type="simple"/></inline-formula> vector filling is related to this and depends on the different way to arrange multi- dimensional arrays in memory: by columns for FORTRAN, by rows for C. Transformed data are stored in the complex array<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x265.png" xlink:type="simple"/></inline-formula>.</p></sec><sec id="s4_3_2"><title>4.3.2. Energy, Regular Transform and Forces</title><p>In this stage, energy is evaluated by a sum, according to formula (48). Then, the transformed array <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x266.png" xlink:type="simple"/></inline-formula> is rescaled using Equation (51); starting from<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x267.png" xlink:type="simple"/></inline-formula>, three complex rescaled arrays are created, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x268.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x269.png" xlink:type="simple"/></inline-formula>and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x270.png" xlink:type="simple"/></inline-formula>,</p><p>one for each direction in the reciprocal space. A C routine back transform complex data set<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x271.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x272.png" xlink:type="simple"/></inline-formula>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x273.png" xlink:type="simple"/></inline-formula></p><p>related to the same set of knots<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x274.png" xlink:type="simple"/></inline-formula>. In this step, three independent back transformations are performed, producing complex arrays<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x275.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x276.png" xlink:type="simple"/></inline-formula>and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x277.png" xlink:type="simple"/></inline-formula>. Forces contributions for each particle are obtained according to Equation (53); components in<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x278.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x279.png" xlink:type="simple"/></inline-formula>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x280.png" xlink:type="simple"/></inline-formula> directions are evaluated using the imaginary part of arrays<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x281.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x282.png" xlink:type="simple"/></inline-formula>and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x283.png" xlink:type="simple"/></inline-formula>.</p></sec></sec><sec id="s4_4"><title>4.4. External Libraries</title><p>To perform Fourier transform on nonequispaced data, our current implementation make use of an external existing function library. Among the available resources, we select the library NFFT [<xref ref-type="bibr" rid="scirp.42807-ref54">54</xref>]. NFFT is a widely diffused C subroutine library for computing nonequispaced discrete Fourier transform in one or more dimensions, of arbitrary input size and of complex data; it is based on FFTW [<xref ref-type="bibr" rid="scirp.42807-ref58">58</xref>].</p></sec><sec id="s4_5"><title>4.5. Validation</title><p>In the original version of M.DynaMix the working method for the treatment of long range interactions is the full direct Ewald summation. Using a cross-check approach, namely comparing ENUF method to the stable one, it has been possible to debug every step of the algorithm implementation and check its correctness in deep way.</p><p>After the implementation, the same cross-check mechanism has been used to investigate ENUF precision and efficiency. <xref ref-type="fig" rid="fig1">Figure 1</xref> displays the execution time spent for long range interactions evaluation respect to the number of particles N, when full Ewald and ENUF are used. In the simulation, of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x284.png" xlink:type="simple"/></inline-formula> iterations, the system is composed by 50 <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x285.png" xlink:type="simple"/></inline-formula> ions and 50 <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x286.png" xlink:type="simple"/></inline-formula> ions in water solution in a cubic cell. The number of water molecules is increased from <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x287.png" xlink:type="simple"/></inline-formula> to <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x288.png" xlink:type="simple"/></inline-formula> in seven discrete steps, keeping constant the density to 1.02<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x289.png" xlink:type="simple"/></inline-formula>. The simulation run on a Intel Xeon workstation, 1.86 GHz, with ram 8 Gb.</p><p>The full Ewald method has been taken as reference; for each system size, ENUF parameters have been tuned to obtain the same Ewald precision, evaluated in terms of the electrostatics energy contribution, tolerating a maximum divergence of 2%.</p><p>The plot shows that execution time for long range interactions that represents the efficiency bottleneck in the original M.DynaMix version, has been drastically reduced saving the same numerical precision. The plot also shows the different trend for execution time vs <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x290.png" xlink:type="simple"/></inline-formula> in the two methods; the point set for the full Ewald scheme</p><fig id="fig1"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref></label><caption><title> Execution time for long range interactions vs. number of particles N, for Ewald and ENUF. System is composed by 50 Na<sup>+</sup> and 50 Cl<sup>−</sup> in H<sub>2</sub>O solution in a periodic cubic cell. Number of water molecules is increased from 10<sup>3</sup> to 25 &#215; 10<sup>3</sup> keeping density to 1.02 g/cm<sup>3</sup></title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/19-7401922x291.png"/></fig><p>is well fitted using the well-known theoretical behavior<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x292.png" xlink:type="simple"/></inline-formula>; data points related to ENUF correspond quite well to the expected<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x293.png" xlink:type="simple"/></inline-formula>.</p></sec></sec><sec id="s5"><title>5. Implementation of ENUF Method in Dissipative Particle Dynamics Scheme</title><p>The Dissipative Particle Dynamics (DPD) simulation method, originally proposed by Hoogerbrugge and Koelman, is a particle-based simulation method to simulate hydrodynamic phenomena at mesoscopic level [64, 65,66]. In DPD model, several atoms or molecules are grouped together to form coarse-grained particles. The interactions between any pair of DPD particles <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x294.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x295.png" xlink:type="simple"/></inline-formula> are normally composed of three pairwise additive forces: the conservative force<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x296.png" xlink:type="simple"/></inline-formula>, the dissipative force<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x297.png" xlink:type="simple"/></inline-formula>, and the random force <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x298.png" xlink:type="simple"/></inline-formula></p><disp-formula id="scirp.42807-formula47189"><label>(56)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x299.png"  xlink:type="simple"/></disp-formula><p>with</p><disp-formula id="scirp.42807-formula47190"><label>(57)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x300.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.42807-formula47191"><label>(58)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x301.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.42807-formula47192"><label>(59)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x302.png"  xlink:type="simple"/></disp-formula><p>where<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x303.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x304.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x305.png" xlink:type="simple"/></inline-formula>, and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x306.png" xlink:type="simple"/></inline-formula>. The parameters<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x307.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x308.png" xlink:type="simple"/></inline-formula>, and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x309.png" xlink:type="simple"/></inline-formula> determine the strength of the conservative, dissipative, and random forces, respectively. <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x310.png" xlink:type="simple"/></inline-formula>is a randomly fluctuating variable, with zero mean and unit variance.</p><p>The pairwise conservative force is written in terms of a weight function<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x311.png" xlink:type="simple"/></inline-formula>, where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x312.png" xlink:type="simple"/></inline-formula> is usually chosen for <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x313.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x314.png" xlink:type="simple"/></inline-formula> for <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x315.png" xlink:type="simple"/></inline-formula> such that the conservative force is soft and repulsive. The unit of length <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x316.png" xlink:type="simple"/></inline-formula> is related to the volume of DPD particles. Two weight functions <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x317.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x318.png" xlink:type="simple"/></inline-formula> for dissipative and random forces, respectively, are coupled together through the fluctuation- dissipation theorem</p><disp-formula id="scirp.42807-formula47193"><label>(60)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x319.png"  xlink:type="simple"/></disp-formula><p>to form a thermostat and generate naturally the canonical distribution (constant number of particles, N, volume, V, and temperature, T) [<xref ref-type="bibr" rid="scirp.42807-ref67">67</xref>]. In most applications, the weight function <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x320.png" xlink:type="simple"/></inline-formula> adopts a simple form as [<xref ref-type="bibr" rid="scirp.42807-ref68">68</xref>]</p><disp-formula id="scirp.42807-formula47194"><label>(61)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x321.png"  xlink:type="simple"/></disp-formula><p>In the original DPD model, one critical advantage is the soft repulsive nature of conservative potential, which enables us to integrate the equations of motion with large time step. However, such advantage restricts the direct incorporation of electrostatic interactions in DPD model. The main problem is that dissipative particles carrying opposite point charges tend to collapse onto each other, forming artificial ionic clusters due to the stronger electrostatic interactions than soft repulsive conservative interactions.</p><p>In order to avoid such unphysical phenomena, point charges at the center of dissipative particles are usually replaced by charge density distributions meshed around particles to remove the divergency of electrostatic interactions at <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x322.png" xlink:type="simple"/></inline-formula> [69,70]. In our implementation [71,72], a Slater-type charge density distribution is considered with the form of</p><disp-formula id="scirp.42807-formula47195"><label>(62)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x323.png"  xlink:type="simple"/></disp-formula><p>in which <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x324.png" xlink:type="simple"/></inline-formula> is the decay length. The integration of Equation (62) over the whole space gives the total charge<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x325.png" xlink:type="simple"/></inline-formula>.</p><p>The electrostatic potential <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x326.png" xlink:type="simple"/></inline-formula> generated by Slater-type charge distribution <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x327.png" xlink:type="simple"/></inline-formula> can be obtained by solving Poisson’s equation</p><disp-formula id="scirp.42807-formula47196"><label>(63)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x328.png"  xlink:type="simple"/></disp-formula><p>in which the variables <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x329.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x330.png" xlink:type="simple"/></inline-formula> are the permittivity of vacuum space and the dielectric constant of water at room temperature, respectively. In spherical coordinates, the Poisson’s equation becomes</p><disp-formula id="scirp.42807-formula47197"><label>(64)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x331.png"  xlink:type="simple"/></disp-formula><p>By solving Poisson’s equation, the electrostatic potential field <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x332.png" xlink:type="simple"/></inline-formula> can be analytically expressed by</p><disp-formula id="scirp.42807-formula47198"><label>(65)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x333.png"  xlink:type="simple"/></disp-formula><p>The electrostatic energy between two interacting charge density distributions <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x334.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x335.png" xlink:type="simple"/></inline-formula> is the product of the charge density distribution <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x336.png" xlink:type="simple"/></inline-formula> and the electrostatic potential generated by charge distribution <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x337.png" xlink:type="simple"/></inline-formula> at position <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x338.png" xlink:type="simple"/></inline-formula></p><disp-formula id="scirp.42807-formula47199"><label>(66)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x339.png"  xlink:type="simple"/></disp-formula><p>The electrostatic force on charge distribution <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x340.png" xlink:type="simple"/></inline-formula> is the negative of the derivative of the potential energy <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x341.png" xlink:type="simple"/></inline-formula> respect to its position <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x342.png" xlink:type="simple"/></inline-formula></p><disp-formula id="scirp.42807-formula47200"><label>(67)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x343.png"  xlink:type="simple"/></disp-formula><p>By defining parameter <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x344.png" xlink:type="simple"/></inline-formula> as the reduced center-to-center distance between two charge distributions and dimensionless parameter<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x345.png" xlink:type="simple"/></inline-formula>, respectively, the reduced electrostatic energy and force between two Slater-type charge distributions are given by</p><disp-formula id="scirp.42807-formula47201"><label>(68)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x346.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.42807-formula47202"><label>(69)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x347.png"  xlink:type="simple"/></disp-formula><p>Comparing to the electrostatic energy and force between point charges in atomistic simulations in previous section, we can find that the electrostatic energy and force between two Slater-type charge distributions in DPD simulations are scaled with corresponding correction factors as</p><disp-formula id="scirp.42807-formula47203"><label>(70)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x348.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.42807-formula47204"><label>(71)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x349.png"  xlink:type="simple"/></disp-formula><p>The similarities between electrostatic energy and force between point charges and counterparts between charge density distributions imply that once we get electrostatic energy and force between point charges, from which the electrostatic energy and force between Slater-type charge density distributions in DPD simulations can be directly rescaled with corresponding correction factors.</p><p>For the electrostatic energy and force between point charges, we know that both of them do diverge when the relative distance between point charges is close to 0. While for the electrostatic energy and force between charge density distributions, in the limit of<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x350.png" xlink:type="simple"/></inline-formula>, the reduced electrostatic energy and force between charge density distributions are, respectively, described by</p><disp-formula id="scirp.42807-formula47205"><label>(72)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x351.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.42807-formula47206"><label>(73)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/19-7401922x352.png"  xlink:type="simple"/></disp-formula><p>It is clear that the adoption of Slater-type charge distribution in DPD simulations removes the divergence of electrostatic interactions at<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x353.png" xlink:type="simple"/></inline-formula>, which means that both electrostatic energy and force between charge distributions are characterized with finite quantities.</p><p>By matching the maximum electrostatic energy between charge distributions at <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x354.png" xlink:type="simple"/></inline-formula> with Groot’s previous work [<xref ref-type="bibr" rid="scirp.42807-ref69">69</xref>] gives<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x355.png" xlink:type="simple"/></inline-formula>. In our detailed implementations, we adopted a particular coarse-graining scheme [<xref ref-type="bibr" rid="scirp.42807-ref73">73</xref>] with <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x356.png" xlink:type="simple"/></inline-formula> and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x357.png" xlink:type="simple"/></inline-formula>, in which the former parameter means <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x358.png" xlink:type="simple"/></inline-formula> water molecules being coarse-grained into one DPD particle and the latter means there are <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x359.png" xlink:type="simple"/></inline-formula> DPD particles in the volume of<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x360.png" xlink:type="simple"/></inline-formula>. With this particular scheme, the length unit <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x361.png" xlink:type="simple"/></inline-formula> is given as<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x362.png" xlink:type="simple"/></inline-formula>. From the relation of<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x363.png" xlink:type="simple"/></inline-formula>, we can get<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x364.png" xlink:type="simple"/></inline-formula>, which is consistent with the electrostatic smearing radii used in Gonz&#225;lez-Melchor’s work [<xref ref-type="bibr" rid="scirp.42807-ref70">70</xref>].</p><p><xref ref-type="fig" rid="fig2">Figure 2</xref> shows the representation of reduced electrostatic energy and force with respect to the relative distance between Slater-type charge distributions. For a better comparison, we also include the typical soft conservative potential and force between dissipative particles, as well as the standard Coulombic potential and force between point charges, both of which do diverge at<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x365.png" xlink:type="simple"/></inline-formula>. In short range length scale, both the electrostatic energy and force are characterized with finite quantities, which attribute to the adoption of Slater-type charge distributions instead of point charges. In long range length scale, both the electrostatic energy and force are consistent with counterparts between point charges, which implys that the ENUF-DPD method can capture essential characteristics of electrostatic interactions at mesoscopic level.</p><p>Combining electrostatic force <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x366.png" xlink:type="simple"/></inline-formula> and soft repulsive conservative force <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x367.png" xlink:type="simple"/></inline-formula> gives the total conservative force <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x368.png" xlink:type="simple"/></inline-formula> on particles <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x369.png" xlink:type="simple"/></inline-formula> in DPD simulations. The total conservative force<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x370.png" xlink:type="simple"/></inline-formula>, together with dissipative force <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x371.png" xlink:type="simple"/></inline-formula> and random force<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x372.png" xlink:type="simple"/></inline-formula>, as well as the intramolecular bonding force <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x373.png" xlink:type="simple"/></inline-formula> for polymers and surfactants, act on dissipative particles and evolve the whole simulated system toward equilibrium conditions before taking statistical analysis.</p><p>As the number of charged DPD particles in the simulated system grows, the calculation of the reciprocal space electrostatic interactions will become the most time-consuming part. Using suitable parameters in</p><fig id="fig2"  position="float"><label><xref ref-type="fig" rid="fig2">Figure 2</xref></label><caption><title> Electrostatic potential and force between two charge density distributions in DPD scheme calculated from the ENUF and Ewald summation methods with reference parameters. For a better comparison, the standard Coulombic potential and force, both of which diverge at<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x375.png" xlink:type="simple"/></inline-formula>, and the typical conservative potential and force in standard DPD method are also included. Both the electrostatic potential and force expressions are plotted for two equal sign charge distributions</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/19-7401922x374.png"/></fig><p>ENUF-DPD method assures that the time to calculate the real space summations is approximately the same as the time to calculate the reciprocal space summations, thereby reducing the total computational time. Herein we try to explore the ENUF-DPD related parameters and get a set of suitable parameters for further applications.</p><p>As addressed in Section 3.2, the implementation of ENUF-DPD method uses the Ewald convergence parameter<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x376.png" xlink:type="simple"/></inline-formula>, required accuracy<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x377.png" xlink:type="simple"/></inline-formula>, and two cut-offs (<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x378.png" xlink:type="simple"/></inline-formula>for real space and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x379.png" xlink:type="simple"/></inline-formula> for reciprocal space summations). These parameters are correlated with each other through two conditions shown in Equations (54) and (55). With required accuracy parameter<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x380.png" xlink:type="simple"/></inline-formula>, it is more convenient to pick a suitable value for<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x381.png" xlink:type="simple"/></inline-formula>. Then one can determine <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x382.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x383.png" xlink:type="simple"/></inline-formula> directly from Equations (54). However, due to the fact that <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x384.png" xlink:type="simple"/></inline-formula> should be integer and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x385.png" xlink:type="simple"/></inline-formula> should be a suitable value for the cell-link list update scheme in DPD simulations, we adopt another procedure to get suitable parameters.</p><p>During the calculation of real space summation and self-interaction parts of electrostatic energy and force between point charges, we can directly multiply corresponding correction factors to get the electrostatic energy and force between slater-type charge density distributions. However, it is not accessible for the calculation of reciprocal space summation since we cannot rescale the NFFT transformation results. But if we choose suitable real space cutoff<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x386.png" xlink:type="simple"/></inline-formula>, beyond which two correction factors <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x387.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x388.png" xlink:type="simple"/></inline-formula> converge to unit, one can directly adopt NFFT transformation result without any corrections. We find that electrostatic energy and force between charge density distributions are consistent with counterparts between point charges when the relative distance between two distributions is larger than<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x389.png" xlink:type="simple"/></inline-formula>. Hence in our simulations, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x390.png" xlink:type="simple"/></inline-formula>is taken as the cutoff for real space summations of electrostatic interactions.</p><p>By evaluating the Madelung constant of a face-centered cubic (FCC) lattice, we adopt the Ewald convergence parameter with the value of<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x391.png" xlink:type="simple"/></inline-formula>, which can generate accurate Madelung constant for FCC lattice structure and keep considerable accuracy. Then we perform coarse-grained simulations on bulk electrolyte system to explore suitable values for<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x392.png" xlink:type="simple"/></inline-formula>, and approximation parameter <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x393.png" xlink:type="simple"/></inline-formula> in NFFT. It is specified that approximation parameter <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x394.png" xlink:type="simple"/></inline-formula> and cutoff <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x395.png" xlink:type="simple"/></inline-formula> for reciprocal space summations can generate consistent electrostatic energy and force in comparison with those obtained from traditional Ewald summation method with reference parameters. Larger <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x396.png" xlink:type="simple"/></inline-formula> values can further increase the accuracy of electrostatic interactions in ENUF-DPD method, but also the total computational time in treating electrostatic interactions increases. By compromising the accuracy and computational speed in the ENUF-DPD method, we adopt <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x397.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x398.png" xlink:type="simple"/></inline-formula> in following simulations.</p><p>With the set of explored optimized parameters, we address the computational complexity of ENUF-DPD method in treating electrostatic interactions. The computational complexity of ENUF-DPD method is appro- ximately described as<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x399.png" xlink:type="simple"/></inline-formula>, which shows remarkably better computational efficiency than the tradi- tional Ewald summation method with acceptable accuracy in treating long-range electrostatic interactions between charged particles at mesoscopic level.</p><p>The ENUF-DPD method is then validated by investigating the influence of charge fraction of polyelectrolyte on corresponding conformational properties [<xref ref-type="bibr" rid="scirp.42807-ref71">71</xref>]. With the increase of charge fraction on polyelectrolyte, both the intramolecular correlations between charged beads on polyelectrolyte chain and the intermolecular correla- tions between charged beads on polyelectrolyte and counterions are enhanced. The conformation transition of polyelectrolyte chain from collapsed state to fully extended conformation can be visualized from simulations. Meanwhile, the dependence of the conformations of fully ionized polyelectrolyte on charge valency and concentration of added salts are also studied in details. Counterions with larger valency show stronger conden- sations on polyelectrolyte chains. Such counterions can induce polyelectrolyte chains from extended confor- mation to compact state, and then to swollen conformation with the increase of counterion concentrations.</p><p>With the ENUF-DPD method, we further investigate the specific binding structures of dendrimers on amphiphilic bilayer membranes [<xref ref-type="bibr" rid="scirp.42807-ref74">74</xref>]. We construct mutually consistent coarse-grained models for dendrimers and lipid molecules, which can properly describe the conformation of charged dendrimers and the surface tension of amphiphilic membranes, respectively. Systematic simulations are performed and simulation results reveal that the permeability of dendrimers across membranes is enhanced upon increasing dendrimer sizes. The negative curvature of amphiphilic membrane formed in dendrimer-membrane complexes is related to dendrimer concentration. Higher dendrimer concentration together with the synergistic effect between charged dendrimers can also enhance the permeability of dendrimers across amphiphilic membranes.</p><p>With these two typical and representative applications, we can see that the newly implemented ENUF-DPD method can capture the essential characteristics of electrostatic interactions at mesoscopic level. This method has all capabilities of ordinary DPD method, but includes applications where electrostatic interactions are essential but previously inaccessible, hence can be used to study charged complex systems at mesoscopic level.</p></sec><sec id="s6"><title>6. Summary and Conclusions</title><p>Treatment of electrostatic interactions based on Ewald summation techniques is reviewed. While Ewald- summation is still considered as the most accurate scheme to compute the long-ranged interactions, it is also the part slowing down simulations. The scaling for large systems makes the computations very time-consuming. In particular, the reciprocal part of Ewald becomes a bottle-neck. As an attractive alternative approach to mesh- based schemes which show a linear scaling, we introduce an Ewald method based on non-uniform fast Fourier transforms (ENUF) giving examples of two implementations in already existing software packages, for ato- mistic Molecular Dynamics and Dissipative Particle Dynamics. We demonstrate that the implementation be- comes straight-forward as we rely on NFFT library. We discuss the optimization of convergence parameters and window functions.</p><p>The ENUF method scales linearly as <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/19-7401922x400.png" xlink:type="simple"/></inline-formula> and conserves both the energy and momentum to float point accuracy making it a very robust and accurate method.</p></sec><sec id="s7"><title>Acknowledgements</title><p>Y.-L. W. and A. L. acknowledge the KA Wallenberg Foundation for financial support. F. M. acknowledges the Wenner-Gren and the Carl Tryggers Foundations for funding for Visiting Professorship. Y.-L. W. and A. L. thank the Kavli Institute for Theoretical Physics China (KITPC) and Chinese Academy of Sciences (CAS) for support and scientific environment during their stay. This work is supported by SERC the Swedish e-Science Center and Swedish Science Council. Parts of the computations were performed on resources provided by the Swedish National Infrastructure for Computing (SNIC) at PDC, HPC2N, and NSC.</p></sec></body><back><ref-list><title>References</title><ref id="scirp.42807-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">M. P. Allen and D. J. Tildesley, “Computer Simulation of Liquids,” Oxford University Press, New York, 1989.</mixed-citation></ref><ref id="scirp.42807-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">J. M. Haile, “Molecular Dynamics Simulation: Elementary Methods,” John Wiley &amp; Sons, New York, 1992.</mixed-citation></ref><ref id="scirp.42807-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">D. Frenkel and B. Smit, “Understanding Molecular Simulation: From Algorithms to Applications,” Academic Press, Inc., Orlando, 1996.</mixed-citation></ref><ref id="scirp.42807-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">D. M. York, T. A. Darden and L. G. Pedersen, “The Effect of Long-Range Electrostatic Interactions in Simulations of Macromolecular Crystals: A Comparison of the Ewald and Truncated List Methods,” Journal of Chemical Physics, Vol. 99, No. 10, 1993, p. 8345. http://dx.doi.org/10.1063/1.465608</mixed-citation></ref><ref id="scirp.42807-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">M. Bergdorf, C. Peter and P. H. Hünenberger, “Influence of Cut-off Truncation and Artificial Periodicity of Electrostatic Interactions in Molecular Simulations of Solvated Ions: A Continuum Electrostatics Study,” Journal of Chemical Physics, Vol. 119, No. 17, 2003, p. 9129. http://dx.doi.org/10.1063/1.1614202</mixed-citation></ref><ref id="scirp.42807-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">C. Anézo, A. H. de Vries, H. D. Holtje, D. P. Tieleman and S. J. Marrink, “Methodological Issues in Lipid Bilayer Simulations,” Journal of Physical Chemistry B, Vol. 107, No. 35, 2003, pp. 9424-9433. http://dx.doi.org/10.1021/jp0348981</mixed-citation></ref><ref id="scirp.42807-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">M. Patra, M. Karttunen, M. T. Hyvonen, E. Falck, P. Lindqvist and I. Vattulainen, “Molecular Dynamics Simulations of Lipid Bilayers: Major Artifacts Due to Truncating Electrostatic Interactions,” Biophysical Journal, Vol. 84, No. 6, 2003, pp. 36363645. http://dx.doi.org/10.1016/S0006-3495(03)75094-2</mixed-citation></ref><ref id="scirp.42807-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">P. P. Ewald, “Die Berechnung Optischer und Elektrostatischer Gitterpotentiale,” Annalen der Physik, Vol. 369, No. 3, 1921, pp. 253-287. http://dx.doi.org/10.1002/andp.19213690304</mixed-citation></ref><ref id="scirp.42807-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">S. W. de Leeuw, J. W. Perram and E. R. Smith, “Simulation of Electrostatic Systems in Periodic Boundary Conditions, I. Lattice Sums and Dielectric Constants,” Proceedings of the Royal Society London, Series A, Vol. 373, No. 1752, 1980, pp. 27-56. http://dx.doi.org/10.1098/rspa.1980.0135</mixed-citation></ref><ref id="scirp.42807-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">D. M. Heyes, “Electrostatic Potentials and Fields in Infinite Point Charge Lattices,” Journal of Chemical Physics, Vol. 74, No. 3, 1981, pp. 1924-1929.</mixed-citation></ref><ref id="scirp.42807-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">T. Darden, D. York and L. Pedersen, “Particle Mesh Ewald: An NlogN Method for Ewald Sums in Large Systems,” Journal of Chemical Physics, Vol. 98, No. 12, 1993, pp. 10089-10092. http://dx.doi.org/10.1063/1.464397</mixed-citation></ref><ref id="scirp.42807-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">D. York and W. Yang, “The Fast Fourier Poisson Method for Calculating Ewald Sums,” Journal of Chemical Physics, Vol. 101, No. 4, 1994, pp. 3298-3300. http://dx.doi.org/10.1063/1.467576</mixed-citation></ref><ref id="scirp.42807-ref13"><label>13</label><mixed-citation publication-type="other" xlink:type="simple">U. Essmann, L. Perera, M. L. Berkowitz, T. Darden, H. Lee and L. G. Pedersen, “A Smooth Particle Mesh Ewald Method,” Journal of Chemical Physics, Vol. 103, No. 19, 1995, pp. 8577-8593. http://dx.doi.org/10.1063/1.470117</mixed-citation></ref><ref id="scirp.42807-ref14"><label>14</label><mixed-citation publication-type="other" xlink:type="simple">P. F. Batcho and T. Schlick, “New Splitting Formulations for Lattice Summations,” Journal of Chemical Physics, Vol. 115, No. 18, 2001, p. 8312. http://dx.doi.org/10.1063/1.1412247</mixed-citation></ref><ref id="scirp.42807-ref15"><label>15</label><mixed-citation publication-type="other" xlink:type="simple">D. R. Wheeler and J. Newman, “A Less Expensive Ewald Lattice Sum,” Chemical Physics Letters, Vol. 366, No. 5-6, 2002, pp. 537-543. http://dx.doi.org/10.1016/S0009-2614(02)01644-5</mixed-citation></ref><ref id="scirp.42807-ref16"><label>16</label><mixed-citation publication-type="other" xlink:type="simple">Y. Shan, J. L. Klepeis, M. P. Eastwood, R. O. Dror and D. E. Shaw, “Gaussian Split Ewald: A Fast Ewald Mesh Method for Molecular Simulation,” Journal of Chemical Physics, Vol. 122, No. 5, 2005, Article ID: 054101. http://dx.doi.org/10.1063/1.1839571</mixed-citation></ref><ref id="scirp.42807-ref17"><label>17</label><mixed-citation publication-type="other" xlink:type="simple">P. J. Steinbach and B. R. Brooks, “New Spherical-Cutoff Methods for Long-Range Forces in Macromolecular Simulation,” Journal of Computational Chemistry, Vol. 15, No. 7, 1994, pp. 667-683. http://dx.doi.org/10.1002/jcc.540150702</mixed-citation></ref><ref id="scirp.42807-ref18"><label>18</label><mixed-citation publication-type="other" xlink:type="simple">C. L. Brooks III, B. M. Pettitt and M. Karplus, “Structural and Energetic Effects of Truncating Long Ranged Interactions in Ionic and Polar Fluids,” Journal of Chemical Physics, Vol. 83, No. 11, 1985, p. 5897. http://dx.doi.org/10.1063/1.449621</mixed-citation></ref><ref id="scirp.42807-ref19"><label>19</label><mixed-citation publication-type="other" xlink:type="simple">K. S. Kim, “On Effective Methods to Treat Solvent Effects in Macromolecular Mechanics and Simulations,” Chemical Physics Letters, Vol. 156, No. 2-3, 1989, pp. 261-268. http://dx.doi.org/10.1016/S0009-2614(89)87131-3</mixed-citation></ref><ref id="scirp.42807-ref20"><label>20</label><mixed-citation publication-type="other" xlink:type="simple">L. Greengard and V. Rokhlin, “A Fast Algorithm for Particle Simulations,” Journal of Computational Physics, Vol. 73, No. 2, 1987, pp. 325-348. http://dx.doi.org/10.1016/0021-9991(87)90140-9</mixed-citation></ref><ref id="scirp.42807-ref21"><label>21</label><mixed-citation publication-type="other" xlink:type="simple">J. E. Barnes and P. Hut, “A Hierarchical (NlogN) Force-Calculation Algorithm,” Nature, Vol. 324, 1986, pp. 446-449. http://dx.doi.org/10.1038/324446a0</mixed-citation></ref><ref id="scirp.42807-ref22"><label>22</label><mixed-citation publication-type="other" xlink:type="simple">J. Pérez-Jordá and W. Yang, “A Simple O(NlogN) Algorithm for the Rapid Evaluation of Particle-Particle Interactions,” Chemical Physics Letters, Vol. 247, No. 4-6, 1995, pp. 484-490.</mixed-citation></ref><ref id="scirp.42807-ref23"><label>23</label><mixed-citation publication-type="other" xlink:type="simple">Z. H. Duan and R. Krasny, “An Adaptive Treecode for Computing Nonbonded Potential Energy in Classical Molecular Systems,” Journal of Computational Chemistry, Vol. 22, No. 2, 2001, pp. 184-195. http://dx.doi.org/10.1002/1096-987X(20010130)22:2&lt;184::AID-JCC6&gt;3.0.CO;2-7</mixed-citation></ref><ref id="scirp.42807-ref24"><label>24</label><mixed-citation publication-type="other" xlink:type="simple">I. Tsukerman, “Efficient Computation of Long-Range Electromagnetic Interactions without Fourier Transforms,” IEEE Transactions on Magnetics, Vol. 40, No. 4, 2004, pp. 2158-2160. http://dx.doi.org/10.1109/TMAG.2004.829022</mixed-citation></ref><ref id="scirp.42807-ref25"><label>25</label><mixed-citation publication-type="other" xlink:type="simple">E. T. Ong, K. M. Lim, K. H. Lee and H. P. Lee, “A Fast Algorithm for Three-Dimensional Potential Fields Calculation: Fast Fourier Transform on Multipoles,” Journal of Computational Physics, Vol. 192, No. 1, 2003, pp. 244-261. http://dx.doi.org/10.1016/j.jcp.2003.07.004</mixed-citation></ref><ref id="scirp.42807-ref26"><label>26</label><mixed-citation publication-type="other" xlink:type="simple">C. Sagui and T. Darden, “Multigrid Methods for Classical Molecular Dynamics Simulations of Biomolecules,” Journal of Chemical Physics, Vol. 114, No. 15, 2001, p. 6578. http://dx.doi.org/10.1063/1.1352646</mixed-citation></ref><ref id="scirp.42807-ref27"><label>27</label><mixed-citation publication-type="other" xlink:type="simple">R. D. Skeel, I. Tezcan and D. J. Hardy, “Multiple Grid Methods for Classical Molecular Dynamics,” Journal of Computational Chemistry, Vol. 23, No. 6, 2002, pp. 673-684. http://dx.doi.org/10.1002/jcc.10072</mixed-citation></ref><ref id="scirp.42807-ref28"><label>28</label><mixed-citation publication-type="other" xlink:type="simple">J. A. Izaguirre, S. S. Hampton and T. Matthey, “Parallel Multigrid Summation for the N-Body Problem,” Journal of Parallel and Distributed Computing, Vol. 65, No. 8, 2005, pp. 949-962. http://dx.doi.org/10.1016/j.jpdc.2005.03.006</mixed-citation></ref><ref id="scirp.42807-ref29"><label>29</label><mixed-citation publication-type="other" xlink:type="simple">J. A. Baker and R. O. Watts, “Monte Carlo Studies of the Dielectric Properties of Water-Like Models,” Molecular Physics, Vol. 26, No. 3, 1973, pp. 789-792. http://dx.doi.org/10.1080/00268977300102101</mixed-citation></ref><ref id="scirp.42807-ref30"><label>30</label><mixed-citation publication-type="other" xlink:type="simple">I. G. Tironi, R. Sperb, P. E. Smith and W. F. van Gunsteren, “A Generalized Reaction Field Method for Molecular Dynamics Simulations,” Journal of Chemical Physics, Vol. 102, No. 13, 1995, p. 5451. http://dx.doi.org/10.1063/1.469273</mixed-citation></ref><ref id="scirp.42807-ref31"><label>31</label><mixed-citation publication-type="other" xlink:type="simple">T. N. Heinz and P. H. Hünenberger, “Combining the Lattice-Sum and Reaction-Field Approaches for Evaluating Long-Range Electrostatic Interactions in Molecular Simulations,” Journal of Chemical Physics, Vol. 123, No. 3, 2005, Article ID: 034107. http://dx.doi.org/10.1063/1.1955525</mixed-citation></ref><ref id="scirp.42807-ref32"><label>32</label><mixed-citation publication-type="other" xlink:type="simple">R. W. Hockney and J. W. Eastwood, “Computer Simulation Using Particles,” McGraw-Hill, New York, 1981.</mixed-citation></ref><ref id="scirp.42807-ref33"><label>33</label><mixed-citation publication-type="other" xlink:type="simple">B. A. Luty, M. E. Davis, I. G. Tironi and W. F. van Gunsteren, “A Comparison of Particle-Particle, Particle-Mesh and Ewald Methods for Calculating Electrostatic Interactions in Periodic Molecular Systems,” Molecular Simulation, Vol. 14, No. 1, 1994, pp. 11-20. http://dx.doi.org/10.1080/08927029408022004</mixed-citation></ref><ref id="scirp.42807-ref34"><label>34</label><mixed-citation publication-type="other" xlink:type="simple">X. Wu and B. R. Brooks, “Isotropic Periodic Sum: A Method for the Calculation of Long-Range Interactions,” Journal of Chemical Physics, Vol. 122, No. 4, 2005, Article ID: 044107. http://dx.doi.org/10.1063/1.1836733</mixed-citation></ref><ref id="scirp.42807-ref35"><label>35</label><mixed-citation publication-type="other" xlink:type="simple">T. M. Apostol, “Mathematical Analysis,” Addison-Wesley, Boston, 1979.</mixed-citation></ref><ref id="scirp.42807-ref36"><label>36</label><mixed-citation publication-type="other" xlink:type="simple">J. W. Perram, H. G. Petersen and S. W. de Leeuw, “An Algorithm for the Simulation of Condensed Matter Which Grows as the 3/2 Power of the Number of Particles,” Molecular Physics, Vol. 65, No. 4, 1988, pp. 875-893. http://dx.doi.org/10.1080/00268978800101471</mixed-citation></ref><ref id="scirp.42807-ref37"><label>37</label><mixed-citation publication-type="other" xlink:type="simple">J. Kolafa and J. W. Perram, “Cutoff Errors in the Ewald Summation Formulae for Point Charge Systems,” Molecular Simulation, Vol. 9, No. 5, 1992, pp. 351-368. http://dx.doi.org/10.1080/08927029208049126</mixed-citation></ref><ref id="scirp.42807-ref38"><label>38</label><mixed-citation publication-type="other" xlink:type="simple">S. W. de Leeuw, J. W. Perram and E. R. Smith, “Simulation of Electrostatic Systems in Periodic Boundary Conditions. II. Equivalence of Boundary Conditions,” Proceedings of the Royal Society London, Series A, Vol. 373, No. 1752, 1980, pp. 57-66. http://dx.doi.org/10.1098/rspa.1980.0136</mixed-citation></ref><ref id="scirp.42807-ref39"><label>39</label><mixed-citation publication-type="other" xlink:type="simple">S. W. de Leeuw, J. W. Perram and E. R. Smith, “Simulation of Electrostatic Systems in Periodic Boundary Conditions. III. Further Theory and Applications,” Proceedings of the Royal Society London, Series A, Vol. 388, No. 1794, 1983, pp. 177-193. http://dx.doi.org/10.1098/rspa.1983.0077</mixed-citation></ref><ref id="scirp.42807-ref40"><label>40</label><mixed-citation publication-type="other" xlink:type="simple">W. H. Press and G. B. Rybicki, “Fast Algorithm for Spectral Analysis of Unevenly Sampled Data,” Astrophysical Journal, Vol. 338, 1989, pp. 277-280. http://dx.doi.org/10.1086/167197</mixed-citation></ref><ref id="scirp.42807-ref41"><label>41</label><mixed-citation publication-type="other" xlink:type="simple">J. W. Cooley and J. W. Tukey, “An Algorithm for the Machine Calculation of Complex Fourier Series,” Mathematics of Computation, Vol. 19, 1965, pp. 297-301. http://dx.doi.org/10.1090/S0025-5718-1965-0178586-1</mixed-citation></ref><ref id="scirp.42807-ref42"><label>42</label><mixed-citation publication-type="other" xlink:type="simple">A. Brandt, “Multilevel Computations of Integral Transforms and Particle Interactions with Oscillatory Kernels,” Computer Physics Communications, Vol. 65, No. 1-3, 1991, pp. 24-38. http://dx.doi.org/10.1016/0010-4655(91)90151-A</mixed-citation></ref><ref id="scirp.42807-ref43"><label>43</label><mixed-citation publication-type="other" xlink:type="simple">M. Pippig and D. Potts, “Parallel Three-Dimensional Nonequispaced Fast Fourier Transforms and Their Application to Particle Simulation,” SIAM Journal on Scientific Computing, Vol. 35, No. 4, 2013, pp. 411-437. http://dx.doi.org/10.1137/120888478</mixed-citation></ref><ref id="scirp.42807-ref44"><label>44</label><mixed-citation publication-type="other" xlink:type="simple">O. Ayala and L. P. Wang, “Parallel Implementation and Scalability Analysis of 3D Fast Fourier Transform Using 2D Domain Decomposition,” Parallel Computing, Vol. 39, No. 1, 2013, pp. 58-77. http://dx.doi.org/10.1016/j.parco.2012.12.002</mixed-citation></ref><ref id="scirp.42807-ref45"><label>45</label><mixed-citation publication-type="other" xlink:type="simple">Q. Liu and N. Nguyen, “An Accurate Algorithm for Nonuniform Fast Fourier Transforms (NUFFT’s),” IEEE Microwave and Guided Wave Letters, Vol. 8, No. 1, 1998, pp. 18-20. http://dx.doi.org/10.1109/75.650975</mixed-citation></ref><ref id="scirp.42807-ref46"><label>46</label><mixed-citation publication-type="other" xlink:type="simple">G. Steidl, “A Note on Fast Fourier Transforms for Nonequispaced Grids,” Advances in Computational Mathematics, Vol. 9, No. 3-4, 1998, pp. 337-352. http://dx.doi.org/10.1023/A:1018901926283</mixed-citation></ref><ref id="scirp.42807-ref47"><label>47</label><mixed-citation publication-type="other" xlink:type="simple">J. A. Fessler and B. P. Sutton, “Nonuniform Fast Fourier Transforms Using Min-Max Interpolation,” IEEE Transactions on Signal Processing, Vol. 51, No. 2, 2003, pp. 560-574. http://dx.doi.org/10.1109/TSP.2002.807005</mixed-citation></ref><ref id="scirp.42807-ref48"><label>48</label><mixed-citation publication-type="other" xlink:type="simple">C. Anderson and M. D. Dahleh, “Rapid Computation of the Discrete Fourier Transform,” SIAM Journal on Scientific Computing, Vol. 17, No. 4, 1996, pp. 913-919. http://dx.doi.org/10.1137/0917059</mixed-citation></ref><ref id="scirp.42807-ref49"><label>49</label><mixed-citation publication-type="other" xlink:type="simple">A. Duijndam and M. Schonewille, “Nonuniform Fast Fourier Transform,” Geophysics, Vol. 64, No. 2, 1999, p. 539. http://dx.doi.org/10.1190/1.1444560</mixed-citation></ref><ref id="scirp.42807-ref50"><label>50</label><mixed-citation publication-type="other" xlink:type="simple">J. P. Boyd, “A Fast Algorithm for Chebyshev, Fourier, and Sinc Interpolation onto an Irregular Grid,” Journal of Computational Physics, Vol. 103, No. 2, 1992, pp. 243-257. http://dx.doi.org/10.1016/0021-9991(92)90399-J</mixed-citation></ref><ref id="scirp.42807-ref51"><label>51</label><mixed-citation publication-type="other" xlink:type="simple">A. F. Ware, “Fast Approximate Fourier Transforms for Irregularly Spaced Data,” SIAM Review, Vol. 40, No. 4, 1998, pp. 838-856. http://dx.doi.org/10.1137/S003614459731533X</mixed-citation></ref><ref id="scirp.42807-ref52"><label>52</label><mixed-citation publication-type="other" xlink:type="simple">A. Nieslony and G. Steidl, “Approximate Factorizations of Fourier Matrices with Nonequispaced Knots,” Linear Algebra and its Applications, Vol. 366, 2003, pp. 337-351. http://dx.doi.org/10.1016/S0024-3795(02)00496-2</mixed-citation></ref><ref id="scirp.42807-ref53"><label>53</label><mixed-citation publication-type="other" xlink:type="simple">J. J. Benedetto and P. J. Ferreira, “Modern Sampling Theory: Mathematics and Applications,” Springer, Berlin, 2001. http://dx.doi.org/10.1007/978-1-4612-0143-4</mixed-citation></ref><ref id="scirp.42807-ref54"><label>54</label><mixed-citation publication-type="other" xlink:type="simple">S. Kunis and D. Potts, “NFFT3.2.3,” Institute of Mathematics, University of Lübeck, D-23560 Lübeck, 2013. http://www.math.uni-luebeck.de/potts/nfft/</mixed-citation></ref><ref id="scirp.42807-ref55"><label>55</label><mixed-citation publication-type="other" xlink:type="simple">F. Hedman and A. Laaksonen, “A Data-Parallel Molecular Dynamics Method for Liquids with Coulombic Interactions,” Molecular Simulation, Vol. 14, No. 4-5, 1995, pp. 235-244. http://dx.doi.org/10.1080/08927029508022020</mixed-citation></ref><ref id="scirp.42807-ref56"><label>56</label><mixed-citation publication-type="other" xlink:type="simple">F. Hedman, “Algorithms for Molecular Dynamics Simulations,” Ph.D. Thesis, Stockholm University, Stockholm, 2006. http://www.diva-portal.org/smash/record.jsf?searchId=1&amp;pid=diva2:178477</mixed-citation></ref><ref id="scirp.42807-ref57"><label>57</label><mixed-citation publication-type="other" xlink:type="simple">F. Hedman and A. Laaksonen, “Ewald Summation Based on Nonuniform Fast Fourier Transform,” Chemical Physics Letters, Vol. 425, No. 1-3, 2006, pp. 142-147. http://dx.doi.org/10.1016/j.cplett.2006.04.106</mixed-citation></ref><ref id="scirp.42807-ref58"><label>58</label><mixed-citation publication-type="other" xlink:type="simple">M. Frigo and S. G. Johnson, “FFTW-The Design and Implementation of FFTW3,” Proceedings of the IEEE, Vol. 93, No. 2, 2005, pp. 216-231. http://dx.doi.org/10.1109/JPROC.2004.840301</mixed-citation></ref><ref id="scirp.42807-ref59"><label>59</label><mixed-citation publication-type="other" xlink:type="simple">A. P. Lyubartsev and A. Laaksonen, “M.DynaMix—A Scalable Portable Parallel MD Simulation Package for Arbitrary Molecular Mixtures,” Computer Physics Communications, Vol. 128, No. 3, 2000, pp. 565-589. http://dx.doi.org/10.1016/S0010-4655(99)00529-9</mixed-citation></ref><ref id="scirp.42807-ref60"><label>60</label><mixed-citation publication-type="other" xlink:type="simple">J. P. Ryckaert, G. Ciccotti and H. J. C. Berendsen, “Numerical Integration of the Cartesian Equations of Motion of a System with Constraints: Molecular Dynamics of n-Alkanes,” Journal of Computational Physics, Vol. 23, No. 3, 1977, pp. 327-341. http://dx.doi.org/10.1016/0021-9991(77)90098-5</mixed-citation></ref><ref id="scirp.42807-ref61"><label>61</label><mixed-citation publication-type="other" xlink:type="simple">M. Tuckerman, B. J. Berne and G. J. Martyna, “Reversible Multiple Time Scale Molecular Dynamics,” Journal of Chemical Physics, Vol. 97, 1992, pp. 1990-2001.</mixed-citation></ref><ref id="scirp.42807-ref62"><label>62</label><mixed-citation publication-type="other" xlink:type="simple">http://www.yolinux.com/TUTORIALS/LinuxTutorialMixingFortranAndC.html</mixed-citation></ref><ref id="scirp.42807-ref63"><label>63</label><mixed-citation publication-type="other" xlink:type="simple">A. P. Lyubartsev, M. DynaMix User Manual. http://www.fos.su.se/sasha/md_prog.html</mixed-citation></ref><ref id="scirp.42807-ref64"><label>64</label><mixed-citation publication-type="other" xlink:type="simple">P. J. Hoogerbrugge and V. A. Koelman, “Simulating Microscopic Hydrodynamic Phenomena with Dissipative Particle Dynamics,” Europhysics Letters, Vol. 19, No. 3, 1992, p. 155. http://dx.doi.org/10.1209/0295-5075/19/3/001</mixed-citation></ref><ref id="scirp.42807-ref65"><label>65</label><mixed-citation publication-type="other" xlink:type="simple">V. A. Koelman and P. J. Hoogerbrugge, “Dynamic Simulations of Hard-Sphere Suspensions under Steady Shear,” Europhysics Letters, Vol. 21, No. 3, 1993, p. 363. http://dx.doi.org/10.1209/0295-5075/21/3/018</mixed-citation></ref><ref id="scirp.42807-ref66"><label>66</label><mixed-citation publication-type="other" xlink:type="simple">Z. Y. Lu and Y. L. Wang, “An Introduction to Dissipative Particle Dynamics,” In: L. Monticelli and E. Salonen, Eds., Methods in Molecular Biology: Biomolecular Simulations, Humana Press, New York, 2013, pp. 617-633. http://link.springer.com/protocol/10.1007/978-1-62703-017-5_24</mixed-citation></ref><ref id="scirp.42807-ref67"><label>67</label><mixed-citation publication-type="other" xlink:type="simple">P. Espanol and P. Warren, “Statistical Mechanics of Dissipative Particle Dynamics,” Europhysics Letters, Vol. 30, No. 4, 1995, p. 191. http://dx.doi.org/10.1209/0295-5075/30/4/001</mixed-citation></ref><ref id="scirp.42807-ref68"><label>68</label><mixed-citation publication-type="other" xlink:type="simple">R. D. Groot and P. B. Warren, “Dissipative Particle Dynamics: Bridging the Gap between Atomistic and Mesoscopic Simulation,” Journal of Chemical Physics, Vol. 107, No. 11, 1997, p. 4423. http://dx.doi.org/10.1063/1.474784</mixed-citation></ref><ref id="scirp.42807-ref69"><label>69</label><mixed-citation publication-type="other" xlink:type="simple">R. D. Groot, “Electrostatic Interactions in Dissipative Particle Dynamics-Simulation of Polyelectrolytes and Anionic Surfactants,” Journal of Chemical Physics, Vol. 118, No. 24, 2003, p. 11265. http://dx.doi.org/10.1063/1.1574800</mixed-citation></ref><ref id="scirp.42807-ref70"><label>70</label><mixed-citation publication-type="other" xlink:type="simple">M. González-Melchor, E. Mayoral, M. E. Velázquez and J. Alejandre, “Electrostatic Interactions in Dissipative Particle Dynamics Using the Ewald Sums,” Journal of Chemical Physics, Vol. 125, No. 22, 2006, p. 224107. http://dx.doi.org/10.1063/1.2400223</mixed-citation></ref><ref id="scirp.42807-ref71"><label>71</label><mixed-citation publication-type="other" xlink:type="simple">Y. L. Wang, A. Laaksonen and Z. Y. Lu, “Implementation of Non-Uniform FFT Based Ewald Summation in Dissipative Particle Dynamics Method,” Journal of Computational Physics, Vol. 235, 2013, pp. 666-682. http://dx.doi.org/10.1016/j.jcp.2012.09.023</mixed-citation></ref><ref id="scirp.42807-ref72"><label>72</label><mixed-citation publication-type="other" xlink:type="simple">Y. L. Wang, “Electrostatic Interactions in Coarse-Grained Simulations: Implementations and Applications,” Ph.D. Thesis, Stockholm University, Stockholm, 2013. http://www.diva-portal.org/smash/record.jsf?pid=diva2:641063</mixed-citation></ref><ref id="scirp.42807-ref73"><label>73</label><mixed-citation publication-type="other" xlink:type="simple">A. AlSunaidi, W. K. den Otter and J. H. R. Clarke, “Liquid-Crystalline Ordering in Rod-Coil Diblock Copolymers Studied by Mesoscale Simulations,” Philosophical Transactions of the Royal Society London A, Vol. 362, No. 1821, 2004, pp. 1773-1781. http://dx.doi.org/10.1098/rsta.2004.1414</mixed-citation></ref><ref id="scirp.42807-ref74"><label>74</label><mixed-citation publication-type="other" xlink:type="simple">Y. L. Wang, Z. Y. Lu and A. Laaksonen, “Specific Binding Structures of Dendrimers on Lipid Bilayer Membranes,” Physical Chemistry Chemical Physics, Vol. 14, No. 23, 2012, pp. 8348-8359. http://dx.doi.org/10.1039/c2cp40700k</mixed-citation></ref></ref-list></back></article>