선정목록으로
Efficient periodic density functional theory calculations of charged molecules and surfaces using Coulomb kernel truncation
간접 관련 수소연료전지 · (7) MEA(막전극접합체) (6) PEM(고분자전해질막)(5) 연료전지용 수분제어장치(가습기)
기본 정보
- 저자
- DOI
- 10.1103/cd6s-cdkf
- 저널
- Physical review. B./Physical review. B
- 발행년도
- 2025
- 발행기관
- American Physical Society
- 피인용수
- 1
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1103/cd6s-cdkf
- 토픽
- Chemical and Physical Properties of Materials
- OpenAlex ID
- W4410577613
평가 내용
- 관련도
- 간접 관련
- 사업분야
- 수소연료전지 · (7) MEA(막전극접합체)
- 부 분야
- (6) PEM(고분자전해질막), (5) 연료전지용 수분제어장치(가습기)
- R&D 측면
- 분석·모델링
- 확신도
- 0.70
- 근거 용어
- Density functional theory, electro-catalysis, energy materials, charged molecules and surfaces, VASP
- 판단 근거
- 이 논문은 전하를 띤 분자와 표면의 밀도범함수이론(DFT) 계산 효율을 높이는 수치 해석적 방법론을 다룹니다. 이는 직접적인 제품 연구는 아니나, 코오롱인더스트리의 핵심 R&D 분야인 PEMFC용 촉매(7) 및 이온전도성 고분자막(6)의 전기화학적 특성을 시뮬레이션하는 데 활용될 수 있는 기초 계산 과학 기술입니다.
- R&D 활용 포인트
- PEMFC의 전극 촉매 및 이온전도성 막의 계면 반응, 전하 이동 특성을 원자 수준에서 정밀하게 예측하기 위한 시뮬레이션 모델링 도구로 활용 가능합니다.
- 평가 입력
- 본문 63,549자 중 30,032자 발췌
초록
Density functional theory (DFT) calculations of charged molecules and surfaces are critical to applications in electrocatalysis, energy materials, and related fields of materials science. DFT implementations such as the Vienna simulation package () compute the electrostatic potential under three-dimensional (3D) periodic boundary conditions, necessitating charge neutrality. In this work, we implement 0D and 2D periodic boundary conditions to facilitate DFT calculations of charged molecules and surfaces, respectively. We implement these boundary conditions using the Coulomb kernel truncation method. Our implementation computes the potential under 0D and 2D boundary conditions by selectively subtracting unwanted long-range interactions in the potential computed under 3D boundary conditions. By combining the Coulomb kernel truncation method with a computationally efficient padding approach, we remove nonphysical potentials from vacuum in 0D and 2D systems. To illustrate the computational efficiency of our method, we perform large supercell calculations of the formation energy of a charged chlorine defect on a sodium chloride (001) surface and perform long-timescale molecular dynamics simulations on a stepped gold (211) water electrode-electrolyte interface.
본문 63,549자
본문 펼치기
Efficient periodic density functional theory calculations of charged molecules and
surfaces using Coulomb kernel truncation
Sudarshan Vijay, <sup>1, 2,</sup> <sup>_∗_</sup> Martin Schlipf, <sup>1</sup> Henrique Miranda, <sup>1</sup> Ferenc
Karsai, <sup>1</sup> Merzuk Kaltak, <sup>1</sup> Martijn Marsman, <sup>1</sup> and Georg Kresse <sup>1, 3,</sup> <sup>_†_</sup>
1 _VASP_ _Software_ _GmbH,_ _Berggasse_ _21,_ _1090_ _Vienna,_ _Austria_
2 _Present_ _address:_ _Department_ _of_ _Chemical_ _Engineering,_
_Indian_ _Institute_ _of_ _Technology_ _Bombay,_ _Powai,_ _Mumbai,_ _Maharashtra_ _400076_ _India_
3 _Faculty_ _of_ _Physics_ _and_ _Center_ _for_ _Computational_ _Materials_ _Science,_
_University_ _of_ _Vienna,_ _Kolingasse_ _14-16,_ _A-1090_ _Vienna,_ _Austria_
(Dated: January 7, 2025)
Density functional theory (DFT) calculations of charged molecules and surfaces are critical to
applications in electro-catalysis, energy materials and related fields of materials science. DFT implementations such as the Vienna _ab-initio_ Simulation Package (VASP) compute the electrostatic
potential under 3D periodic boundary conditions, necessitating charge neutrality. In this work,
we implement 0D and 2D periodic boundary conditions to facilitate DFT calculations of charged
molecules and surfaces respectively. We implement these boundary conditions using the Coulomb
kernel truncation method. Our implementation computes the potential under 0D and 2D boundary
conditions by selectively subtracting unwanted long-range interactions in the potential computed
under 3D boundary conditions. By combining the Coulomb kernel truncation method with a computationally efficient padding approach, we remove nonphysical potentials from vacuum in 0D and
2D systems. To illustrate the computational efficiency of our method, we perform large supercell
calculations of the formation energy of a charged chlorine defect on a sodium chloride (001) surface and perform long time-scale molecular dynamics simulations on a stepped gold (211) water
electrode-electrolyte interface.
I. INTRODUCTION
Efficient density functional theory calculations of
charged molecules and surfaces are crucial to predict
novel electro catalysts, <sup>1,2</sup> reliable battery materials <sup>3,4</sup>
and stable defects in surfaces of semi-conductors. <sup>5,6</sup> Commonly used DFT implementations such as the Vienna
_ab-initio_ Simulation Package (VASP) <sup>7</sup> rely on periodic
boundary conditions in all dimensions (3D boundary conditions). While this assumption of periodicity allows for
computationally efficient fast-Fourier transforms (FFT)
to solve the Poisson equation (to compute the potential
from a charge density), it imposes restrictions on the dimensionality of materials that can be computed without
the influence of spurious electrostatic interactions from
periodic replicas.
There are two constraints with using 3D boundary conditions to solve the Poisson equation. First, we implicitly
assume that _both_ the charge density and the resulting
potential are periodic in all dimensions. <sup>8,9</sup> Bulk materials satisfy this criterion and are hence trivially treated
by this method. Conversely, systems with lower dimensionality, such as 2D and quasi-2D systems (surfaces),
1D systems (nano-wires) and 0D systems (molecules) are
partially or fully non-periodic and require large cells to
remove spurious electrostatic interactions between unwanted periodic replicas. <sup>10–14</sup> Second, this reciprocal
space method requires charge-neutrality, i.e. the electronic and nuclear charges must sum to zero. <sup>8</sup> Total energies of systems that are not charge neutral are divergent
and hence of limited use. <sup>9</sup>
The first challenge of lower-dimensional periodicity
has been approached by Coulomb kernel truncation
techniques. <sup>12,14,15</sup> These methods adapt the Poisson
equation to lower dimensionality. However, they require
padded cells at least 27 _×_ larger than the conventional
cells for 0D systems and 2 _×_ larger for 2D systems. <sup>14</sup>
Padding makes this procedure computationally expensive, as FFTs scale with the supercell dimension _N_ as
_N_ log _N_ . This expense precludes large supercell calculations and long time-scale _ab-initio_ molecular dynamics simulations. Recent implementations <sup>12,15</sup> circumvent
the use of padding by requiring a large vacuum along the
non-periodic dimension. However, this choice leads to artifacts in the potential at the edges of the cell and requires
convergence with respect to both vacuum dimension and
choice of kernel truncation. Alternative approaches such
as modifying the basis functions to be non-periodic in certain dimensions prevent the need for padding, but require
specialized treatments such as using the full-potential linearized augmented plane-wave (FLAPW) method. <sup>16</sup>
The second challenge of charge neutrality has been addressed by applying a compensating homogeneous background charge over the entire cell. Alternatively, a compensating charge is added to regions of the cell where
there is a vanishing charge density, such as in the case
of implicit solvent methods. <sup>2,17–20</sup> While this compensating charge may be physically motivated in certain applications, it often introduces additional artifacts into the
computation of the total energy which must be treated
_post_ _facto_ . <sup>21,22</sup>
In this work, we solve both these challenges by implementing a method for applying established Coulomb
kernel truncation methods for systems with 0D and 2D
boundary conditions _without_ the need for increased FFT
grids. Our approach allows for computing large systems
efficiently and is suitable for performing long-timescale
molecular dynamics simulations. With this method, we
treat charged 2D periodic surfaces, effectively removing
the requirement of charge neutrality. Throughout this
manuscript, we detail specifics of our method as implemented in VASP. In Section II, we review Coulomb kernel truncation methods to alter 3D boundary conditions
to 0D and 2D boundary conditions. In Section III, we
describe our approach of Coulomb truncation without
padding to a large supercell. In Section IV, we compare
the variation of the total energy between 3D, 2D and 0D
boundary conditions. In Section V, we illustrate the computational advantage of our approach by calculating the
dependence of the formation energy on the concentration
of charged vacancy defects of sodium chloride (NaCl). In
addition, we perform charged _ab-initio_ molecular dynamics simulations of a stepped Au(211) water interface over
long timescales.
II. COULOMB KERNEL TRUNCATION AND
CHARGED SYSTEMS
In this section, we compute the potential under 0D
and 2D boundary conditions by truncating the Coulomb
kernel. <sup>12,14,15</sup> We highlight modifications to the current
3D implementation of VASP and outline the procedure to
compute the potential of charged surfaces and molecules
without any _post_ _hoc_ corrections. As an illustration, we
discuss differences in the computed potential through a
representative example of charge-neutral and positivelycharged MoS2 with and without applying the Coulomb
kernel truncation method.
A. Coulomb kernels for 3D, 2D and 0D boundary
conditions
We determine the potential ( _V_ ) from a given charge
distribution ( _ρ_ ) using the Poisson equation
all repeated cells and the periodic charge density _ϱ_ ( r ) as
_V_ ( r ) =
- _<u>ϱ</u>_ <u>(</u> <u>r</u> <sup>_′_</sup> <u>)</u>
_|_ r _−_ r <sup>_′_</sup> _|_ <sup>_d_</sup> <sup>r</sup> <sup>_′._</sup> (2)
However, since the potential is also cell-periodic, r can
be restricted to the primitive cell. Fourier transforming
Eq. (2) to reciprocal space, we get
_V_ ( g ) = <sup><u>4</u></sup> g <sup>_<u>π</u>_</sup> <sup>2</sup> <sup>_ϱ_</sup> <sup>(</sup> <sup>g</sup> <sup>)</sup> <sup>_,_</sup> (3)
where g is a reciprocal lattice vector. We use non-bold
versions of the symbol (for example, g) to indicate the
norm of the vector of the symbol (for example g ). We
introduce the Coulomb kernel _v_ 3D( g ) = 4 _π/_ g <sup>2</sup> to express
Eq. (3) as
_V_ ( g ) = _v_ 3D( g ) _ϱ_ ( g ) _._ (4)
Physically, applying this kernel to _ϱ_ generates a potential
where each point feels the entire 1 _/r_ Coulomb interaction
from every other point in space.
We follow Ref. 15 and implement 0D and 2D periodic
boundary conditions by restricting the Coulomb interaction to a certain region ( _R_ )
_v_ ( r ) =
1 _/r_ _r_ _∈R_
(5)
0 _r_ _∈R/_ _._
For 0D boundary conditions, we truncate the kernel in
real space to a sphere <sup>14</sup>
_v_ ( r ) = <sup><u>1</u></sup> _r_ <sup>_θ_</sup> <sup>(</sup> <sup>_R_</sup> <sup>c</sup> <sup>_−_</sup> <sup>_r_</sup> <sup>)</sup> <sup>_,_</sup> (6)
where _R_ c is the radius of the sphere and _θ_ is the Heaviside function. Similarly, _R_ is a cuboid for 2D boundary
conditions with the real-space kernel <sup>12,15</sup>
_v_ ( r ) = <sup><u>1</u></sup> _r_ <sup>_θ_</sup> <sup>(</sup> <sup>_R_</sup> <sup>c</sup> <sup>_−_</sup> <sup>_rz_</sup> <sup>)</sup> <sup>_._</sup> (7)
Here, _R_ c is the dimension of the cuboid in the direction of
the surface normal and _rz_ is the position along the surface
normal. Solving the Poisson equation in reciprocal space,
we require the Fourier-transformed kernels Ref. 14 and 15
for 0D boundary conditions
_v_ 0D( g ) =
_V_ ( r ) =
- _<u>ρ</u>_ <u>(</u> <u>r</u> <sup>_′_</sup> <u>)</u>
_|_ r _−_ r <sup>_′_</sup> _|_ <sup>_d_</sup> <sup>r</sup> <sup>_′,_</sup> (1)
4 _π/_ g <sup>2</sup> (1 _−_ cos (g _R_ c)) g _̸_ = 0
(8)
2 _πR_ c <sup>2</sup> g = 0 _,_
where r denotes a position in real space. In a fully periodic calculation, the integral in Eq. (1) is performed over
and for 2D boundary conditions in Ref. 15
(9)
4 _π/_ g <sup>2 �</sup> 1 _−_ _e_ <sup>_−_</sup> <sup>g</sup> <sup>_∥Rc_</sup> <sup>�</sup> cos(g _⊥R_ c) + g _⊥/_ g _∥_ sin(g _⊥R_ c)
_v_ 2D( g ) =
4 _π/_ g <sup>2 �</sup> 1 _−_ _e_ <sup>_−_</sup> <sup>g</sup> <sup>_∥Rc_</sup> <sup>�</sup> cos(g _⊥R_ c) + g _⊥/_ g _∥_ sin(g _⊥R_ c)�� g _̸_ = 0
4 _π/_ g _⊥_ <sup>2</sup> <sup>[1</sup> <sup>_−_</sup> <sup>cos(g</sup> <sup>_⊥R_</sup> <sup>c)</sup> <sup>_−_</sup> <sup>g</sup> <sup>_⊥R_</sup> <sup>c sin(g</sup> <sup>_⊥R_</sup> <sup>c)]</sup> g _∥_ = 0
_−_ 2 _πR_ c <sup>2</sup> g = 0 _,_
c <sup>2</sup> g = 0 _,_
where g _∥_ is the norm of the g vector parallel to the surface
and g _⊥_ is the projection of the g vector on the surface
normal. Note that for the specific choice of _R_ c = _Lz/_ 2,
the sin terms of Eq. (9) go to zero and there is no divergence at g _∥_ _→_ 0. <sup>23</sup>
B. Constructing padded supercells
In the previous section, we presented Coulomb kernels
for 0D and 2D dimensionalities which depend on a truncation parameter _R_ c. In this section, we discuss how _R_ c
is chosen in practice for 0D and 2D dimensionalities.
FIG. 1. Schematics showing the construction of padded supercells for a) 0D boundary conditions and b) 2D boundary
conditions; the red sphere denotes the original charge density
and the blue cells represent the padded cells.
_R_ c must be sufficiently large such that the non-periodic
charge density, _ρ_, does not interact with its periodic counterpart across nonperiodic boundaries. <sup>12,15,24</sup> We prevent
this spurious interaction by extending the region _R_ in Eq.
(5) to the edges of the cell and computing the Poisson
equation in a padded supercell.
Fig. 1 shows a schematic of the padded supercell used
for 0D and 2D systems. For 0D boundary conditions, _ρ_
(shown in red in Fig. 1 a) must not interact with any of
its periodic replicas. Padding the cell in every dimension
(blue cells in Fig. 1 a) fulfills this requirement but leads to
a supercell that is 3 <sup>3</sup> = 27 times larger than the otherwise
considered cell. <sup>15</sup> For 2D boundary conditions, _ρ_ must
not interact with its periodic replicas in the direction of
the surface normal; requiring padding of 2 _×_ the norm of
the lattice vector along one dimension (blue cells in Fig.
1 b). <sup>12,15</sup>
These padded cells lead to a potentially large computational cost associated with applying 0D and 2D boundary
conditions in practice. We defer discussion of our method
for applying 0D and 2D boundary conditions without the
need for extended FFT grids to Section III.
where _Zi_ is the valence charge for each atom _i_ and Ω
is the volume. Note that we do not truncate the local pseudopotential as the corresponding charge density
( _qi/_ Ω+ _ϱ_ ps _,i_, where _qi_ is the ion charge corresponding to
C. Comparing 2D and 3D potential for charge
neutral and charged systems
In this section, we compare the potential computed
using 3D and 2D boundary conditions as discussed in
Section II A. We illustrate the differences in 2D and
3D boundary conditions by computing the potential of
a charge-neutral and positively charged single layer of
MoS2.
FIG. 2. Comparison of the Hartree, ionic and total (sum
of Hartree, ionic and exchange-correlation) potential for a)
neutral MoS2 with 3D boundary conditions b) neutral MoS2
with 2D boundary conditions c) positively charged MoS2 with
3D boundary conditions d) positively charged MoS2 under
2D boundary conditions. Tick labels for the total potential
(green) are on the right.
Fig. 2 shows the electron-electron Hartree potential (in
blue), ion-electron (in red), and the total potential, i.e.
sum of Hartree, ionic and exchange-correlation potentials (in green) for a single layer of charge neutral and
charged MoS2 under 3D and 2D boundary conditions.
The Hartree potential is obtained through Eq. (3) where
_ϱ_ is the valence charge density,
_V_ Hartree( g ) = _v_ ( g ) _ϱ_ ( g ) _._ (10)
Note that _v_ ( g ) is replaced by _v_ 2D( g ) or _v_ 0D( g ) to compute the Hartree potential for 2D or 0D systems respectively. As in the formulation of Ref. 25, the ionic potential is determined by setting _ϱ_ to the ion charge as if they
were point charges and adding the local contributions of
the pseudopotential for each atom _i_, _U_ ps _,_ i,
_,_ (11)
- _v_ ( g ) <sup>_<u>Zi</u>_</sup>
Ω <sup>+</sup> <sup>_U_</sup> <sup>ps</sup> <sup>_,i_</sup>
_V_ ionic =
_i_
the core charge) is short-ranged and does not influence
the potential beyond a few Angstroms. <sup>12</sup>
Under 3D boundary conditions, the Hartree and ionic
potential (blue and red lines in Figure 2a respectively)
show parabolic behavior in vacuum, i.e. they have _L_ <sup>2</sup> _z_ <sup>de-</sup>
pendence far away from the material. Conversely, the
same system computed with 2D boundary conditions
shows linear behavior in _Lz_ (blue and red lines in Figure 2b) of the potential in vacuum. When summed together for a neutral system (green lines in Figure 2a,b),
the parabolic and linear dependence on _Lz_ is removed
from 3D and 2D boundary conditions respectively. The
only difference in the two potentials is that the total potential decays to zero far away from the material under
2D boundary conditions while it decays to an arbitrary
value under 3D boundary conditions (value of the green
lines at _Lz_ = _±_ 10).
This parabolic behavior of the Hartree and ionic potential under 3D boundary conditions stems from the convention of setting the g = 0 term of the 3D Coulomb kernel to zero. <sup>25,26</sup> This choice implicitly represents solving
the Poisson equation with the charge density set to the
sum of _ϱ_ and a compensating homogeneous background
charge with magnitude equal to the negative of the magnitude of _ϱ_ . For charge-neutral systems, the homogeneous background charge contribution for the Hartree
and ionic potentials cancel out (as they are of equal and
opposite magnitudes) and the resulting total potential is
free from parabolic behavior.
Conversely, the linear behavior of the Hartree and ionic
potential under 2D boundary conditions is the appropriate behavior of a charged 2D sheet such as MoS2. We
expect a charged sheet of charge _q_ and area _A_ to have
a potential of 2 _πz q/A_ where _z_ is the distance along the
surface normal. <sup>27</sup> This linear behavior is seen for both
the Hartree and ionic potentials in Figure 2b and no homogeneous background charge is applied in either case.
For charge-neutral systems, this linear dependence is canceled out when summing together the Hartree and ionic
potentials, and hence the total potential decays to the
reference value of zero in vacuum.
Unlike charge-neutral systems, charged systems do not
exhibit equivalent behavior of the total potential for 3D
and 2D boundary conditions. In contrast to charge neutral systems, the total potential (blue line in Fig. 2c,d)
exhibits parabolic dependence on _Lz_ . This parabolic dependence is caused by the lack of cancellation of the potential from the homogeneous background charge when
summing the Hartree and ionic potential for a charged
system. <sup>26</sup> There is no such parabolic dependence for the
potential computed under 2D boundary conditions. Instead, a linear dependence of the potential commensurate
with a charged 2D sheet is observed for the Hartree, ionic,
and total potentials.
In summary, Fig. 2 shows that applying 2D boundary conditions for 2D materials allows us to compute the
potential for charged systems. Applying 3D boundary
conditions to charged 2D materials generates artifacts in
the total potential due to the presence of a homogeneous
background charge.
III. EFFICIENT PADDING FOR SURFACES
AND MOLECULES
In Section II, we showed that applying the appropriate kernel and padding a cell with vacuum allows us to
compute the potential for 0D and 2D boundary conditions. A key challenge with applying this method is the
need for computationally expensive padded cells. In this
section, we discuss the computational bottlenecks with
the currently used _padded_ _supercell_ method and present
our _coarsen_ _before_ _padding_ method, which performs kernel truncation without the need for enlarged FFT grids.
We compare the two approaches against the _no-padding_
method, which performs truncation without padding.
A. Padded supercell method
<u>Algorithm</u> <u>1</u> <u>Padded</u> <u>supercell</u> <u>method</u>
1: _ρ_ ( r ) = Pad [ _ϱ_ ( r )]
2: _ρ_ ( g ) = _F_ [ _ρ_ ( r )]
3: _V_ pad( g ) = _v_ ( g ) _ρ_ ( g )
4: _V_ pad( r ) = _F_ <sup>_−_</sup> <sup>1</sup> _V_ pad( g )
5: _V_ ( r ) = Unpad [ _V_ pad( r )]
Algorithm 1 illustrates the padded supercell approach
for determining the potential. First, the periodic charge
density _ϱ_ is padded to create a non-periodic charge density _ρ_ (Line 1, Algorithm 1). An FFT (denoted as
_F_ ) is performed on this padded cell to generate _ρ_ ( g )
(Line 2, Algorithm 1). As FFTs scale _O_ ( _N_ log _N_ ), this
FFT is the largest computational expense of this method
(schematically shown in Fig. 3a). For 0D systems, the
padded cell is a grid of 3N _×_ 3N _×_ 3N (in blue) where N is
the number of points in the cell. This padded grid is 27
times as large as the original N _×_ N _×_ N grid (in green).
Following this expensive FFT, the padded potential
_V_ pad( g ) is computed using Eq. (4) with the appropriate
kernel (Line 3, Algorithm 1). An inverse Fourier transform (denoted as _F_ <sup>_−_</sup> <sup>1</sup> ) converts it to real space, _V_ pad( r )
(Line 4, Algorithm 1). This inverse FFT is equally expensive as the FFT used to compute _ρ_ ( g ) (Line 2, Algorithm 1) and doubles the computational cost.
Finally, _V_ pad( r ) is condensed in real space to generate
_V_ ( r ), i.e. grid points corresponding to the points in the
original grid are retained while those corresponding to
the padded grid are removed (Line 5, Algorithm 1).
FIG. 3. Schematic of a) padding supercell method using a larger grid b) coarsen before padding method that coarsens the
original grid before padding and c) no-padding method which performs truncation without padding for a 0D system; the usable
region shows where the potential obtained is the correct one.
B. Coarsen before padding method
<u>Algorithm</u> <u>2</u> <u>Coarsening</u> <u>before</u> <u>padding</u> <u>method</u>
1: _ϱ_ ( g ) = _F_ [ _ϱ_ ( r )]
2: _V_ periodic( g ) = 4 _π/_ g <sup>2</sup> _ϱ_ ( g )
3: if g = g coarse then
4: _ρ_ coarse( g coarse) = _ϱ_ ( g coarse)
5: end if
6: _V_ periodic _,_ coarse( g coarse) = 4 _π/_ gcoarse <sup>2</sup> <sup>_ρ_</sup> coarse <sup>(</sup> <sup>g</sup> coarse <sup>)</sup>
7: _ρ_ coarse( r coarse) = _F_ <sup>_−_</sup> <sup>1</sup> [ _ρ_ coarse( g coarse)]
8: Apply Algorithm 1 to _ρ_ coarse to obtain _V_ coarse( r coarse)
9: _V_ coarse( g coarse) = _F_ [ _V_ coarse( r coarse)]
10: _V_ ( g ) = _V_ periodic( g ) _−_ _V_ periodic _,_ coarse( g coarse) +
_V_ coarse( g coarse)
11: _V_ ( r ) = _F_ <sup>_−_</sup> <sup>1</sup> [ _V_ ( g )]
Instead of computing the entire potential with 0D
or 2D boundary conditions, our _coarsen_ _before_ _padding_
method selectively subtracts away truncated components
from a 3D periodic potential to achieve 0D or 2D boundary conditions. The sequence of steps to achieve this
selective computation are:
1. Fourier transform the 3D periodic charge density and compute the periodic potential, _V_ periodic
(Lines 1 and 2 of Algorithm 2). We will selectively
subtract the truncated interactions from _V_ periodic
at the end of the algorithm.
2. Generate a coarse grid consisting of N/3 _×_ N/3 _×_ N/3
(see Fig. 3b) for 0D boundary conditions and
N _×_ N _×_ N/2 for 2D boundary conditions, where
N _×_ N _×_ N is the dimension of the original cell. Note
that an unequal number of grid points is allowed by
this method. Transfer elements of _ϱ_ corresponding
to this coarse grid to generate coarse charge density, _ρ_ coarse (Lines 3–5 of Algorithm 2).
3. Compute the 3D periodic potential of _ρ_ coarse to generate _V_ periodic _,_ coarse (Line 6 of Algorithm 2). This
potential contains unwanted long-range periodic in
teractions included in _V_ periodic and will be subtracted from it.
4. Perform the conventional padding procedure as
seen in Algorithm 1 on _ρ_ coarse to generate _V_ coarse
(Line 8–9 of Algorithm 2). Note that unlike Algorithm 1, there is no need to perform FFTs on an
enlarged FFT grid as padding the coarsened cell
returns the original FFT grid.
5. Subtract from _V_ periodic the unwanted periodic interactions _V_ periodic _,_ coarse and add the correctly truncated interactions _V_ coarse to generate the potential
under the required boundary conditions (Line 10–
11 of Algorithm 2).
The reasoning behind the present approach is loosely
based on the Gaussian theorem, _i.e._ long-range electrostatics depend only on monopoles, dipoles, and higherorder poles. It is well understood that broadening the
density, e.g. replacing a point charge with a Gaussian charge density, leaves the electrostatic potential unchanged beyond the radius where the Gaussian decays
to zero. <sup>27</sup> Removing large g components from the density also preserves all electrostatic multipoles, thus completely preserving the long-range electrostatics. This
means that the current approach is inherently free of any
errors, which we will demonstrate below. In passing, we
note that the FFT grids used to correct the errors in
the long-range electrostatics could be further reduced,
but from an implementation point of view, the present
strategy was easier to implement in VASP, and a further
reduction would only marginally increase the computational efficiency.
C. No-padding method
An alternative approach to truncating the Coulomb
kernel is to avoid padding entirely. <sup>12,15</sup> This no-padding
method implicitly assumes that the charge density decays
to near zero at the boundary of the cell along the nonperiodic dimension. This assumption allows for trunca
tion without padding with the explicit consideration that
the potential generated at the edges of the cell are nonphysical and are to be ignored (dark regions of Fig. 3c).
This method is implemented by simply swapping out _v_ ( g )
for the appropriately truncated kernel.
D. Comparison of self-consistent potentials
FIG. 4. Total potential generated by the padded supercell method (solid blue line), the coarsen before padding
method (dashed red line), and the no-padding method (solid
green line) a) oxygen molecule b) positively charged oxygen
molecule c) a single layer of MoS2 d) a positively charged single layer of MoS2.
Fig. 4 shows that the total potential computed using
the coarsen before padding method (dashed red lines)
matches the total potential computed by the conventional
padded supercell method (solid blue lines) for a charge
neutral and charged O2 molecule and a single layer of
MoS2. This potential equivalence shows that we can
achieve exactly the same accuracy for our DFT calculation without the need for expensive FFT operations on
a larger FFT grid.
Both the coarsen before padding and the padded supercell method generate physical potentials throughout the
cell. In contrast, the no-padding approach (green lines,
Fig. 4) produces physical potentials when the charge
density is non-zero (for example, at _Lz_ _≈_ 0), but produces non-physical potentials towards the cell boundaries
( _Lz_ = _±_ 6 <sup>˚</sup> A for O2 and _Lz_ = _±_ 12 <sup>˚</sup> A for MoS2).
Note that the potentials of the no-padding approach
are similar to the padded supercell and coarsen before
padding potentials for the case of MoS2(+1), but appear
slightly different for O2(+1). This deviation comes from
the choice of _R_ c used for the no-padding approach. We
set _R_ c to half the length of the largest norm of the lattice
v _√_ <u>ectors (padded or otherwise) for MoS2</u> and choose _R_ c as
3 times the cell for O2 computed with the padded supercell method and coarsen before padding method. For
O2 computed with the no-padding approach, we set _R_ c
as half the length of the largest norm of the lattice vectors. This choice is required for the no-padding approach
as it does not pad the cell and hence _R_ c cannot be larger
than 1.
Well-chosen _R_ c ensures that the non-physical region
is distinct from any charge density, preventing any unwanted interactions from taking place. However, this
convergence with respect to _R_ c may not be possible, especially during molecular dynamics calculations involving “floppy” molecules which may move into regions of
unphysical potential.
Given the excellent performance of our coarsen before padding method at a reduced computational cost
as compared with the padded supercell method and the
need for a physical potential throughout the cell, we set
it as the default option for VASP calculations including
Coulomb kernel truncation and use it for the rest of this
manuscript.
IV. ENERGIES FOR 0D AND 2D BOUNDARY
CONDITIONS
In Sections II and III, we showed that by using an
appropriate Coulomb truncated kernel, we generate the
Hartree, ionic and total potentials for 0D and 2D boundary conditions. In this section, we briefly describe how
these potentials are used to compute components of the
total energy. We highlight modifications to VASP to facilitate total energy calculations with 0D and 2D boundary conditions.
A. Hartree energy
The electrostatic energy caused by electron-electron
interactions (Hartree energy) is computed in reciprocal
space as
_E_ Hartree = <sup><u>Ω</u></sup>
2
g
_ρ_ ( g ) _V_ ( g ) _,_ (12)
where _V_ ( g ) is the potential under either 3D, 2D or 0D
boundary conditions as determined in Sections II and III.
The only change to the current VASP implementation is
to supply _V_ ( g ) for the appropriate boundary condition
to Eq. (12).
B. Sum of eigenvalues
The sum of the eigenvalues on a per-atom basis is
_E_ eigenvalues =
_i_
_ϵi,_ (13)
the Ewald summation technique. The total summation
of ion point charges on a lattice is split into a real space
(short-range) component and a reciprocal space (longrange) component with some additional analytical terms
_E_ ion _−_ ion = _E_ long _−_ range + _E_ short _−_ range + _E_ self +
(14)
+ _E_ homogeneous _,_
where _E_ long _−_ range is the long-range energy, _E_ short _−_ range
is the short-range energy, _E_ self is the energy of selfinteraction between the smeared charge and the point
charge of the Ewald sum and _E_ homogeneous is the energy
of interaction between the point charge and a homogeneous background charge.
For 0D boundary conditions, we set _E_ short _−_ range, _E_ self
and _E_ homogeneous to zero and compute the entire ion-ion
interaction energy in real space. We choose this direct
computational strategy as there is no periodicity and
hence no need for long-range interaction terms, self correction and homogeneous background charge terms,
where _i_ is the running index over all computed eigenvalues with a non-zero occupancy. Eq. (13) implicitly
depends on the total potential as the numerical values
of _ϵ_ are determined by the potential in which they are
computed.
For 3D boundary conditions, the value of the potential is arbitrary (as the g = 0 component of Hartree and
ionic potentials are set to zero) and hence the the values
of _ϵ_ are arbitrary as well. In contrast, for both 0D and
2D boundary conditions, we include the g = 0 component (as seen in Eqs. (8) and (9) respectively) explicitly.
This implementation choice allows us to compute the absolute eigenvalues for charge-neutral molecules using the
0D boundary condition and surfaces using the 2D boundary condition. This output of the absolute eigenvalues
implies that properties such as the workfunction of 2D
surfaces are immediately available and do not require a
potential reference within the cell.
C. Ion-ion interation energy
As done for 3D boundary conditions implementation in
VASP, we compute the ion-ion interaction energies using
where _rij_ is the distance between any two atomic charges
with index _i_ and _j_ and _Zi_ and _Zj_ are the corresponding
atomic charges.
For 2D boundary conditions, we implement the 2D
Ewald summation to compute the terms in Eq. 14 as
per the formulation of Ref. 28, which includes terms
for _E_ long _−_ range, _E_ short _−_ range and _E_ self, while settings
_E_ homogeneous to zero. The long-range part is
_E_ ion _−_ ion = <sup><u>1</u></sup>
2
_i̸_ = _j_
_<u>ZiZj</u>_
_rij_
_,_ (15)
_E_ long _−_ range = <sup>_<u>π</u>_</sup>
2 _A_
_i,j_
_ZiZj_
g _̸_ =0
cos( g _·_ r _ij_ )
- <u>exp(g</u> _<u>z</u>_ <u>)erfc (</u> _<u>αz</u>_ <u>+ g</u> _<u>/</u>_ <u>(2</u> _<u>α</u>_ <u>)) + exp(</u> _<u>−</u>_ <u>g</u> _<u>z</u>_ <u>)erfc (</u> _<u>−αz</u>_ <u>+ g</u> _<u>/</u>_ <u>(2</u> _<u>α</u>_ <u>))</u>
_,_
g
(16)
where _A_ is the surface area, _z_ is the distance between _i_
and _j_ in the direction of the surface normal and _α_ is the
splitting parameter between long and short-range summations. We do not change the default value of _α_ used by
VASP, which is inversely proportional to the cube root
of the volume of the cell. The short-range energy is com
puted similarly as done with 3D boundary conditions,
where n is the index of the real space cell and the prime
over the first summation indicates that the sum does not
include terms where _i_ = _j_ and n = 0. The self-correction
term is
<u>erfc (</u> _<u>α |</u>_ <u>r</u> _<u>ij</u>_ <u>+</u> <u>n</u> _<u>|</u>_ <u>)</u>
_,_ (17)
_|_ r _ij_ + n _|_
_E_ short _−_ range =
_′_
_i,j_
_ZiZj_
n
_z_ erf( _αz_ ) + <sup>exp</sup>
- _−_ ( _zα_ ) <sup>2�</sup>
_α_ <sup>_~~√~~_</sup> _<u>π</u>_
- _−_ ( _zα_ ) <sup>2�</sup>
_,_ (18)
_E_ self = _−_ <sup>_<u>α</u>_</sup>
_~~√~~_ _<u>π</u>_
_N_
_i_ =1
_i_ <sup>2</sup> <sup>_−_</sup> <sup><u>2</u></sup> <sup>_<u>π</u>_</sup>
_Zi_ <sup>2</sup>
_A_
_i,j_
_ZiZj_
where _N_ is the number of atoms. The term in square brackets is an additional self-correction term for systems
with a nonzero height parallel to the surface normal or
systems that are not charge neutral.
D. Validation
We test our implementation by computing the selfconsistent Hartree energy, eigenvalues, ion-ion energies
and total energies for a charge neutral pyridene molecule
under 0D boundary conditions and charged single layer
MoS2 sheet under 2D boundary conditions. We describe
the behavior of these energies with change in lattice vectors along all directions for pyridene and along the surface
normal (i.e. amount of vacuum) for MoS2.
_1._ _Charge_ _neutral_ _pyridine_ _molecule_
Figure 5 shows the (negative of) the Hartree energy,
sum of the eigenvalues, ion-ion and total energies for
pyridine under 3D boundary conditions (in orange), 2D
boundary conditions (in blue) and 2D boundary conditions with no-padding (in green) with change in the vacuum in the cell ( _x_ -axis is the inverse of the vacuum lattice dimension, _z_ ). Applying 0D boundary conditions
leads to energies that are invariant to the amount of vacuum in the cell, i.e. all blue points are equivalent. In
contrast, Hartree energies, eigenvalues, and the ion-ion
energies computed by the 3D boundary conditions are
dependent on the choice of vacuum. This dependence
on the vacuum size exactly cancels for total energies of
charge-neutral materials (Fig. 5d). This match of the
total energy between the 0D and 3D boundary conditions (blue and orange points overlap in Fig. 5d) shows
that our implementation yields identical results to the
3D implementation when sufficient vacuum is used for
charge-neutral species.
Finally, we compare the total energies of the coarsen
before padding and no-padding method. We find that the
coarsen before pad method converges with less vacuum
in the cell than the no-padding method (total energies
at 1 _/Lz_ = 0 _._ 1 <sup>˚</sup> A _−_ 1 in Fig. 5 d). This faster convergence
with vacuum dimension implies that the coarsen before
padding method can be used with less vacuum in the cell
for 0D systems.
_2._ _Positively_ _charged_ _MoS_ 2 _sheet_
A key difference between energies computed with 3D
and 2D boundary conditions is the convergence behavior
of the total energies for positively charged MoS2 (in Figure 6). The total energy (Figure 6d) is identical for all
vacuum sizes when computed using 2D boundary conditions (blue and green points). In contrast, the total energies diverge when computed with 3D boundary conditions (orange points in Figure 6d), i.e. they increase with
increasing vacuum size and never converge to a single
value. This divergence of the total energy stems from the
inability of 3D boundary conditions to balance the individual divergences of the Hartree energy (orange points,
Figure 6a), eigenvalues (orange points, Figure 6b) and
ion-ion energy (orange points, Figure 6c). In comparison,
the Hartree energies, sum of eigenvalues, ion-ion and total energies computed with 2D boundary conditions show
no divergence (blue and green points in Figure 6 a,b,c).
We note that the success of the 2D method to provide
consistent energies is in part related to the choice that the
potentials at the center of the slabs converge to one value
independent of the vacuum width, whereas the potential
at large distances diverges (as _Lz_ ). This behavior of the
potential means that the work for adding or removing a
charge quanta from a slab is always infinite, consistent
with simple electrostatic arguments, <sup>27</sup> and the divergence
of the energies for the 3D case. The cost to generate a 2D
charged slab is always infinite, but it is still possible to
compare the stability of different charged 2D structures.
This comparison is simplified using our implementation
of 2D boundary conditions.
In summary, we find that self-consistent calculations
with 0D and 2D boundary conditions for charge neutral
and charged surfaces provide consistent energies. This
behavior is in contrast to performing calculations with
3D boundary conditions, which lead to convergent energies for charge-neutral surfaces but divergent energies for
charged molecules and surfaces.
V. APPLICATIONS
In this section, we apply our implementation of the
Coulomb kernel truncation method to two prototype
cases of charged DFT calculations. Specifically, we compute the concentration dependent formation energy of a
chlorine defect on NaCl(001) and the total energies and
potential profile from a long-timescale machine-learning
assisted Au(211) water interface. Both illustrations
would be particularly expensive with the padded supercell method due to either a requirement for large cells or
long time scale simulations.
A. Formation energy of a charged defect on a
surface
To illustrate the difference between 3D and 2D boundary conditions, we compute the concentration-dependent
formation energy of a prototypical charged defect, a chlorine vacancy defect on a surface of NaCl(001).
Formation energies of charged defects on surfaces
show strong dependence on the concentration of the defects and vacuum when computed with 3D boundary
conditions. <sup>5,6,29,30</sup> Several methods have been proposed
to remove this dependence on the concentration and
vacuum. <sup>29,30</sup> In general, these methods generate a surrogate model (typically a Gaussian charge density around
FIG. 5. Variation of energy contributions for a charge-neutral pyridine molecule: a) negative of the Hartree energy, b) sum
of the eigenvalues, c) ion-ion energy, and d) total energy; orange points and lines indicate that 3D boundary conditions were
used, blue points and lines indicate 0D boundary conditions were used, and green points and lines indicate that 0D boundary
conditions using the no-padding method were used. The inset shows a zoom-in of the total energies.
FIG. 6. Variation of energy contributions for a charged MoS2 sheet: a) negative of the Hartree energy, b) sum of the
eigenvalues, c) ion-ion energy, and d) total energy; orange points and lines indicate 3D boundary conditions were used, blue
points and lines indicate 2D boundary conditions were used, and green points and lines indicate that 2D boundary conditions
using the no-padding method were used.
the defect) in successively larger cells and extrapolate
the energy to the limit of infinitely large vacuum and
infinitely small defect concentration. <sup>29</sup>
In this section, we show that the concentration and
vacuum-dependent formation energy for charged defects
computed under 2D boundary conditions show comparatively simple behavior, leading to a simpler extrapolation
scheme using a quadratic least squares fit.
The formation energy of a charged defect of Cl in
NaCl(001) is,
_Ef_ [Na _n_ Cl _n−_ 1(+1)] = _E_ [Na _n_ Cl _n−_ 1(+1)] _−_ _E_ [Na _n_ Cl _n_ ] + <sup><u>1</u></sup> (19)
2 <sup>_E_</sup> <sup>[Cl2(g)] +</sup> <sup>_q_</sup> <sup>(</sup> <sup>_ϵv_</sup> <sup>+</sup> <sup>_ϵF_</sup> <sup>)</sup> <sup>_,_</sup>
where _Ef_ is the formation energy, _E_ [Na _n_ Cl _n−_ 1(+1)] is
the total energy of the charged defect with _n_ Na species
and _n −_ 1 Cl species, _E_ [Na _n_ Cl _n_ ] is the total energy of
the pristine host (without the defect) for _n_ Na and Cl
species, _E_ [Cl2(g)] is the chemical potential for the missing chlorine species between the host and the defect, _ϵF_ is
FIG. 7. Valence band maximum (VBM) computed under a) 3D and d) 2D boundary conditions. Grey markers denote the VBM
of the NaCl Cl-vacancy charged defect and red points correspond to the VBM of the uncharged pristine surface. Formation
energies of the charged defect calculated under b) 3D and d) 2D boundary conditions. There is no dependence on the vacuum
dimension with 2D boundary conditions (overlapping markers). Blue solid line in (d) shows the least squares fit for a cubic
function. e) Formation energy of a charged Cl-vacancy defect in bulk NaCl; brown solid line shows the least squares fit for a
function of 1 _/Ly_ + 1 _/L_ <sup>3</sup> _y_ <sup>.</sup> <sup>Root</sup> <sup>mean</sup> <sup>square</sup> <sup>errors</sup> <sup>for</sup> <sup>the</sup> <sup>least</sup> <sup>square</sup> <sup>fits</sup> <sup>are</sup> <sup>0.004</sup> <sup>eV</sup> <sup>for</sup> <sup>surface</sup> <sup>defects</sup> <sup>(blue</sup> <sup>line</sup> <sup>in</sup> <sup>d)</sup> <sup>and</sup>
0.0001 eV for bulk defects (brown line in e). An equivalent quadratic fit for 3D formation energies does not produce a good fit
with an error of 0.29 eV. The extrapolated value of 1 _/Ly_ _→_ 0 is shown as a blue dot in (d) and a brown dot in (e). Markers
indicate changing vacuum size.
the Fermi energy which is referenced to the valence band
maximum (VBM) _ϵv_ . As we are interested in the general
behavior of the formation energy with concentration and
vacuum, we set _ϵF_ = 0. Any other value of _ϵF_ would be
a constant offset of the energies reported in this section.
Fig. 7 illustrates differences in the behavior of the VBM
and formation energies of the charged defect (denoted
as _X_ <sup>_q_</sup> <sup>=1</sup> ) as a function of the defect concentration (by
changing cell dimension, denoted as 1 _/Ly_ ) and vacuum
size (markers) computed under 3D and 2D boundary
conditions. We modify the defect concentration by constructing a single chlorine defect within an increasingly
large cell size ( _x_ -axis in Fig. 7) and alter the vacuum
by changing the cell dimension along the surface normal (markers in Fig. 7). Fig. 7a shows the VBM of a
surface charged defect (grey points) and of the pristine
surface (red points, denoted as _X_ <sup>_q_</sup> <sup>=0</sup> ) as a function of
decreasing surface concentration of the defect ( _x_ -axis is
the inverse of the lattice dimension along the surface,
1 _/Ly_ ) computed with 3D boundary conditions. Consistent with the arbitrary offset of the potential with 3D
boundary conditions, we find that the VBM is different
for different surface concentrations ( _x_ -axis) and different
vacuum sizes (markers). There is no clearly extrapolatable trend as a function of different cell dimensions. Fig.
7c shows the VBM computed with 2D boundary conditions. In contrast to Fig. 7a, we find that the VBM has
no dependence on vacuum size (overlapping grey points)
and decays to the VBM of the uncharged surface (red
points). This behavior of the VBM is consistent with
the reduced concentration of the charge as 1 _/Ly_ goes to
zero. In this case, using 2D boundary conditions leads
to extrapolatable and intuitive behavior of the VBM of
charged defects.
Formation energies do not converge with cell size
(Fig. 7b) when computed under 3D boundary conditions.
As a result, there is no clear trend between the formation
energy and the defect concentration. _Post facto_ methods,
which treat the interaction of the charged defect with
different concentrations of the homogeneous background
charge <sup>5,29,30</sup> are needed to determine the formation energy.
In contrast, formation energies computed with 2D
boundary conditions converge with decreasing surface
concentration (Fig. 7d). Furthermore, there is no dependence of the formation energies on the vacuum (markers
in Fig. 7d). This comparatively straightforward behavior suggests that extrapolation techniques can be used
to determine the formation energy of the charged defect
under infinitely dilute concentration.
To validate our approach of computing formation energies using 2D boundary conditions, we extrapolate the
energies to 1 _/Ly_ _→_ 0 and compare our results against
previously published work. <sup>30</sup> We fit the formation energies shown in Figure 7d (grey points) by least squares
fitting a third-order polynomial and extrapolate it to
1 _/Ly_ _→_ 0 (blue curve in Figure 7d). Our rationale for
choosing a linear, quadratic and cubic terms is to effectively account for monopole-monopole, monopole-dipole
and dipole-dipole interactions, which are likely to be the
leading terms in the dependence of the energy on the
change in the defect concentration. We note that fitting
up to the quadratic term (i.e. ignoring the cubic term)
results in less than 0.01 eV change in the extrapolated
formation energies for this system. We find the formation
energy at infinitely dilute concentrations to be 1.91 eV,
which is very similar to the value of 1.89 eV computed
by extrapolating formation energies using 3D boundary
conditions and a model charge distribution. <sup>30</sup> The root
mean square error (RMSE) of the fit is 0.004 eV, suggesting that our effective model of monopole-monopole
and dipole-dipole interactions are sufficient to describe
the interactions between charged defects on a surface.
Figure 7e shows a fit including linear and cubic terms,
i.e. 1 _/Ly_ + 1 _/L_ <sup>3</sup> _y_ <sup>(brown</sup> <sup>line)</sup> <sup>for</sup> <sup>a</sup> <sup>charged</sup> <sup>Cl-vacancy</sup>
defect in bulk NaCl. We compute its formation energy
under 3D boundary conditions, identical to the method
used in the case of the charged surface defect. Similar to the surface defect in Figure 7d, we expect the
leading concentration-dependent terms to be monopolemonopole and dipole-dipole terms; the monopole-dipole
terms are zero for NaCl as it is an isotropic system. We
find that the least squares error for this fit is 0.0001 eV,
suggesting a good fit between this simple model and the
computed formation energies. Extrapolating this fit to
1 _/Ly_ _→_ 0 leads to a formation energy at infinitely dilute
concentrations of 1.365 eV, which is similar to the value
of 1.50 eV obtained using a model charge distribution. <sup>30</sup>
In summary, the formation energy of a surface-charged
defect of chlorine on an NaCl(001) surface displays contrasting behavior with decreasing defect concentration
and vacuum size for 3D and 2D boundary conditions.
For 3D boundary conditions, both the VBM and the
formation energies do not converge and require special
methods to compute both of these quantities in the infinitely dilute concentration limit. In contrast, both the
VBM and the formation energies display convergent behavior with calculations performed with 2D boundary
conditions. This convergent behavior simplifies extrapolating formation energies to the infinite dilute concentration limit.
B. Electrode electrolyte interface
A key advantage of the coarsen before padding method
is that the computational cost is roughly the same as for
the equivalent 3D boundary condition calculation. This
advantage allows us to perform _ab_ _initio_ molecular dynamics calculations for charged systems with 2D boundary conditions. To illustrate this advantage, we train a
machine-learned force field (see Section VII) using more
than 2400 DFT calculations with 2D boundary conditions for a system of 15 water molecules interacting with
an Au(211) surface. We train two distinct force fields,
one that is charge neutral and one with an added excess
charge of 0.25 e.
Fig. 8a shows the cumulative average energies (solid
lines) and instantaneous energies (translucent lines) of a
1 nano-second (ns) NVT molecular dynamics calculation
for uncharged (blue) and charged (green) water Au(211)
interface. The energies of both trajectories are stable for
both charge-neutral and charged systems, i.e. the cumulative energies do not fluctuate. The charge-neutral system has a lower total energy due to the presence of more
electrons and differences in the computed potential.
Fig. 8b shows the _z_ -averaged electrostatic potential for
100 evenly spaced structures from the 1 ns molecular dynamics trajectory. The charge neutral potential (blue)
decays to zero in the vacuum region ( _z_ _≈_ 20 <sup>˚</sup> A). This
flattening of the electrostatic potential to zero suggests
that the averaged orientation of the water molecules is
arbitrary, _i.e._ the dipoles of water do not specifically
orient along a certain axis. In cases where water had
a specific mean orientation, we would expect the averaged electrostatic potential to decay to a nonzero value,
with the potential at both ends ( _z_ = _±_ 10 <sup>˚</sup> A) settling at
different values.
The _z_ -averaged electrostatic potential increases linearly for a charged simulation cell (green lines in Fig. 8b).
This behavior of the potential for the charged system is
similar to that of the charged plate potential of Figure 2
and is a consistent feature of applying 2D boundary conditions to charged systems, irrespective of the thickness
of the material. <sup>27</sup>
Comparison of the electrostatic potentials of the
charged and uncharged slab in Fig. 8b shows that the
addition of a small amount of charge creates a field that
is completely shielded by the aqueous electrolyte layer:
the electrostatic potentials with and without charge completely overlap in the region of the aqueous electrolyte (0
- 10 <sup>˚</sup> A), suggesting that the linear potential slope (visible
between 10 - 20 <sup>˚</sup> A) is entirely screened. In other words,
the mesoscopic _E_ field _E_ = _D −_ 4 _πP_ is practically zero
in the water layer. This screening is in line with the large
dielectric constant of bulk water of 78.4 and implies that
in the water layer the polarization observes almost exactly _P_ = _D/_ 4 _π_ . This result also means that the water
molecules reorient compared to the uncharged field-free
case. A more detailed analysis is beyond the scope of the
present work, albeit there is clearly interesting physics to
unravel with the present approach.
In summary, we applied the Coulomb kernel truncation method to study the formation energy of charged
defects and performed long time-scale molecular dynamics simulations of water over a charge-neutral and charged
FIG. 8. a) Total energy for each time step (transparent lines) and cumulative average (solid lines) for a (blue) charge neutral
and (green) positively charged Au(211) water interface b) _xy_ -averaged total potential for 100 evenly spaced snapshots from a
1ns trajectory. The potential for the charged surface (green lines) has been moved to overlap with that of the uncharged (blue)
electrostatic potential.
Au(211) surface. We find that our implementation provides a natural basis in which to compute properties of
charged surfaces.
Given the convergent behavior for charged systems and
the comparatively low computational cost of our implementation, we envision this Coulomb kernel truncation
implementation to provide a starting point for further
method development for computing properties of charged
molecules and surfaces.
VI. CONCLUSIONS
In this work, we describe our Coulomb kernel truncation implementation in the VASP package. Our implementation allows to perform DFT calculations under
0D and 2D boundary conditions for charge-neutral and
charged systems. Instead of solving the Poisson equation
to determine the potential on a computationally expensive vacuum-padded supercell, our approach subtracts
only the relevant long-range contributions from the potential obtained in 3D boundary conditions. By using
this method of determining the potential, our approach
is only marginally more computationally expensive than
calculations using 3D boundary conditions. The present
approach could easily be adopted for calculations of the
exact exchange potential in Hartree-Fock or hybrid functional calculations, where we expect it to have an even
greater impact than in the present case. We note that
we have been rather modest in the grid coarsening in the
present work, as for density functional theory the calculation of the potential is usually not a dramatic bottleneck. However, the coarsening can be increased significantly without loss of accuracy, since only electrostatic
multipoles need to be described on the coarse grid.
We have applied our method to calculate the formation energy of a charged chlorine defect on a NaCl(001)
surface. We find that the VBM and formation energy di
verge when computed with 3D boundary conditions, but
converge when computed with 2D boundary conditions.
This allows reliable Cl vacancy formation energies to be
extrapolated from the slab calculations. The extrapolated formation energy shows very good agreement with
previous calculations. Furthermore, we demonstrate the
computational efficiency of our implementation by performing nanosecond timescale molecular dynamics simulations of the Au(211) water interface, with an excess
charge located on the Au slab. This approach allows us
to generate the long-range electrostatic field required to
mimic an electrode. We believe that the present approach
is well suited to determine structural changes induced by
the finite field at an electrode. In fact, we observe that
the water molecules rearrange in order to fully screen the
displacement field caused by the Au-electrode.
VII. METHODS
All density functional theory calculations were performed with the Vienna _ab-initio_ Simulation Package
(VASP). <sup>7</sup> The Coulomb kernel truncation method is implemented in VASP and is available as of version 6.5.0.
Charged defect calculations were performed on a single
chlorine defect of NaCl(001). The structure, cell and volume of bulk NaCl were relaxed using the `ISIF=3` option
implemented in VASP using the PBE functional with a
_k_ -point sampling of 12 _×_ 12 _×_ 12, yielding a lattice constant of _a_ = 3 _._ 93 <sup>˚</sup> A, _c_ = 5 _._ 56 <sup>˚</sup> A. The `Na_pv` and `Cl` PAW
potential were used for Na and Cl atoms respectively. A
plane-wave cutoff of 262 eV was used for all charged defect calculations. The _k_ -point density was kept constant
for different defect concentrations on NaCl(001) by dividing the number of repetitions of the cell by 12, i.e.
a 6 _×_ 6 _xy_ –repetition of the cell was computed with a
2 _×_ 2 _×_ 1 _k_ -point sampling. Gaussian smearing was used
with a broadening on 0.1 eV for all calculations. Simi
lar to Ref. 30, no surface relaxation was performed for
the defect as we are interested in visualizing qualitative
differences between 3D and 2D boundary conditions.
Molecular dynamics simulations of a 3 _×_ 3 Au(211) surface with 4 Au layers in contact with an interface of water (3 layers with a total of 15 water molecules) were
performed with an NVT ensemble. The lattice constant
of Au ( _a_ = 4 _._ 17 <sup>˚</sup> A) was determined based on the same
computational setup as used for the molecular dynamics
simulations. The `Au`, `O` and `H` PAW potentials were used
for Au, O and H species respectively. The bottom two
layers were fixed in position throughout the simulation
to mimic bulk-Au. The temperature was controlled using the Nose-Hoover <sup>31</sup> thermostat. The mass of hydrogen
in all simulations was set to 8 au.
We train a machine-learned force field (kernel-based
method implemented in VASP) <sup>32</sup> to generate long time
scale simulation trajectories. Training structures to the
force field were generated on-the-fly using the RPBE <sup>33</sup>
functional with D3 <sup>34</sup> dispersion correction and zero
damping. The temperature for both training runs was set
to 300K for the first 1800 training structures and then set
to 350K for the remaining structures. The training error
for charge-neutral Au(211) water is 1 _._ 15 meV/atom for
the total energies and 77 _._ 9 meV/ <sup>˚</sup> A for the forces with
2445 DFT computations. The training error for positively charged (with a charge of 0.25 electrons removed)
Au(211) water interface is 1 _._ 27 meV/atom for the total
energies and 76 _._ 0 meV/ <sup>˚</sup> A with 2822 DFT computations.
Post-processing of all potential profiles used in this
manuscript was performed with `py4vasp` and visualization was performed with `matplotlib` .
AUTHOR CONTRIBUTION
Sudarshan Vijay : Conceptualization, Data curation,
Formal analysis, Investigation, Software, Methodology,
_∗_ [sudarshan.vijay@vasp.at;](mailto:sudarshan.vijay@vasp.at) [sudarshan.vijay@iitb.ac.in](mailto:sudarshan.vijay@iitb.ac.in)
_†_ [georg.kresse@univie.ac.at](mailto:georg.kresse@univie.ac.at)
1 S.-J. Shin, D. H. Kim, G. Bae, S. Ringe, H. Choi, H.-K.
Lim, C. H. Choi, and H. Kim, Nature [Communications](http://dx.doi.org/10.1038/s41467-021-27909-x)
13, [174](http://dx.doi.org/10.1038/s41467-021-27909-x) (2022), number: 1 Publisher: Nature Publishing
Group.
2 P. Lindgren, G. Kastlunger, [and A. A. Peterson, The Jour-](http://dx.doi.org/10.1063/5.0123656)
nal of Chemical [Physics](http://dx.doi.org/10.1063/5.0123656) 157, 180902 (2022), publisher:
American Institute of Physics.
3 E. W. C. Spotte-Smith, R. L. Kam, D. Barter, X. Xie,
T. Hou, S. Dwaraknath, S. M. Blau, and K. A. Persson,
ACS Energy [Letters](http://dx.doi.org/ 10.1021/acsenergylett.2c00517) 7, 1446 (2022), publisher: American
Chemical Society (ACS).
4 N. Kumar, K. Leung, and D. J. Siegel, Journal of The
Electrochemical [Society](http://dx.doi.org/10.1149/2.009408jes) 161, E3059 (2014).
5 H. P. Komsa, N. Berseneva, A. V. Krasheninnikov,
and R. M. Nieminen, Physical [Review](http://dx.doi.org/10.1103/PhysRevX.4.031044) X 4 (2014),
[10.1103/PhysRevX.4.031044.](http://dx.doi.org/10.1103/PhysRevX.4.031044)
Validation, Visualization, Writing - original draft, Writing - review & editing. Martin Schlipf : Software,
Visualization, Writing - review & editing. Henrique
Miranda : Formal analysis, Writing - review & editing.
Ferenc Karsai : Formal analysis, Writing - review &
editing. Merzuk Kaltak : Formal analysis, Software,
Writing -review & editing. Martijn Marsman : Formal
analysis, Software, Writing - review & editing. Georg
Kresse : Conceptualization, Funding acquisition, Investigation, Methodology, Software, Resources, Writing review & editing
ACKNOWLEDGEMENT
S.V., M.S., M.M. and G.K. acknowledge support
form EuroHPC Joint Undertaking for awarding us access to Leonardo at CINECA, Italy. This research was
funded in part by the Austrian Science Fund (FWF)
10.55776/COE5. For open access purposes, the author
has applied a CC BY public copyright license to any author accepted manuscript version arising from this submission.
CONFLICT OF INTEREST
All authors of this manuscript are fully or partially employed by the VASP Software GmbH and are developers
of the Vienna _ab-initio_ Software Package.
6 C. Freysoldt, B. Grabowski, T. Hickel, J. Neugebauer,
G. Kresse, A. Janotti, and C. G. Van De Walle, [Reviews](http://dx.doi.org/ 10.1103/RevModPhys.86.253)
of Modern [Physics](http://dx.doi.org/ 10.1103/RevModPhys.86.253) 86, 253 (2014).
7 G. Kresse and J. Furthm¨uller, Physical [Review](http://dx.doi.org/10.1103/PhysRevB.54.11169) B - Condensed Matter and [Materials](http://dx.doi.org/10.1103/PhysRevB.54.11169) Physics 54, 11169 (1996),
arXiv: 10.1016/0927-0256(96)00008 ISBN: 1098-0121.
8 P. P. Ewald, Annalen der [Physik](http://dx.doi.org/10.1002/andp.19213690304) 369, 253 (1921), ~~e~~ print:
https://onlinelibrary.wiley.com/doi/pdf/10.1002/andp.19213690304.
9 _Simulation_ _of_ _electrostatic_ _systems_ _in_ _periodic_ _boundary_
_conditions._ _I._ _Lattice_ _sums_ _and_ _dielectric_ _constants_, Tech.
Rep. (1980) volume: 373.
10 L. Bengtsson, Physical Review B - [Condensed](http://dx.doi.org/10.1103/PhysRevB.59.12301) Matter and
Materials [Physics](http://dx.doi.org/10.1103/PhysRevB.59.12301) 59, 12301 (1999).
11 J. Neugebauer and M. Scheffler, Physical [Review](http://dx.doi.org/10.1103/PhysRevB.46.16067) B 46,
[16067](http://dx.doi.org/10.1103/PhysRevB.46.16067) (1992), publisher: American Physical Society.
12 T. Sohier, M. Calandra, and F. Mauri, [Physical](http://dx.doi.org/10.1103/PhysRevB.96.075448) Review
B 96, [75448](http://dx.doi.org/10.1103/PhysRevB.96.075448) (2017), arXiv: 1705.04973.
13 G. Makov and M. C. Payne, Physical [Review](http://dx.doi.org/10.1103/PhysRevB.51.4014) B 51, 4014
[(1995).](http://dx.doi.org/10.1103/PhysRevB.51.4014)
14 M. R. Jarvis, I. D. White, R. W. Godby, and M. C. Payne,
Physical Review [B](http://dx.doi.org/10.1103/PhysRevB.56.14972) 56, 14972 (1997).
15 C. A. Rozzi, D. Varsano, A. Marini, E. K. Gross, and
[A. Rubio, Physical Review B - Condensed Matter and Ma-](http://dx.doi.org/ 10.1103/PhysRevB.73.205119)
terials Physics 73 (2006), 10.1103/PhysRevB.73.205119,
iSBN: 2051192006.
16 Y. Mokrousov, G. Bihlmayer, and S. Bl¨ugel, [Physical](http://dx.doi.org/10.1103/PhysRevB.72.045402) Review B 72, 045402 (2005).
17 O. Andreussi and N. Marzari, Physical [Review](http://dx.doi.org/10.1103/PhysRevB.90.245101) B - Condensed Matter and [Materials](http://dx.doi.org/10.1103/PhysRevB.90.245101) Physics 90, 245101 (2014),
arXiv: 1410.7948.
18 K. Mathew, R. Sundararaman, K. Letchworth-Weaver,
T. A. Arias, and R. G. Hennig, Journal [of](http://dx.doi.org/10.1063/1.4865107) Chemical
Physics [140](http://dx.doi.org/10.1063/1.4865107), 84106 (2014), arXiv: 1310.4242.
19 K. Mathew, R. Sundararaman, K. Letchworth-Weaver,
T. A. Arias, and R. G. Hennig, Journal [of](http://dx.doi.org/10.1063/1.4865107) Chemical
Physics 140 [(2014),](http://dx.doi.org/10.1063/1.4865107) 10.1063/1.4865107, arXiv: 1310.4242
Publisher: American Institute of Physics Inc.
20 R. Sundararaman, W. A. Goddard, [and T. A. Arias, Jour-](http://dx.doi.org/10.1063/1.4978411)
nal of Chemical Physics [146](http://dx.doi.org/10.1063/1.4978411) (2017), 10.1063/1.4978411,
arXiv: 1701.04490 Publisher: American Institute of
Physics Inc.
21 J. S. Hub, B. L. De Groot, H. Grubm¨uller, and G. Groen[hof, Journal of Chemical Theory and Computation](http://dx.doi.org/10.1021/ct400626b) 10, 381
[(2014).](http://dx.doi.org/10.1021/ct400626b)
22 J. A. Gauthier, C. F. Dickens, H. H. Heenen, S. Vijay,
S. Ringe, and K. Chan, Journal of [Chemical](http://dx.doi.org/ 10.1021/acs.jctc.9b00717) Theory and
Computation 15, 6895 (2019).
23 S. Ismail-Beigi, Physical Review B 73, 233103 (2006),
arXiv:cond-mat/0603448.
24 N. D. M. Hine, J. Dziedzic, P. D. Haynes, and C.-K. Sky[laris, The Journal of Chemical Physics](http://dx.doi.org/10.1063/1.3662863) 135, 204103 (2011).
25 J. Ihm, A. Zunger, and M. L. Cohent, .
26 I. Dabo, B. Kozinsky, N. E. Singh-Miller, and N. Marzari,
Physical Review B - [Condensed](http://dx.doi.org/10.1103/PhysRevB.77.115139) Matter and Materials
Physics 77 (2008), [10.1103/PhysRevB.77.115139,](http://dx.doi.org/10.1103/PhysRevB.77.115139) arXiv:
0709.4647.
27 J. D. Jackson, 1925-2016, _Classical_ _[electrodynamics](https://search.library.wisc.edu/catalog/999849741702121)_ (Third
edition. New York : Wiley, [1999] ©1999, 1999).
28 D. M. Heyes, M. Barber, and J. H. R. Clarke, [Journal](http://dx.doi.org/10.1039/f29777301485)
of the Chemical Society, [Faraday](http://dx.doi.org/10.1039/f29777301485) Transactions 2 73, 1485
[(1977).](http://dx.doi.org/10.1039/f29777301485)
29 C. Freysoldt, J. Neugebauer, and C. G. Van De Walle,
Physical Review [Letters](http://dx.doi.org/10.1103/PhysRevLett.102.016402) 102, 1 (2009).
30 H. P. Komsa and A. Pasquarello, Physical [Review](http://dx.doi.org/10.1103/PhysRevLett.110.095505) Letters
110 (2013), [10.1103/PhysRevLett.110.095505.](http://dx.doi.org/10.1103/PhysRevLett.110.095505)
31 S. Nos´e, The Journal of [Chemical](http://dx.doi.org/10.1063/1.447334) Physics 81, 511 (1984).
32 R. Jinnouchi, J. Lahnsteiner, F. Karsai, G. Kresse, and
M. Bokdam, Physical Review [Letters](http://dx.doi.org/ 10.1103/PhysRevLett.122.225701) 122, 225701 (2019),
arXiv:1903.09613 [cond-mat].
33 B. Hammer, L. B. Hansen, and J. K. Nørskov, [Physical](http://dx.doi.org/10.1103/PhysRevB.59.7413)
Review B - Condensed [Matter](http://dx.doi.org/10.1103/PhysRevB.59.7413) and Materials Physics 59,
[7413](http://dx.doi.org/10.1103/PhysRevB.59.7413) (1999), publisher: American Physical Society.
34 [S. Grimme, Journal of Computational Chemistry](http://dx.doi.org/10.1002/jcc.20495) 27, 1787
[(2006).](http://dx.doi.org/10.1002/jcc.20495)
섹션 본문
섹션 본문이 없습니다.
참고문헌 35건
- First-principles calculations for point defects in solids Reviews of Modern Physics · American Physical Society · 2014 10.1103/revmodphys.86.253
- Assessment of correction methods for the band-gap problem and for finite-size effects in supercell defect calculations: Case studies for ZnO and GaAs Physical Review B · American Physical Society · 2008 10.1103/physrevb.78.235104
- Electrostatics in periodic boundary conditions and real-space corrections Physical Review B · American Physical Society · 2008 10.1103/physrevb.77.115139
- Full-potential linearized augmented plane-wave method for one-dimensional systems: Gold nanowire and iron monowires in a gold tube Physical Review B · American Physical Society · 2005 10.1103/physrevb.72.045402
- Supercell technique for total-energy calculations of finite charged and polar systems Physical review. B, Condensed matter · American Physical Society · 1997 10.1103/physrevb.56.14972
- Improved adsorption energetics within density-functional theory using revised Perdew-Burke-Ernzerhof functionals Physical review. B, Condensed matter · American Physical Society · 1999 10.1103/physrevb.59.7413
- Die Berechnung optischer und elektrostatischer Gitterpotentiale Annalen der Physik · Wiley · 1921 10.1002/andp.19213690304
- Molecular dynamics computer simulation of surface properties of crystalline potassium chloride Journal of the Chemical Society Faraday Transactions 2 Molecular and Chemical Physics · Royal Society of Chemistry · 1977 10.1039/f29777301485
- A unified formulation of the constant temperature molecular dynamics methods The Journal of Chemical Physics · American Institute of Physics · 1984 10.1063/1.447334
- Electrostatic interactions in finite systems treated with periodic boundary conditions: Application to linear-scaling density functional theory The Journal of Chemical Physics · American Institute of Physics · 2011 10.1063/1.3662863
- Truncation of periodic image interactions for confined systems Physical Review B · American Physical Society · 2006 10.1103/physrevb.73.233103
- Electrostatics of solvated systems in periodic boundary conditions Physical Review B · American Physical Society · 2014 10.1103/physrevb.90.245101
- Fully<i>Ab Initio</i>Finite-Size Corrections for Charged-Defect Supercell Calculations Physical Review Letters · American Physical Society · 2009 10.1103/physrevlett.102.016402
- Semiempirical GGA‐type density functional constructed with a long‐range dispersion correction Journal of Computational Chemistry · Wiley · 2006 10.1002/jcc.20495
- Exact Coulomb cutoff technique for supercell calculations Physical Review B · American Physical Society · 2006 10.1103/physrevb.73.205119
- Crystal Surface and State of Charge Dependencies of Electrolyte Decomposition on LiMn<sub>2</sub>O<sub>4</sub>Cathode Journal of The Electrochemical Society · Institute of Physics · 2014 10.1149/2.009408jes
- Momentum-space formalism for the total energy of solids Journal of Physics C Solid State Physics · IOP Publishing · 1979 10.1088/0022-3719/12/21/009
- Efficient iterative schemes for<i>ab initio</i>total-energy calculations using a plane-wave basis set Physical review. B, Condensed matter · American Physical Society · 1996 10.1103/physrevb.54.11169
- Periodic boundary conditions in<i>ab initio</i>calculations Physical review. B, Condensed matter · American Physical Society · 1995 10.1103/physrevb.51.4014
- Dipole correction for surface supercell calculations Physical review. B, Condensed matter · American Physical Society · 1999 10.1103/physrevb.59.12301
- Finite-Size Supercell Correction for Charged Defects at Surfaces and Interfaces Physical Review Letters · American Physical Society · 2013 10.1103/physrevlett.110.095505
- Quantifying Artifacts in Ewald Simulations of Inhomogeneous Systems with a Net Charge Journal of Chemical Theory and Computation · American Chemical Society · 2013 10.1021/ct400626b
- Implicit solvation model for density-functional study of nanocrystal surfaces and reaction pathways The Journal of Chemical Physics · American Institute of Physics · 2014 10.1063/1.4865107
- Adsorbate-substrate and adsorbate-adsorbate interactions of Na and K adlayers on Al(111) Physical review. B, Condensed matter · American Physical Society · 1992 10.1103/physrevb.46.16067
- Simulation of electrostatic systems in periodic boundary conditions. I. Lattice sums and dielectric constants Proceedings of the Royal Society of London A Mathematical and Physical Sciences · Royal Society · 1980 10.1098/rspa.1980.0135
- Charged Point Defects in the Flatland: Accurate Formation Energy Calculations in Two-Dimensional Materials Physical Review X · American Physical Society · 2014 10.1103/physrevx.4.031044
- Grand canonical electronic density-functional theory: Algorithms and applications to electrochemistry The Journal of Chemical Physics · American Institute of Physics · 2017 10.1063/1.4978411
- Density functional perturbation theory for gated two-dimensional heterostructures: Theoretical developments and application to flexural phonons in graphene Physical review. B./Physical review. B · American Physical Society · 2017 10.1103/physrevb.96.075448
- Phase Transitions of Hybrid Perovskites Simulated by Machine-Learning Force Fields Trained on the Fly with Bayesian Inference Physical Review Letters · American Physical Society · 2019 10.1103/physrevlett.122.225701
- Unified Approach to Implicit and Explicit Solvent Simulations of Electrochemical Reaction Energetics Journal of Chemical Theory and Computation · American Chemical Society · 2019 10.1021/acs.jctc.9b00717
- On the importance of the electric double layer structure in aqueous electrocatalysis Nature Communications · Nature Portfolio · 2022 10.1038/s41467-021-27909-x
- Toward a Mechanistic Model of Solid–Electrolyte Interphase Formation and Evolution in Lithium-Ion Batteries ACS Energy Letters · American Chemical Society · 2022 10.1021/acsenergylett.2c00517
- Classical Electrodynamics Classical theoretical physics · Springer Nature · 1998 10.1007/978-1-4612-0587-6
- Electrochemistry from the atomic scale, in the electronically grand-canonical ensemble The Journal of Chemical Physics · American Institute of Physics · 2022 10.1063/5.0123656
- Absolute standard hydrogen electrode potential and redox potentials of atoms and molecules: machine learning aided first principles calculations Chemical Science · Royal Society of Chemistry · 2024 10.1039/d4sc03378g