기본 정보
- 저자
- DOI
- 10.48550/arxiv.1107.5435
- 저널
- arXiv (Cornell University)
- 발행년도
- 2022
- 발행기관
- Cornell University
- 피인용수
- 0
- 라이선스
- 0
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.48550/arxiv.1107.5435
- 토픽
- Electrostatics and Colloid Interactions
- OpenAlex ID
- W6910625601
평가 내용
- 관련도
- 사업분야
- 모빌리티 소재 · (2) 샤무드(인공피혁)
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '모빌리티 소재 > 샤무드(인공피혁)' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
The Ewald summation technique is generalised to power-law 1/|r|^k potentials in three-, two- and one-dimensional geometries with explicit formulae for all the components of the sums. The cases of short-range, long-range and "marginal" interactions are treated separately. The jellium model, as a particular case of a charge-neutral system, is discussed and the explicit forms of the Ewald sums for such system are presented. A generalised form of the Ewald sums for a noncubic (nonsquare) simulation cell for three- (two-) dimensional geometry is obtained and its possible field of application is discussed. A procedure for the optimisation of the involved parameters in actual simulations is developed and an example of its application is presented.
본문 89,428자
본문 펼치기
## Ewald method for polytropic potentials in arbitrary dimensionality
O. N. Osychenko, G. E. Astrakharchik, and J. Boronat
Departament de F´ısica i Enginyeria Nuclear,
Universitat Polit`ecnica de Catalunya,
Campus Nord B4-B5, 08034 Barcelona, Spain
(Dated: November 27, 2024)
## Abstract
The Ewald summation technique is generalised to power-law 1/|r| <sup>k</sup> potentials in three-, two
and one-dimensional geometries with explicit formulae for all the components of the sums. The
cases of short-range, long-range and “marginal” interactions are treated separately. The jellium
model, as a particular case of a charge-neutral system, is discussed and the explicit forms of the
Ewald sums for such system are presented. A generalised form of the Ewald sums for a noncubic
(nonsquare) simulation cell for three- (two-) dimensional geometry is obtained and its possible field
of application is discussed. A procedure for the optimisation of the involved parameters in actual
simulations is developed and an example of its application is presented.
I. INTRODUCTION
The behaviour of many-body systems is often governed by the long-range Coulomb poten
tial between charged particles. Numerical simulations of such systems are usually performed
by considering a finite number of particles in a cell with periodic boundary conditions. The
correct estimation of the potential energy in such systems requires of a summation over all
images created by the periodic boundary conditions. For long-range interaction potentials
such direct summation either converges slowly or it is conditionally convergent, making its
evaluation computationally cumbersome. Instead, the performance of the calculation can
be greatly improved by using Ewald summation methods [1]. In these methods, the slowly
convergent tail of the sum in the potential energy is represented by a rapidly convergent
sum in momentum space. The method is named after Paul Peter Ewald who in his pio
neering work dated almost a century ago calculated the electrostatic energy in ionic crystals
(a detailed derivation for the Ewald sums for the Coulomb potential can be found in the
work of de Leeuw et al. [2]). An alternative approach to deal with long-range systems is
proposed by Smith [3]. In his method, the Hamiltonian and equations of motion are derived
using constraints on the velocities of particles. Instead, in the following we will stick to a
standard model for the Hamiltonian and will consider ways to improve the convergence in
the potential energy.
For a good performance in simulations of large N-particle systems, a number of modi
fied summation methods has been developed. Historically, the first efforts to enhance the
Ewald method consisted in looking for appropriate truncation schemes, but all of them were
strongly dependent on the system properties, in particular on the system size. Tabulations
of precalculated terms in both real space and momentum space sums [4], as well as polyno
mial approximations of the involved functions [5–7], were also proposed to look for a balance
between calculation time and truncation errors. Nevertheless, these approximate methods
suffer from error accumulation in simulations of large systems, and do not allow for reducing
the overall O(N <sup>2</sup> ) complexity of the original Ewald summation. The work of Perram et
al. [8] was the first to give a way to optimise the splitting of the interparticle potential be
tween the long-range and short-range parts to yield a total complexity of O(N <sup>3/2</sup> ). A special
modification of the Ewald method called Wolf summation [9, 10], based on a damping of
the Fourier-transformed part of the sum, was posteriorly developed in order to render the
original Ewald summation more efficient for non-periodic systems and large model sizes.
Another way for improving the Ewald method is to perform fast Fourier transform (FFT)
of a reciprocal space sum on a mesh. The oldest algorithm of this kind is the so-called
Particle-Particle Particle-Mesh (P <sup>3</sup> M) method, invented by Hockney and Eastwood in the
late 80’s [11]. The P <sup>3</sup> M technique is based on a distribution of the charge density on a
grid using a certain smooth assignment function and then the discrete Poisson equation is
solved using FFT. This algorithm appeared to be less complex to yield O(N ln N) with an
appropriate choice of the free parameters. The P <sup>3</sup> M algorithm was recently improved by Bal
lenegger et al. [14] for calculation of energies, bringing, as claimed, the maximal precision in
the energy by an optimisation of the “influence” function (a substitution of the potential in
the Fourier-transformed Poisson’s equation). For a comprehensive introduction to Ewald
and mesh-based techniques we recommend to refer to the cited work of Ballenegger and
coauthors where special attention is paid to the estimation of both sum truncation-imposed
and grid-imposed errors. The extension of this method, called Particle Mesh Ewald [12]
(PME), makes use of the analytical form of the sum in the reciprocal space and evaluates
potentials via FFT instead of interpolating them as P <sup>3</sup> M does. Although PME is slightly
more complex then the P <sup>3</sup> M algorithm, it is still O(N ln N) and allows to reduce significantly
the memory expenses. Later Particle Mesh Ewald method was reformulated by Essmann
et al. [13], making use of cardinal B-splines to interpolate structure factors. This approach,
called Smooth Particle-Mesh Ewald (SPME) substantially improved the accuracy of PME
with a comparable computational cost, as it still scales as O(N ln N). SPME is also claimed
to be applicable to potentials of the polytropic form 1/|r| <sup>k</sup> . In general, the conventional
FFT-based approaches suffer from the severe fallback of requiring equidistant particle posi
tions. The invention of the variant of Fourier transform for nonequispaced nodes (NFFT)
opened a path to overcome this shortcoming, while keeping the introduced errors below the
specified target levels. The nonequispaced fast Fourier transform is currently considered as
a promising means to improve the Ewald summation performance, with open code imple
mentations available [15]. The early variants of the NFFT algorithms are reviewed in the
work of A. F. Ware [16]; a general approach to the fast summation methods based on NFFT
can be found in the article of G. Steidl [17].
The most recent family of algorithms based on the Ewald approach are the tree-based
algorithms, with the fast multipole method (FMM) being the most known and widely used
among them. The algorithm, developed primarily by L. Greengard and V. Rokhlin [18], is
based on the idea of keeping the direct summation of potentials or forces for the nearby atoms
and approximating the interactions of the distant atoms by their multipole expansions. FMM
offers the asymptotically fastest performance among the Ewald-related algorithms, being
linear in N in most cases and not worse than O(N ln N) with explicitly controlled accuracy.
The FMM technique is naturally applicable to inhomogeneous and non-periodic systems,
being also easy to parallelise since it is an entirely real-space summation. Since then the
algorithm was significantly improved in efficiency, mostly by introducing new diagonal forms
of translation operators [19]. However, FMM has an intrinsic shortcoming, when applied to
molecular dynamics calculations, as the energy conservation it brings is poor; the method
per se is also rather cumbersome in implementation. Another group of methods, based on
the multigrid methods of solving elliptic (in this particular case - Poisson’s) equations [20],
was developed a decade ago [21]. These methods allow to preserve the scaling O(N) and
parallelisation advantages of tree-based methods, as well as the applicability in simulations
without PBC, being on the other hand satisfactorily energy-conserving and additionally
accelerated on all length scales.
A detailed comparison of the optimised O(N <sup>3/2</sup> ) pure Ewald technique, FFT-based sum
mations, and multipole-based methods was made by H. G. Petersen [22] for systems with
approximately uniform charge distributions, taking into account a possible parallel imple
mentation. According to Petersen, the method of choice with a number of particles below
10 <sup>4</sup> is the conventional Ewald summation, PME is preferable in the range N ∼ 10 <sup>4</sup> - 10 <sup>5</sup>,
and the fast multipole method should overperform them with N - 10 <sup>5</sup> . A more recent and
ample review of FMM, P <sup>3</sup> M and pure Ewald methods by Pollock and Glosli [23], based
partially on their own calculations, implies that P <sup>3</sup> M is faster than the Ewald summation
already for 500 particles, although it is stressed that the other factors as the ease of the
coding, the system geometry, as well as the code optimisation can change the choice. We
would also suggest a thorough survey of different Ewald summation techniques given in the
work of Toukmaji and Board [24].
An approach, alternative to using cubic periodic boundary conditions in a calculation of
long-range interactions, called Isotropic Periodic Sum (IPS), was recently proposed by Wu
and Brooks [25]. The main goal of their approach is to deal with long-range interactions,
avoiding artificial correlations and anisotropy bias induced by a PBC-based summation
in a cubic box. In this technique, only the interactions of a particle A with the others
within a certain radius rc are taken into account (as in a plain cut-off scheme), and this
spherical simulation zone is repeated in an infinite number of shifts by vectors rsh, such
that |rsh| = 2N|rc|. Therefore, the particle A interacts not only with B (within the sphere
radius), but also with all the images of B, occupying homogeneously the shells of radii
2N|rc|, centered in B. The subsequent integration and summation over the shells allows
to obtain explicit expressions of forces and energies for a number of interactions of most
physical interest, like electrostatic, Lennard–Jones and exponential potentials. The method
is known to yield a performance close to the one shown by the Ewald summation, but
without imposing unwanted symmetry effects.
Since its proposal, the Ewald method has been applied to a large number of physical
problems, although mostly to systems with the Coulomb 1/|r| interaction potential. In a
recent work by R. E. Johnson and S. Ranganathan [26], a generalised approach to Ewald
summation is stated to obtain potential energy and forces for systems with a power-law,
Yukawa potential and electronic bilayer systems. The Ewald method for two-dimensional
systems with electrostatic interactions was developed by Parry [27], but his technique ap
peared to be computationally inefficient. Spohr et al. [28] studied a slab geometry by treating
the simulation cell as a fully three-dimensional one with the conventional Ewald summation.
Later on, a significant advance was made by Yeh and Berkowitz [29], as the authors managed
to obtain the explicit correction term for the rigorous three-dimensional Ewald summation,
that brings the results for a slab system in a satisfactory agreement with the 2D summation.
The 2D Ewald technique was also applied by Wen Yang et al. [30] to calculate the energy of
Coulomb particles in a slab system with a uniformly charged surface. Recent applications
to dipolar bosons in a 2D geometry have been made by C. Mora et al. [31] and Xin Lu et
al. [32]. On the other hand, the explicit forms of the Ewald sums for Yukawa interactions
have been also reported: in 3D geometry, with partial periodical boundary conditions [33],
and in 2D geometry [34]. The Ewald method can also be useful even applied to fast de
caying power-law potentials. For instance, Shirts et al. in their recent work [35] argue the
need for taking into account the effects of cutoffs in molecular dispersion interactions due
to a Lennard-Jones potential, especially in non-isotropic and inhomogeneous media. The
authors developed two formalisms for the estimation of these cutoff errors in binding free
energy of macromolecular systems, which can in principle be extended to the other observ
ables. However, it is claimed that the adequate implementation of the Ewald summation
for this kind of systems may render their corrections unnecessary by mostly eliminating the
cutoff-dependent behaviour.
In the present work, we report explicit expressions of the Ewald sums for the general
case of particles interacting via a 1/|r| <sup>k</sup> polytropic potential and in 3D, 2D, and 1D ge
ometries. The closed derivation of these sums is given, with special attention being paid to
conditionally convergent potentials. One of the difficulties of the derivation is that different
terms have to be considered in the cases of short-range, long-range or “marginal” potentials.
In the case of a short-range interaction, the original slowly convergent sum is represented
as a linear combination of two rapidly convergent ones. For a long-range interaction, the
condition of charge neutrality in the simulation cell is shown to be necessary to make the
energy absolutely convergent within the considered scheme. The introduction of a uniform
neutralizing charged background (jellium), as a particular case of a charge-neutral system,
is also discussed. The explicit forms of the Ewald sums are reported for a jellium system and
for an arbitrary polytropic potential. We explicitly calculate the expressions for physically
relevant interactions as Coulomb, dipole-dipole, and Lennard-Jones potentials. Finally, we
have extended the Ewald sums to the case of a noncubic simulation cell, that could be useful
in simulations of hexagonal closed packed (hcp) and two-dimensional triangular solids. In
addition, the general derivation path given in this work may be used to obtain the forms of
Ewald sums for other interaction potentials.
The computational efficiency is another important issue of the practical implementation
of the method. In fact, one needs to choose correctly a free parameter, appearing in the
integral representation of the sums, and to decide which number of terms should be kept
in spatial and momentum sums in order to reach the required accuracy. The choice of
these three parameters affects the difference between the calculated result and the exact one
as well as the calculation complexity. Therefore, a certain optimisation of the parameters
is always required. In the present work, this optimisation process is formalised and it is
shown that following the described procedure the overall computation time is significantly
reduced. The accuracy of the result is shown to be kept under control, with the only cost
of a preliminary benchmark calculation.
The rest of the article is organised as follows. In Section II, we formulate the problem,
develop the general Ewald approach and report explicit expressions for the Ewald sums for a
polytropic potential in a three-dimensional cubic simulation cell. Sections III and IV contain
derivations of the Ewald sums in two-dimensional and one-dimensional geometries, respec
tively. In Section V, the case of a simulation cell with different side lengths is considered
for three- and two-dimensional systems. The final general expressions and their particu
larization to the most physically relevant cases are presented in Section VI. The practical
algorithm for the parameter optimisation and an actual application of the Ewald method is
discussed in Section VII. Summary and conclusions are drawn in Section VIII.
II.
EWALD SUM FOR AN ARBITRARY POLYTROPIC POTENTIAL 1/|r| <sup>k</sup> IN
3D GEOMETRY
A. Basic assumptions and initial sums
We consider a system of N particles inside a cubic simulation cell of size L with periodic
boundary conditions. Thus, each particle with coordinates r in the initial cell has an infinite
number of images r + nL in the adjacent cells. The total potential energy is estimated by
N
j=1
Π = <sup>1</sup>
2
′
n�∈Z <sup>3</sup>
n�∈Z <sup>3</sup>
- i=1N
φ(rij + nL)
′
(1)
where φ(r) is the interparticle potential, rij ≡ ri − rj, and the prime in the first sum means
that the summation over an integer vector n must be done omitting the term n = 0 when
i = j.
B. Analytic development
In many physical situations, the interaction potential between two particles i and j has
the power-law form qiqj/|r| <sup>k</sup> with positive k and qi, qj being the generalised charges of the
particles. This sort of interaction is generally referred to as polytropic potential.
First, let us consider the case of short-range potentials, k ≤ 3. As we will see later, the
potentials corresponding to k - 3 give a similar result. For k ≤ 3, the right-hand part of
Eq. (1) diverges and it can be made convergent only if the restriction of charge neutrality
is required, i.e., when <sup>�</sup> i <sup>N</sup>
i=1 <sup>qi</sup> <sup>= 0.</sup> <sup>It</sup> <sup>has</sup> <sup>also</sup> <sup>been</sup> <sup>shown</sup> <sup>[36]</sup> <sup>that</sup> <sup>for</sup> <sup>a</sup> <sup>pure</sup> <sup>electrostatic</sup>
interaction the total energy (1) can be conditionally convergent even in a neutral simulation
cell because of a higher multipole contribution. The energy and forces are therefore depen
dent on the order of summation, which can also be implicitly set by a choice of a convergence
factor. The ambiguity usually appears in a form of a constant or a position-dependent term,
vanishing in the limit L →∞. Hence, the preference in one or another factor should be dic
tated either by physical properties of a particular system or by arguments regarding rates
of convergence to the thermodynamic limit. For a general discussion on the convergence
issues appearing in periodic boundary conditions, see Ref. [37]. The main idea of the Ewald
summation technique in the approach proposed by de Leeuw, Perram, and Smith [2] is to
multiply each component of the sum by the dimensionless factor e <sup>−sn2</sup>, with s - 0 being
a dimensionless regularizing parameter, making the sum absolutely convergent. Then, the
limit s → 0 is taken, so that the singularity in the initial sum (1) can be explicitly separated
into a term depending only on s, that finally can be cancelled due to the charge neutral
ity condition. We take a similar multiplier c(n, r, s) = e <sup>−s|n+r|2</sup> yielding the same rate of
convergence (since 0 ≤ r ≤ 1 in units of L). As the sum, multiplied by c, is invariant to
an arbitrary substitution r → n + r, the chosen convergence factor allows to preserve the
periodicity of the potential in order to avoid any possible artefacts in the final results.
For the sake of clearness of the derivation, it is convenient to use reduced length units,
that is to use the size of the box L as unity of length and substitute rij by rijL. From now
on, and for simplicity, we use the notation r for rij and, in case of possible ambiguity, we
will stick to the standard notation rij. Also, we rewrite the potential energy by splitting
the total sum (1) into two terms: I01 (the sum of the interactions between a particle with
all the other particles in the box), and I00 (the sum of the interaction of a particle with its
own images, comprised of the components i = j in Eq. (1)). Explicitly,
Π = <sup>1</sup> (2)
L <sup>k (I01 + I00)</sup> <sup>,</sup>
with
1≤�i<j≤
I01 =
n�∈Z <sup>3</sup>
(3)
1≤i<j≤N
qiqje <sup>−s|rij</sup> <sup>+n|2</sup>
|rij + n| <sup>k</sup>
N
i=1
qi <sup>2</sup> <sup>,</sup> (4)
I00 = <sup>1</sup>
2
n∈�Z <sup>3</sup> \0
e <sup>−sn2</sup>
n <sup>k</sup>
where the shorthand notation n = |n| is used.
First, let us focus on the I01 term, which we rewrite as
I01 =
qiqjψ(r, s), (5)
1≤�i<j≤N
extended from a single cell to the whole coordinate space. Since the
where we have defined the “screened” interaction potential ψ(r, s) = <sup>�</sup>
n <sup>e−s|r+n|2/|r + n|k,</sup>
extended from a single cell to the whole coordinate space. Since the total potential energy
where we have defined the “screened” interaction potential ψ(r, s) = <sup>�</sup>
consists of a sum of pair interaction components, we may consider a single pair without any
loss of generality.
Let us apply the equation
1
x <sup>−2s</sup> =
Γ(s)
t <sup>s−1</sup> e <sup>−tx2</sup> dt, (6)
0
- ∞
representing the definition of the gamma-function, to the polytropic potential |r + n| <sup>−k</sup> .
Then the function ψ may be represented in an integral form,
k
n
2 <sup>−1 �</sup>
1
ψ(r, s) =
Γ(k/2)
t
0
- ∞
n
e <sup>−t|r+n|2</sup> e <sup>−s|r+n|2</sup> dt . (7)
We expect that the integral (7) contains a singularity that will be located in the vicinity of
zero. Therefore, we split this integral into two domains [0, α <sup>2</sup> ] and [α <sup>2</sup>, ∞), the corresponding
integrals being denoted as ψfin and ψinf, where α is some arbitrary positive constant,
ψ(r, s) = ψfin(r, s) + ψinf(r, s) . (8)
In the following, we analyze the two terms of the previous sum (8).
1. The explicit analytical form of the term ψinf(r, s) can be found
(9)
<sup>+ n|2)</sup>,
<sup>k</sup> 2 <sup>)</sup>
k
2 <sup>−1</sup> e <sup>−t|r+n|2−s|r+n|2</sup> dt =
n
1
ψinf (r, s) =
Γ( <sup>k</sup> 2 <sup>)</sup>
n
e <sup>−s|r+n|2</sup>
|r + n| <sup>k</sup>
Γ( <sup>k</sup> 2
<sup>k</sup> 2 <sup>, α2|r + n|2)</sup>
Γ( <sup>k</sup> 2 <sup>)</sup>
α <sup>2</sup> <sup>t</sup>
- ∞
where Γ(a, z) is the incomplete gamma function. From the large distance asymptotic
expansion of this function, one obtains that the above lattice sum is absolutely and
uniformly convergent if s ≥ 0 and α > 0. Therefore, one may simply take the limit of
vanishing screening s → 0,
n
Γ( <sup>k</sup> 2 <sup>, α2|r + n|2)</sup> . (10)
|r + n| <sup>k</sup>
ψinf(r, s)
1
s→0
−→ Γ( <sup>k</sup> 2 <sup>)</sup>
2. The calculation of ψfin(r, s) is done by making a separate analysis of the n = 0 case,
ψfin(r, s) = ψfin <sup>n̸=0</sup>
fin <sup>n=0(r, s)</sup> <sup>.</sup> (11)
fin <sup>n̸=0(r, s) + ψ</sup> fin <sup>n=0</sup>
Explicitly,
3
2 <sup>exp</sup> t + s <sup>+ 2πinr</sup>
- −π2n2
dt (12)
k
t 2 <sup>−1</sup>
<sup>n̸=0</sup>
fin <sup>(r, s) =</sup> <sup>π</sup>
Γ(
3
2
<sup>k</sup> 2 <sup>)</sup>
ψ <sup>n̸=0</sup>
fin
Γ( <sup>k</sup> 2
n�̸=0
n̸=0
0
̸ - α2
(t + s)
3 (13)
2 <sup>dt</sup> <sup>,</sup>
k
t 2 <sup>−1</sup>
fin <sup>n=0(r, s) =</sup> <sup>π</sup>
Γ(
3
2
<sup>k</sup> 2 <sup>)</sup>
ψfin <sup>n=0</sup>
Γ( <sup>k</sup> 2
0
̸
0
- α2
(t + s)
where we have used the Jacobi transformation [38, 39]
(14)
n exp[−π <sup>2</sup> n <sup>2</sup> /s + 2πinr] for n ∈ Z <sup>3</sup>,
�3/2 �
s
�π
n
e <sup>−s|n+r|2</sup> =
applied to
(15)
exp[−s|n + r| <sup>2</sup> - t|n + r| <sup>2</sup> ] = exp[−(s + t)|n + r| <sup>2</sup> ].
We evaluate the integral ψfin <sup>n̸=0(r, s) by the following analysis.</sup> <sup>Consider</sup> <sup>separately</sup> <sup>the</sup>
following factor of the integrated expression from (12)
exp
t+s
M =
(t + s)
t+s
- <sup>π2n2</sup>
3
- 2
+ s)
3 . (16)
2
It is clearly continuous and bounded on (0, +∞) as a function of (t+s), also notice that
t <sup>k/2−1</sup> is absolutely integrable on (0, α <sup>2</sup> ) for k - 0. In accordance with the standard
convergence test for improper integrals, the integral ψfin <sup>n̸=0(r, s)</sup> <sup>converges</sup> <sup>absolutely</sup>
and uniformly with s being considered as a parameter. Then, the limit s → 0 may be
carried out and the integral becomes
<sup>n̸=0</sup>
fin <sup>(r, s) =</sup> <sup>π</sup>
Γ(
3
2
<sup>k</sup> 2 <sup>)</sup>
ψ <sup>n̸=0</sup>
fin
Γ( <sup>k</sup> 2
t
0
- α2
k−5
−2 5 exp
�− <sup>π2</sup> t <sup>n2</sup>
t
dt (17)
n�3 ̸=0
n̸=0
e <sup>2πinr</sup>
α <sup>k−3</sup> E k−1
2
<sup>k</sup> 2 <sup>)</sup>
=
n�̸=0
π
̸
32 cos(2πnr)
Γ( <sup>k</sup> 2 <sup>)</sup>
α <sup>2</sup>
�π2n2
. (18)
2
The function En(z) is the exponential integral function, and we have cancelled the
imaginary part of the sum (17) by grouping the pairs with n and −n.
Now, we analyze the second term of ψfin(r, s),
3 (19)
2 <sup>dt</sup> <sup>.</sup>
k
t 2 <sup>−1</sup>
<sup>n=0</sup>
fin <sup>(r, s) =</sup> <sup>π</sup>
Γ(
3
2
<sup>k</sup> 2 <sup>)</sup>
ψ <sup>n=0</sup>
fin
Γ( <sup>k</sup> 2
(t + s)
0
- α2
In terms of a new variable v = s/(t + s),
k2 <sup>−1</sup>
<sup>n=0</sup>
fin <sup>(r, s) =</sup> <sup>π</sup>
Γ(
3
2
<sup>k</sup> 2 <sup>)</sup>
ψ <sup>n=0</sup>
fin
Γ( <sup>k</sup> 2
v
s/(α <sup>2</sup> +s)
- 1
(1 −kv−)1
k−1
2 <sup>−1</sup>
−)1 s <sup>(k−3)/2</sup> dv . (20)
2
The integration of ψfin <sup>n=0(r, s)</sup> <sup>for</sup> <sup>a</sup> <sup>1/|r|k</sup> <sup>interaction</sup> <sup>has</sup> <sup>to</sup> <sup>be</sup> <sup>carefully</sup> <sup>analyzed</sup> <sup>as</sup>
a function of k: 1 ≤ k < 3, long-range potential; k = 3, marginal case; and k - 3,
short-range potential.
(a) Suppose 1 ≤ k < 3. The resulting integral,
k2 <sup>−1</sup>
3
2
<sup>k</sup> 2 <sup>)</sup>
ψfin <sup>n=0</sup>
fin <sup>n=0(r, s) = ψ</sup> fin <sup>n=0</sup>
fin <sup>n=0(r, s) =</sup> <sup>π</sup>
Γ(
Γ( <sup>k</sup> 2
v
s/(α <sup>2</sup> +s)
- 1
(1 −kv−)1
k−1
2 <sup>−1</sup>
−)1 s <sup>(k−3)/2</sup> dv (21)
2
may be given explicitly in terms of incomplete beta- and incomplete gamma
functions. Expanding the resulting function for small s,
(k − 3)Γ
ψfin <sup>n=0(r, s) = s</sup>
k−2 3 2πΓ
2
�3 − k
−2 3 2πΓ
2
�3 − k
2π 32 α <sup>k−3</sup>
+
2
- (k − 3)Γ
(22)
2
expansion� k - + O(s(22)) is the first
It is easily seen, that the only divergent term in the expansion (22) is the first
one, which we define as
. (23)
S(s) = s
k−2 3 2πΓ
2
�3 − k
We remind that the choice of a convergence factor (that explicitly affects the
summation order) may in principle lead to additional contributions in the total
energy if the convergence of the sum is conditional (like for a charge-neutral cell of
Coulomb particles with non-zero total dipole moment). In the original derivation
of de Leeuw et al. [2], the factor exp(−sn <sup>2</sup> ) results in an additional dipole-like
component in ψfin <sup>n=0</sup>
fin <sup>n=0,</sup> <sup>which</sup> <sup>breaks</sup> <sup>the</sup> <sup>periodicity</sup> <sup>of</sup> <sup>the</sup> <sup>potential</sup> <sup>and</sup> <sup>therefore</sup>
complicates its use in simulations with periodic boundary conditions. Moreover,
this procedure [2] yields a nonvanishing dipole term exclusively for k = 1 in 3D
geometry, with the rest of the sums remaining unchanged. From our point of
view, this discontinuity points out to an nonphysical character of the dipole term
appearing in the case of the Coulomb potential. Nevertheless, in a number of
studies [36, 37] it is considered as a first order correction when the convergence
to the thermodynamic limit is analyzed. The mere fact that the results for the
two different convergence multipliers coincide when k - 1 is a consequence of the
absolute convergence of the higher multipole contributions in this case.
(b) Suppose k = 3. In this marginal case, the expression (21) may be integrated
directly to yield the following logarithmic dependence
fin <sup>n=0(r, s) =</sup> <sup>π</sup>
Γ(
3
2
2 <sup>3)</sup>
√
s + α <sup>2</sup> ) − ln s
ψfin <sup>n=0</sup>
Γ( 2 <sup>3</sup>
α3 <sup>3</sup> + ln(s + 2α <sup>2</sup> + 2α
2
(24)
−2αs − 2α3 <sup>3</sup>
2
- (α <sup>2</sup> + s)
(α <sup>2</sup> + s)
that close to s = 0 expands as
ψfin <sup>n=0(r, s) = −2π ln</sup> <sup>s −</sup> <sup>4π + 4π ln(2α) + O(s ln s)</sup> (25)
with the diverging term
S(s) = −2π ln s . (26)
(c) Consider the remaining option k - 3. In this case, (1 − v)
k2 <sup>−1</sup> is bounded from
above and (k - 1)/2 - 1. It means that the integral converges absolutely and
the only finite contribution to the integral comes from the first (constant) term
of the integral expansion for small s,
2π 32 α <sup>k−3</sup>
fin <sup>n=0(r, s) =</sup>
ψfin <sup>n=0</sup>
(k − 3)Γ
(27)
2
�bek �derived in a similar form to
The second term of the total potential energy, I00 (2) can be derived in a similar form to
the first one. The procedure to find the form of ψ(r, s) is repeated here with rij = 0, hence
the results are obtained straightforwardly via (10), (18), (25) and (27),
n
N
i=1
n�̸=0
Γ( <sup>k</sup>
2
3
2
2
<sup>k</sup>
2 <sup>)</sup> <sup>αk−3E k−1</sup>
Γ( <sup>k</sup> 2 <sup>, α2n2)</sup>
+
n <sup>k</sup>
π
α <sup>2</sup>
�π2n2
1
�Γ( <sup>k</sup> 2 <sup>)</sup>
I00 =
qi <sup>2</sup>
i=1
α <sup>k</sup>
−Γ( <sup>k</sup>
2
fin <sup>(r, s)</sup>
<sup>k</sup>
2 <sup>+ 1)</sup> <sup>+ ψn=0</sup>
Γ( <sup>k</sup>
, (28)
with the term ψfin <sup>n=0(r, s)</sup> <sup>depending</sup> <sup>on</sup> <sup>the</sup> <sup>potential</sup> <sup>parameter</sup> <sup>k</sup> <sup>via</sup> <sup>(22),</sup> <sup>(25)</sup> <sup>or</sup> <sup>(27).</sup>
Putting all together, the potential energy can be written in a more compact form as,
Π = <sup>1</sup>
L <sup>k (I01 + I00)</sup>
= <sup>1</sup>
L <sup>k</sup>
i<j
N
i=1
i <sup>2</sup> <sup>ξ +</sup> <sup>1</sup>
L <sup>k</sup>
1
qiqjψ(rij/L) +
2L <sup>k</sup>
1
qiqjS(s) +
2L <sup>k</sup>
i
qi <sup>2</sup>
L <sup>k</sup>
i<j
qi <sup>2S(s)</sup> <sup>,</sup> (29)
with the generalised potential,
ψ(r) =
n
K(n, r) + C1 . (30)
R(n, r) +
�n̸=0
A constant shift in the definition of ψ is introduced to satisfy by the property
cell <sup>ψ dr</sup> <sup>= 0,</sup>
convenient for a proper treatment of the background contributions (see Appendix). The
functions entering in Eq. (30) are defined as
R(n, r) = <sup>Γ( k</sup> 2
<sup>2|r + n|2)</sup> (31)
<sup>k</sup> 2 <sup>)|r + n|k</sup>
<sup>k</sup> 2 <sup>, α2|r + n|2)</sup>
Γ( <sup>k</sup> 2 <sup>)|r + n|k</sup>
K(n, r) = κ(n) cos(2πnr), (32)
with
(33)
. (34)
κ(n) = <sup>π</sup>
32 α <sup>k−3</sup>
Γ( <sup>k</sup>
2
2
<sup>k</sup>
2 <sup>)</sup> <sup>E k−1</sup>
α <sup>2</sup>
�π2n2
The explicit form of the function S(s) depends on the k value,
0 if k - 3
s
k−3
−2 3 2πΓ
2
if k ≤ 3 (singular term)
- 3−k - if k = 3 (singular term)
π ln s
S(s) =
, (35)
−2π ln s if k = 3 (singular term)
and the term ξ depends only on the choice of α,
ξ =
(ρ(n) + κ(n)) + C1 + C2, (36)
�n̸=0
with
ρ(n) = <sup>Γ( k</sup> 2
, (37)
<sup>k</sup> 2 <sup>)nk</sup>
<sup>k</sup> 2 <sup>, α2n2)</sup>
Γ( <sup>k</sup> 2 <sup>)nk</sup>
and κ(n) defined in Eq. (34). The constants C1 and C2 are explicitly,
2π 32 α <sup>k−3</sup>
(38)
C1 =
(k−3)Γ[ <sup>k</sup> 2
<sup>3</sup>
<sup>k</sup> 2 <sup>]</sup> if k̸ = 3
−4π + 4π ln(2α) if k = 3
(39)
<sup>k</sup> 2 <sup>+ 1)</sup>
α <sup>k</sup>
C2 = −Γ( <sup>k</sup> 2
Γ( <sup>k</sup> 2
(40)
C. Removing singularities for k ≤ 3
The diverging part Πs (containing a singularity) of the total potential energy equals to
S(s) (41)
�2
Πs = <sup>1</sup>
L <sup>k</sup>
i<j
i <sup>2S(s) =</sup> <sup>1</sup>
2
1
qiqjS(s) +
2L <sup>k</sup>
i
qi <sup>2</sup>
2L
qi
i
��
Consider now a charge-neutral system with a neutralizing background consisting of a large
and vanishes, if the charge neutrality condition <sup>�</sup>
i <sup>qi</sup> <sup>= 0</sup> <sup>is</sup> <sup>taken.</sup>
Consider now a charge-neutral system with a neutralizing background consisting of a large
number of identical uniformly distributed particles of the opposite charge (the “jellium”
model). We denote the numbers of negatively charged particles q− and positively charged
(background) particles q+ as N− and N+, respectively. By imposing charge neutrality,
q+ = −[N−/N+]q−, with N the total number of particles, N = N− + N+.
The potential energy for the jellium model can be written as
Π = <sup>1</sup>
L <sup>k</sup>
i<j
+
<sup>+ N+q2</sup> ξ . (42)
2L <sup>k</sup>
qiqjψ(rij/L) + <sup>N−q</sup> - <sup>2</sup>
+
- <sup>2</sup> <sup>+ N+q2</sup>
The second term in Eq. (42) has a component proportional to N+q+ <sup>2</sup> <sup>.</sup> <sup>Note</sup> <sup>that</sup> <sup>the</sup>
negative charges q− and their number N− is defined by the problem and therefore fixed.
Hence, in the limit N+ →∞, this term cancels N+q+ <sup>2</sup>
background contribution may be eliminated to yield
+ <sup>2</sup> <sup>= (N</sup> - <sup>2</sup>
- <sup>2</sup> <sup>)/N+</sup> <sup>→</sup> <sup>0, and therefore this</sup>
- <sup>2</sup> <sup>q</sup> - <sup>2</sup>
N−q− <sup>2</sup>
+
- <sup>2</sup> <sup>+ N+q2</sup>
<sup>+ N+q</sup> + <sup>2</sup> ξ = <sup>N−q</sup> - <sup>2</sup>
2L <sup>k</sup> 2L <sup>k</sup>
2 <sup>−</sup> L <sup>qk</sup> - <sup>2</sup> <sup>ξ</sup> <sup>.</sup> (43)
Concerning the first term of Eq. (42), let us split it into three pieces,
1
L
qiqjψ(r) = <sup>1</sup>
L
1≤�i<j≤N
�i<j≤
<sup>1</sup> (44)
L <sup>(S−−</sup> <sup>+ 2S−+ + S++)</sup> <sup>,</sup>
where the first sum corresponds to the interaction between the negative charges
S−− =
qiqjψ(r), (45)
1≤i<j�≤N−
the second sum is the interaction of the negatively charged particles with the positive charges
of the background
N++N−
j=1+N−
S−+ =
N−
i=1
qiqjψ(r), (46)
and the third one is the interaction between the background charges
S++ =
qiqjψ(r) . (47)
1+N−≤i<j�≤N++N−
The last two terms S−+ and S++ are easily shown to be zero in the limit N+ →∞ as a
consequence of the zero value of the integral of ψ over the simulation cell (see Appendix).
With the above considerations we can finally write the expression for the potential energy
within the jellium model as
Π <sup>jel</sup> = <sup>q</sup> - <sup>2</sup>
L <sup>k</sup>
i<j
ψ(rij/L) + <sup>Nq</sup> - <sup>2</sup> (48)
2L <sup>k</sup> <sup>ξ</sup>
In the more general case of different charges in a charge-neutral simulation cell (with
a long-range potential) or a system with an arbitrary short-range potential the potential
energy is given by
Π <sup>gen</sup> = <sup>1</sup>
L <sup>k</sup>
i<j
qiqjψ(rij/L) +
i=1 <sup>q</sup> i <sup>2</sup>
ξ . (49)
2L <sup>k</sup>
�N
A certain analytical conversion of the sum in the reciprocal space is also possible in order
to sum it up faster. Expanding the sum that defines K(n, r) (32), one can simplify it in the
following way,
i<j
qiqj
�n̸=0
K(n, r) =
�n̸=0
κ(n)
i<j
qiqj cos(2πnr)
i<j
i<j
= <sup>1</sup>
n̸=0
̸
qiqj [cos(2πnri) cos(2πnrj) + sin(2πnri) sin(2πnrj)] − <sup>1</sup> 2
i,j
�����
j
�n̸=0
2
κ(n)
�n̸=0
κ(n)
�n̸=0
i,j
i
qi <sup>2</sup>
κ(n)
2
= <sup>1</sup>
2
j
�n̸=0
qj exp(2πinrj)
�����
2
- 2 <sup>1</sup>
2
i
qi <sup>2</sup>
κ(n) (50)
In this form, the sum over all pairs of particles in the reciprocal space is represented as
a single sum over particles and thus it scales as O(N) instead of O(N <sup>2</sup> ). Notice that the
number of prefactors κ(n) and exponents in the sum depends on a chosen cutoff, which in
general also might depend on N, making the overall complexity of the k-space grow. Na¨ıve
schemes with α and the cutoff not depending on N do not take into account the interplay
between the r-space and k-space sum complexities, thus leaving at least O(N <sup>2</sup> ) in one of
them. Nevertheless, as we show later, optimisation with α and cutoff depending on N
gives a best total complexity of O(N <sup>3/2</sup> ). An alternative method to sum up the momentum
space part is to use Fast Fourier transform-based techniques (like PME), which is fast as
O(N ln N).
The last term in Eq. (50) cancels the κ(n) component of ξ. Introduce the notation,
ψ˜(r)=
ξ˜=
n
n�̸=0
n
R(n, r) + C1 (51)
ρ(n) + C1 + C2 (52)
n̸=0
̸
S˜equal(n)= q−
̸
j
j
exp(2πinrj/L) (53)
S˜q(n)=
j
qj exp(2πinrj/L), (54)
j
where S <sup>˜</sup> equal is used when the system of equally charged particles q− is considered. Within
this notation the potential energy may be rewritten in the following forms, which are more
efficient for numerical implementation,
Π <sup>jel</sup> = <sup>q</sup> - <sup>2</sup>
L <sup>k</sup>
Π <sup>gen</sup> = <sup>1</sup>
L <sup>k</sup>
i<j
i<j
n̸=0
1
ψ˜(rij/L) +
2L <sup>k</sup>
�n̸=0
1
qiqjψ <sup>˜</sup> (rij/L) +
2L <sup>k</sup>
�n̸=0
n̸=0
- (55)
κ(n)|S <sup>˜</sup> equal(n)| <sup>2</sup> + <sup>Nq</sup> 2L <sup>k2</sup> <sup>ξ˜</sup>
i=1 <sup>q</sup> i <sup>2</sup>
ξ˜, (56)
2L <sup>k</sup>
�N
κ(n)|S <sup>˜</sup> q(n)| <sup>2</sup> +
with ri, rij in the original length units.
D. Short-range potentials and the marginal case
In case of a short-range interaction (k - 3), the potential energy does not diverge, which
is clear from the form of the singular term S(s)(see Eq. 35). Hence, there is no need to add
a neutralizing background and, even more, the background must be necessarily excluded
since it leads to a divergence in the energy. This is easily seen by considering the potential
energy of the background separately
dr
|r| <sup>k</sup> <sup>,</sup> (57)
Πbg = C
0
- cell
that contains a singularity in zero. The expression for the potential energy is simply equal
to Eq. (49),
Π = <sup>1</sup>
L <sup>k</sup>
i<j
qiqjψ(rij/L) +
i=1 <sup>q</sup> i <sup>2</sup>
ξ . (58)
2L <sup>k</sup>
�N
When k = 3 (marginal case), both ultraviolet and infrared divergences arise in zero for
the background as well as in the vicinity of infinity (the logarithmic divergence in the energy
of negative charges). The only coherent model here is a plain “quasi-neutral” gas consisting
the positive background excluded.
of a mixture of a finite number of charges per box with the constraint <sup>�</sup> qi = 0, i.e., with
III. EWALD METHOD FOR TWO-DIMENSIONAL SYSTEMS
A. General notes for lower dimensions
The Ewald sums can be extended to two-dimensional (2D) systems interacting through
polytropic potentials. The difference with the 3D case comes from a different form of the
Jacobi imaginary transformation for the Jacobi θ-functions [its 3D form is given in Eq. (14)].
The “third” Jacobi θ-function θ3(z, τ ) is defined as
θ3(z|τ ) =
+∞
e <sup>iπτn2</sup> e <sup>2niz</sup>, (59)
n�=−∞
and satisfies the Jacobi imaginary transformation,
(60)
θ3(z|τ ) = (−iτ ) <sup>−1/2</sup> e <sup>iτ ′2z2/π</sup> θ3(zτ <sup>′</sup> |τ <sup>′</sup> ),
Under the change of variables, z = πr and τ = iπ/s, the θ-function
with τ <sup>′</sup> = −1/τ .
becomes a Gaussian, which is the relevant function for performing the Ewald sums,
+∞
n�=−∞
+∞
n�=−∞
e <sup>−s(r+n)2</sup> = (π/s) <sup>1/2</sup>
+∞
�=−∞
e <sup>−π2n2/s</sup> e <sup>2πinr</sup> . (61)
This expression will be used later, in the derivation of the Ewald sum in one-dimensional
systems. Equation (61) may be easily generalised to the 2D geometry,
n
n
e <sup>−s|r+n|2</sup> = (π/s)
e <sup>−π2n2/s</sup> e <sup>2πinr</sup> . (62)
Comparing this result for 2D with its 1D (61) and 3D(14) counterparts one finds that the
dimensionality D affects only the constant multiplier as (π/s) <sup>D/2</sup> .
B. Derivation
The analytical derivation of the Ewald sum in 2D proceeds similarly to the one already
presented for 3D. Equations from (2) to (11) are also valid here because their derivation
is done without explicit reference to the dimensionality of the problem. In particular, the
integral ψinf(r, s) converges absolutely and to the same value
n
Γ( <sup>k</sup> 2 <sup>, α2|r + n|2)</sup> . (63)
|r + n| <sup>k</sup>
ψinf(r, s)
1
s→0
−→ Γ( <sup>k</sup> 2 <sup>)</sup>
We make the same decomposition of the integral ψfin(r, s) as in 3D,
ψfin(r, s) = ψfin <sup>n̸=0</sup>
fin <sup>n=0(r, s)</sup> <sup>,</sup> (64)
fin <sup>n̸=0(r, s) + ψ</sup> fin <sup>n=0</sup>
with
dt (65)
k2 <sup>−1</sup>
π
fin <sup>n̸=0(r, s) =</sup>
Γ( <sup>k</sup> 2
t
t
ψfin <sup>n̸=0</sup>
<sup>k</sup> 2 <sup>)</sup>
t + s <sup>+ 2πinr</sup>
�−π2n2
n�̸=0
n̸=0
0
- α2
(t + s) <sup>exp</sup>
k2 <sup>−1</sup>
π
fin <sup>n=0(r, s) =</sup>
Γ( <sup>k</sup> 2
0
ψfin <sup>n=0</sup>
<sup>k</sup> 2 <sup>)</sup>
̸
0
- α2
(t + s) <sup>dt</sup> <sup>,</sup> (66)
where the two-dimensional variant of the Jacobi transformation (62) is used. The difference
between the pair of equations (65, 66) and their three-dimensional analogues (12, 13) relies
in a substitution of the 3D factor (π/(t + s)) <sup>3/2</sup> by the 2D one π/(t + s).
First, we consider the term ψfin <sup>n̸=0(r, s).</sup> <sup>Following</sup> <sup>the</sup> <sup>same</sup> <sup>analysis</sup> <sup>as</sup> <sup>for</sup> <sup>its</sup> <sup>3D</sup> <sup>coun-</sup>
terpart, it can be shown that this parametric integral also converges absolutely. It yields
dt
<sup>n̸=0</sup>
fin <sup>(r, s) =</sup> <sup>π</sup>
Γ( <sup>k</sup>
ψ <sup>n̸=0</sup>
fin
Γ( <sup>k</sup> 2
<sup>k</sup> 2 <sup>)</sup>
t
0
- α2
k2 <sup>−2</sup> exp
�− <sup>π2</sup> t <sup>n2</sup>
n�̸=0
n̸=0
e <sup>2πinr</sup>
. (67)
̸
π cos(2πnr)
=
n�̸=0
Γ( <sup>k</sup> 2
α <sup>k−2</sup> E k
2
<sup>k</sup> 2 <sup>)</sup>
2
α <sup>2</sup>
�π2n2
The modification of the integral ψfin <sup>n=0</sup> is less straightforward, since it requires specific
integrations and expansions in the series for small s. Namely, we have to evaluate the
integral
k2 <sup>−1</sup>
π
fin <sup>n=0</sup> = Γ( <sup>k</sup> 2
v
ψfin <sup>n=0</sup>
<sup>k</sup> 2 <sup>)</sup>
s/(α <sup>2</sup> +s)
- 1
(1 − vk)
2 <sup>−1</sup>
k) s <sup>k/2−1</sup> dv (68)
2
which is the 2D equivalent of Eq. (20).
In the following, we consider separately the cases of long-range potential (1 ≤ k < 2),
marginal interaction (k = 2) and short-range potential (k - 2).
1. 1 ≤ k < 2. As in 3D, the integral can be found analytically via the incomplete beta
and incomplete gamma-function with known series expansions for small s. Omitting
these unnecessary intermediate expressions, we give the final expansion for ψfin <sup>n=0,</sup>
2πα <sup>k−2</sup>
2
- k - + (k − 2)Γ
ψfin <sup>n=0</sup> = s
ψfin <sup>n=0</sup>
k−2
−2 π <sup>2</sup>
2
sin
Γ
2
- kπ
(k − 2)Γ
(69)
2
- k - + O(s <sup>k/2</sup> ) .
The first term of the expansion,
(70)
2
- k -,
case, this term is cancelled in a
k−2
S(s) = s
−2 π <sup>2</sup>
2
sin
Γ
2
- kπ
the 3D
clearly diverges when s → 0. Similarly to the 3D case, this term is cancelled in a
charge-neutral cell and hence,
2πα <sup>k−2</sup>
fin <sup>n=0</sup> =
ψfin <sup>n=0</sup>
(k − 2)Γ
(71)
2
- k
2. k = 2. The integration of Eq. (68) is performed to yield in the limit s → 0 a marginal
logarithmic dependence,
ψfin <sup>n=0</sup> (72)
= −π ln s + 2π ln α + O(s ln s) .
As for the 3D geometry, the jellium model is inapplicable in this particular case since
the energy of the continuous background diverges. Nonetheless the diverging compo
nent
S(s) = −π ln s (73)
can be removed if we consider a charge-neutral system with a finite number of charges.
In this case,
ψfin <sup>n=0</sup> = 2π ln α . (74)
3. k - 2. The integral (68) can be evaluated by taking s = 0, since its convergence is
absolute,
ψfin <sup>n=0</sup>
2πα <sup>k−2</sup>
s→0
−→
(k − 2)Γ
(k − 2)Γ
(75)
2
calculated� k - as in the 3D case. The
The second potential energy component, I00 (2), is calculated as in the 3D case. The
result for 2D is
inf <sup>n=0(0, s))</sup> (76)
fin <sup>n̸=0(0, s) + ψinf(0, s) −</sup> <sup>ψ</sup> inf <sup>n=0</sup>
I00(s) =
=
N
i=1
N
i=1
N
i=1
qi <sup>2</sup> <sup≯</sup>
qi <sup>2</sup>
i <sup>2(ψ</sup> fin <sup>n̸=0</sup>
+
<sup>k</sup> 2 <sup>)nk</sup>
Γ( <sup>k</sup>
2
α <sup>k</sup>
- Γ( <sup>k</sup>
- 2
πα <sup>k−2</sup>
n
��
Γ( <sup>k</sup> 2
<sup>k</sup> 2 <sup>, α2n2)</sup>
Γ( <sup>k</sup> 2 <sup>)nk</sup>
n�̸=0
2
<sup>k</sup>
2 <sup>)</sup> <sup>E k</sup>
α <sup>2</sup>
- π2n2
<sup>k</sup> fin
2 <sup>+ 1)</sup> <sup>+ ψn=0</sup>
Γ( <sup>k</sup>
.
i=1
C. Final expressions
With respect to the 3D case, the changes in the 2D Ewald sum appear in those terms in
which the Jacobi transformation is used, that is in κ(n) and C1,
κ(n) = <sup>παk−2</sup>
α <sup>2</sup>
(77)
<sup>k−2</sup>
2
<sup>k</sup>
2 <sup>)</sup> <sup>E k</sup>
α <sup>2</sup>
�π2n2
Γ( <sup>k</sup>
2
C1 = ψfin <sup>n=0</sup>
fin <sup>n=0</sup> (78)
The other terms, namely R(r, n), ρ(n) and C2, are not affected by dimensionality and may
be taken directly from the previous section.
Within the jellium model for a long-range potential (k < 2), the Ewald sum is given by
Π <sup>jel</sup> = <sup>q</sup> - <sup>2</sup>
L <sup>k</sup>
i<j
ψ(rij/L) + <sup>Nq</sup> - <sup>2</sup> (79)
2L <sup>k</sup> <sup>ξ</sup> <sup>.</sup>
A more general form, applicable to any system with a short-range potential (k - 2), a
charge-neutral system with long-range interaction (k < 2), or a marginal (k = 2) potential
is expressed as
Π <sup>gen</sup> = <sup>1</sup>
L <sup>k</sup>
i<j
N
i=1
ξ
qiqjψ(rij/L) +
2L <sup>k</sup>
qi <sup>2</sup> <sup>.</sup> (80)
In the same way as for the 3D systems we can modify the sum in the reciprocal space,
and with the same notations (51) - (54) (ρ, R and the constants C1, C2 are the new ones,
corresponding to 2D case) the potential energy may be given by
Π <sup>jel</sup> = <sup>q</sup> - <sup>2</sup>
L <sup>k</sup>
i<j
i<j
n̸=0
1
ψ˜(rij/L) +
2L <sup>k</sup>
�n̸=0
̸
1
qiqjψ <sup>˜</sup> (rij/L) +
2L <sup>k</sup>
�n̸=0
- (81)
κ(n)|S <sup>˜</sup> equal| <sup>2</sup> + <sup>Nq</sup> 2L <sup>k2</sup> <sup>ξ˜</sup>
Π <sup>gen</sup> = <sup>1</sup>
L <sup>k</sup>
n̸=0
i (82)
2L <sup>k</sup> <sup>ξ˜</sup> <sup>.</sup>
- q2
κ(n)|S <sup>˜</sup> q| <sup>2</sup> +
IV. EWALD METHOD FOR ONE-DIMENSIONAL SYSTEMS
As it has been commented before for the 2D case, the differences due to dimensionality
are caused by the form of the Jacobi imaginary transformation. In the derivation for 1D,
one needs the following ones
1
x <sup>−2s</sup> =
Γ(s)
0
- ∞
t <sup>s−1</sup> e <sup>−tx2</sup> dt (83)
0
∞
+∞
�=−∞
e <sup>−sn2</sup> = (π/s) <sup>1/2</sup>
+∞
�=−∞
+∞
�=−∞
e <sup>−π2n2/s</sup> (84)
e <sup>−π2n2/s</sup> e <sup>2πinr</sup> . (85)
n=−∞
n=−∞
+∞
�=−∞
e <sup>−s(r+n)2</sup> = (π/s) <sup>1/2</sup>
n=−∞
n=−∞
Similarly to what discussed in the previous section, the only terms to be changed are those
where the Jacobi transformation is used, namely ψfin <sup>n̸=0</sup> (in I01 in a radial-dependent form, in
where the Jacobi transformation is used, namely ψfin <sup>n̸=0</sup>
I00 for r = 0). The difference arises from a different power exponent (1/2) in (84) and (85),
that is in (18) k has to be substituted by k + 2 (and π <sup>3/2</sup> - by π <sup>1/2</sup>, respectively), yielding
π <sup>1/2</sup> e <sup>2πinr</sup>
ψfin <sup>n̸=0</sup> =
�n̸=0
Γ( <sup>k</sup> 2
α <sup>k−1</sup> E k+1
2
<sup>k</sup> 2 <sup>)</sup>
2
α <sup>2</sup>
- π2n2
. (86)
As far as the term ψfin <sup>n=0</sup>
fin <sup>n=0</sup> is concerned, we should perform a simple integration and do a
series expansion for small s,
fin <sup>n=0</sup> = <sup>π1/2</sup>
v
k−1
ψfin <sup>n=0</sup>
Γ( <sup>k</sup> 2
<sup>k</sup> 2 <sup>)</sup>
2
s/(α <sup>2</sup> +s)
- 1
(1 −kv+1)
k+1
+1) dv (87)
2
The estimation of this integral depends on the k value. In the following, we detail this
analysis.
1. k = 1, the marginal case,
fin <sup>n=0</sup> = <sup>π1/2</sup>
2
ψfin <sup>n=0</sup>
Γ( <sup>k</sup>
2
<sup>/2</sup> (88)
<sup>k</sup>
2 <sup>)(−</sup> <sup>ln s −</sup> <sup>2 + 2 ln(2α)) + O(s)</sup> <sup>.</sup>
As before, we keep only the constant term, considering the diverging term absent due
to the charge neutrality condition. Therefore, with Γ(1/2) = <sup>√</sup> π one has
ψfin <sup>n=0</sup> (89)
= −2 + 2 ln(2α)
2. k - 1, the short-range potential,
fin <sup>n=0</sup> = <sup>π1/2</sup>
2
(90)
<sup>2</sup> k <sup>α</sup> - <sup>k−</sup> 1 <sup>1</sup> <sup>+ O(s) + O(s(k−1)/2 ln s)</sup> <sup>.</sup>
ψfin <sup>n=0</sup>
Γ( <sup>k</sup>
In the limit s → 0, it yields
<sup>/2</sup>
<sup>k</sup>
2 <sup>)</sup> <sup>·</sup> <sup>2</sup> k <sup>α</sup> - <sup>k−</sup> 1 <sup>1</sup>
ψfin <sup>n=0</sup>
fin <sup>n=0</sup> = <sup>2π1/2αk−1</sup>
(k − 1)Γ( <sup>k</sup> 2
<sup>1</sup> (91)
<sup>k</sup> 2 <sup>)</sup>
resembling the 3D result (27), with the change k → k + 2 (except in the Γ term) and
π <sup>3/2</sup> → π <sup>1/2</sup> .
The final result for the one-dimensional Ewald summation reads
ψ(r) =
ξ =
n
(
�n̸=0
R(n, r) +
(ρ(n) + κ(n)) + C1 + C2, (93)
�n̸=0
K(n, r)) + C1 (92)
n
n̸=0
where C1 = ψfin <sup>n=0</sup>
fin <sup>n=0</sup> <sup>is</sup> <sup>taken</sup> <sup>from</sup> <sup>the</sup> <sup>expressions</sup> <sup>(89)</sup> <sup>(if</sup> <sup>k</sup> <sup>= 1)</sup> <sup>or</sup> <sup>(91)</sup> <sup>(if</sup> <sup>k</sup> <sup>> 1).</sup>
For k = 1, the only consistent system is the charge-neutral one with a finite number of
particles. In this case and for a short-range potential (k - 1) one the potential energy is
given by
Π <sup>gen</sup> = <sup>1</sup>
L
i<j
i<j
qiqjψ(rij/L) +
i=1 <sup>q</sup> i <sup>2</sup>
ξ . (94)
2L <sup>k</sup>
�N
Although the Ewald method is applicable to one-dimensional problems, there is a direct
way to calculate the sums for polytropic potentials
Π = <sup>1</sup>
L <sup>k</sup>
n=+∞
n�=−∞
n=−∞
1
|r + n| <sup>k</sup> <sup>.</sup> (95)
For k - 1, this sum can be represented as a linear combination of the Hurwitz zeta functions,
1
L <sup>k</sup>
+∞
�=−∞
n=−∞
1
L <sup>k (Hk(r) + Hk(1 −</sup> <sup>r))</sup> <sup>.</sup> (96)
|r + n| <sup>k</sup> <sup>=</sup> <sup>1</sup>
In particular, for k = 2 the sum converts into a familiar expression used in the Calogero
Sutherland model [40, 41],
1
L <sup>2</sup>
n=−∞
+∞
�=−∞
1 π <sup>2</sup>
|r + n| <sup>2</sup> <sup>=</sup> L <sup>2</sup> sin <sup>2</sup> (πr) <sup>.</sup> (97)
Notice that the sum (96) may be expressed in terms of trigonometric functions only for even
values of k via (k − 2) times differentiation of Eq. (97). Anyway, the possibility to find exact
expressions for infinite sums in 1D suggests that the use of the Ewald method might not be
needed, but we keep it as a possibly useful mathematical relation and for completeness.
V. EWALD METHOD IN A RECTANGULAR BOX OF ARBITRARY SIDE
LENGTHS
A. 3D case
A special and interesting situation arises if we consider a simulation cell in a more general
way, as a rectangular box with different side lengths (Lx, Ly, Lz in the corresponding di
mensions). The need to deal with a box of unequal size lengths may occur in the simulation
of a solid with a noncubic lattice (the simplest examples include a hexagonal closed packed
crystal in 3D geometry), since the lattice vectors n in the sum over images on (1) are no
longer orthogonal. Focusing our analysis to a 3D geometry, the potential energy is now
given by
N
φ(rij + L0nr)
j=1
Π = <sup>1</sup>
2
n�a∈Z <sup>3</sup>
- i=1N
, (98)
′
with nr = (nxLx + nyLy + nzLz)/L0, nx,y,z being integer vectors along the corresponding
axis x, y, z. We have introduced the geometric average L0 = (LxLyLz) <sup>1/3</sup> and we will
use reduced L0 units for rij, and hence rij will be adimensional. Repeating the standard
procedure, we multiply the potential energy by a Gaussian term exp(−s|nr + r| <sup>2</sup> ) and, at
the end, we take the limit s → 0, separating the converging part, if present. We group
separately the interaction with images of other particles I01 and the interaction of a particle
with its own images I00,
Π = <sup>1</sup>
(I01 + I00), (99)
<sup>k</sup> 0
L <sup>k</sup> 0
where
<sup>2</sup> r <sup>|</sup>
1≤�i<j≤
I01 =
n�∈Z <sup>3</sup>
(100)
1≤i<j≤N
qiqje <sup>−s|nr+rij</sup> <sup>|2</sup>
|rij + nr| <sup>k</sup>
N
i=1
qi <sup>2</sup> <sup>.</sup> (101)
I00 = <sup>1</sup>
2
n∈�Z <sup>3</sup> \0
|nr| <sup>k</sup>
e <sup>−s|n2</sup> r <sup>|</sup>
Comparing the relations (99) - (101) to the cubic case (2) - (4), one notices that these
relations remain unchanged if n is formally substituted by nr, and the constant coefficient
1/L <sup>k</sup> is replaced by 1/L <sup>k</sup> 0 <sup>.</sup> <sup>Therefore, all the results found without the Jacobi transformation</sup>
(14) remain the same with nr instead of n. In particular, Eq. (10) transforms into the
following
1
ψinf =
Γ( <sup>k</sup> 2 <sup>)</sup>
n
Γ( <sup>k</sup> 2 <sup>, α2|r + nr|2)</sup> . (102)
|r + nr| <sup>k</sup>
The Jacobi transformation (14) in a noncubic box has the following form
exp
e <sup>−s(niLi/L0+ri)2</sup>
nr
e <sup>−s|nr+r|2</sup> =
=
i=x,y,z
i=x,y,z
��
x,y,z
ni
exp(2πiniriL0/Li)
−s(Lπi <sup>2</sup> /Ln <sup>2</sup> i0) <sup>2</sup>
−s(Lπi <sup>2</sup> /Ln <sup>2</sup> i
i=x,y,z
π
s(Li/L0) <sup>2</sup>
i=x,y,z
ni
ni
nk
=(π/s) <sup>3/2 �</sup>
i=x,y,z
�1/2 <sup>�</sup>
nk
exp(−π <sup>2</sup> |nk| <sup>2</sup> /s) exp(2πinkr), (103)
with nk = nxL0/Lx + nyL0/Ly + nzL0/Lz the normalised displacement vector in momen
tum space. The last equation is obtained from the original expression (14) by a formal
substitution of the vector n by nk.
In order to calculate ψfin we first modify Eq. (15),
exp[−s|nr + r| <sup>2</sup> - t|nr + r| <sup>2</sup> ] = exp
�−(s + t)|nr + r| <sup>2�</sup>
, (104)
then insert it into the relation (103), and finally separate the summand n = 0,
k
3
2 <sup>exp</sup> t + s <sup>+ 2πinkr</sup>
- −π2n2
dt + <sup>π</sup>
Γ(
Γ( <sup>k</sup> 2
3
2 <sup>dt</sup>
k
t 2 <sup>−1</sup>
t
3
2
ψfin = <sup>π</sup>
3
2
<sup>k</sup> 2 <sup>)</sup>
k2 <sup>−1</sup>
0
- α2
Γ( <sup>k</sup> 2
nk̸=0
(t + s)
n�k̸=0
0
- α2
<sup>k</sup> 2 <sup>)</sup>
(t + s)
= ψfin <sup>n̸=0</sup>
̸
fin <sup>n=0</sup> . (105)
̸
fin <sup>n̸=0</sup> + ψfin <sup>n=0</sup>
The subsequent derivation follows exactly the derivation for a cubic box, with the change of
n by nr and nk for sums in the real and momentum spaces, respectively. The final result
for a 3D system in a noncubic box can be summarised as follows
α <sup>2</sup>
�π2|nk|2
+ C1 (106)
n�k̸=30
nk̸=30
32 α <sup>k−3</sup> cos(2πnkr)
E k−1
2
Γ(k/2)
π
ψ(r) =
ξ =
nr
n�r̸=0
Γ(k/2, α <sup>2</sup> |nr + r| <sup>2</sup> ) +
Γ(k/2)|nr + r| <sup>k</sup>
Γ(k/2, α <sup>2</sup> |nr + r| <sup>2</sup> )
2
+ C1 + C2 (107)
n�k̸=0
nk̸=0
̸ 23 α <sup>k−3</sup>
π
α <sup>2</sup>
�π2|nk|2
nr̸=0
Γ(k/2, α <sup>2</sup> |nr| <sup>2</sup> ) +
Γ(k/2)|nr| <sup>k</sup>
2
Γ(k/2) <sup>E k−1</sup>
̸
Π = <sup>q</sup> - <sup>2</sup>
̸
ψ(rij/L0) + <sup>Nq</sup> - <sup>2</sup>
<sup>q</sup> - <sup>2</sup>
L <sup>k</sup> 0
0
i<j
<sup>Nq</sup> - <sup>2</sup> ξ (108)
2L <sup>k</sup> 0
with the constants C1 and C2 defined in (38) and (39). As it was done in the cubic box, the
potential energy may also be given with the momentum space sum (linear in N). Applying
the definitions, similar to Eqs (51) - (54),
ψ˜(r)=
ξ˜=
n�r̸=0
nr
ρ(nr) + C1 + C2 (110)
R(nr, r) + C1 (109)
nr
nr̸=0
̸
S˜equal(nk)= q−
̸
j
j
exp(2πinkrj/L) (111)
S˜q(nk)=
j
qj exp(2πinkrj/L), (112)
j
the potential energy for a one-component jellium model converts into
Π <sup>jel</sup> = <sup>q</sup> - <sup>2</sup>
n�k̸=0
1
ψ˜(rij/L0) +
2L <sup>k</sup> 0
n�k̸=0
- ξ˜, (113)
κ(nk)|S <sup>˜</sup> equal(nk)| <sup>2</sup> + <sup>Nq</sup> 2L <sup>k</sup> 0 <sup>2</sup>
<sup>q</sup> - <sup>2</sup>
L <sup>k</sup> 0
0
i<j
with a natural extension to the general case
n�k̸=0
Π <sup>gen</sup> = <sup>1</sup>
i ξ˜ . (114)
2L <sup>k</sup> 0
- q2
1
qiqjψ <sup>˜</sup> (rij/L0) +
2L <sup>k</sup> 0
κ(nk)|S <sup>˜</sup> q(nk)| <sup>2</sup> +
L <sup>k</sup> 0
0
i<j
B. 2D case
The generalization of the formulae found in a square 2D geometry to a rectangular simu
lation box comes in a similar manner. It is sufficient to take the resulting expressions for the
two-dimensional problem (63) and (67), and to perform the necessary substitutions n → nr
and n → nk,
n�k̸=0
nk̸=0
+ ψfin <sup>n=0</sup> (115)
nr
Γ(k/2, α <sup>2</sup> |nr + r| <sup>2</sup> ) +
Γ(k/2)|nr + r| <sup>k</sup>
πα <sup>k−2</sup> cos(2πnkr)
ψ(r) =
2
α <sup>2</sup>
�π2|nk|2
E k
Γ(k/2) 2
nr
+ ψfin <sup>n=0</sup>
n�k̸=0
Γ(k/2, α <sup>2</sup> |nr| <sup>2</sup> ) +
Γ(k/2)|nr| <sup>k</sup>
̸
πα <sup>k−2</sup>
ξ =
2
α <sup>2</sup>
�π2|nk|2
α <sup>k</sup>
fin <sup>n=0</sup>
- Γ( <sup>k</sup>
2
Γ( <sup>k</sup>
2
(116)
<sup>k</sup>
2 <sup>+ 1)</sup> <sup>,</sup>
nr̸=0
2
Γ(k/2) <sup>E k</sup>
where ψfin <sup>n=0</sup>
n�r̸=0
fin <sup>n=0</sup> is given by the expressions (71), (74) or (75).
For a long-range interaction within the jellium model, the potential energy becomes
Π <sup>jel</sup> = <sup>q</sup> - <sup>2</sup>
<sup>q</sup> - <sup>2</sup>
L <sup>k</sup> 0
0
ψ(rij/L0) + <sup>Nq</sup> - <sup>2</sup> ξ (117)
i<j 2L <sup>k</sup> 0
with the notation
L0 = (LxLy) <sup>1/2</sup> (118)
nr = nxLx/L0 + nyLy/L0 (119)
nk = nxL0/Lx + nyL0/Ly . (120)
For a multicomponent gas (quasi-neutral in case of a long-range potential), the potential
energy is
Π <sup>gen</sup> = <sup>1</sup>
i ξ . (121)
2L <sup>k</sup> 0
- q2
L <sup>k</sup> 0
qiqjψ(rij/L0) +
0
i<j
Finally, the usual modification to calculate the momentum space sum linearly in N is
given by
Π <sup>jel</sup> = <sup>q</sup> - <sup>2</sup>
n�k̸=0
nk̸=0
1
ψ˜(rij/L0) +
2L <sup>k</sup> 0
<sup>q</sup> - <sup>2</sup>
L <sup>k</sup> 0
0
- ξ˜ (122)
κ(nk)|S <sup>˜</sup> equal(nk)| <sup>2</sup> + <sup>Nq</sup> 2L <sup>k</sup> 0 <sup>2</sup>
Π <sup>gen</sup> = <sup>1</sup>
n�k̸=0
i ξ˜, (123)
2L <sup>k</sup> 0
- q2
κ(nk)|S <sup>˜</sup> q(nk)| <sup>2</sup> +
L <sup>k</sup> 0
0
i<j
i<j
̸
1
qiqjψ <sup>˜</sup> (rij/L0) +
2L <sup>k</sup> 0
with ψ, <sup>˜</sup> ξ, <sup>˜</sup> S <sup>˜</sup> equal, S <sup>˜</sup> q defined by (109) – (112) in their corresponding two-dimensional variants.
VI. EQUATION SUMMARY
In the previous sections, we have derived general expressions of the Ewald sums for
polytropic 1/|r| <sup>k</sup> potentials in three- two- and one-dimensional systems. For integer values
of k, the polytropic potential reduces to a power-law interaction, which comprises realizations
of high physical relevance. Integer power-law potentials include
- k = 1 - Coulomb 1/|r| interaction;
- k = 2 - Calogero-Sutherland 1/|r| <sup>2</sup> interaction;
- k = 3 - dipole-dipole 1/|r| <sup>3</sup> interaction;
- k = 4, 5, 6 - interaction between different Rydberg atoms;
- k = 6, 12 - Van der Waals interaction.
The expressions for the potential energy for both the jellium model and the general case
of a charge-neutral simulation cell are the following
Π <sup>gen</sup> = <sup>1</sup>
i ξ (124)
2L <sup>k</sup> 0
- q2
L <sup>k</sup> 0
qiqjψ(rij/L0) +
0
Π <sup>jel</sup> = <sup>q</sup> - <sup>2</sup>
<sup>q</sup> - <sup>2</sup>
L <sup>k</sup> 0
0
i<j
i<j
ψ(rij/L0) + <sup>Nq</sup> - <sup>2</sup> ξ (125)
2L <sup>k</sup> 0
ψ(r) =
ξ =
n
�n̸=0
(ρ(nr) + κ(nk)) + C1 + C2 (127)
R(nr, r) +
�n̸=0
K(nk, r) + C1 (126)
n
n̸=0
̸
R(n, r) =ρ(n + r) (128)
K(n, r) =κ(n) cos(2πnr) (129)
3
2π 2 α <sup>k−3</sup>
(130)
C1 <sup>3D</sup> =
(k−3)Γ[ <sup>k</sup> 2
<sup>3</sup>
<sup>k</sup> 2 <sup>]</sup> if k̸ = 3
(k−2)Γ[ <sup>k</sup> 2 <sup≯</sup>
<sup>k</sup> 2 <sup>]</sup> <sup>if</sup> <sup>k̸</sup> <sup>= 2</sup>
−4π + 4π ln(2α) if k = 3
2πα <sup>k−2</sup> <sup≯</sup>
C1 <sup>2D</sup> =
(k−2)Γ[ <sup>k</sup> <sup≯</sup> (131)
2π ln(α) if k = 2
(132)
<sup>k</sup> 2 <sup>+ 1)</sup>
α <sup>k</sup>
C2 =−Γ( <sup>k</sup> 2
Γ( <sup>k</sup> 2
L0 =
(133)
n
(LxLyLz) <sup>1/3</sup> in 3D
(LxLy) <sup>1/2</sup> in 2D
nr =(n · L)/L0, with L = (Lx, Ly, Lz) (134)
(135)
nk =(n · L <sup>′</sup> )L0, with L <sup>′</sup> = (1/Lx, 1/Ly, 1/Lz) .
Alternatively, by performing a momentum space sum the above set of equations become
Π <sup>gen</sup> = <sup>1</sup>
n�k̸=0
nk̸=0
i ξ˜ (136)
2L <sup>k</sup> 0
- q2
- ξ˜ (137)
<sup>Nq</sup> 2L <sup>k</sup> 0 <sup>2</sup>
L <sup>k</sup> 0
0
1
qiqjψ <sup>˜</sup> (rij/L0) +
2L <sup>k</sup> 0
κ(nk)|S <sup>˜</sup> q(nk)| <sup>2</sup> +
Π <sup>jel</sup> = <sup>q</sup> - <sup>2</sup>
n�k̸=0
̸
κ(nk)|S <sup>˜</sup> equal(nk)| <sup>2</sup> + <sup>Nq</sup> 2L <sup>k</sup> 0 <sup>2</sup>
<sup>q</sup> - <sup>2</sup>
L <sup>k</sup> 0
0
i<j
i<j
i<j
1
ψ˜(rij/L0) +
2L <sup>k</sup> 0
ψ˜(r)=
ξ˜=
n
n�̸=0
n
R(nr, r) + C1 (138)
ρ(nr) + C1 + C2 (139)
n̸=0
̸
S˜equal= q−
̸
j
j
exp(2πinkrj/L) (140)
S˜q=
j
qj exp(2πinkrj/L) . (141)
j
In accordance with considerations discussed in preceding sections, the simulation cell has
i
thatto fulfill the charge neutrality condition (in the particular case of a cubic simulation <sup>�N</sup>
i=1 <sup>qi</sup> <sup>= 0) for long-range potentials.</sup> <sup>Also, notice</sup>
that in the particular case of a cubic simulation cell, nr = nk = n.
Explicit expressions of the coefficients ρ(n) and κ(n) for the most relevant interactions
are summarised for 3D and 2D systems in Table 1 and Table 2, respectively.
TABLE I. Table 1. Coefficients ρ(n) and κ(n) taken from Eqs (37) and (18) for 3D geometry. LR
and SR stand for long range and short range, respectively.
ρ(n) κ(n)
1 α <sup>2</sup>
πn <sup>2</sup> <sup>e−</sup> <sup>π2n2</sup>
LR 1
|r|
erfc(α|n|)
<sup>α2n2</sup> π
n <sup>2</sup> α
|n| <sup>erfc</sup> <sup>π|n|</sup>
|n|
LR 1 e <sup>−α2n2</sup>
|r| <sup>2</sup> n <sup>2</sup>
1 α <sup>2</sup> n <sup>2</sup> +1
SR
|r| <sup>4</sup> n <sup>4</sup>
α <sup>2</sup>
α
- π <sup>2</sup> |n|erfc <sup>π|n|</sup>
2n2
α
α <sup>2</sup> <sup>E1(</sup> <sup>π</sup> α <sup>2n2</sup> <sup>2</sup>
<sup>2n2</sup>
erfc <sup>π|n|</sup>
<sup>/</sup> α <sup>23|n|3</sup> α
α <sup>2</sup> <sup>) +</sup> <sup>2π7/</sup> α <sup>23|n|3</sup>
<sup>2n2</sup>
<sup>4e−α2n2</sup> 2 4πα3 <sup>2</sup>
3 <sup>√</sup> π|n| <sup>5 (</sup> <sup>3α|n|</sup> + (α|n|) <sup>3</sup> )
α <sup>2n22</sup>
- <sup>π</sup> α <sup>2n2</sup> <sup>2</sup>
α <sup>2n2</sup> <sup>2</sup> <sup>)</sup>
�e <sup>−</sup> <sup>π</sup> α <sup>2n22</sup>
e <sup>−</sup> <sup>π2n2</sup>
α <sup>2</sup>
α
SR 1
|r| <sup>5</sup>
erfc(α|n|)
nn <sup>24</sup> +1 e <sup>−α2n2</sup> 2π α <sup>2</sup>
�√παe− π2n2
α|n|) + <sup>4e−α2n2</sup>
|n| <sup>5</sup> 3 <sup>√</sup> π|n| <sup>5</sup>
α <sup>2n22</sup> (1 − <sup>2π</sup> α <sup>22n2</sup>
2 <sup>α</sup> n <sup>42</sup> <sup>+</sup> <sup>α</sup> n <sup>42</sup> <sup>+</sup> n <sup>1</sup>
SR 1 ( 2 <sup>α</sup> n <sup>42</sup>
|r| <sup>6</sup>
π <sup>3/2</sup> α <sup>3</sup>
n <sup>16 )e−α2n2</sup> 3
3
α
32 <sup>√</sup> π( <sup>πn</sup> α <sup>)</sup>
4
m=0
32 <sup>√</sup>
(−2) <sup>m+1</sup> (7 − 2m)!!
e <sup>−α2n2</sup>
n <sup>12</sup>
e <sup>−α2n2</sup>
m=0
α <sup>2</sup>
945
�2m e− <sup>π2n2</sup>
α
- πn
α <sup>2</sup>
SR 1
|r| <sup>12</sup>
5
m=0
(αn) <sup>2m</sup>
m!
9
945
α
α <sup>)</sup>
945 erfc <sup>πn</sup> α
VII. PRACTICAL APPLICATION AND OPTIMISATIONS IN THE EWALD
TECHNIQUE
A. General notes
The basic idea of the Ewald method is to calculate slowly decaying sums in a rapid manner
by means of the Fourier transform of the slowly converging part. Although conceptually it
provides an exact result, the number of terms which has to be summed in order to reach
the needed convergence is a priori unknown. Once we choose the interaction potential, this
fixes the exact form of the sums to calculate, and the practical remaining question is the
proper choice of the free parameter α and the numbers of terms to be calculated in both
sums: Nr and Nk in coordinate and momentum spaces, respectively. The computer time T
is a function of only Nr and Nk, T = trNr + tkNk, with the constants tr and tk depending
on the complexity of the coefficients in the sums. One can notice that tk is usually much
less then tr, since in the Jacobi-transformed sum we only calculate cosine functions, which
is generally far less time-consuming than the complicated functions appearing in R. It is
clear that the parameter α affects only the resulting error in the energy. In fact, the value
of α being very small or very large eliminates errors in one of the sums, but amplifies them
TABLE II. Table 2. The coefficients ρ(n) and κ(n) taken from Eqs (37) and (77) for 2D geometry.
LR and SR stand for long range and short range, respectively.
ρ(n) κ(n)
α
α <sup>2</sup>
α
- π <sup>2</sup> |n|erfc <sup>π|n|</sup>
2n2
LR 1
|r|
erfc(α|n|)
|n|
α <sup>2</sup> <sup>E1(</sup> <sup>π</sup> α <sup>2n2</sup> <sup>2</sup>
<sup>2n2</sup>
SR 1 2α
√πn2 e <sup>−α2n2</sup> + <sup>erfc(α|n|)</sup>
|r| <sup>3</sup> |n| <sup>3</sup>
1
α
|n| <sup>erfc</sup> <sup>π|n|</sup>
�e <sup>−</sup> <sup>π</sup> α <sup>2n22</sup>
<sup>3</sup>
α
<sup>/</sup> α <sup>23|n|3</sup> erfc <sup>π|</sup> α <sup>n|</sup>
α <sup>2</sup> <sup>) +</sup> <sup>2π7/</sup> α <sup>23|n|3</sup>
<sup>2n2</sup>
SR 1 α <sup>2</sup> n <sup>2</sup> +1
|r| <sup>4</sup> n <sup>4</sup>
4 α <sup>2</sup>
<sup>α|n|)</sup>
|n| <sup>3</sup>
�√παe− π2n2
nn <sup>24</sup> +1 e <sup>−α2n2</sup> πα <sup>2</sup>
α <sup>2n2</sup> <sup>2</sup> <sup>)</sup>
e <sup>−</sup> <sup>π2n2</sup>
α <sup>2</sup>
α <sup>2n22</sup>
- <sup>π</sup> α <sup>2n2</sup> <sup>2</sup>
α <sup>2n2</sup> <sup>2</sup> <sup>) +</sup> <sup>π</sup> α <sup>4n4</sup> <sup>4</sup>
α <sup>4n4</sup> <sup>4</sup> <sup>E1(</sup> <sup>π</sup> α <sup>2n2</sup> <sup>2</sup>
8 <sup>√</sup> πα <sup>3</sup>
<sup>4e−α2n2</sup> 2 9
3 <sup>√</sup> π|n| <sup>5 (</sup> <sup>3α|n|</sup> + (α|n|) <sup>3</sup> )
α <sup>2n22</sup> (1 − <sup>2π</sup> α <sup>22n2</sup>
α
SR 1
|r| <sup>5</sup>
erfc(α|n|)
α|n|) + <sup>4e−α2n2</sup>
|n| <sup>5</sup> 3 <sup>√</sup> π|n| <sup>5</sup>
<sup>2n2</sup>
α <sup>2</sup> (1 − <sup>π</sup> α <sup>2n2</sup> <sup>2</sup>
SR 1 ( 2 <sup>α</sup> n <sup>42</sup>
|r| <sup>6</sup>
πα <sup>4</sup>
n <sup>16</sup> <sup>)e−α2n2</sup> 4
2 <sup>α</sup> n <sup>42</sup> <sup>+</sup> <sup>α</sup> n <sup>42</sup> <sup>+</sup> n <sup>1</sup>
α <sup>2n2</sup> <sup>2</sup> <sup>)</sup>
4
e <sup>−</sup> <sup>π2n2</sup>
α <sup>2</sup>
α
120
- <sup>( πn</sup>
α <sup>)</sup>
α <sup>)</sup>
120 E1
4
m=0
m=0
(−1) <sup>m</sup> (4 − m)!
e <sup>−α2n2</sup>
n <sup>12</sup>
α <sup>2</sup>
120
�2m e− <sup>π2n2</sup>
α <sup>2</sup>
SR 1
|r| <sup>12</sup>
5
m=0
(αn) <sup>2m</sup>
m!
120
10
α
- πn
π <sup>2</sup> n <sup>2</sup>
α <sup>2</sup>
in the other, so there is an “optimal” point for α, yielding a minimum error in the total
energy.
In the following, we discuss a way for error (δE) minimization assuming the calculation
time T fixed. From our point of view, a useful approach for practical implementation is
represented by the following scheme
- We determine a time law T = trNr + tkNk in a preliminary calculation and fix the
values of tr and tk.
- We take a set of configurations, corresponding to the equilibrated state using an initial
Ewald summation. Then, we calculate the exact energies Eex (as a converged result
of the Ewald summation) and the energies E(α, Nr, Nk) biased by a choice of Nr and
Nk. For each pair (Nr, Nk), we find an optimal value of α = αopt(Nr, Nk).
- We choose the goal accuracy δEacc (normally, well below the statistical error). We
plot the error as a function of the computer time spent and choose the less time
consumption case among the points that lie below δEacc, therefore obtaining all the
parameters required: α, Nr and Nk. From now on, these parameters are used in actual
simulations.
B. Example of optimisation
Let us illustrate the scheme proposed in the preceding subsection taking as an example
the problem of two-dimensional zero-temperature Bose gas of particles, interacting through
the 1/|r| <sup>3</sup> potential. The model corresponds to the dipole-dipole interaction with all dipole
moments aligned perpendicularly to the plane of motion. To describe the ground-state
properties of the system we use the variational Monte Carlo (VMC) method and a Jastrow
wave function with a two-body correlation factor which is solution of the two-body scattering
problem [42].
The optimisation is done by averaging over Nconf = 50 uncorrelated VMC configurations,
sampled according to the chosen probability distribution. We define the error δE(α) as
a sum over Nconf configurations of the difference of the Ewald energy E(iconf, α, Nr, Nk),
calculated for a given set of parameters (α, Nr, Nk) and the converged energy Eex(iconf ) =
limNk→∞ limNr→∞ E(iconf, α, Nr, Nk). The dependence of the computer time T, needed for
FIG. 1. Dependence of the calculation time T on the number of terms Nr in the coordinate space
for fixed numbers of terms in the momentum space Nk = 5, 9, 25, 45.
the evaluation of Ewald sums, on the parameter set is shown in Figs 1 and 2. In Fig. 1,
we show the dependence of T on the number of terms Nr in real space for different fixed
numbers of terms Nk in the momentum space. The computation time is proportional to the
number of terms and the resulting dependence is linear in Nr. A fixed number of terms Nk
requires a certain amount of calculations which results in a constant shift. Similarly, keeping
Nr fixed and varying Nk produces a linear dependence in Nk with a constant shift which
depends on Nr, as shown in Fig. 2.
As one sees in Figs.1 and 2, the time dependence is linear both on Nk and Nr, although
the point corresponding to (0,0) in (Nr, Nk) does not necessarily gives T = 0, since the
reported time also contains some initializing calculations. The total error in the potential,
as it is defined above, is given by
δE(α) =
Nconf
�iconf =1
-
. (142)
iconf =1
(E(α, iconf ) − Eex(iconf )) <sup>2</sup>
Nconf
According to our previous considerations, in the case of very small or very large values of
FIG. 2. Dependence of the calculation time T on the number of terms Nk in the momentum space
for fixed numbers of terms in the coordinate space Nr = 1, 5, 9, 21.
α the error coming from one of two sums, that is in the real or momentum space, grows
and dominates over the error coming from the other sum; for a certain “optimal” range
of α these two errors are of the same order. Notice that for each particular configuration,
and each pair (Nr, Nk), it is possible to find αopt(iconf ), such that E(αopt(iconf ), iconf ) −
Eex(iconf ) = 0. Instead, our task is to obtain a “universal” parameter α0, minimizing the
total error (142). The mean over the configuration set of the biased energies E <sup>¯</sup> (α0, iconf)
is used as an estimation for the mean of the exact energies E <sup>¯</sup> ex, introducing an inevitable
systematic error. As it appears in typical calculations, this error is at least one order of
magnitude smaller than the statistical error (142) given by the minimization of δE(α).
A second step is the study of the dependence of the error and time on different pairs
(Nr, Nk). The calculation time can be split as the sum of times for summing up in real and
momentum spaces,
T = Nrtr + Nktk (143)
with Nr, Nk being the numbers of terms in each sum. Every one of these sums converges
N
r
N
r
N
r
-1
-2
-3
-4
-5
-6
-7
-8
E
10
10
10
10
10
10
10
10
N
r
N
r
N
r
=1, N
k
=5, N
k
=9, N
k
=1, 5, 9, 13, 21
=1, 5, 9, 13, 21
=1, 5, 9, 13, 21
1.4 1.5 1.6 1/2 1.7
1/2
T
FIG. 3. Resulting error as a function of the computer time for different parameter sets.
when Nr, Nk →∞ to a certain value, depending on α, while the sum of the limiting values
is a constant. We can take into account the errors, corresponding to each of the sums
separately. For α → 0 the error for the real space term is zero and the other one tends to
infinity (and vice versa as α →∞). The minimum total error should therefore correspond
to the value of α, satisfying the relation d(δEr + δEk)/ dα = 0.
Focusing on the 2D system of our example, we note that the long-range expansions of
the terms in (37) and (77) are similar, in a sense that the leading terms in both expressions
are Gaussians,
Γ(k/2, α <sup>2</sup> n <sup>2</sup> )
Γ(k/2)n <sup>k</sup> = exp(−α <sup>2</sup> n <sup>2</sup> )
(144)
��
n <sup>2</sup> <sup>+ O</sup>
�Cr
n <sup>2</sup> <sup>+ O</sup>
��Ck
- |n1| <sup>3</sup>
�− <sup>π</sup> α <sup>2n2</sup> <sup>2</sup>
�|n1| <sup>3</sup>
. (145)
��
π
23 α <sup>k−3</sup>
2
Γ(k/2) <sup>E k−1</sup>
α <sup>2</sup>
�π2n2
= exp
2
The power-law terms in n and the constants Cr, Ck may be neglected since the leading
behaviour is driven by the Gaussian. The cut-off errors due to finite numbers of elements in
the sums can be evaluated by ignoring the discrete structure of the images and approximating
the sums by uniform integrals,
2πk dk
K
- ∞
K
δE =
R
- ∞
exp
α <sup>2</sup>
R
exp(−α <sup>2</sup> r <sup>2</sup> )2πr dr +
�− <sup>π</sup> α <sup>2k2</sup> <sup>2</sup>
= π
+ <sup>α2 exp (−πNk/α2)</sup>
α <sup>2</sup> π <sup>2</sup>
�exp(−α2Nr/π)
π <sup>2</sup>
(146)
Nk/π the approximate cut-off lengths in real and momentum
optimal� value for α can be obtained by solving the equation
with R ≃
Nr/π and K ≃
respectively.� The
spaces, respectively. The optimal value for α can be obtained by solving the equation
dδEr/ dα = − dδEr/ dα. The first-order approximation of this equation is found by taking
logarithms of both sides and omitting constants and terms, depending on α logarithmically,
that is
(147)
Ak/α <sup>2</sup> - Arα <sup>2</sup> = 0
with Ak = πNk and Ar = Nr/π, which yields
α = (Ak/Ar) <sup>1/4</sup> =
Then, at lowest order one finds (146),
�π <sup>2</sup> Nk/Nr�1/4 . (148)
δE ∼ exp(−α <sup>2</sup> Nr/π) = exp(−�NkNr) . (149)
Since the calculation time is linear with the numbers of elements Nr and Nk, we may conclude
T and vice versa, with
that with Nk fixed and comparatively large Nr, ln(δE) ∼ <sup>√</sup> Nr ∼
√
√
T . This power law may be easily checked in our
Nr fixed and large Nk, ln(δE) ∼ <sup>√</sup> Nk ∼
√
calculations, as it is shown in Fig. (3). Note that for the obtained value of α the errors of the
real- and momentum-space cutoffs are of the same order of magnitude, that is δEr ≈ δEk,
which may serve as a rough criterium to optimise the parameter α.
real- and momentum-space cutoffs are of the same order of magnitude, that is δEr ≈ δEk,
A more advanced procedure for optimisation of the parameters, proposed by Perram et
al. [8], yields an asymptotic scaling N <sup>3/2</sup>, with N the number of particles. It is based on the
form of Ewald summation with the momentum space sum, linear in N (136). Suppose the
values of the calculation time tr, tk to perform unit computations in both sums are known
and the target error level exp(−p) is fixed. Then, the total execution time in the real and
momentum spaces is
T = Tr + Tk = N <sup>2</sup> πR <sup>2</sup> tr + NπK <sup>2</sup> tk (150)
with p = α <sup>2</sup> R <sup>2</sup> = π <sup>2</sup> K <sup>2</sup> /α <sup>2</sup> . Expressing K as K = p/(πR) we can see that the minimum of
the total time T corresponds to
N <sup>−1/4</sup> (151)
�1/4
N <sup>1/4</sup> (152)
�−1/4
Ropt =
Kopt =
π
- p
π
- p
tr
�1/2 <sup>�</sup> tk
tr
�1/2 <sup>�</sup> tk
αopt = <sup>√</sup> π
tr
�tk
N <sup>1/4</sup> . (153)
�−1/4
The computation time is equally divided between the real and momentum space parts (this
was also stated in our simple optimisation scheme), with a scaling of the whole summation
given by
T = 2N <sup>2</sup> πR <sup>2</sup> tr = 2p <sup>√</sup> trtkN <sup>3/2</sup> (154)
Notice that the values of the free parameters change very slowly when the simulation cell is
enlarged, and in particular α is not affected by the choice of the precision. Similar formulae
for the optimised parameters in three-dimensional systems, with a discussion of different
techniques to improve performance of the Ewald summation, are given by Fincham [43]. A
more precise and detailed analytic study of the cut-off errors with verifications of the analytic
results in actual calculations can be found in the work of Kolafa and Perram [44]. An opti
mised method for treating the truncation error in Ewald sums with generic potentials was
proposed by Natoli and Ceperley [45]. While the needed CPU time scales as O(N ln N) <sup>3/2</sup>,
it was shown that in the example of the Coulomb potential the method resulted in greatly
improved accuracy compared to that of standard Ewald technique for a comparable com
putational effort. This method is based on an expansion of the real space function in an
arbitrary radial basis with a parametric set of numbers in place of the k-dependent pref
actors of exp(2πinr). The subsequent minimization of χ <sup>2</sup> with respect to the whole set of
parameters yields a final optimal solution, that is the real space expansion coefficients and
the k-space factors. This technique was also applied to derive the optimised summation
formulae for the two-dimensional Coulomb system [46].
In general, the unit computation time in momentum space is 2–4 times faster than the
one in real space. Taking the following reasonable assumptions p = 4π, tk/tr = 3, we find
Ropt ≈ 2.6/N <sup>1/4</sup> . We want R to be below 0.5, since in this case the summation in the real
space reduces to the accumulation of the single component n = 0. This condition Ropt = 0.5,
with our previous assumptions, corresponds to
Nopt = 770, Kopt = 8.0, αopt = 7.1 (155)
In smaller systems, the other components of the real sum, starting from |n| = 1, should be
considered.
It is worth pointing out that if the interaction is very strong at short distances (as for the
Lennard-Jones potential), then in principle the real-space cut-off R can be chosen below the
“hard core radius” with a large enough value of α. This leads to the possibility of dropping
completely the real-space part of the total sum and treat the k-space only. This can be
advantageous in different aspects, especially with the current progress in the development
of efficient FFT-based methods. Nonetheless, we are not aware of any present application
of a similar technique.
VIII. CONCLUSIONS
In the present work, we have applied the Ewald summation method to 1/|r| <sup>k</sup> polytropic
potentials in three-, two- and one-dimensional geometries in a simulation box with periodic
boundary conditions. We have found the explicit functional forms for all the components
of the sums in both real and momentum spaces, with special attention being paid to the
cases of long-range interactions, that is conditionally convergent or divergent potentials
(corresponding to k < D, with D standing for the dimensionality), “marginal” interactions
(k = D), and short-range interactions (with k - D). For the latter case of short-range
interaction potentials, where in principle a straightforward summation of the initial sum
(1) is possible, the Ewald method is shown to be useful, as it yields the faster (Gaussian)
convergence rate. A condition of charge neutrality of the simulation cell is stated to be
necessary for conditionally convergent and divergent potentials; a homogeneous positive
charge background (“jellium” model) is introduced as the most relevant and frequently used
kind of neutralization. The conditionality of the convergence for a charge-neutral system,
governed by the Coulomb interaction, is discussed with a justification of the use of a specific
periodicity-preserving convergence factor. The derivation technique, presented in our work,
is consistent with the arguments of de Leeuw et al. [2].
The results are first presented for the case of a 3D system in a cubic simulation box in order
to explain the general mathematical procedure, which for the specific case of the Coulomb
potential recovers well-known results [47]. Later on, the same mathematical technique is
applied to 2D and 1D geometries. For the one-dimensional case the initial sum for the
potential energy is explicitly evaluated (96), nonetheless the Ewald summation is developed
for this case too and may be used as a mathematical equality. The special representations
of the reciprocal space sums, linear in the number of particles N and hence more efficient in
actual modeling, are presented for 3D and 2D systems. The explicit expressions for the terms
of the Ewald sums are given in a tabular form for physically relevant potentials with small
integer power indexes k, as dipole-dipole interaction potential, Lennard-Jones potential and
others in both three- and two-dimensional geometries (see Tables 1 and 2).
When the simulation box cannot be chosen cubic, for example in a modeling of a three
dimensional hcp crystal structure, the Ewald method can also be applicable after a certain
modifications. Formally, it consists in the choice of an appropriate rectangular simulation
box and a substitution of the vector n by nr = (nxLx + nyLy + nzLz)/L0 and nk =
(nx/Lx + ny/Ly + nz/Lz)L0 in the real and momentum space sums, respectively [see (102)
and (103)].
The optimisation of the involved parameters, that is cut-off numbers in both sums and
the integration parameter α, is a necessary operation in order to improve the convergence
rates and avoid excessive calculations. The main idea of the optimisation, proposed in the
present work, is to perform a benchmark calculation, minimizing the variance of the result.
A particular example of the application of the technique is presented for a calculation of the
potential energy of a two-dimensional gas of dipoles, aligned perpendicular to the plane of
motion. This practical optimisation technique is thought to be efficient for stationary and
nearly uniform systems that appear, for instance, in Monte Carlo simulations. In spite of
being very simple, it allows to find rather quickly adequate parameter ranges. The analytical
estimations of the parameters are given as well and are proven to be consistent with the
results, obtained in our method. A more sophisticated method to optimise the calculation
parameters, taking advantage of the O(N) representation of the Fourier transform sum, is
also presented with explicit estimations of the parameters for a typical system simulated by
Quantum Monte Carlo methods.
ACKNOWLEDGEMENTS
We acknowledge partial financial support by DGI (Spain) under Grant No. FIS2008
04403 and Generalitat de Catalunya under Grant No. 2009-SGR1003.
APPENDIX
We prove that the sums S−+ and S++ (46–47) vanish on average, allowing to calculate
the potential energy over the negatively charged particles’ positions only.
- First, let us show that the integral of ψ over the cell is zero. Since the distances are
in the units of L, consider the cubic cell Ω= (x, y, z) ∈ [−1/2, 1/2] <sup>3</sup>, that yields
ψ(r) dr = J1 + J2 + C1 (156)
Ω
where
J1=
J2=
n
n�̸=0
Ω
dr
dr
n
R(n, r) (157)
K(n, r) . (158)
Ω
n̸=0
It can be easily seen, that the second integral J2 is zero,
κ(n, r)
Ω
J2=
=
n�̸=0
n�̸=0
n�̸=0
n�̸=0
= 0 (159)
cos(2πnr) dr
κ(n) <sup>sin(2π(nx + nz + nz))</sup>
(2π) <sup>3</sup> nxnynz
As far as the integral J1 is concerned, we can notice that the regions Ω <sup>′</sup> (n) = r + n,
where r ∈ Ω, n ∈ Z <sup>3</sup> are the same cubic unit cells, displaced by an integer vector,
thus covering all the coordinate space with only zero-measure intersections. It means
that the summation of the integrals in (157) over the cell Ωcan be substituted by the
integration over the whole coordinate space,
Γ( <sup>k</sup> 2
Ω <sup>′</sup> (n)
�R <sup>3</sup> \0
J1=
n
R(n, r) dr =
n
<sup>k</sup> 2 <sup>, α2|r + n|2)</sup>
Γ( <sup>k</sup> 2 <sup>)|r + n|k</sup>
<sup>k</sup> 2 <sup>)|r + n|k</sup>
n
Ω <sup>′</sup> (n)
(k − 3)Γ
Γ( <sup>k</sup> 2
Γ( <sup>k</sup> 2 <sup>, ρ2)</sup>
Γ( <sup>k</sup>
2 <sup>)ρk</sup>
<sup>, ρ2)</sup> 2π 23 α <sup>k−3</sup>
<sup>k</sup>
2 <sup>)ρk</sup> <sup>dρ = −</sup> 2
(k − 3)Γ
= α <sup>k−3</sup>
(160)
2
- k - = −C1,
and thus the whole integral (156) is equal to zero.
- Consider two species of the particles: negative charges qi on positions ri and a pos
itively charged and uniformly distributed background with a total charge q+N+ =
−qiNi, ensuring the neutrality of the cell. Let us demonstrate that S−+ is equal to
zero, when the number of background charges tends to infinity. In this case the sum
(46) for S−+ may be rewritten as an integral over the background charges’ positions
S−+ =
i
qi
Ω
i
qi
Ωi
ψ(r)σ dr, (161)
ψ(rp − ri)σ drp =
where we did the change of variables r = rp - ri. The regions Ωand Ωi refer to
the original simulation cell and the same cell, moved by the vector ri, and σ stands
for the background charge density σ = −qiNi/V (Ω). It is clear that every vector
r = (x, y, z) ∈ Ωi can be displaced into the cell Ωby the corresponding shift r˜ =
(˜x, ˜y, ˜z) = (x − aL, y − bL, z − cL) ∈ Ωwith integers a, b, c. The Jacobian J of the
change of variables r → r˜ is obviously 1. On the other hand, due to the periodicity
of ψ,
ψ(r) = ψ(˜r), (162)
and r˜ runs over the whole region Ωdue to the conservation of the volume with J = 1.
Finally, Eq. (161) can be written as
S−+ =
i
qi
Ω
ψ(˜r)σ d˜r = 0 . (163)
In the similar manner, the interaction between the charges of the background S++ in
the limit N+ →∞ is given by the double integral
S++ = <sup>1</sup>
2
Ω
dr1
Ω
(164)
dr2ψ(r1 − r2)σ <sup>2</sup> = 0,
since
�Ω <sup>ψ(r1 −</sup> <sup>r2) dr2</sup> <sup>= 0,</sup> <sup>following</sup> <sup>the</sup> <sup>same</sup> <sup>arguments</sup> <sup>as</sup> <sup>for</sup> <sup>the</sup> <sup>case</sup> <sup>of</sup> <sup>S−+.</sup>
[1] P. P. Ewald, Annalen der Physik 369, 253 (1921).
[2] S. W. de Leeuw, J. W. Perram, and E. R. Smith, Proc. R. Soc. Lon. A 373, 27 (1980).
[3] E. R. Smith, J. Stat. Phys. 77, 449 (1994).
[4] M. Sangester and M. Dixon, Adv. Phys. 25, 247 (1976).
[5] F. V. der Lage and H. Bethe, Phys. Rev. 71, 612 (1947).
[6] S. Brush, H. Sahlin, and E. Teller, J. Chem. Phys. 45, 2101 (1966).
[7] J. Hansen, Phys. Rev. A 8, 3096 (1973).
[8] J. Perram, H. Petersen, and S. D. Leeuw, Mol. Phys. 65, 875 (1988).
[9] D. Wolf, P. Keblinski, S. R. Phillpot, and J. Eggebrecht, J. Chem. Phys. 110, 8254 (1999).
[10] H. D. E. Eleftherios E. Gdoutos, Ravi Agrawal, Int. J. Numer. Meth. Engng 84, 1541 (2010).
[11] R. Hockney and J. W. Eastwood, Computer Simulation Using Particles (Institute of Physics,
1988).
[12] T. Darden, D. York, and L. Pederson, J. Chem. Phys. 98, 10089 (1993).
[13] U. Essmann et al., J. Chem. Phys. 103, 8577 (1995).
[14] V. Ballenegger, J. J. Cerda, O. Lenz, Ch. Holm, J. Stat. Phys. 128, 034109 (2008).
[15] J. Keiner, S. Kunis, and D. Potts, NFFT 3.0, C library,
[http://www.tu-chemnitz.de/∼potts/nfft.](http://www.tu-chemnitz.de/~potts/nfft)
[16] A. F. Ware, SIAM 40, 838 (1998).
[17] G. Steidl, Adv. Comput. Math. 9, 337 (1998).
[18] L. Greengard and V. Rokhlin, J. Comput. Phys. 73, 325 (1987).
[19] L. Greengard and V. Rokhlin, Acta Numerica 6, 229 (1997).
[20] J. Beckers, C. Lowe, S. D. Leeuw, Mol. Simul. 6, 369 (1998).
[21] C. Sagui, T. Darden, J. Chem. Phys. 114, 15 (2001).
[22] H. G. Petersen, J. Chem. Phys. 103, 3668 (1995).
[23] E. L. Pollock and J. Glosli, Comp. Phys. Commun. 95, 93 (1996).
[24] A. Y. Toukmaji and J. A. Board Jr., Comp. Phys. Commun. 95, 73 (1996).
[25] X. Wu and B. R. Brooks, J. Chem. Phys. 122, 044107 (2005).
[26] R. E. Johnson and S. Ranganathan, Phys. Rev. E 75, 056706 (2007).
[27] D. E. Parry, Surf. Sci. 49, 433 (1975).
[28] E. Spohr, J. Chem. Phys. 107, 6342 (1997).
[29] In-Chul Yeh and Max L. Berkowitz, J. Chem. Phys. 111, 3155 (2005).
[30] Q. L. Wen Yang, Xigao Jin, J. Chem. Theory Comput. 6, 1618 (2006).
[31] X. W. Christophe Mora, Olivier Parcollet, Phys. Rev. B 76, 064511 (2007).
[32] A. M. G. P. Xin Lu, Chang-Qin Wu, Phys. Rev. B 78, 024108 (2008).
[33] M. Mazars, Mol. Phys. 105, 1909 (2007).
[34] M. Mazars, J. Chem. Phys. 126, 056101 (2007).
[35] M. R. Shirts, D. L. Mobley, J. D. Chodera, V. S. Pande, J. Phys. Chem. B 111, 13052 (2007).
[36] L. M. Fraser and W. M. C. Foulkes, Phys. Rev. B 53, 1814 (1996).
[37] G. Makov and M. Payne, Phys. Rev. B 51, 4014 (1995).
[38] C. G. J. Jacobi, J. reine angew. Math. 3, 403 (1921).
[39] E. T. Whittaker and G. N. Watson, A Course in Modern Analysis (Cambridge University
Press, Cambridge, 4th edition, 1999).
[40] B. Sutherland, Phys. Rev. A 4, 2019 (1971).
[41] G. E. Astrakharchik, D. M. Gangardt, Y. E. Lozovik, and I. A. Sorokin, Phys. Rev. E 74,
021105 (2006).
[42] W. L. McMillan, Phys. Rev. 138, A442 (1965).
[43] D. Fincham, Mol. Simul. 13, 1 (1994).
[44] J. Kolafa and J. Perram, Mol. Simul. 9, 351 (1992).
[45] V. Natoli and D. M. Ceperley, J. Comput. Phys. 117, 171 (1995).
[46] M. Holzmann and B. Bernu, J. Comput. Phys. 206, 111 (2005).
[47] M. P. Allen and D. J. Tildesley, Computer simulation of liquids (Oxford University Press,
1989).
섹션 본문
섹션 본문이 없습니다.
참고문헌
참고문헌 정보가 없습니다.