선정목록으로
A Particle-Particle, Particle-Density (P3D) algorithm for the calculation of electrostatic interactions of particles with slab-like geometry
수소연료전지 · (7) MEA(막전극접합체)
기본 정보
- 저자
- DOI
- 10.48550/arxiv.0707.2569
- 저널
- arXiv (Cornell University)
- 발행년도
- 2022
- 발행기관
- Cornell University
- 피인용수
- 0
- 라이선스
- 0
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.48550/arxiv.0707.2569
- 토픽
- Chemical and Physical Properties of Materials
- OpenAlex ID
- W6910559405
평가 내용
- 관련도
- 사업분야
- 수소연료전지 · (7) MEA(막전극접합체)
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '수소연료전지 > MEA(막전극접합체)' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
We present a fast and accurate method to calculate the electrostatic energy and forces of interacting particles with the boundary conditions appropriate to surfaces, i.e periodic in the two directions parallel to the surface and free in the perpendicular direction. In the spirit of the Ewald method the problem is divided into a short range and long range part. The charge density responsible for the long range part is represented by plane waves in the periodic directions and by finite elements in the non-periodic direction. Our method has computational complexity of O(N_g log(N_g)) with a very small prefactor, where N_g is the number of grid points.
본문 31,690자
본문 펼치기
## A Particle-Particle, Particle-Density (P 3 D) algorithm for the calculation of electrostatic interactions of particles with slab-like geometry
S. Alireza Ghasemi, <sup>∗</sup> Alexey Neelov, and Stefan Goedecker <sup>†</sup>
Condensed Matter Theory Group, Department of Physics & Astronomy,
Klingelbergstrasse 82, Basel 4056, Switzerland
(Dated: August 11, 2021)
## Abstract
We present a fast and accurate method to calculate the electrostatic energy and forces of interact
ing particles with the boundary conditions appropriate to surfaces, i.e periodic in the two directions
parallel to the surface and free in the perpendicular direction. In the spirit of the Ewald method
the problem is divided into a short range and long range part. The charge density responsible for
the long range part is represented by plane waves in the periodic directions and by finite elements
in the non-periodic direction. Our method has computational complexity of O(Ng log(Ng)) with a
very small prefactor, where Ng is the number of grid points.
PACS numbers: Valid PACS appear here
Keywords: Finite Element, Slab-Like System, Poisson Solver.
∗Electronic address: [Alireza.Ghasemi@unibas.ch](mailto:Alireza.Ghasemi@unibas.ch)
†URL: [http://pages.unibas.ch/comphys/comphys/](http://pages.unibas.ch/comphys/comphys/)
I. INTRODUCTION:
Simulations of systems with slab-like geometries are of great importance. Problems in
volving surfaces, interfaces, tip-surface interaction in scanning probe microscopy simulations,
electrolytes trapped between two plates, thin films of ferrofluids, etc. all fall into this cate
gory. Calculating the Coulomb interactions in such setting is a major challenge. With free
boundary condition (i.e. the potential tends to zero at infinity) the scaling of the trivial
direct summation is O(N <sup>2</sup> ) where N is the number of particles. In the case of 2D periodic
and 1D free (2DP1DF) boundary conditions (BC) the situation is even worse. In principle
one would then have to include into the summation the interations with all the periodic
images in the two periodic directions.
Algorithms such as Ewald-based methods [1], fast multipole methods(FMM)[2], P <sup>3</sup> M
method[3], and convergence factor approaches[4, 5, 6] have therefore been generalized to
2DP1DF problems. Handling different types of BC in FMM[7] is straightforward. In addition
the FMM methods have the ideal linear scaling. Unfortunately the prefactors in FFM
methods are typically large and so the FMM methods are in many cases only faster than
other methods for N - 10 <sup>6</sup>, where N is the number of particles. Another drawback of
FMM that is important in molecular dynamics is that the approximate FMM forces are
not analytical derivatives of the approximate energy. Therefore the energy is not conserved
during the molecular dynamics simulation. High accuracy energy conservation is therefore
impossible.
Ewald methods for 2DP1DF boundary conditions, called EW2D, have been developed
Refs. [8, 9, 10]. A comparison of three versions of EW2D method can be found in
Ref.[11].Unfortunately, the practical use of the EW2D sum is hampered by the occurrence
of a reciprocal space term. The resulting Fourier space sum does not allow for a product de
composition as it is done in the three-dimensional periodic Ewald method and therefore the
method has a scaling of O(N <sup>2</sup> ). In 2002 Arnold and Holm developed MMM2D[12](MMM
with 2DP1DF BC), which is found to be the best in terms of accuracy. Another advantage
of this method is that it has “a priori” error estimates. However, because of its O(N
scaling it is only suitable for a small number of atoms.
53 )
A rather simple approach is to use the standard three dimensional periodic Ewald method
(EW3D) also for 2DP1DF boundary conditions. Spohr showed that the regular EW3D
method almost reproduces the EW2D results[13], provided that the box length in the non
periodic direction is about five times larger than those in the periodic directions and that
there is empty space of sufficient thickness in the basic periodic box to dampen out the inter
slab interactions. There are also methods with correction terms to make the 3D periodical
scheme applicable to the 2DP1DF systems and resolve the problem of slow convergence with
respect to thickness, so that a medium size gap(empty space) is enough. The EW3DC[14, 15]
method consists of a modification of EW3D to account for the slab geometry and addition of a
correction term to remove the forces due to the net dipole of the periodically repeating slabs.
Methods with layer correction terms to eliminate the inter-slab interaction, in addition to the
correction term responsible for net dipole, have been mixed with mesh-based methods, thus
almost linear scaling is achieved e.g. EW3DLC[16, 17], P <sup>3</sup> MLC[16, 17]. The main drawback
of these methods is that the errors in the forces on the particles near to the surfaces are
more than in the middle.
In this paper we present a method which fills the gap of absence of an efficient method
Because our method is not based
for medium size systems having 10 <sup>2</sup> - 10 <sup>6</sup> particles.
on a modification of a fully periodic method, no replication is needed in the non-periodic
direction, leading to smaller memory and CPU requirements. In contrast to some others, our
method does not impose any restriction on the distribution of particles in the non-periodic
direction.
II. COULOMB INTERACTION FOR SYSTEMS WITH 2DP1DF BC
Consider a system of N particles with charges qi at positions ri in an overall neutral and
rectangular simulation box of dimensions Lx, Ly and Lz. The Coulomb potential energy of
this system with periodic boundary condition in two directions and free boundary conditions
in the third direction(let us say in the z direction) can be written as
N
i,j=1
E = <sup>1</sup>
2
′
n
qiqj
(1)
|rij + n|
where rij = ri − rj and n = (nxLx, nyLy, 0), with nx, ny being integers. The prime on the
outer sum denotes that for n = 0 the term i = j has to be omitted.
In the Ewald-type methods the above very slowly converging sum over the Coulomb po
tential function is split into two sums which converge exponentially fast, one in real space
and the other in the Fourier space. This splitting can be done by adding and subtracting
a term corresponding to the electrostatic energy of a system of smooth spherical charge
densities,ρi(r), centered on the particle positions:
drdr <sup>′</sup>
�� ρi(r|)rρ −j(rr′ + <sup>′</sup> | n)
E = <sup>1</sup>
2
′
n
N
i,j=1
i,j=1
- |rijq +iqj n| <sup>−</sup>
drdr <sup>′</sup>
�� ρi(r|)rρ −j(rr′ + <sup>′</sup> | n)
+ <sup>1</sup>
2
- <sup>1</sup> 2
n
N
i=1
i=1
N
i,j=1
n
i,j=1
(2)
�� ρi|(rr −)ρir( <sup>′</sup> r|′) <sup>drdr′</sup>
The aim of the last term is to subtract the self energy for n = 0 and i = j which is included
in the second term.
Even though Ewald-type methods allow for any choice of ρi(r), it was noted in Refs.[18, 19]
that Gaussians are virtually optimal in practice. Choosing ρi(r) to be a Gaussian function
qi
ρi(r) =
(α <sup>2</sup> π)
�− <sup>|r −</sup> α <sup>2ri|2</sup>
3 exp
2
(3)
leads to a well-known formula for the first and the third term in Eq.(2).
|rij+n|
α√2
α
+
√
qiqj erfc
2
1
E =
2
′
n
i,j=1
N
i,j=1
+
-
|rij + n|
drdr <sup>′</sup>
�� ρi(r|)rρ −j(rr′ + <sup>′</sup> | n)
+ <sup>1</sup>
2
n
i,j=1
N
i,j=1
1
−α√
√
2π
N
i=1
i=1
qi <sup>2</sup> (4)
qi <sup>2</sup>
Obviously, the calculation of the third term is trivial. Since the interaction in the first
term is decaying exponentially it can be made of finite range by introducing a cut-off. The
error resulting from the cut-off is then also exponentially small and the short range term
can be calculated with linear scaling. We have calculated the short range part and also the
contribution of forces from long range as it is described in Ref.[18]
The major difficulty is the calculation of the second term. A method to solve the Pois
son’s equation under 2DP1DF boundary conditions has recently been put forward by L.
Genovese [20]. Our approach is similar. As in Ref [20] we use plane waves[21] to represent
the charge density in the periodic directions. Whereas Genovese et al used scaling func
tions as the basis in the non-periodic direction, we use finite elements for that purpose.
Scaling functions are presumably the optimal choice in the context of electronic structure
calculations where the charge density is given on a numerical grid. In our case the charge
distribution is a sum over smooth Gaussians that can easily be represented by our mixed
basis set of plane waves and finite elements. As will be seen we can avoid storing any kernel
if we solve a differential equation along the z-axis instead of solving an integral equation.
We will use a family of finite elements that allows to solve the linear system of equations
resulting from the differential equation very efficiently.
A. Calculating the long range part
The second term in Eq.(4), can be written as
Elong = <sup>1</sup>
2
�ℜ <sup>3 ρ(N</sup> <sup>)(r)V (r)dr</sup> (5)
where
ρ <sup>(N</sup> <sup>)</sup> (r) :=
V (r) :=
ρ(r) :=
N
i=1
n
ρj(r + n) (6c)
ρi(r) (6a)
i=1
ℜ <sup>3</sup>
ρ(r <sup>′</sup> )
|r − r <sup>′</sup> | <sup>dr′</sup> (6b)
N
j=1
j=1
We consider a system with a charge density that is only localized in the non-periodic di
rection, in our notation z; ρ(x, y, z) = 0 ∀(x, y, z) ∈ℜ <sup>3</sup> | z ∈/ [zl, zu]. We define the cell
containing the continuous charge density as:
V := [0, Lx] ⊗ [0, Ly] ⊗ [zl, zu]
In our case the length of V in z direction zu − zl is Lz plus twice the cut-off for Gaussians.
Since ρ(r) is periodic in x and y direction, V (r) is periodic too, so we can rewrite Eq.(5) as:
Elong = <sup>1</sup>
2
�V
ρ(r)V (r)dr (7)
and V (r) can be calculated in an alternative way to Eq. (6b). It can be considered as
the solution of Poisson’s equation with 2DP1DF BC:
∇ <sup>2</sup> V (r) = −4πρ(r) (8)
The charge density and the potential are periodic in x and y directions. Hence we can
write the potential and the charge density in terms of Fourier series:
)
(9a)
2iπ( <sup>k x</sup>
Lx
+ <sup>l y</sup>
Ly
+ <sup>l y</sup>
V (x, y, z)=
ckl(z) exp
k,l=−∞
2iπ( <sup>k x</sup>
Lx
ρ(x, y, z)=
∞
�=−∞
∞
�=−∞
)
(9b)
k,l=−∞
ηkl(z)
−4π <sup>exp</sup>
+ <sup>l y</sup>
Ly
Inserting Eqs.(9a) and (9b) in Eq.(8) yields:
d <sup>2</sup> kl ckl(z) = ηkl(z) (10)
dz <sup>2</sup> <sup>−</sup> <sup>γ2</sup>
-
k <sup>2</sup>
�L <sup>2</sup> x
γkl := 2π
L <sup>2</sup> x
+ <sup>l2</sup>
x
L <sup>2</sup> y
y
0
- Lx
0
- Ly
ηkl(z) = −4π
LxLy
× exp
Lx
0
ρ(x, y, z)
0
Ly
−2iπ( <sup>k x</sup> Lx
dxdy (11)
+ <sup>l y</sup>
Ly
)
To solve the differential equation (10) one needs to have boundary conditions at z →±∞
for ckl(z). The potential obtained by solving Poisson’s equation should be the same as the
one in Eq. (6b). Hence we derive the boundary condition in the non-periodic direction from
Eq. (6b). By performing the Taylor expansion of 1
|⃗r−⃗r <sup>′</sup> | <sup>about z′</sup> <sup>= 0 in the integral expression</sup>
of Eq. (6b) for the exact potential V (x, y, z) arising from our periodic charge distribution
ρ(r)
�−∞∞
V (x, y, z) =
�−∞∞
−∞
1
dx <sup>′</sup> dy <sup>′</sup> dz <sup>′</sup>
|⃗r −⃗r <sup>′</sup> |
zl
−∞
∞
×
k,l�=−∞
zl
- zu
ηkl(z <sup>′</sup> )
−4π <sup>exp</sup>
2πi( <sup>kx′</sup>
Lx
(12)
Lx
+ <sup>ly′</sup>
Ly
)
one can show that V (x, y, z →±∞) = ∓β where β is proportional to the dipole moment of
the charge distribution along the z direction
β = <sup>1</sup>
2
zl
- zu
η00(z <sup>′</sup> )z <sup>′</sup> dz <sup>′</sup> (13)
For the Gaussian charge distributions given by Eq. (3) the above integral can be calculated
analytically and β is calculated exactly.
β = L <sup>−</sup> x <sup>2</sup> L <sup>π</sup> y
N
qizi (14)
i=1
This boundary condition for the potential gives the following conditions for the γ’s.
- γ = γ00 = 0 ⇒ dzd <sup>22</sup> <sup>c00(z) = η00(z)</sup> We solve this differential equation with boundary
condition c00(z →±∞) = ∓β
d <sup>2</sup>
kl
- γ = γkl̸ = 0 ⇒ dz <sup>2</sup> <sup>−</sup> <sup>γ2</sup>
ckl(z) = ηkl(z) For all of these differential equations we
kl
̸
have to impose BC of the form ckl(z →±∞) = 0.
The solution for c00(z) is a linear function outside the interval [zl, zu]. Since the boundary
conditions are applied at infinity the linear term has to vanish and one has to satisfy Dirichlet
BC for c00, namely c00(zu) = −β and c00(zl) = β. For |k| + |l| - 0, ckl(z) will have Robin
BC as explained below. The potential is thus not modified if one takes for instance a
computational box that is thicker in the z direction than necessary. The thinnest possible
box is the one that just includes the region where the charge is nonzero.
For z ∈ (−∞, zl] we have ηkl(z) = 0 thus it yields
c(z) = c(zl)e <sup>γkl(z−zl)</sup> (15)
Both c(z) and its derivative must be continuous. So performing left differentiation at zl we
get:
c <sup>′</sup> (zl) − γklc(zl) = 0 (16)
With a similar procedure we obtain the BC at zu:
c <sup>′</sup> (zu) + γklc(zu) = 0 (17)
These BCs are in agreement with the BCs resulting from the Green functions in Ref. [20]
B. Solving the ordinary differential equation using the finite element method
We recapitulate the procedure of solving the differential equation for the case |k|+|l| > 0,
i.e. γkl̸ = 0, using the finite element method. For the case k = l = 0 the approach is similar,
with the only difference that the Dirichlet BC are used. The case k = l = 0 can be found in
many manuscripts and textbooks on the finite element method e.g. Ref. [22]. In particular
our notation follows Ref. [22]. Discretizing the differential equation with mentioned Robin
BCs using the finite element method leads to a system of linear equations. The resulting
matrix is a banded matrix for which the system of equations can be solved efficiently if high
order hierarchical piecewise polynomials are used as a basis and if the degrees of freedom are
decimated. This hierarchical finite element basis set leads to algebraic systems that are less
susceptible to round-off error accumulation at high order than those produced by a Lagrange
basis[23]. We use linear hat functions as the linear hierarchical basis. For higher order bases
we exploit the method of Szab´o and Babuˇska[24] which relies on Legendre polynomials.
Below we show the expansion of c(z) in terms of the hat functions and the other higher
order hierarchical piecewise polynomials on the interval [zi−1, zi]:
c(z) ≈ ci−1N−1(ξi) + ciN1(ξi) +
p
j=2
ci,jNj(ξi), (18)
where ξi = 2(z − zi)/h + 1; h = zi − zi−1 and the functions Ni(ξ) in the interval [−1, 1] are
given by
N−1(ξ) = <sup>1 −</sup> 2 <sup>ξ</sup>
<sup>−</sup> 2 <sup>ξ</sup> N1(ξ) = <sup>1 +</sup> 2 <sup>ξ</sup>
<sup>ξ</sup> (19a)
2
�−ξ1
Ni(ξ) =
2i − 1
2
Pi−1(ξ <sup>′</sup> )dξ <sup>′</sup>, i ≥ 2 (19b)
These hierarchical bases have useful orthogonality properties that lead to sparse and well
conditioned stiffness matrices. Defining an operator L
L[c] := c <sup>′′</sup> (z) − γ <sup>2</sup> c(z) (20)
we can write our differential equation (10) as
L[c] = η(z)
with boundary conditions
(21)
c <sup>′</sup> (zl) − gc(zl) = 0
c <sup>′</sup> (zu) + gc(zu) = 0
The method of weighted residuals is used to construct a variational integral formulation of
Eq.(20) by multiplying with a test function d(z) and integrating over [zl, zu]:
(d, L[c] − η) = 0 ∀d ∈ H <sup>1</sup> (zl, zu) (22)
where H <sup>1</sup> is the Sobolev space. We have introduced the L <sup>2</sup> inner product
(d, c) :=
zl
- zu
d(z)c(z)dz (23)
Performing the integration by parts in Eq.(22) and applying Robin BCs given in Eq.(21)
gives
A(d, c) = (d, η) + gd(zl)c(zl) + gd(zu)c(zu) (24)
where
�−d <sup>′</sup> (z)c <sup>′</sup> (z) − γ <sup>2</sup> d(z)c(z)
- dz (25)
A(d, c) :=
zl
- zu
Using the Galerkin approach and exploiting the decimation scheme, we can construct a
system of linear equations B⃗c =⃗b where the elements of the vector⃗c are the values of c(z)
at grid points. The detailed structure of this linear system of equations is given in the
Appendix A.
III. NUMERICAL RESULT
In this section we present the numerical results obtained for the Poisson’s solver for
continuous charge densities with 2DP1DF BC in stand alone mode and for our Ewald-like
method for point particles interacting by Coulombic potential with 2DP1DF BC. We also
show numerical evidence for the conservation of energy in molecular dynamics simulation of
a system composed of sodium chloride atoms.
A. Numerical results for the Poisson solver
Our method has an algebraic convergence rate in the non-periodic direction and a faster
exponential convergence rate in the periodic directions, respectively due to the finite element
polynomial bases and to the plane wave representation. In Fig. 1 we show the convergence
rate in non-periodic direction with 7-th order finite elements (p=7 in Eq. (18)). For our
test, the starting point was the potential rather than the charge density, since the charge
density can be obtained analytically from the potential by simple differentiation. Our test
<sup>2</sup> L <sup>πx</sup> x <sup>)) sin(b sin( 2</sup> L <sup>πy</sup> y
potential had the form φ(r) = sin(a sin( <sup>2</sup> L <sup>πx</sup> x
L <sup>πy</sup> y <sup>)) exp(−</sup> <sup>z</sup> c <sup>22</sup>
<sup>z</sup> c <sup>22 ).</sup>
B. Numerical results for point particles
In this section we give the numerical results of our implementation of the presented
method for point particles. Since MMM2D is known to be highly accurate we use it as
reference in this section. First we want to demonstrate that error distribution along the non
periodic direction is uniform unlike in the 3D periodic methods with correction terms[14,
0.001
1e-04
1e-05
1e-06
1e-07
1e-08
1e-09
1e-10
1e-11
1e-12
1e-13
1e-14
0.1 0.2 0.32 0.4 0.8
grid spacing in the non-periodic direction
FIG. 1: RMS of relative error for the potential given in Sec. IIIA with a = 10, b = 10, c = 1. On
this double logarithmic plot the curve has an asymptotic slope of 14 and machine precision can be
reached.
1e-05
1e-06
1e-07
1e-08
1e-09
1e-10
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
z
FIG. 2: Relative error distribution of force norm on each particle along z-axis for 100 random
systems with 100 particles.
16, 17]. To this aim 100 particles were put randomly in a unit cubic cell and the program
was run 100 times each time with different random positions. Results of the relative error
of forces exerted on each particle are plotted in Fig. 2.
In Fig. 3 we show the theoretical scaling O(N log(N)) can be achieved in practice. The
crossover with MMM2D for a moderate accuracy of 10 <sup>−4</sup> in RMS relative error of forces is
found to be less than 20 particles. Both programs were run in AMD Opteron 2400 MHz.
The degree of the finite elements is a parameter that can be optimized to obtain the smallest
possible CPU time for a fixed accuracy. For high accuracies higher degrees are recommended.
The CPU time for the calculation of the forces dominates in our method over the time needed
to calculate the energy.
100
10
1
0.1
0.01
0.001
1e-04
Our Method
MMM2D
10 100 1000 10000 100000 1e+06
number of particles
FIG. 3: CPU time of one time evaluation of forces on particles and potential energy with our
method(solid curve) and MMM2D method(dashed curve).
C. Energy Conservation
Energy conservation is of great importance in molecular dynamics simulations. In order
to investigate energy conservation in a real simulation, we performed a very long (8 nano
second) molcular dynamics simulation of a sodium chloride system containing 1000 particles.
The velocity Verlet algorithm with a time step of 50 atomic units is used to update the
particle positions and velocities. The short range interactions are obtained from the Born
Mayer-Huggins-Fumi-Tosi[25] (BMHFT) rigid-ion potential, with the parameters of Ref.[26].
The shortest oscillation period was of the order of 3000 atomic units e.i. 60 molecular
dynamics steps. After an equilibration for 1 × 10 <sup>6</sup> steps, 7 × 10 <sup>6</sup> steps were performed during
which the total energy and potential energy were monitored. The fluctuation of the total
energy, shown in Fig. 4, has an oscillation amplitude of about 2.5×10 <sup>−5</sup>, while the amplitude
of the potential energy oscillation was 3 orders of magnitude larger. The total energy was
thus conserved very well.
IV. CONCLUSION
In this manuscript we presented a method to solve Poisson’s equation for smooth charge
densities with periodic boundary condition in two directions and finite in the third one.
It is very efficient for smooth charge densities and it does not require much memory. The
resulting error distribution is uniform over the entire simulation cell. Our method is based on
plane wave representation in the periodic directions and finite elements in the non-periodic
2.5e-05
2e-05
1.5e-05
1e-05
5e-06
0
-5e-06
-1e-05
-1.5e-05
-2e-05
-2.5e-05
1e+06 2e+06 3e+06 4e+06 5e+06 6e+06 7e+06 8e+06
Molecular dynamics step
FIG. 4: The total energy fluctuations calculated with our method.
direction. Based on this method we can then calculate electrostatic energy and forces of
particles interacting by Coulombic potential with high accuracy and an N log(N) scaling.
The method satisfies intrinsically and without any approximations the boundary conditions
approriate for surface problems. It is best suited for a moderate number of particles in
between 10 <sup>2</sup> - 10 <sup>6</sup> . The method is expected to be suitable for an efficient parallelization
since the time dominating parts are only loosely coupled.
Acknowledgments
One of the authors would like to thank M. J. Rayson for valuable and helpful discussions.
This work has been supported by the Swiss National Science Foundation and the Swiss
National Center of Competence in Research(NCCR) on Nanoscale Science.
APPENDIX A: APPENDIX
We consider a uniform grid on the interval [zl, zu] with N + 1 nodes {z0, z1, . . ., zN }
while z0 = zl and zN = zu. The interval is thus divided into N equally spaced subinter
vals(elements). The functions d(z) and c(z) are replaced by the approximate functions D(z)
and C(z) which are expanded in the basis of Eqs. (19) on each subinterval. We use the
Galerkin approach in which the same bases are used for the expansion of both D(z) and
C(z). Our bases are a combination of the hat function φ <sup>v</sup> (z) centered at nodes
φ <sup>v</sup> j <sup>(z)</sup> <sup>=</sup>
(zj+1 − z)/h, z ∈ [zj, zj+1)
(z − zj−1)/h, z ∈ [zj−1, zj)
0 otherwise
and hierarchical polynomials[24] φ <sup>m</sup> (z)
(A1)
(A2)
(A3)
φ <sup>m</sup> j,i <sup>(z)</sup> <sup>=</sup>
Ni(2 <sup>z−</sup> h <sup>zj</sup>
+ 1), z ∈ [zj−1, zj]
0 otherwise
localized within the individual elements. Ni are given in canonical coordinates in Eqs.(19).
Finally C(z) and D(z) within the element [zj−1, zj] will be:
C(z) = cj−1φ <sup>v</sup> j
<sup>v</sup> j−1 <sup>(z) + cjφ</sup> j <sup>v</sup>
p
i=2
�p
j <sup>v(z) +</sup>
cj.iφ <sup>m</sup> j,i <sup>(z)</sup> (A4a)
cj.iφ <sup>m</sup> j,i
D(z) = dj−1φ <sup>v</sup> j
<sup>v</sup> j−1 <sup>(z) + djφ</sup> j <sup>v</sup>
i=2
p
i=2
i=2
j <sup>v(z) +</sup>
dj,iφ <sup>m</sup> j,i <sup>(z)</sup> (A4b)
dj,iφ <sup>m</sup> j,i
Note that because φ <sup>m</sup> j,i <sup>(z)</sup> <sup>vanishes</sup> <sup>at</sup> <sup>all</sup> <sup>nodes</sup> <sup>we</sup> <sup>obtain</sup> <sup>cj</sup> <sup>=</sup> <sup>C(zj).</sup> <sup>Replacing</sup> <sup>the</sup>
approximate functions from Eq.(A4a) and Eq.(A4b) in equation (24) gives
N
[Aj(D, C) − (D, η)j] = gd0c0 + gdN cN (A5)
j=1
We split Aj(D, C) as
Aj(D, C) = A <sup>S</sup> j
<sup>S</sup> j <sup>(D, C) + AM</sup> j
<sup>M</sup> j <sup>(D, C)</sup> (A6)
where
A <sup>S</sup> j <sup>(D, C)</sup> <sup>:=</sup> <sup>−</sup>
zj−
- zj
zj−
- zj
zj−1
D <sup>′</sup> (z)C <sup>′</sup> (z)dz (A7)
γ <sup>2</sup> D(z)C(z)dz (A8)
A <sup>M</sup> j <sup>(D, C)</sup> <sup>:=</sup> <sup>−</sup>
zj−1
(D, η)j :=
zj−
- zj
D(z)η(z)dz (A9)
zj−1
C(z) within an element is:
C(z) =⃗φ <sup>T</sup> j <sup>(z)⃗cj</sup> z ∈ [zj−1, zj] (A10)
where⃗cj and⃗φj(z) are vectors with p + 1 elements:
cj := [cj−1, cj, cj,2, . . ., cj,p] <sup>T</sup> (A11)
φj(z) := [φ <sup>v</sup> j
j <sup>v(z), φm</sup> j,
<sup>m</sup> j,2 <sup>(z), . . ., φ</sup> j,p <sup>m</sup>
<sup>v</sup> j−1 <sup>(z), φ</sup> j <sup>v</sup>
j,p <sup>m</sup> <sup>(z)]T</sup> (A12)
Then
where
A <sup>S</sup> j
j <sup>T</sup> <sup>Kj⃗cj</sup> (A13)
j <sup>T</sup> <sup>Mj⃗cj</sup> (A14)
<sup>S</sup> j <sup>(D, C)</sup> <sup>=⃗d</sup> j <sup>T</sup>
A <sup>M</sup> j
<sup>M</sup> j <sup>(D, C)</sup> <sup>=⃗d</sup> j <sup>T</sup>
d⃗φ <sup>T</sup> j (A15)
dz
Kj :=
Mj :=
zi−
- zi
zi−
- zi
zi−1
zi−1
d⃗φj
dz
γ <sup>2⃗</sup> φj⃗φj <sup>T</sup> (A16)
The (p +1) × (p +1) matrix Kj is called the element stiffness matrix and the (p +1) × (p +1)
matrix Mj is called the element mass matrix. Although the element index j is present in the
definition of Kj and Mj, in our case of uniform grid spacing these matrices do not depend
j
matrix and the global stiffness matrix.
on j. By performing the summation <sup>�N</sup>
j <sup>M</sup> j
arrange the
and <sup>�N</sup>
j=1 <sup>A</sup> j <sup>M</sup>
j=1 <sup>A</sup> j <sup>S</sup>
j <sup>S,</sup> <sup>we</sup> <sup>build</sup> <sup>up</sup> <sup>the</sup> <sup>global</sup> <sup>mass</sup>
matrix and the global stiffness matrix. We arrange the order of elements of these matrices
as:
cQ
⃗
c :=
⃗
cQ
⃗ <sup>cL</sup>
[c0, c
(A17)
, . . ., cN ] <sup>T</sup> (A18)
⃗
cL := [c0, c1, . . ., cN ] <sup>T</sup> (A18)
cQ := [c1,2, . . ., c1,p, . . ., cN,2, . . ., cN,p] <sup>T</sup> (A19)
0 KQ
K =
M =
0
0 K
<sup>KL</sup>
MLQ
MLQ <sup>T</sup> <sup>MQ</sup>
<sup>ML</sup>
(A20)
M <sup>T</sup>
LQ <sup>T</sup> <sup>MQ</sup>
(A21)
The second term of the summand in Eq.(A5) should be calculated approximately because
only the values of η(z) on the nodes are available:
(D, η)j =⃗d <sup>T</sup> j⃗ <sup>Ij</sup> (A22)
where
Ij :=
zj−1
- zj
φj(z)η(z)dz (A23)
Interpolating integration is appropriate to calculate the above integral by fitting a polynomial
of degree d ≥ 2p to the nodes of element [zj−1, zj] and its neighboring nodes:
(⃗Ij)i =
p−1
k�=−p
wk <sup>i</sup> <sup>ηj+k</sup> (A24)
Recall that our charge density is localized within the interval [zl, zu] and it smoothly tends
to zero at the edges. Therefore it is appropriate to zero pad the ends of the η(z). The
coefficients wk <sup>i</sup> <sup>are</sup> <sup>weights</sup> <sup>from</sup> <sup>high-order</sup> <sup>interpolation.</sup> <sup>Building</sup> <sup>up</sup> <sup>the</sup> <sup>global</sup> <sup>matrices</sup>
yields:
(D, η) =⃗d <sup>T⃗</sup> I (A25)
where the order of elements of⃗I is the same as in Eq. (A17),
IQ
⃗
I :=
⃗
IQ
⃗ <sup>IL</sup>
[I0, I
(A26)
, . . ., IN ] <sup>T</sup> (A27)
⃗
IL := [I0, I1, . . ., IN ] <sup>T</sup> (A27)
IQ := [I1,2, . . ., I1,p, . . ., IN,2, . . ., IN,p] <sup>T</sup> (A28)
Finally by adding the right-hand-side of Eq.(A5) to the global matrices yields:
IQ
⃗
⃗
cQ
⃗
⃗
M <sup>T</sup>
LQ <sup>T</sup> PQ
MLQ
MLQ <sup>T</sup> PQ
<sup>PL</sup>
cQ
⃗ <sup>cL</sup>
(A29)
=
IQ
⃗ <sup>IL</sup>
where MLQ is a sparse (N + 1) × N(p − 1) matrix,
PQ := KQ + MQ (A30)
is a N(p − 1) × N(p − 1) block-diagonal matrix,
PL := KL + ML + ge0e <sup>T</sup> 0 <sup>+ geN</sup> <sup>e</sup> N <sup>T</sup> (A31)
is a tridiagonal (N + 1) × (N + 1) matrix, and
e0 := [1, 0, . . ., 0] <sup>T</sup> (A32)
eN := [0, . . ., 0, 1] <sup>T</sup> (A33)
Multiplying the matrix in Eq.(A29) and eliminating⃗cQ in the system of linear equations
yields:
�PL − MLQPQ <sup>−1</sup>
Q <sup>−1M</sup> <sup>T</sup>
- cL =⃗IL − MLQPQ <sup>−</sup> ⃗ <sup>1</sup>
LQ
Q <sup>−</sup> ⃗ <sup>1IQ</sup> (A34)
Finally we obtain our system of linear equations:
B⃗cL =⃗b (A35)
where the matrix B and the vector⃗b are
B := PL − MLQPQ <sup>−1</sup>
Q <sup>−1M</sup> <sup>T</sup>
LQ <sup>T</sup> (A36)
b :=⃗IL − MLQPQ <sup>−</sup> ⃗ <sup>1</sup>
Q <sup>−</sup> ⃗ <sup>1IQ</sup> (A37)
It turns out that in the general case the matrix B is symmetric tridiagonal of dimension
(N + 1) × (N + 1). The proof for the tridiagonality of matrix B can be found in the
context of block cyclic reduction[27]. Note that elements of the vector⃗cL are the values
of C(z) at the grid points. Therefore by solving a system of linear equations, which has
a tridiagonal matrix, we can find the values of C(z) at the grid points. Instead of using
finite element method, we could have used finite differences to solve Eq. (10). Although
calculating the right-hand-side⃗b is computationally more expensive in our approach than in
the finite difference method, the whole process of solving the system of linear equations is
less expensive because the factorization of the tridiagonal matrix can be done fast.
[1] P. P. Ewald, Ann. Phys. (Leipzig) 64, 253 (1921).
[2] L. Greengard and V. Rokhlin, J. Comp. Phys. 73, 325 (1987).
[3] R. W. Hockney and J. W. Eastwood, Computer Simulation Using Particles (Adam Hilger,
1988).
[4] J. Lekner, Physica A 176, 485 (1991).
[5] R. Sperb, Molecular Simulation 20 (3), 179 (1998).
[6] R. Strebel and R. Sperb, Molecular Simulation 27 (1), 61 (2001).
[7] M. Challacombe, C. White, and M. Head-Gordon, J. Chem. Phys. 107, 10131 (1997).
[8] J. Hautman and M. L. Klein, Mol. Phys. 75, 379 (1992).
[9] D. M. Heyes, M. Barber, and J. H. R. Clarke, J. Chem. Soc., Faraday Trans. II 73, 1485
(1977).
[10] B. R. A. Nijboer, Physica A: Statistical and Theoretical Physics 125, 275 (1984).
[11] A. H. Widmann and D. B. Adolf, Comput. Phys. Comm. 107, 167 (1997).
[12] A. Arnold and C. Holm, Comput. Phys. Commun. 148, 327 (2002).
[13] E. Spohr, J. Chem. Phys. 107, 6342 (1997).
[14] I. C. Yeh and M. L. Berkowitz, J. Chem. Phys. 111, 3155 (1999).
[15] Y. J. Rhee, J. W. Halley, J. Hautman, and A. Rahman, Phys. Rev. B 40, 36 (1989).
[16] A. Arnold, J. de Joannis, and C. Holm, J. Chem. Phys. 117, 2496 (2002).
[17] J. de Joannis, A. Arnold, and C. Holm, J. Chem. Phys. 117, 2503 (2002).
[18] A. Neelov, S. A. Ghasemi, and S. Goedecker, arXiv: physics/0702213v1 [physics.comp-ph].
[19] E. L. Pollock and J. Glosli, Comput. Phys. Commun. 95, 93 (1996).
[20] L. Genovese, T. Deutsch, and S. Goedecker, arXiv:cond-mat/0703677v1 [cond-mat.mtrl-sci].
[21] M. Frigo and S. G. Johnson, Proc. IEEE 93 (2), 216 (2005).
[22] J. E. Flaherty, course notes on finite element method at http://www.cs.rpi.edu/%7Eflaherje/.
[23] S. Adjerid, M. Aiffa, and J. E. Flaherty, SIAM J. Appl. Math. 55, 520 (1995).
[24] Szab´o and Babuˇska, Finite Element Analysis (John Wiley & Sons, Inc., 1991).
[25] M. P. Tosi and F. G. Fumi, J. Phys. Chem. Solids 25, 45 (1964).
[26] T. Zykova-Timan and et al, J. Chem. Phys. 123, 164701 (2005).
[27] W. Gander and G. H. Golub, in Scientific Computing: Proceedings of the Workshop, edited
by Gene Howard Golub (Springer, 1988).
섹션 본문
섹션 본문이 없습니다.
참고문헌
참고문헌 정보가 없습니다.