up


Total Energy and Forces: Ver. 1.3

Taisuke Ozaki, ISSP, Univ. of Tokyo

1 Total energy for the collinear case

The OpenMX is based on density functional theories (DFT), the norm-conserving pseudopotentials, and local pseudo-atomic basis functions. The Kohn-Sham (KS) Bloch functions ψμ are expanded in a form of linear combination of pseudo-atomic basis functions (LCPAO) ϕiα centered on site τi by

ψσμ(𝐤)(𝐫)=1NnNei𝐑n𝐤iαcσμ,iα(𝐤)ϕiα(𝐫-τi-𝐑n), (1)

where c and ϕ are an expansion coefficient and pseudo-atomic function, 𝐑n a lattice vector, i a site index, σ ( or ) spin index, α(plm) an organized orbital index with a multiplicity index p, an angular momentum quantum number l, and a magnetic quantum number m. The charge density operator n^σ for the spin index σ is given by

n^σ=1VBB𝑑k3μocc|ψσμ(𝐤)ψσμ(𝐤)|, (2)

where B means the integration over the first Brillouin zone of which volume is VB, and occ means the summation over occupied states. The charge density nσ(𝐫) with the spin index σ is found as

nσ(𝐫) = 𝐫|n^σ|𝐫, (3)
= 1VBB𝑑k3μocc𝐫|ψσμ(𝐤)ψσμ(𝐤)|𝐫,
= 1VBB𝑑k3nNiα,jβμoccei𝐑n𝐤cσμ,iα(𝐤)*cσμ,jβ(𝐤)ϕiα(𝐫-τi)ϕjβ(𝐫-τj-𝐑n),
= nNiα,jβρσ,iαjβ(𝐑n)ϕiα(𝐫-τi)ϕjβ(𝐫-τj-𝐑n)

with a density matrix defined by

ρσ,iαjβ(𝐑n)=1VBB𝑑k3μoccei𝐑n𝐤cσμ,iα(𝐤)*cσμ,jβ(𝐤). (4)

Although it is assumed that the electronic temperature is zero in this notes, OpenMX uses the Fermi-Dirac function with a finite temperature in the practical implementation. Therefore, the force on atom becomes inaccurate for metallic systems or very high temperature. The total charge density n is the sum of n and n as follows:

n(𝐫)=n(𝐫)+n(𝐫). (5)

Also, it is convenient to define a difference charge density δn(𝐫) for later discussion as

δn(𝐫) = n(𝐫)-n(a)(𝐫), (6)
= n(𝐫)-ini(a)(𝐫),

where ni(a)(𝐫) is an atomic charge density evaluated by a confinement atomic calculations associated with the site i.

Within the local density approximation (LDA) and generalized gradient approximation (GGA), the total energy of the collinear case is given by the sum of the kinetic energy Ekin, the electron-core Coulomb energy Eec, the electron-electron Coulomb energy Eee, the exchange-correlation energy Exc, and the core-core Coulomb energy Ecc as

Etot=Ekin+Eec+Eee+Exc+Ecc. (7)

The kinetic energy Ekin is given by

Ekin = 1VBB𝑑k3σμoccψσμ(𝐤)|T^|ψσμ(𝐤), (8)
= 1VBB𝑑k3σμoccnNiα,jβei𝐑n𝐤cσμ,iα(𝐤)*cσμ,jβ(𝐤)ϕiα(𝐫-τi)|T^|ϕjβ(𝐫-τj-𝐑n),
= σnNiα,jβρσ,iαjβ(𝐑n)hiαjβ,kin(𝐑n).

The electron-core Coulomb energy Eec is given by two contributions Eec(L) and Eec(NL) related to the local and non-local parts of pseudopotentials:

Eec = Eec(L)+Eec(NL), (9)
= 1VBB𝑑k3σμoccψσμ(𝐤)|I{Vcore,I(𝐫-τI)+VNL,I(𝐫-τI)}|ψσμ(𝐤),
= 1VBB𝑑k3σμoccnNiα,jβei𝐑n𝐤cσμ,iα(𝐤)*cσμ,jβ(𝐤)ϕiα(𝐫-τi)|IVcore,I(𝐫-τI)|ϕjβ(𝐫-τj-𝐑n)
+ 1VBB𝑑k3σμoccnNiα,jβei𝐑n𝐤cσμ,iα(𝐤)*cσμ,jβ(𝐤)ϕiα(𝐫-τi)|IVNL,I(𝐫-τI)|ϕjβ(𝐫-τj-𝐑n)
= σnNiα,jβρσ,iαjβ(𝐑n)ϕiα(𝐫-τi)|IVcore,I(𝐫-τI)|ϕjβ(𝐫-τj-𝐑n)
+ σnNiα,jβρσ,iαjβ(𝐑n)ϕiα(𝐫-τi)|IVNL,I(𝐫-τI)|ϕjβ(𝐫-τj-𝐑n),

where Vcore,I and VNL,I are the local and non-local parts of pseudopotential located on a site I. Thus, we have

Eec(L) = σnNiα,jβρσ,iαjβ(𝐑n)ϕiα(𝐫-τi)|IVcore,I(𝐫-τI)|ϕjβ(𝐫-τj-𝐑n), (10)
= 𝑑r3n(𝐫)IVcore,I(𝐫-τI).
Eec(NL) = σnNiα,jβρσ,iαjβ(𝐑n)ϕiα(𝐫-τi)|IVNL,I(𝐫-τI)|ϕjβ(𝐫-τj-𝐑n). (11)

The electron-electron Coulomb energy Eee is given by

Eee = 12𝑑r3𝑑r3n(𝐫)n(𝐫)|𝐫-𝐫|, (12)
= 12𝑑r3n(𝐫)VH(𝐫),
= 12𝑑r3n(𝐫){VH(a)(𝐫)+δVH(𝐫)},

where VH is decomposed into two contributions VH(a) and δVH(𝐫) coming from the superposition of atomic charge densities and the difference charge density δn(𝐫) defined by

VH(a)(𝐫) = I𝑑r3nI(a)(𝐫)|𝐫-𝐫|, (13)
= IVH,I(a)(𝐫-τI),
δVH(𝐫) = 𝑑r3δn(𝐫)|𝐫-𝐫|. (14)

Within the LDA, the exchange-correlation energy Exc is given by

Exc=𝑑r3{n(𝐫)+n(𝐫)+npcc(𝐫)}ϵxc(n+12npcc,n+12npcc), (15)

where npcc is a charge density used for a partial core correction (PCC). The core-core Coulomb energy Ecc is given as repulsive Coulomb interactions among effective core charge ZI considered in the generation of pseudopotentials by

Ecc=12I,JZIZJ|τI-τJ|. (16)

As discussed in the paper [1], for numerical accuracy and efficiency it is important to reorganize the sum of three terms Eec(L), Eee, and Ecc, as follows:

Eec(L)+Eee+Ecc = 𝑑r3n(𝐫)IVcore,I(𝐫-τI)+𝑑r3n(𝐫)VH(a)(𝐫)-𝑑r3n(𝐫)VH(a)(𝐫) (17)
+12𝑑r3n(𝐫){VH(a)(𝐫)+δVH(𝐫)}+12𝑑r3n(a)(𝐫)VH(a)(𝐫)-12𝑑r3n(a)(𝐫)VH(a)(𝐫)
+12I,JZIZJ|τI-τJ|,
= 𝑑r3n(𝐫)IVna,I(𝐫-τI)+12𝑑r3n(𝐫)δVH(𝐫)-12𝑑r3δn(𝐫)VH(a)(𝐫)
+12I,J[ZIZJ|τI-τJ|-𝑑r3nI(a)(𝐫)VH,J(a)(𝐫)],
= 𝑑r3n(𝐫)IVna,I(𝐫-τI)+12δn(𝐫)δVH(𝐫)𝑑𝐫
+12I,J[ZIZJ|τI-τJ|-nI(a)(𝐫)VH,J(a)(𝐫)𝑑𝐫],

where

Vna,I(𝐫-τI) = Vcore,I(𝐫-τI)+VH,I(a)(𝐫-τI). (18)

Therefore, we can reorganize these three terms as follows:

Eec(L)+Eee+Ecc=Ena+Eδee+Escc, (19)
Ena = 𝑑r3n(𝐫)IVna,I(𝐫-τI), (20)
= σnNiα,jβρσ,iαjβ(𝐑n)Iϕiα(𝐫-τi)|Vna,I(𝐫-τI)|ϕjβ(𝐫-τj-𝐑n),
Eδee = 12𝑑r3δn(𝐫)δVH(𝐫), (21)
Escc = 12I,J[ZIZJ|τI-τJ|-𝑑r3nI(a)(𝐫)VH,J(a)(𝐫)]. (22)

Following the reorganization of energy terms, the total energy can be given by

Etot=Ekin+Ena+Eec(NL)+Eδee+Exc+Escc. (23)

2 Kohn-Sham equation

Considering the orthogonality relation among one-particle wave functions, let us introduce a functional F with Lagrange’s multipliers εσνσν:

F=Etot+𝐤σννεσνσν(𝐤)(δσνσν(𝐤)-ψσν(𝐤)|ψσν(𝐤)). (24)

The variation of the functional F with respect to the LCPAO coefficients cσμ,iα(𝐤)* yields the following matrix equation:

Hσ(𝐤)cσ(𝐤)=S(𝐤)cσ(𝐤)εσσ(𝐤). (25)

Moreover, noting that the matrix εσσ(𝐤) for Lagrange’s multipliers is Hermitian, and introducing V diagonalizing the matrix, we can transform above equation as:

Hσ(𝐤)cσ(𝐤)V=S(𝐤)cσ(𝐤)VVεσσ(𝐤)V. (26)

By renaming cσ(𝐤)V by cσ(𝐤), and defining the diagonal element of Vεσσ(𝐤)V to be εσμ(𝐤), we have a well known Kohn-Sham equation in a matrix form as a generalized eigenvalue problem:

Hσ(𝐤)cσμ(𝐤)=εσμ(𝐤)S(𝐤)cσμ(𝐤), (27)

where the Hamiltonian and overlap matrices are given by

Hσ,iαjβ(𝐤) = nei𝐑n𝐤ϕiα(𝐫-τi)|H^σ|ϕjβ(𝐫-τj-𝐑n), (28)
= nei𝐑n𝐤hσ,iαjβ(𝐑n).
Siαjβ(𝐤) = nei𝐑n𝐤ϕiα(𝐫-τi)|ϕjβ(𝐫-τj-𝐑n), (29)
= nei𝐑n𝐤sσ,iαjβ(𝐑n).

with a Kohn-Sham Hamiltonian operator

H^σ=T^+Veff,σ, (30)

and the effective potential

Veff,σ=kVNL,k+kVna,k+δVH+Vxc,σ. (31)

3 Projector expansion of Vna,I

The neutral atom potential Vna,I is spherical and defined within the finite range determined by the cutoff radius rc,I of the confinement potential. Therefore, the potential Vna,I can be expressed by a projector expansion as follows:

V^na,I=lmLmaxζNrad|Vna,IR¯lζYlm1clζYlmR¯lζVna,I|, (32)

where a set of radial functions {R¯lζ} is an orthonormal set defined by a norm r2𝑑rRVna,kR for radial functions R and R, and is calculated by the following Gram-Schmidt orthogonalization [4]:

R¯lζ = Rlζ-ηζ-1R¯lη1clηr2𝑑rR¯lηVna,kRlζ, (33)
clζ = r2𝑑rR¯lζVna,kR¯lζ. (34)

The radial function Rlζ used is pseudo wave functions for both the ground and excited states under the same confinement potential as used in the calculation of the atomic electron density ni(a) [2, 3]. The most important feature in the projector expansion is that the deep neutral atom potential is expressed by a separable form, and thereby we only have to evaluate the two-center integrals to construct the matrix elements for the neutral atom potential. As discussed later, the two-center integrals can be accurately evaluated in momentum space. For details of the projector expansion method, see also the reference [1].

4 Two-center integrals

The overlap integrals, matrix elements for the non-local potentials, for the neutral atom potentials in a separable form discussed in the Sec. 3, and for the kinetic operator consist of two-center integrals. In this section, the evaluation of the two-center integrals is discussed. The pseudo-atomic function ϕiα(𝐫) in Eq. (1) is given by a product of a real spherical harmonic function Y¯lm and a radial wave function Rpl:

ϕiα(𝐫)=Y¯lm(𝐫^)Rpl(r), (35)

where 𝐫^ means Euler angles, θ and ϕ, for 𝐫, and r radial coordinate. Although the real function is used for the spherical harmonic function in OpenMX instead of the complex function Ylm(𝐫^), firstly we consider the case with the complex function Ylm(𝐫^) as

ϕiα(𝐫)=Ylm(𝐫^)Rpl(r). (36)

After the evaluation of two-center integrals related to the complex function, they are transformed into two-center integrals for the real function Y¯lm(𝐫^) by matrix operations. Then, the pseudo-atomic function ϕiα(𝐫) given by Eq. (36) can be Fourier-transformed as follows:

ϕ~iα(𝐤)=(12π)3𝑑r3ϕiα(𝐫)e-i𝐤𝐫. (37)

The back transformation is defined by

ϕiα(𝐫)=(12π)3𝑑k3ϕ~iα(𝐤)ei𝐤𝐫. (38)

Noting the Rayleigh expansion

ei𝐤𝐫 = 4πL=0M=-LLiLjL(kr)YLM*(𝐤^)YLM(𝐫^), (39)
e-i𝐤𝐫 = 4πL=0M=-LL(-i)LjL(kr)YLM(𝐤^)YLM*(𝐫^), (40)

and putting Eqs. (36) and (40) into Eq. (37), we have

ϕ~iα(𝐤) = (12π)3𝑑r3Ylm(𝐫^)Rpl(r){4πL=0M=-LL(-i)LjL(kr)YLM(𝐤^)YLM*(𝐫^)}, (41)
= (12π)34πL=0M=-LL(-i)LYLM(𝐤^)𝑑rr2Rpl(r)jL(kr)𝑑θ𝑑ϕsin(θ)Ylm(𝐫^)YLM*(𝐫^),
= [(12π)34π(-i)l𝑑rr2Rpl(r)jl(kr)]Ylm(𝐤^),
= R~pl(k)Ylm(𝐤^),

where we defined

R~pl(k)=[(12π)34π(-i)l𝑑rr2Rpl(r)jL(kr)]. (42)

Using Eqs. (38), (40), and (41), the overlap integral is evaluated as follows:

ϕiα(𝐫)|ϕjβ(𝐫-τ) = 𝑑r3ϕiα*(𝐫)ϕjβ(𝐫-τ), (43)
= 𝑑r3(12π)3𝑑k3R~pl*(k)Ylm*(𝐤^)e-i𝐤𝐫(12π)3𝑑k3R~pl(k)Ylm(𝐤^)ei𝐤(𝐫-τ),
= (12π)3𝑑k3𝑑k3e-i𝐤τR~pl*(k)Ylm*(𝐤^)R~pl(k)Ylm(𝐤^)𝑑r3ei(𝐤-𝐤)𝐫,
= 𝑑k3e-i𝐤τR~pl*(k)Ylm*(𝐤^)R~pl(k)Ylm(𝐤^),
= 𝑑k3[4πL=0M=-LL(-i)LjL(kτ)YLM(𝐤^)YLM*(τ^)]R~pl*(k)Ylm*(𝐤^)R~pl(k)Ylm(𝐤^),
= 4πL=0M=-LL(-i)LYLM*(τ^)Cl(-m),lm,LM𝑑kk2jL(k|τ|)R~pl*(k)R~pl(k),

where an integral in the third line was evaluated as

𝑑r3ei(𝐤-𝐤)𝐫 = (2π)3δ(𝐤-𝐤), (44)

and one may notice Gaunt coefficients defined by

Cl(-m),lm,LM=𝑑θ𝑑ϕsin(θ)Ylm*(𝐤^)Ylm(𝐤^)YLM(𝐤^). (45)

The matrix element for the kinetic operator can be easily found in the same way as for the overlap integral as follows:

ϕiα(𝐫)|T^|ϕjβ(𝐫-τ) = 𝑑r3ϕiα*(𝐫){-12(d2dx2+d2dy2+d2dz2)}ϕjβ(𝐫-τ), (46)
= 2πL=0M=-LL(-i)LCl(-m),lm,LM𝑑kk4jL(kr)R~pl*(k)R~pl(k).

5 Discretization

The two energy terms Eδee and Exc are discretized by a regular mesh {𝐫𝐩} in real space [5], while the integrations in Ekin, Ena, Escc, and Eec(NL) can be reduced to two center integrals which can be evaluated in momentum space. The regular mesh {𝐫𝐩} in real space is generated by dividing the unit cell with a same interval which is characterized by the cutoff energies Ecut(1), Ecut(2), and Ecut(3):

Ecut(1) = 12𝐠𝐛1𝐠𝐛1,Ecut(2)=12𝐠𝐛2𝐠𝐛2,Ecut(3)=12𝐠𝐛3𝐠𝐛3, (47)
𝐠𝐚1 = 𝐚1N1,𝐠𝐚2=𝐚2N2,𝐠𝐚3=𝐚3N3, (48)
𝐠𝐛1 = 2π𝐠𝐚2×𝐠𝐚3ΔV,𝐠𝐛2=2π𝐠𝐚3×𝐠𝐚1ΔV,𝐠𝐛3=2π𝐠𝐚1×𝐠𝐚2ΔV, (49)
ΔV = 𝐠𝐚1(𝐠𝐚2×𝐠𝐚3), (50)

where 𝐚1, 𝐚2, and 𝐚3 are unit cell vectors of the whole system, and N1, N2, and N3 are the number of division for 𝐚1, 𝐚2, and 𝐚3-axes, respectively. N1, N2, and N3 are determined so that the differences among Ecut(1), Ecut(2), and Ecut(3) can be minimized starting from the given cutoff energy. Using the regular mesh {𝐫𝐩}, the Hartree energy Eδee associated with the difference charge density δn(𝐫) is discretized as

Eδee=12ΔV𝐩δn(𝐫𝐩)δVH(𝐫𝐩). (51)

The same regular mesh {𝐫𝐩} is also applied to the solution of Poisson’s equation to find δVH. Then, the charge density is Fourier transformed by

δn~(𝐪) = 1N1N2N3n1N1-1n2N2-1n3N3-1δn(𝐫n1n2n3)e-i𝐪𝐫n1n2n3, (52)
= 1N1N2N3𝐩δn(𝐫𝐩)e-i𝐪𝐫𝐩.

From {δn~(𝐪)}, we can evaluate δV~H(𝐪) by

δV~H(𝐪)=4π|𝐪|2δn~(𝐪). (53)

Thus, we see that δVH(𝐫) is also written in a discretized form with the regular mesh as follows:

δVH(𝐫) = 𝐪δV~H(𝐪)ei𝐪𝐫, (54)
= 4πN1N2N3𝐪1|𝐪|2𝐩δn(𝐫𝐩)ei𝐪(𝐫-𝐫𝐩).

Within the LDA, Exc can be easily discretized as well as Eδee by

Exc = ΔV𝐩{n(𝐫𝐩)+n(𝐫𝐩)+npcc(𝐫𝐩)}ϵxc(n(𝐫𝐩)+12npcc(𝐫𝐩),n(𝐫𝐩)+12npcc(𝐫𝐩)). (55)

For the GGA, Exc is discretized with the gradient of charge density evaluated with a finite difference scheme in the same way in the LDA.

Since the derivative of the charge density n(𝐫𝐩) with respect to cσμ,iα(𝐤)* is given by

n(𝐫𝐩)cσμ,iα(𝐤)*=jβcσμ,jβnNei𝐑n𝐤ϕiα(𝐫𝐩)ϕjβ(𝐫𝐩), (56)

the matrix elements for Vδee and Vxc in the Kohn-Sham equation of Eq. (27) are found by differentiating the energies Eδee and Exc with respect to cσμ,iα(𝐤)* as follows:

Eδeecσμ,iα(𝐤)* = 𝐩n(𝐫𝐩)cσμ,iα(𝐤)*Eδeen(𝐫𝐩), (57)
= jβcσμ,jβ[nNei𝐑n𝐤ΔV𝐩ϕiα(𝐫𝐩)δVH(𝐫𝐩)ϕjβ(𝐫𝐩)]

and

Exccσμ,iα(𝐤)* = 𝐩nσ(𝐫𝐩)cσμ,iα(𝐤)*Excnσ(𝐫𝐩), (58)
= jβcσμ,jβ[nNei𝐑n𝐤ΔV𝐩ϕiα(𝐫𝐩)vxc,σ(𝐫𝐩)ϕjβ(𝐫𝐩)],

where the quantities in the parenthesis [] correspond to the matrix elements.

6 Force on atom

Etotτk=Ekinτk+Enaτk+Eec(NL)τk+Eδeeτk+Excτk+Esccτk. (59)

The derivative of the kinetic energy with respect to τk is given by

Ekinτk = 1VBB𝑑k3σμoccnNiα,jβeiτn𝐤cσμ,iα(𝐤)*τkcσμ,jβ(𝐤)ϕiα(𝐫-τi)|T^|ϕjβ(𝐫-τj-𝐑n) (60)
+ 1VBB𝑑k3σμoccnNiα,jβei𝐑n𝐤cσμ,iα(𝐤)*cσμ,jβ(𝐤)τkϕiα(𝐫-τi)|T^|ϕjβ(𝐫-τj-𝐑n)
+ 1VBB𝑑k3σμoccnNiα,jβei𝐑n𝐤cσμ,iα(𝐤)*cσμ,jβ(𝐤)ϕiα(𝐫-τi)|T^|ϕjβ(𝐫-τj-𝐑n)τk.

The derivative of the neutral atom potential energy with respect to τk is given by

Enaτk = 1VBB𝑑k3σμoccnNiα,jβei𝐑n𝐤cσμ,iα(𝐤)*τkcσμ,jβ(𝐤)ϕiα(𝐫-τi)|Vna(𝐫)|ϕjβ(𝐫-τj-𝐑n) (61)
+ 1VBB𝑑k3σμoccnNiα,jβei𝐑n𝐤cσμ,iα(𝐤)*cσμ,jβ(𝐤)τkϕiα(𝐫-τi)|Vna(𝐫)|ϕjβ(𝐫-τj-𝐑n)
+ 1VBB𝑑k3σμoccnNiα,jβei𝐑n𝐤cσμ,iα(𝐤)*cσμ,jβ(𝐤){ϕiα(𝐫-τi)|Vna(𝐫)|ϕjβ(𝐫-τj-𝐑n)}τk.

The derivative of the non-local potential energy with respect to τk is given by

Eec(NL)τk = 1VBB𝑑k3σμoccnNiα,jβei𝐑n𝐤cσμ,iα(𝐤)*τkcσμ,jβ(𝐤)ϕiα(𝐫-τi)|VNL(𝐫)|ϕjβ(𝐫-τj-𝐑n) (62)
+ 1VBB𝑑k3σμoccnNiα,jβei𝐑n𝐤cσμ,iα(𝐤)*cσμ,jβ(𝐤)τkϕiα(𝐫-τi)|VNL(𝐫)|ϕjβ(𝐫-τj-𝐑n)
+ 1VBB𝑑k3σμoccnNiα,jβei𝐑n𝐤cσμ,iα(𝐤)*cσμ,jβ(𝐤){ϕiα(𝐫-τi)|VNL(𝐫)|ϕjβ(𝐫-τj-𝐑n)}τk.

The derivative of the Hartree energy for the difference charge density δn(𝐫) with respect to τk is given by

Eδeeτk=𝐩n(𝐫𝐩)τkEδeen(𝐫𝐩)+𝐩n(a)(𝐫𝐩)τkEδeen(a)(𝐫𝐩). (63)

Considering Eq. (54) and

δVH(𝐫𝐩)n(𝐫𝐪)=4πN1N2N3𝐪1|𝐪|2ei𝐪(𝐫𝐩-𝐫𝐪), (64)

we have

Eδeen(𝐫𝐪) = 12ΔV{δVH(𝐫𝐪)+𝐩δn(𝐫𝐩)δVH(𝐫𝐩)n(𝐫𝐪)}, (65)
= 12ΔVδVH(𝐫𝐪)+4πΔV2N1N2N3𝐪1|𝐪|2𝐩δn(𝐫𝐩)ei𝐪(𝐫𝐩-𝐫𝐪),
= ΔVδVH(𝐫𝐪),

and

Eδeen(a)(𝐫𝐪) = -12ΔVδVH(𝐫𝐪)+12ΔV𝐩δn(𝐫𝐩)δVH(𝐫𝐩)n(a)(𝐫𝐪), (66)
= -12ΔVδVH(𝐫𝐪)-12ΔV4πN1N2N3𝐪1|𝐪|2𝐩δn(𝐫𝐩)ei𝐪(𝐫𝐩-𝐫𝐪),
= -ΔVδVH(𝐫𝐪).

Moreover, the derivative of n(𝐫𝐩) with respect to τk is given by

n(𝐫𝐩)τk = 1VBB𝑑k3σμocciα,jβnNei𝐑n𝐤(cσμ,iα(𝐤)*τkcσμ,jβ(𝐤)ϕiα(𝐫𝐩)ϕjβ(𝐫𝐩)+cσμ,iα(𝐤)*cσμ,jβ(𝐤)τkϕiα(𝐫𝐩)ϕjβ(𝐫𝐩)) (67)
+2VBB𝑑k3σα,jβμnNei𝐑n𝐤cσμ,kα(𝐤)*cσμ,jβ(𝐤)ϕkα(𝐫𝐩)τkϕjβ(𝐫𝐩).

The derivative of n(a)(𝐫𝐩) with respect to τk is simply given by

n(a)(𝐫𝐩)τk=nk(a)(𝐫𝐩)τk. (68)

The derivative of Exc with respect to the atomic coordinate τk is easily evaluated by

Excτk = σ𝐩nσ(𝐫𝐩)τkExcnσ(𝐫𝐩)+σ𝐩npcc(𝐫𝐩)τkExcnpcc(𝐫𝐩), (69)
= ΔVσ𝐩nσ(𝐫𝐩)τkVxc,σ(n(𝐫𝐩,npcc(𝐫𝐩))+ΔV2σ𝐩npcc(𝐫𝐩)τkVxc,σ(n(𝐫𝐩),npcc(𝐫𝐩)).

The derivative of the screened core-core Coulomb energy Escc with respect to τk is given by

Esccτk=12I,J[{ZIZJ|τI-τJ|}τk-{𝑑r3nI(a)(𝐫)VH,J(a)(𝐫)}τk]. (70)

Since the second term is tabulated in a numerical table as a function of distance due to the spherical symmetry of integrands, the derivative can be evaluated analytically by employing an interpolation scheme. The derivatives given by Eqs. (60), (61), (62), (63), and (69) contain the derivative of LCPAO coefficient c. The derivative of c can be transformed to the derivative of the overlap matrix with respect to τk as shown below. By summing up all the terms including the derivatives of c in Eqs. (60), (61), (62), (63), and (69), we have

A=1VBB𝑑k3σ{Tr(Θ(EF-εσ(𝐤))cσ(𝐤)τkHσ(𝐤)cσ(𝐤))+Tr(Θ(EF-εσ(𝐤))cσ(𝐤)Hσ(𝐤)cσ(𝐤)τk)}, (71)

where Θ is a diagonal matrix consisting of Heaviside step functions. Noting that Eq. (27) can be written by Hσ(𝐤)cσ(𝐤)=S(𝐤)cσ(𝐤)εσ(𝐤) and cσ(𝐤)Hσ(𝐤)=εσ(𝐤)cσ(𝐤)S(𝐤) in a matrix form, the product of two diagonal matrices is commutable, and Tr(XY)=Tr(YX) for any square matrices, Eq. (71) can be written as

A = 1VBB𝑑k3σ{Tr(Θ(EF-εσ(𝐤))cσ(𝐤)τkS(𝐤)cσ(𝐤)εσ(𝐤))+Tr(Θ(EF-εσ(𝐤))εσ(𝐤)cσ(𝐤)S(𝐤)cσ(𝐤)τk)}, (72)
= 1VBB𝑑k3σ{Tr(Θ(EF-εσ(𝐤))cσ(𝐤)τkS(𝐤)cσ(𝐤)εσ(𝐤))+Tr(Θ(EF-εσ(𝐤))cσ(𝐤)S(𝐤)cσ(𝐤)τkεσ(𝐤))},
= 1VBB𝑑k3σ{Tr(Θ(EF-εσ(𝐤))(cσ(𝐤)τkS(𝐤)cσ(𝐤)+cσ(𝐤)S(𝐤)cσ(𝐤)τk)εσ(𝐤))}.

Moreover, taking account of the derivative of the orthogonality relation cσ(𝐤)S(𝐤)cσ(𝐤)=I with respect to τk, we have the following relation:

cσ(𝐤)τkS(𝐤)cσ(𝐤)+cσ(𝐤)S(𝐤)cσ(𝐤)τk=-cσ(𝐤)S(𝐤)τkcσ(𝐤). (73)

Putting Eq. (73) into Eq. (72), we have

A=-σnNiα,jβEσ,iαjβ(𝐑n)Siαjβ(𝐑n)τk,

where the energy density matrix Eσ,iαjβ(𝐑n) is given by

Eσ,iαjβ(𝐑n)=1VBB𝑑k3μoccei𝐑n𝐤εσμ(𝐤)cσμ,iα(𝐤)*cσμ,jβ(𝐤). (74)

The terms including the derivative of matrix elements in Eqs. (60), (61), and (62) can be easily evaluated by

B=σnNiα,jβρσ,iαjβ(𝐑n){hiαjβ,kin(𝐑n)+hiαjβ,Vna(𝐑n)+hiαjβ,VNL(𝐑n)}τk, (75)

where

hiαjβ,kin(𝐑n) = ϕiα(𝐫-τi)|T^|ϕjβ(𝐫-τj-𝐑n), (76)
hiαjβ,Vna(𝐑n) = ϕiα(𝐫-τi)|Vna|ϕjβ(𝐫-τj-𝐑n), (77)
hiαjβ,VNL(𝐑n) = ϕiα(𝐫-τi)|VNL|ϕjβ(𝐫-τj-𝐑n), (78)

The derivatives of these elements are evaluated analytically from the analytic derivatives of Eqs. (43) and (46). The remaining contributions in first terms of Eqs. (63) and (69) are given by

C=σnNiα,jβρσ,iαjβ(𝐑n)2ΔV𝐩ϕkα(𝐫𝐩)τk{δVH(𝐫𝐪)+Vxc,σ(𝐫𝐪,npcc(𝐫𝐩)}ϕjβ(𝐫𝐩). (79)

The second terms in Eqs. (63) and (69) becomes

D=-ΔV𝐩δVH(𝐫𝐩)nk(a)(𝐫𝐩)τk+ΔV2σ𝐩npcc,k(𝐫𝐩)τkVxc,σ(n(𝐫𝐩),npcc(𝐫𝐩)). (80)

Thus, we see that the derivative of the total energy with respect to the atomic coordinate τk is analytically evaluated for any grid fineness as

Etotτk=A+B+C+D+Esccτk. (81)

References

  • [1] T. Ozaki and H. Kino, Phys. Rev. B 72, 045121 (2005).
  • [2] T. Ozaki, Phys. Rev. B 67, 155108 (2003).
  • [3] T. Ozaki and H. Kino, Phys. Rev. B 69, 195113 (2004).
  • [4] P. E. Blochl, Phys. Rev. B 41, R5414 (1990).
  • [5] J. M. Soler, E. Artacho, J. D. Gale, A. Garcia, J. Junquera, P. Ordejon, and D. Sanchez-Portal, J. Phys.: Condens. Matter 14, 2745 (2002).