• Keine Ergebnisse gefunden

NFFT based Ewald summation for electrostatic systems with charges and dipoles

N/A
N/A
Protected

Academic year: 2022

Aktie "NFFT based Ewald summation for electrostatic systems with charges and dipoles"

Copied!
33
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

NFFT based Ewald summation for electrostatic systems with charges and

dipoles

Michael Hofmann

Chemnitz University of Technology, Faculty of Computer Science, 09107 Chemnitz, Germany

Franziska Nestler

, Michael Pippig

Chemnitz University of Technology, Faculty of Mathematics, 09107 Chemnitz, Germany

The efficient computation of Coulomb interactions in charged particle systems is of great importance in the field of molecular dynamics simulations. It is widely known that an approximation can be realized based on the Ewald summation approach and the fast Fourier transform (FFT). In the present paper we consider particle systems containing a mixture ofN point charges as well as point dipoles. New cutoff errors in the Ewald summation formulas concerning charge-dipole interactions are derived and, moreover, validated by numerical examples. Furthermore, we present for the first time anO(NlogN) particle mesh algorithm for computing mixed charge-dipole interactions based on the FFT for nonequispaced data (NFFT). We present first numerical results for charge-dipole systems, showing that the introduced method can be tuned to a high precision and verifying the O(NlogN) scaling. In order to calculate the interactions with dipoles efficiently, two new variants of the NFFT, namely the Hessian NFFT as well as the adjoint gradient NFFT, are derived and implemented. In the context of NFFT, these new variants are of great importance on their own. The presented particle mesh method is an extension of the particle-particle NFFT (P2NFFT) framework.

Therefore, all the formerly derived P2NFFT features, which cover for instance the treatment of arbitrary combinations of periodic and non-periodic boundary conditions, the handling of triclinic box shapes and a massively parallel implementation, are now also supported for mixed charge-dipole as well as pure dipole systems. The algorithms are publicly available as a part of the ScaFaCoS library.

Key words and phrases: Ewald summation, nonequispaced fast Fourier transform, par- ticle methods, charged particle systems, dipole-dipole interactions, charge-dipole in- teractions, periodic boundary conditions, NFFT, P2NFFT, P3M, ScaFaCoS

2000 AMS Mathematics Subject Classification : 65T

1 Introduction

In this paper we consider electrostatic systems consisting of point charges as well as point dipoles and show how the interactions between these particles can be computed efficiently via the non-

michael.hofmann@informatik.tu-chemnitz.de

franziska.nestler@mathematik.tu-chemnitz.de

michael.pippig.tuc@gmail.com

(2)

equispaced FFT (NFFT). We present a particle mesh method capable of calculating electrostatic interactions in systems containing a mixture of charges and dipoles with an arithmetic complexity of O(NlogN), where N denotes the number of present particles. In the following we introduce the considered electrostatic quantities.

Given three linearly independent vectors `1,`2,`3 ∈R3, the particles are assumed to be dis- tributed in a box spanned by these three vectors. If periodic boundary conditions are applied in all three dimensions, the underlying space is the three-dimensional torus

T :=`1`2`3T:={λ1`1+λ2`2+λ3`3|λ1, λ2, λ3∈T}, whereT:=R/Z'[−1/2,1/2).

For Nc chargesqj ∈ Rat positions xj ∈ T, j = 1, . . . , Nc, as well as Nd dipoles µj ∈ R3 at positionsxj∈ T,j=Nc+ 1, . . . , Nc+Nd, the overall electrostatic energy can be written as

U = 1 2

N

X

j=1

ξjφ(j) (1.1)

with the potentials

φ(j) = X

n∈Z3

0 N

X

i=1

ξi

kxij+Lnk (1.2)

= X

n∈Z3 0 Nc

X

i=1

qi

kxij+Lnk − X

n∈Z3

0 N

X

i=Nc+1

µ>i (xij+Ln) kxij+Lnk3 .

Thereby, we define the difference vectorsxij :=xixj, the Euclidean norm is denoted by k · k andN :=Nc+Ndrepresents the total number of particles. Furthermore, the prime indicates that forn=0all terms withi=j are omitted and the regular matrixL is given byL:= [`1,`2,`3].

The operatorsξj are defined via ξj:=

(qj :j∈ {1, . . . , Nc}, (µ>jxj) :j∈ {Nc+ 1, . . . , N}.

The expressions for the energy (1.1) and the potentials (1.2) are the same as for charge-charge systems [14, 28], where the chargesqj have simply been replaced by the operators ξj. Note that the infinite sum in (1.2) is conditionally convergent, provided that we have charge neutrality, i.e.,

Nc

X

j=1

qj= 0. (1.3)

Thus, the value of the energy (1.1) strongly depends on the underlying summation order. Gener- ally, a spherical order of summation is applied, see [28] for more details.

We are also interested in the computation of the fields E(j), energies U(j) and forcesF(j) of the single particles, which are given by

E(j) :=−∇xjφ(j) = X

n∈Z3 0

Nc

X

i=1

qixij,n

kxij,nk3 + X

n∈Z3

0 N

X

i=Nc+1

>i xij,n

kxij,nk5xij,nµi kxij,nk3

,

where we setxij,n:=xij+Ln,

U(j) :=ξjφ(j) =

(qjφ(j) :j∈ {1, . . . , Nc},

−µ>jE(j) :j∈ {Nc+ 1, . . . , N}, (1.4)

(3)

and

F(j) :=−∇xjU(j) =

(qjE(j) :j∈ {1, . . . , Nc},

G(j)µj :j∈ {Nc+ 1, . . . , N}, (1.5) whereG(j)∈R3×3 is the negative electric field gradient, i.e.,

G(j) := − ∇xj>x

jφ(j)

= X

n∈Z3 0 Nc

X

i=1

qi

kxij,nk3I3,3− 3qi

kxij,nk5xij,nx>ij,n

+ X

n∈Z3

0 N

X

i=Nc+1

15µ>i xij,n

kxij,nk7 xij,nx>ij,n− 3

kxij,nk5ix>ij,n+xij,nµ>i )−3µ>i xij,n kxij,nk5I3,3

. We remark that the computation of sums of a very similar structure is required in order to solve Stokes equations in three dimensions, for which fast algorithms have been proposed recently, see [44, 26].

For the dipole particles, i.e., forj=Nc+ 1, . . . , N, the torques are given by

τ(j) :=µj×E(j). (1.6) Note that we can further simplify the expression of the overall energy (1.1) via

U =1 2

Nc

X

j=1

qjφ(j)−1 2

N

X

j=Nc+1

µ>jE(j), (1.7) i.e., the overall energy can be obtained easily after having computed the potentials of the charges as well as the fields of the dipoles.

There are already various algorithms for the computation of interactions in charged particle systems, such as the particle-particle particle-mesh (P3M) method [12, 19, 8], the particle-particle NFFT (P2NFFT) [18, 39], further so called particle mesh methods [7, 13], the fast multipole method [17] as well as multigrid-based methods [4], just to mention a few. Note that [2] includes a detailed comparison between different efficient methods for the 3d-periodic Coulomb problem.

The results show that the P3M and P2NFFT solvers rank among the best methods in this field.

Furthermore, for lattice structured systems an approach based on tensor approximation techniques has been proposed recently, see [25].

For systems containing point dipoles the P3M for dipolar systems has already been introduced and applied successfully, see [6, 5]. In this paper we show how the introduced quantities can be approximated efficiently for systems containing charges as well as dipoles. Therefor, the P2NFFT method [39, 33, 34] is extended appropriately. Consequently, we present for the first time an O(NlogN) algorithm for computing electrostatic interactions in charge-dipole systems. We re- mark that the modular structure enables the combination of the extended modules with all former developments, which covers for instance the usage on massively parallel architectures and the application of various types of periodic boundary conditions, i.e.,

φ(j) :=X

n∈S

0 N

X

i=1

ξi

kxij+Lnk

withS=Zp× {0}3−p and the numberp∈ {0,1,2,3}of dimensions subject to periodic boundary conditions. In the present paper we concentrate on 3d-periodic boundary conditions, i.e.,p= 3, as introduced above. Note that the generalization of the method for the computation of dipole-dipole interactions has already been presented in [31]. We emphasize that the issue of implementing as well as testing the described approach was left open in [31]. In the present work we present

(4)

for the first time details on the recently developed implementation as well as numerical results.

We introduce our extension of the method, which enables the treatment of mixed charge-dipole systems, including pure charge and pure dipole systems as special cases.

Our method is based on the Ewald summation approach [14, 28], which we introduce in Section 2.

In Section 3 we discuss the arising root mean square (rms) errors in the forces, which are introduced by truncating the Ewald sums. We revisit the known error estimates for charge-charge [27] as well as for dipole-dipole [46] systems and derive new estimates concerning the interactions between charges and dipoles. The NFFT is briefly described in Section 4. In the charge-charge case we need the NFFT as well as the adjoint NFFT in order to approximate the potentials of the charges and in addition the so called gradient NFFT for the approximation of the acting forces, see [39, 40, 38].

For systems containing both charges and dipoles we need new NFFT modules, which we call Hessian NFFT and adjoint gradient NFFT. These new NFFT modules are described in Section 4, as well. The final algorithm, which is publicly available as a part of the ScaFaCoS library [1], is summarized in Section 5, while its implementation is described in Section 6. In Section 7 we present new numerical results, verifying the correctness of the presented error estimates and showing that the method can be tuned to a high precision. Furthermore, we demonstrate the O(NlogN) scaling with the help of a proper numerical test. A summary is given in Section 8.

2 Ewald summation

Numerous methods in the field of particle simulation are based on the so called Ewald summation technique [14]. Thereby, the Ewald splitting

1

r =erfc(αr)

r +erf(αr) r

is used, where α >0 is called Ewald or splitting parameter, erf(x) = 2π1/2Rx

0 e−t2dt is the well known error function and erfc(x) = 1−erf(x) is the complementary error function.

If the splitting is applied to (1.1) by setting r:=kxij+Lnkin each summand, the energy U is split into an absolutely converging short range part

Ushort=1 2

N

X

j=1

ξjφshort(j) with φshort(j) := X

n∈Z3

0 N

X

i=1

ξi

erfc(αkxij+Lnk)

kxij+Lnk (2.1) as well as a long range partUlongincluding all erf terms.

A transform of the long range part into Fourier space yieldsUlong=UFUself+U0 with the following three sums. First, the Fourier sum is given by

UF=1 2

N

X

j=1

ξjφF(j) with φF(j) := 1 πV

X

k∈Z3

ψ(k)ˆ

N

X

i=1

ξie2πik>L−1xi

!

e−2πik>L−1xj, (2.2)

where V :=|det(L)| denotes the volume of the simulation box and the Fourier coefficients ˆψ(k) are given by

ψ(k) :=ˆ





e−π2kL−>kk22

kL−>kk2 :k6=0,

0 :k=0.

(2.3)

Second, the self energy Uself := α

π

Nc

X

j=1

q2j+ 2α3 3√

π

N

X

j=Nc+1

jk2=: 1 2

Nc

X

j=1

qjφself(j)−1 2

N

X

j=Nc+1

µ>j Eself(j) (2.4)

(5)

is subtracted in order to correct for the included terms withkxij+Lnk= 0. Finally, the correction termU0is defined as

U0=1 2

N

X

j=1

ξjφ0(j) with φ0(j) :=−2π 3V

N

X

i=1

ξikxijk2. (2.5) In summary we have

U =Ushort+UFUself+U0. For a detailed derivation we refer to [14, 28].

Remark 2.1. The correction term is the only term representing the order of summation as well as the type of the surrounding medium. In general, the prefactor of the correction energy is

− 2π 3V(1 +),

whereis the dielectric constant of the surrounding medium. For= 0 we apply vacuum boundary conditions and end up with (2.5), whereas= +∞corresponds to metallic boundary conditions.

For systems containing only charges the term U0 is generally known as the dipole correction term and is more precisely given by

U0=− π 3V

Nc

X

i,j=1

qiqjkxijk2= 2π 3V

Nc

X

i=1

qixi

2

,

where the second identity follows from the charge neutrality condition (1.3). The correction term for mixed systems (2.5) is obtained by replacing the chargesqi by the operatorsξi. Expressed in terms of the potentials we obtain

φ0(j) =−2π 3V

N

X

i=1

ξikxijk2= 4π

3V D>c xj−1 2

Nc

X

i=1

qikxik2

N

X

i=Nc+1

µ>i xi+D>dxj

! , where we define the overall dipole moments

Dc :=

Nc

X

i=1

qixi and Dd:=

N

X

i=Nc+1

µi. For the fields we obtain

E0(j) =−∇xjφ0(j) =−4π

3V (Dc+Dd). In summary we obtain for the correction energy

U0=1 2

Nc

X

j=1

qjφ0(j)−1 2

N

X

j=Nc+1

µ>jE0(j) = 2π 3V

kDck2+ 2D>cDd+kDdk2 .

3 Cutoff errors in the Ewald formulas – an extension to charge-dipole systems

In the field of molecular dynamics simulations the root mean square (rms) error in the forces is commonly considered in order to measure the accuracy of an algorithm. We denote the rms force errors for the charges and for the dipoles by

∆Fc:=

v u u t

1 Nc

Nc

X

j=1

kF(j)−F(j)k2 (3.1)

(6)

and

∆Fd:=

v u u t

1 Nd

N

X

j=Nc+1

kF(j)−F(j)k2, (3.2)

respectively, whereF(j) denote approximations of the exact forcesF(j).

Both, the short range part as well as the Fourier space part, are converging exponentially fast and can thus be truncated. In the following we show how the arising rms errors in the forces caused by the truncation of the Ewald sums can be estimated. Thereby, we revisit the estimates for charge-charge as well as dipole-dipole interactions, as already considered in the literature, and present new estimates concerning interactions between charges and dipoles.

The NFFT based approximation of the truncated Fourier space part, as described above, intro- duce further approximation errors, which are not discussed here.

3.1 Rms force error in the short range part

In the following we denote the kernel function of the short range part shortly by f(r) := erfc(αr)

r . (3.3)

Furthermore, we set

xij,n:=xij+Ln and rij,n:=kxij,nk.

Rms force errors for the charges

For the charges, i.e., for allj = 1, . . . , Nc, the short range part of the force F(j) =−qjxjφ(j) can be written as

Fshort(j) =Fshortc.c. (j) +Fshortc.d. (j), where the first term

Fshortc.c. (j) =−qjxj Nc

X

i=1

X

n∈Z3

0qif(rij,n) =qj Nc

X

i=1

X

n∈Z3

0qif0(rij,n)xij,n

rij,n, includes all charge-charge (c.c.) interactions, while the second term

Fshortc.d. (j) =−qjxj

N

X

i=Nc+1

X

n∈Z3

µ>ixif(rij,n)

=qj N

X

i=Nc+1

X

n∈Z3

f00(rij,n>i xij,n

xij,n

r2ij,n +f0(rij,n) µi rij,n

µ>i xij,n

xij,n rij,n3

!

(3.4) includes all contributions originating from charge-dipole (c.d.) interactions.

From now we denote byrcut>0 the near field cutoff radius and approximate the short range part via considering only distances rij,n smaller than rcut. The resulting approximation error, measured in the Euclidean norm, is denoted by

δFc.c.short(j) :=

qj

Nc

X

i=1

qi X

n∈Z3 rij,n>rcut

0 f0(rij,n)xij,n

rij,n

.

In the following we present an estimate of the corresponding rms error

∆Fc.c.short:=

v u u t

1 Nc

Nc

X

j=1

δFc.c.short(j)2,

(7)

which has already been considered in [27], before extending the theory to charge-dipole interac- tions. Thereby, we will denote by

Q:=

Nc

X

i=1

q2i the sum over all squared charge values.

The error is estimated as presented in [27] via δFc.c.short(j)2q2jQ

V Z

0

dφ Z π

0

sinθdθ Z

rcut

f0(r)r

r

2

r2dr, where

f0(r) =− 2α

πre−α2r2−erfc(αr) r2 . Thus, we obtain

δFc.c.short(j)2≈4πqj2Q V

Z rcut

πre−α2r2+erfc(αr) r2

2

r2dr

q2jQrcut

V α2 e−2α2rcut2

πrcut

+ 1

παrcut3 2

, see [27]. Thereby, the asymptotic expansion formula

Z A

e−Bx2f(x)dx≈e−BA2f(A)

2AB if d

dx f(x)

2Bx f(x)∀xA, (3.5) is applied two times. In case of the complementary error function we obtain

erfc(x) = 2

π Z

x

e−x2dx≈ e−x2

πx, (3.6)

which is used first, followed by approximating the outer integral. Of course, this is only allowed provided thatrcutis chosen not too small.

The corresponding rms error can thus be approximated by

∆Fc.c.short:=

v u u t

1 Nc

Nc

X

j=1

δFc.c.short(j)2Qrcut

NcV αe−α2rcut2

πrcut

+ 1

παrcut3

. (3.7)

In the following we derive a corresponding estimate concerning the charge-dipole interaction, which is done in an analog manner. Thereby we denote by θ :=^(µi,r) the angle between the dipole momentµi and the vectorr. We obtain for the single contributions to the error, cf. (3.4),

f00(r)µ>i rr

r2 +f0(r)µi

rµ>i rr r3

2

=

f00(r)kµikcos(θ)r

r +f0(r)µi

r − kµikcos(θ)r r2

2

=f00(r) rf0r(r)2

2

r2ik2cos2θ+f0r(r)22ik2+ 2f00(r) rf0r(r)2

f0(r)

r cos(θ)kµi>i r

=kµik2f0(r)2

r2 + cos2θ

f00(r)2f0r(r)22

.

(8)

Thus, we can approximate the error measured in theL2-norm by

δFc.d.short(j)2qj2 V

N

X

i=Nc+1

Z 0

Z π 0

sinθ Z

rcut

r2

f00(r)µ>i rr

r2+f(r)0µi

rµ>i rr r3

2

drdθdφ

=2πq2j V

N

X

i=Nc+1

ik2 Z π

0

sinθ Z

rcut

f0(r)2+ cos2θ r2f00(r)2f0(r)2 drdθ

=2πq2j V

N

X

i=Nc+1

ik2 Z

rcut

4

3f0(r)2+23r2f00(r)2dr, (3.8) analogously to the approximation ofδFc.c.short(j).

The second derivativef00 of the function, as given in (3.3), can be written in the form

f00(r) =4α3

πe−α2r2+ 4α

πr2e−α2r2+ 2erfc(αr)

r3 ≈ e−α2r2

παr44r4+ 4α2r2+ 2 .

Thereby, the approximation is again obtained via applying the asymptotic expansion formula (3.6) of the complementary error function.

By inserting the obtained approximations for the derivatives off into (3.8) and making use of the asymptotic expansion (3.5) we obtain

δFc.d.short(j)2≈ 4πq2jM

3V ·e−2α2rcut2 4rcutα2 · 1

πα2rcut6 2Bcut2 + (4α4rcut4 + 2Bcut)2 with

Bcut:= 1 + 2α2rcut2 and

M:=

N

X

i=Nc+1

ik2.

The corresponding rms error can be approximated by

∆Fc.d.short:=

v u u t

1 Nc

Nc

X

j=1

δFc.d.short(j)2≈e−α2rcut2 α2rcut3

r 2QM 3NcV rcut

(3Bcut2 + 8α4rcut4 Bcut+ 8α8rcut8 ). (3.9)

Assuming that the contributions originating from interactions with charges and those resulting from interactions with dipoles are independent, we may approximate the rms near field error in the forces of the charges via

∆Fcshort≈ q

(∆Fc.c.short)2+ ∆Fc.d.short2

. (3.10)

Rms force errors for the dipole particles

For the dipoles, i.e., for all j = Nc + 1, . . . , N, the short range parts of the forces F(j) =

−∇xjµ>jxjφ(j) are given by

Fshort(j) =Fshortd.c. (j) +Fshortd.d. (j),

(9)

where

Fshortd.c. (j) =− ∇xjµ>jxj

Nc

X

i=1

X

n∈Z3

qif(rij,n)

=−

Nc

X

i=1

qi

X

n∈Z3

f00(rij,n>jxij,n

xij,n

rij,n2 +f0(rij,n) µj rij,n

µ>jxij,n

r3ij,n xij,n

! ,

Fshortd.d. (j) =− ∇xjµ>jxj

N

X

i=Nc+1

X

n∈Z3

0µ>ixif(rij,n)

=−

N

X

i=Nc+1

X

n∈Z3

0C(rij,n) (µ>i xij,nj+ (µ>jxij,ni+ (µ>i µj)xij,n

+

N

X

i=Nc+1

X

n∈Z3

0D(rij,n)(µ>i xij,n)(µ>jxij,n)xij,n.

The functionsC andD are given by C(r) :=f00(r)

r2f0(r)

r3 = 4α3

πr2e−α2r2+ 6α

πr4e−α2r2+3erfc(αr) r5 , D(r) :=f000(r)

r3 + 3f00(r)

r4 −3f0(r) r2 =

5

πr2 + 20α3

πr4 + 30α

πr6

e−α2r2+15erfc(αr) r7 , see [46].

The same steps, which led to the approximation ofδFc.d.short(j) and ∆Fc.d.short, give δFd.c.short(j)2≈ kµjk2Qe−2α2rcut2

3V α4rcut7 2Bcut2 + (4α4rcut4 + 2Bcut2 ) for allj=Nc+ 1, . . . , N as well as

∆Fd.c.short:=

v u u t

1 Nd

N

X

j=Nc+1

δFd.c.short(j)2≈e−α2rcut2 α2rcut3

r 2QM

3NdV rcut(3Bcut2 + 8α4rcut4 Bcut+ 8α8rcut8 ).

(3.11) In the case of dipole-dipole interactions we refer to the derivation of the corresponding rms errors as presented in [46]. The final result reads as

∆Fd.d.short:=

v u u t

1 Nd

N

X

j=Nc+1

δFd.d.short(j)2

≈e−α2rcut2 M α2rcut4

s 1 rcutNdV

13

6 Ccut2 + 2

15Dcut2 +13

15CcutDcut

, (3.12)

where

Ccut:= 4α4rcut4 + 6α2rcut2 + 3,

Dcut:= 8α6rcut6 + 20α4rcut4 + 30α2rcut2 + 15.

Assuming that the contributions originating from interactions with charges and those resulting from interactions with the other dipoles are independent, we may approximate the rms near field error in the forces of the dipoles via

∆Fdshort≈ q

∆Fd.c.short2

+ ∆Fd.d.short2

. (3.13)

(10)

3.2 Rms force error in the Fourier space part

For someM ∈2N3we define the index setIM by IM :=

M21, . . . ,M21−1 ×. . .×

M23, . . . ,M23 −1 .

Since the Fourier coefficients (2.3) decrease exponentially fast for growing k we can replace the infinite lattice by a finite lattice

Z37→ IM, whereM ∈2N3has to be chosen appropriately.

In the following we denote by

˜`1,˜`2,˜`3

the dual lattice vectors fulfilling ˜`i·`j =δij. The dual lattice vectors are simply the columns of the matrixL−>.

We obtain

kL−>kk2=kk1˜`1+k2˜`2+k3˜`3k2. Furthermore, we set

nkl:= ˜`kט`l

and choose the cutoff parametersc1, c2, c3∈R+ such that

c1`1k · |cos^(˜`1,n23)|=c2`2k · |cos^(˜`2,n13)|=c3`3k · |cos^(˜`3,n12)|=β, (3.14) whereβ >0. This means that the three heights of the parallelepiped

{x1˜`1+x2˜`2+x3˜`3:x∈ Ic} with

Ic:= [−c1/2,c1/2]×[−c2/2,c2/2]×[−c3/2,c3/2]

are all of length β. Thus, the parallelepiped contains the ball of radius β/2. The Fourier space cutoffM ∈2N3 is consequently chosen such that

Mc= (c1, c2, c3), (3.15)

i.e., we round to the next even integer in each component.

Remark 3.1. The conditions (3.14) are equivalent to c1

k`1k = c2

k`2k = c3

k`3k =β. (3.16)

As an example, the vectorsn23and`1 are linearly dependent. Thus, we obtain c1`1k · |cos^(˜`1,n23)|=c1`1k · |cos^(˜`1,`1)|=c1

`1·`1| k`1k = c1

k`1k.

Example 3.2. We consider a box spanned by the three vectors `1= (1,0,0), `2 = (1,1,0) and

`3= (0,0,1). The dual lattice vectors are given by ˜`1= (1,−1,0), ˜`2= (0,1,0) and ˜`3= (0,0,1).

Forβ:= 8 we obtain

c= (8,8√

2,8) and M := (8,12,8), which ensures

{x∈R3:kxk ≤4} ⊂ {x1˜`1+x2˜`1+x3˜`1,x∈ Ic}.

In contrast, for the lattice vectors`1= (1,0,0), `2 = (0,1,0) and `3 = (0,0,1) we obtain M = (8,8,8). For a graphical illustration in two dimensions see Figure 3.1.

(11)

k2 ∈ I12 k1∈ I8

r= β2 = 4

1

k2∈ I8 k1∈ I8

r= β2 = 4

1

Figure 3.1: The sets{k1˜`1+k2˜`2 :k1 ∈ IM1, k2 ∈ IM2}for `1 = (1,0), `2 = (1,1) (left) and for

`1= (1,0),`2= (0,1) (right).

Rms force errors for the charges

For the charges, i.e., j = 1, . . . , Nc, we decompose the Fourier space part of the force F(j) =

−qjxjφ(j) via

FF(j) =FFc.c.(j) +FFc.d.(j), where

FFc.c.(j) =−qjxj πV

X

k∈Z3

ψ(k)ˆ

Nc

X

i=1

qie2πik>L−1xij = 2iqj V

Nc

X

i=1

qi X

k∈Z3

ψ(k)(Lˆ −>k) e2πik>L−1xij,

FFc.d.(j) =−qjxj πV

X

k∈Z3

ψ(k)ˆ

N

X

i=Nc+1

µ>ixie2πik>L−1xij

=−4πqj V

N

X

i=Nc+1

ik X

k∈Z3

ψ(k)kLˆ −>kkcos(γi,k)(L−>k) e2πik>L−1xij, (3.17)

andγi,k :=^(µi,L−>k) denotes the angle between a lattice vector L−>k and a dipole moment µi.

If the infinite sum is replaced by a finite sum over k∈ IM, the Fourier space partFFc.c.(j) is approximated via

FFc.c.(j)≈FF,≈c.c.(j) :=2iqj V

Nc

X

i=1

qi X

k∈IM

ψ(k)(Lˆ −>k) e2πik>L−1xij resulting in an error

FFc.c.(j)−FF,≈c.c.(j) =

Nc

X

i=1

qiχ(xij), where

χ(x) := 2i V

X

k∈Z3\IM

ψ(k)(Lˆ −>k) e2πik>L−1x.

Note that the rms force errors in the Fourier space part have already been computed in [27].

However, for the sake of completeness, we sketch the derivation of the error, following the common approach as presented and used in [9, 46], for instance. The result is slightly different from the one given in [27].

At first, we compute the quadratic mean χ2:= 1

V Z

x∈LT

χ(x)>χ(x) dx¯ = 4 V2

X

k∈Z3\IM

ψ(k)ˆ 2kL−>kk2= 4 V2

X

k∈Z3\IM

e−2π2kL−>kk22 kL−>kk2

Referenzen

ÄHNLICHE DOKUMENTE

A clearly negative influence of the dipole-dipole interactions was found for in- creasing pat·ticle concentrations, though the study of different sample shapes showed that

Abstract—The efficient computation of interactions in charged particle systems is possible based on the well known Ewald summation formulas and the fast Fourier transform for

In the case of 3d-periodic boundary conditions the nonequispaced fast Fourier trans- form (NFFT) 30 can be directly applied to the Fourier space sum in order to achieve a

Abstract—Ewald summation has established as basic element of fast algorithms evaluating the Coulomb interaction energy of charged particle systems in three dimensions subject

Fast Ewald summation for electrostatic systems with charges and dipoles for various types of periodic boundary conditions.. Franziska Nestler Chemnitz University

• new approach to fast Ewald summation under mixed boundary conditions: [Nestler, Pippig, Potts 2013 (Preprint)]. • 2d-periodic: Ewald + fast summation

• 3d-periodic: particle mesh approaches (P3M), P2NFFT, O(N log N ) [Hockney, Eastwood 1988] [Deserno, Holm 1998] [Pippig, Potts 2011].. • 2d-periodic: particle mesh like methods,

Hofmann, Nestler, Pippig: NFFT based Ewald summation for electrostatic systems with charges and dipoles.. Nestler: Fast Ewald summation for electrostatic systems with charges