1 Introduction

Density functional theory (DFT) has successfully become the method of choice for computing the electronic structure of large molecules and complex materials [1,2,3,4,5]. However, although density functional theory provides an exact mathematical framework for the electronic structure problem [6,7,8,9,10,11,12], its utility in practical calculations is limited by the accuracy of approximate exchange-correlation functionals. This motivates the ongoing research into accurate and feasible approximate exchange-correlation functionals [4, 13,14,15,16]. Despite the success of functionals such as the local-density approximation [17,18,19] (LDA) and generalized gradient approximations [20,21,22,23] (GGA) due to their computational efficiency, they are subject to a number of deficiencies. These deficiencies are usually analyzed by determining which exact constraints are (and are not) satisfied by the approximate functionals, though it is also true that no (semi)local functional can ever be exact [24,25,26,27].

This has stimulated recent work on nonlocal density functionals, where the exchange-correlation energy is approximated as a six-dimensional integral [28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47],

$$\begin{aligned} E_{xc} [\rho ] = \int \int f [\rho ; {\mathbf r},{\mathbf r}^\prime ] d^3 {\mathbf r}d^3 {\mathbf r}^\prime . \end{aligned}$$
(18.1)

This type of functional is particularly advantageous when the exchange-correlation hole is delocalized [24,25,26, 48,49,50] and is essential when for density-functionals that are accurate not only for short-range electron correlations, but also for long-range electron correlations like dispersion [30,31,32,33,34,35,36,37].

Equation (18.1) provides a natural form for the exchange-correlation functional since the exact exchange-correlation energy functional can be written in the form

$$\begin{aligned} E_{xc} [\rho ] = \frac{1}{2} \int \int \frac{\rho ({\mathbf r})\rho ({\mathbf r}^\prime ) \overline{h_{xc} ({\mathbf r},{\mathbf r}^\prime )}}{|{\mathbf r}-{\mathbf r}^\prime |} d^3 {\mathbf r}d^3 {\mathbf r}^\prime , \end{aligned}$$
(18.2)

where

$$\begin{aligned} \overline{h_{xc} ({\mathbf r},{\mathbf r}^\prime )} = \int h_{xc}^\lambda ({\mathbf r},{\mathbf r}^\prime ) d\lambda \end{aligned}$$
(18.3)

is the exchange-correlation hole

$$\begin{aligned} h_{xc}^\lambda ({\mathbf r},{\mathbf r}^\prime ) = \frac{\rho _2^\lambda ({\mathbf r},{\mathbf r}^\prime ) - \rho ({\mathbf r})\rho ({\mathbf r}^\prime )}{\rho ({\mathbf r})\rho ({\mathbf r}^\prime )} \end{aligned}$$
(18.4)

averaged over the constant-density adiabatic connection path, in which the electron-electron repulsion potential \(\lambda /|{\mathbf r}-{\mathbf r}^\prime |\) is increased from the noninteracting limit (\(\lambda = 0\)) to the physical limit of interest (\(\lambda = 1\)) [51, 52]. Here,

$$\begin{aligned} \rho _2^\lambda ({\mathbf r},{\mathbf r}^\prime ) = \left\langle \varPsi ^\lambda \left| \sum _{j\ne i} \delta ({\mathbf r}_i -{\mathbf r}) \delta ({\mathbf r}_j - {\mathbf r}^\prime ) \right| \varPsi ^\lambda \right\rangle \end{aligned}$$
(18.5)

is the electron pair density.

There have been several recent attempts to construct nonlocal exchange-correlation functionals using models for the exchange-correlation hole [38,39,40,41,42,43,44,45,46,47]. Some of them are based on a variant of the classical Ornstein–Zernike equation [41, 42, 53,54,55,56,57] while some others are two-point weighted density approximations that rely on analytical models of the exchange-correlation hole for the uniform electron gas [58, 59]. The latter approach seems to be promising since they are suggested to be competitive with the best generalized gradient approximation. Moreover, these two-point weighted density approximations are fully nonlocal, have no self-interaction error, approximately fulfill the Pauli principle, and preserve the uniform electron gas limit [38, 39]. In these models the symmetry of the exchange-correlation hole is achieved by means of a generalized mean (power mean).

Motivated by these preliminary results we explore ways to improve the two-point weighted density approximation (2pt-WDA) exchange density functional. Section 18.2 provides a brief overview of the approach, and extends our previous tests to all ions with charges between \(-1\) and \(+12\) for the first 36 elements of the periodic table (H–Kr). Based on the dependence of these results on the power used in the generalized mean, we propose a gradient-corrected 2pt-WDA. This model is studied in Sect. 18.3, and our conclusions are summarized in Sect. 18.4.

2 The Weighted Density Approximation for Atoms and Ions

The main ingredient of the weighted density approximation discussed here is the exchange hole for the uniform electron gas (UEG)

$$\begin{aligned} f\left( k_{\mathrm {F},\sigma }^{(x)} |{\mathbf r}-{\mathbf r}^\prime |\right) = - 9 \left( \frac{ \sin \left( k_{\mathrm {F},\sigma }^{(x)} |{\mathbf r}-{\mathbf r}^\prime |\right) - \left( k_{\mathrm {F},\sigma }^{(x)} |{\mathbf r}-{\mathbf r}^\prime |\right) \cos \left( k_{\mathrm {F},\sigma }^{(x)} |{\mathbf r}-{\mathbf r}^\prime |\right) }{ \left( k_{\mathrm {F},\sigma }^{(x)} |{\mathbf r}-{\mathbf r}^\prime |\right) ^3 } \right) ^2 \end{aligned}$$
(18.6)

(cf. Eq. (17.5) in Chap. 17 [60]) where we use the expression for \(k_{\mathrm{F}}\) from the uniform electron gas,

$$\begin{aligned} k_{\mathrm {F},\sigma }^{(0)} ({\mathbf r}) = \sqrt{6\pi ^2 \rho _\sigma ({\mathbf r})} . \end{aligned}$$
(18.7)

The expression Eq. (18.6) for the exchange hole needs to be symmetric with respect to interchange of \({\mathbf r}\) and \({\mathbf r}^\prime \) because the electron pair density is symmetric [61, 62]. We use the p-mean to symmetrize this formula [38, 39],

$$\begin{aligned} k_{\mathrm {F},\sigma }^{(x)} ({\mathbf r},{\mathbf r}^\prime ) = \left[ \frac{1}{2} \left( \left( k_{\mathrm {F},\sigma }^{(x)} ({\mathbf r})\right) ^p + \left( k_{\mathrm {F},\sigma }^{(x)} ({\mathbf r}^\prime )\right) ^p \right) \right] ^{1/p} . \end{aligned}$$
(18.8)

Finally, the exchange energy is computed by means of

$$\begin{aligned} E_x^{(x)} [\rho ] \approx \frac{1}{2} \sum _{\sigma =\alpha ,\beta } \int \int \frac{\rho _\sigma ({\mathbf r}) \rho _\sigma ({\mathbf r}^\prime ) h_{x,\sigma }^{(x)} ({\mathbf r},{\mathbf r}^\prime )}{|{\mathbf r}-{\mathbf r}^\prime |} d^3 {\mathbf r}d^3 {\mathbf r}^\prime , \end{aligned}$$
(18.9)

where the exchange hole is approximated as

$$\begin{aligned} h_{x,\sigma }^{(x)} ({\mathbf r},{\mathbf r}^\prime ) \approx f \left( k_{\mathrm {F},\sigma }^{(x)} ({\mathbf r},{\mathbf r}^\prime ) |{\mathbf r}-{\mathbf r}^\prime | \right) . \end{aligned}$$
(18.10)

This approach naturally leads to three different types of functional. The 0pt-WDA functional is constructed by the direct use of Eq. (18.7) when computing the exchange hole. This functional is neither symmetric nor normalized. In 1pt-WDA, an effective \(k_{\mathrm {F},\sigma }^{(1)} ({\mathbf r})\) is used to enforce the normalization of the hole

$$\begin{aligned} -1&= \int \rho _\sigma ({\mathbf r}) h_{x;\sigma \sigma } ({\mathbf r},{\mathbf r}^\prime ) d^3 {\mathbf r}\nonumber \\&= \int \rho _\sigma ({\mathbf r}) f\left( k_{\mathrm {F},\sigma }^{(1)} ({\mathbf r}^\prime )|{\mathbf r}-{\mathbf r}^\prime |\right) d^3 {\mathbf r}. \end{aligned}$$
(18.11)

This functional is now normalized but not symmetric. Finally, the 2pts-WDA arises when both symmetry and normalization are imposed.

Following the same computational approach described in our previous work [38, 39], we computed the exchange energy for all ions with charge from \(-1\) to \(+12\) of the first 36 atoms in the periodic table (H–Kr). Minimizing the root-mean-square error in the exchange energy over the entire dataset gave a value of \(p = 2\) for Eq. (18.8). The weighted density approximation is still competitive with the traditional GGA functionals (B88 [21], PBE [22], and OPTX [23]), and significantly better than the local density approximation [17], but both the average and root-mean-square errors are worse than the results for neutral atoms and small molecules [39]. This finding reinforces our previous observation: p should be density dependent. This is more clearly observed in Tables 18.1 and 18.2, where the average and root-mean-square errors are shown for different charges; the errors increase with increasing charge, indicating that p should be system-dependent.

Table 18.1 Average errors for the atoms and atomic ions with \(-1\) to \(+12\) charge, H–Kr, for conventional density functionals (LDA, B88, PBE, OPTX) and the symmetrized weighted density approximations (0pt-WDA, 1pt-WDA, 2pt-WDA) described in Sect. 18.2. The \(p = 2\) mean is chosen in Eq. (18.8). The average over all atoms and ions is provided in the bottom row. The rows above that are the average error for species of a given charge; for example, the first row is the average error in the atomic anions
Table 18.2 Root-mean-square errors for the atoms and atomic ions with \(-1\) to \(+12\) charge, H–Kr, for conventional density functionals (LDA, B88, PBE, OPTX) and the symmetrized weighted density approximations (0pt-WDA, 1pt-WDA, 2pt-WDA) described in Sect. 18.2. The \(p = 2\) mean is chosen in Eq. (18.8). The root-mean-square error over all atoms and ions is provided in the bottom row

3 A Preliminary Generalized Gradient Corrected Weighted Density Approximation

From the insight gained in the previous findings, we propose in this section the power p as a rational function of the reduced gradient, \(s({\mathbf r}) = |\nabla \rho ({\mathbf r})|/\rho ^{4/3} ({\mathbf r})\),

$$\begin{aligned} p(s;{\mathbf r}) = \frac{a_0 + a_1 s({\mathbf r})}{b_0 + s({\mathbf r})} . \end{aligned}$$
(18.12)

We opted to use the reduced gradient since p should be a dimensionless quantity. We will not engaged in a detailed optimization of this form here, but defer that to future work. Our goal is merely to explore the possible utility of this form on the performance of the weighted density approximation.

Because the exchange hole must remain symmetric, the power in Eq. (18.8) must be symmetrized. We choose to do this with the form,

$$\begin{aligned} p({\mathbf r},{\mathbf r}^\prime ) = \left[ \frac{1}{2}\left( p^q (s,{\mathbf r}) + p^q (s,{\mathbf r}^\prime )\right) \right] ^{1/q} . \end{aligned}$$
(18.13)

The exponent q can be chosen as a free parameter also; however we considered only three possibilities: the arithmetic (\(q = 1\)), harmonic (\(q = -1\)) and geometric (\(q = 0\)) means.

From our previous studies, we have learned that the coefficient \(a_1\) in Eq. (18.12) has to be small to reach convergence, especially in the asymptotic regions of the density (regions where s diverges). For this reason we only allowed \(a_1\) to have the values 0.1 and 0.01. The remaining parameters \(a_0\) and \(b_0\) were assigned values 0.1, 0.5, 1.0, 1.5 and 2.0. This gave a total of 50 functionals (each defined by a specified value of \((a_0 , b_0 , a_1)\) to test). To speed up the testing, we considered only the neutral atoms and \(+1\), \(+2\), \(+3\), \(+4\), and \(+5\) atomic ions, and only for the first 18 elements of the periodic table (H–Ar). We observed that the results were quite insensitive to the choice of q in Eq. (18.13), typically differing in only the 3rd or 4th decimal. For simplicity we henceforth consider only the results for the simple arithmetic mean (\(q = 1\)).

Table 18.3 Average errors for the neutral atoms and atomic ions with \(+1\), \(+2\), \(+3\), \(+4\), and \(+5\) charge, H–Ar, for symmetrized weighted density approximations (0pt-WDA, 1pt-WDA, 2pt-WDA) described in Sect. 18.3. The arithmetic mean (\(q = 1\)) is chosen
Table 18.4 Root-mean-square for the neutral atoms and atomic ions with \(+1\), \(+2\), \(+3\), \(+4\), and \(+5\) charge, H–Ar, for symmetrized weighted density approximations (0pt-WDA, 1pt-WDA, 2pt-WDA) described in Sect. 18.3. The arithmetic mean (\(q = 1\)) is chosen

Tables 18.3 and 18.4 show the average and rms errors, respectively, for each of the triads considered. For fixed values of \(a_0\), \(b_0\) the errors seem to decrease when increasing \(a_1\); for fixed values of \(b_0\), \(a_1\) the errors seem to decreasing when increasing \(a_0\). For fixed values of \(a_0\), \(a_1\) the errors seem to decrease when decreasing \(b_0\).

These observations can be understood since s diverges in asymptotic regions. Therefore a small value of \(a_1\) is needed, but if \(a_1 > 1\) it becomes practically impossible to satisfy the normalization condition [38, 39]. Near the nucleus a much larger value of p is needed, \(p\approx 20\). Therefore it is desirable that the ratio \(a_0/b_0\) should be on the order of 10. Thus, while this is in no sense an optimization of the form in Eq. (18.12), we nonetheless were able to learn something about the underlying principles that must be followed to design a GGA-based weighted density approximation for exchange.

4 Summary

We have used a two-points weighted density approximation (2pt-WDA) to compute the exchange energies for all ions with charges from \(-1\) to \(+12\) for the first thirty-six atoms in the periodic table. While the 2pt-WDA is still competitive with popular generalized gradient approximations, its performance worsens for highly charged atomic cations, probably because it is better to use a larger value of the power p in Eq. (18.8) for those systems. This motivated us to build a density functional expression for p by writing p as a rational function of the reduced gradient, \(s({\mathbf r})\). Preliminary tests reveal the order of magnitude for the parameters in the mean, and allow us to suggest the form:

$$\begin{aligned} p({\mathbf r},{\mathbf r}^\prime )&= \frac{1}{2} \left( p(s;{\mathbf r}) + p(s;{\mathbf r}^\prime )\right) , \end{aligned}$$
(18.14a)
$$\begin{aligned} p(s;{\mathbf r})&= \frac{20+s({\mathbf r})}{1+10 s({\mathbf r})} . \end{aligned}$$
(18.14b)

The numerical parameters in Eq. (18.14b) are not optimized, and are merely indicative of important features for the functional form.