# Orbital-free density functional theory implementation with the projector augmented-wave method

###### Abstract

We present a computational scheme for orbital-free density functional theory (OFDFT) that simultaneously provides access to all-electron values and preserves the OFDFT linear scaling as a function of the system size. Using the projector augmented-wave method (PAW) in combination with real-space methods we overcome some obstacles faced by other available implementation schemes. Specifically, the advantages of using the PAW method are two fold. First, PAW reproduces all-electron values offering freedom in adjusting the convergence parameters and the atomic setups allow tuning the numerical accuracy per element. Second, PAW can provide a solution to some of the convergence problems exhibited in other OFDFT implementations based on Kohn-Sham codes. Using PAW and real-space methods, our orbital-free results agree with the reference all-electron values with a mean absolute error of 10 meV and the number of iterations required by the self-consistent cycle is comparable to the KS method. The comparison of all-electron and pseudopotential bulk modulus and lattice constant reveal an enormous difference, demonstrating that in order to assess the performance of OFDFT functionals it is necessary to use implementations that obtain all-electron values. The proposed combination of methods is the most promising route currently available. We finally show that a parametrized kinetic energy functional can give lattice constants and bulk moduli comparable in accuracy to those obtained by the KS PBE method, exemplified with the case of diamond.

## I Introduction

The most popular implementation of density functional theory (DFT), in principle an exact theory, Hohenberg and Kohn (1964) has been the Kohn-Sham (KS) method, which offers accuracy at reasonable computational cost. Kohn and Sham (1965) Orbital-free density functional theory (OFDFT) is another calculation scheme that in principle offers better scaling, but has not been the focus of intense research thus far. In OFDFT theory, only functionals that are explicitly dependent on the total density are used, making it theoretically capable of scaling to much larger systems than KS. The solution of the OFDFT problem can also be cast in a form which is easy to implement reusing existing KS codes. Levy et al. (1984) Within this approach, one solves a KS-like differential equation for only one orbital describing the full system. In addition, when only one orbital is present in a KS-like calculation, it is also possible to achieve better performance in orthonormalization and subspace diagonalization, the computational bottlenecks of current KS DFT codes. Both steps scale in a real-space code with state-of-the-art algorithms, for example, as , where is the number of electronic bands (a number that scales as the number of atoms in the system) and is the number of grid points (a number that scales as the volume of the simulation cell) in the calculation. Romero et al. (2013) Thus, when using the orbital-free model, we greatly reduce the computational time of these operations by fixing to a number that is independent of the system size. Moreover, when removing the dependence on the number of bands, the scaling of the overall calculation depends on the number of grid points and the number of atoms. Among the contributions to the overall time scaling arising from the different algorithms employed, the highest-order dependence with the number of grid points or number of atoms is first order. OFDFT can then be implemented as a linear scaling method in a real-space KS DFT code like GPAW Mortensen et al. (2005).

Because of the difficulties in convergence and implementation, all-electron implementations of OFDFT have only been used to derive the energies of small systems, such as atoms and dimers. Parr and Yang (1989); Karasiev and Trickey (2012). On the other hand, OFDFT codes for studying solids rely on the use of local pseudopotentials (LPPs). The derivation of such pseudopotentials requires a parameter fitting, and it has been a common choice to fit the LPPs to reproduce experimental or KS bulk quantities such as the lattice parameter, bulk modulus or electronic density profile. Ho et al. (2007) OFDFT simulations with pseudopotentials have been applied successfully to the study, for example, of the fracture propagation in bulk aluminum or the structure factor of warm dense matter. White et al. (2013)

As a generalization of pseudopotentials and the linear-augmented-plane wave method the projector-augmented wave (PAW) method has been proposed as a method that allows the calculation of all-electron values with high accuracy and efficiency Blöchl (1994). An all-electron method, refers to methods that solve the Schrödinger equation for an electronic system directly in the presence of the non-modified nuclear potential and all-electron values are those values that would be obtained with all-electron methods. In the DFT context, it is standard to term all-electron methods also methods that calculate all-electron values with the use of transformed equations. In this work, we refer to both types of all-electron methods; but to avoid any confusion, the expression all-electron method will refer only to the methods using a non-modified nuclear potential. When referring to the PAW method, we will consistently refer to it as a method obtaining all-electron values. The PAW method works by providing an exact transformation between conveniently smooth pseudo-wave functions and the all-electron wave functions. The PAW transformation provides thus access to all-electron densities, since it is always possible to reconstruct the all-electron wave functions from the pseudo-wave function. Additionally to the PAW transformation, it is also possible to use fixed core orbitals using the frozen core approximation. Moreover, a reliable description over the whole periodic table with good transferability of PAW potentials has been obtained Mortensen et al. (2005). As we will demonstrate in the following, using PAW in OFDFT allows the calculation of all-electron energies while also improving the convergence capabilities of the OFDFT implementations reusing KS codes. All-electron values are needed to assess the performance of OFDFT functionals and improve them towards better transferability and accuracy.

The grid-based projector augmented-wave method Mortensen et al. (2005) (GPAW) rises above others as a potential platform for OFDFT. It provides all-electron accuracy, real-space grids and the projector augmented-wave (PAW) formalism, Blöchl (1994) which has proven itself as a viable method to obtain all-electron values. As it turns out, the use of the PAW method also helps to stabilize some of the convergence problems observed earlier in similar OFDFT calculations (see Ref. Karasiev and Trickey, 2012). Here, we present a novel OFDFT implementation in GPAW that simultaneously preserves linear OFDFT scaling, provides access to all-electron values, and offers improved convergence capabilities.

The structure of the paper is as follows. After a general introduction to OFDFT equations and PAW transformation, we present results computed with an atomic all-electron code first and then with a real-space PAW code. The atomic all-electron code is used in GPAW to generate the setups (the object containing precomputed values that define the PAW transformation). With the derived OFDFT setups we calculate, using real-space and PAW methods, binding energies of dimers. Our PAW binding energies agree in the meV range with binding energies from reference all-electron methods. With the OFDFT setups we also compute properties of periodic systems (lattice constant and bulk modulus). Finally, we present some considerations on the performance of the OFDFT implementation using GPAW.

## Ii Implementation

Reusing a KS DFT code can offer important advantages. Currently, KS DFT codes are developed by large communities of scientists working across many countries. Optimization, bug fixes and state-of-the-art methods are implemented with a quality control that is guaranteed by peer testing and discussion through open forums. The present OFDFT implementation will not only inherit the use of the highly performing algorithms but will also evolve naturally, being maintained and up-to-date with the evolution of the underlying KS DFT code.

### ii.1 Orbital-free differential equation

Our starting point is an exact differential equation for the density and its natural implementation into a KS code. Levy et al. (1984) It provides a Schrödinger-like differential equation for a one-orbital model, where this orbital is the square root of the electronic density. In principle, this method can be applied for any explicit density functional.

First, the system’s total energy functional (which can be approximate or exact) is written, using atomic units, in the form

(1) |

where is the electronic density. We immediately recognize the
external potential in the third term and the Hartree potential
in the last term. Here, is a universal functional that
that subtracts the first fictitious kinetic energy term and adds the true kinetic energy of the system as well as many-body contributions to the interaction energy not contained in the last Hartree term. The first term, which has the form of a single-particle kinetic energy,
is an auxiliary quantity introduced with the purpose of expressing
in a way that resembles the expression of the KS energy functional. This
will facilitate the implementation of the OFDFT expressions in pre-existing
KS codes. More precisely, this first term in the energy functional is the kinetic energy of a wave function that equals the square root of the density . It happens to be equivalent to the von Weizsäcker gradient correction term (Ref. Weizsäcker, 1935). ^{1}^{1}1
Within the present approximation, where the wave function
equals ,
In the above equation, the first equality is given by the divergence
theorem. The surface integral associated with the divergence
theorem, , can be
easily shown to vanish: for finite systems
as ; for periodic systems each infinitesimal contribution
to the integral has an equivalent contribution of opposite sign because of
the periodic boundary conditions.
The second equality follows from the chain rule
, which gives
.
The von Weizsäcker term is also the exact kinetic energy for a spin-paired
two electron non-interacting system, as both particles occupy the same orbital.

One of the approximations available for , in an attempt to reproduce the kinetic energy description of the KS method, relies on introducing the Pauli kinetic energy functional . This functional is given as the difference between the KS noninteracting kinetic energy functional and the von Weizsäcker term, (Ref. Levy and Ou-Yang, 1988). Including also the exchange-correlation functional , is simply

(2) |

Since the exact KS noninteracting kinetic energy functional involves explicit orbitals, an orbital-free implementation of Eq. (2) must rely on finding a suitable approximation for as a functional of the total density alone. Several exact requirements (such as positivity) have already been demonstrated for this term. Levy and Ou-Yang (1988) Violation of these conditions have also been associated with OFDFT functionals convergence problems. Karasiev et al. (2006)

The ground-state density minimizing is given by the variational principle under the constraint , where is the number of electrons in the system. Then from an Euler-Lagrange equation is expanded, yielding

(3) |

where is the negative of the ionization energy, Levy et al. (1984) and the Hartree and terms have been pushed into . Both sides are multiplied by , giving a Schrödinger-like equation:

(4) |

where terms on the left side can be interpreted as the effective Hamiltonian.

One OFDFT energy functional we will reference in this work is the so-called TFD-W model. Levy et al. (1984) It contains the Thomas-Fermi kinetic energy Thomas (1927); Fermi (1927), the Dirac exchange Dirac (1930), and a fraction of the von Weizsäcker kinetic energy functional. In terms of the previous partitioning (2), the model is obtained by defining

(5) | ||||

(6) |

with and . For the TFD-W model when takes smaller values such as or , convergence problems appear and the von Weizsäcker term in has been determined to be the root of the problem (see Ref. Karasiev and Trickey, 2012 for a review). Here we are removing those convergence problems by rearranging (4) to

where the derivative of the von Weizsäcker term in is summed back to the kinetic energy operator. Then both sides are divided by to get to equation

(7) |

The implementation is quite straightforward. Divide the potential by after it is calculated. Then, after convergence has been achieved, multiply the eigenvalue by to get the correct eigenvalue and energies. This equation converged for values and for the systems shown in Table 1.

### ii.2 The PAW method

An attractive trait about the PAW method Blöchl (1994) is that it is a method that gives access to all-electron values. The method transforms the wave functions into pseudo wave functions with a smooth and therefore more convenient spacial behavior. To obtain the all-electron wave function from a smooth wave function ( is the state index), we seek a linear transformation

(8) |

The transformation operator is divided into atom-centered transformations which each has effect only inside one augmentation region. Atom-centered transformations are defined by atomic setups which contain the quantities related to a single atom, that is, smooth quantities for grid calculations and the unmodified atom quantities to define the transformation operator. Each element has to have its own atomic setup. Inside the augmentation sphere, the all-electron wave function can be expanded in atom-like partial waves basis ( is a combination index for the principal, angular momentum, and magnetic quantum numbers respectively ). The index indicates to which augmentation region the operator acts on. Then we define a set of auxiliary wave functions that are smooth everywhere and match the atom-like partial waves at the augmentation sphere’s boundary. Finally, we define linear projector functions as zero outside the augmentation sphere and satisfying the completeness relation

In terms of the atom-like partial waves functions, the partial pseudo wave functions, and the projectors, the transformation is written as

The form of the Schrödinger equation within the PAW context is

(9) |

where is the transformed Hamiltonian and is the overlap operator. In summary, the all-electron wave-function, is obtained from the transformation (8) where the pseudo wave functions are obtained solving the eigenvalue equation (9). For details on combining PAW with the KSDFT method in the frozen core approximation see refs. Blöchl, 1994; Mortensen et al., 2005.

The convenience of formulating equation (4) in the PAW formalism is two fold. First, PAW reproduces all-electron values offering freedom in adjusting the convergence parameters and the atomic setups allow tuning the numerical accuracy per element. Second, the PAW method could provide answers to some of the convergence problems experienced by other OFDFT implementations that make use of KS codes. We have implemented the scheme in the open-source GPAW software, Mortensen et al. (2005) which is basically PAW with real space grids and exchange and correlation functionals from LibXC (Ref. Marques et al., 2012). Implementation in this setting gives various advantages. GPAW itself is well written and community maintained with an active user base. A parallelization scaling almost ideally is available and we can use all of the functionals provided by LibXC, including future updates. Implementation consists of two major parts. First, we need to generate suitable orbital-free setups and then ensure that they are loaded correctly to GPAW. Next, we force the occupation of electronic bands so that only one band gets occupied.

### ii.3 All-electron orbital-free implementation for PAW setup generation

E | E (Ref. Karasiev and Trickey, 2012) | E | E (Ref. Karasiev and Trickey, 2012) | E | E (Ref. Karasiev and Trickey, 2012) | E | |
---|---|---|---|---|---|---|---|

H | |||||||

He | |||||||

Li | |||||||

Be | |||||||

B | |||||||

C | |||||||

N | |||||||

O | |||||||

F | |||||||

Ne | |||||||

MAE |

The first stage of the implementation is to generate suitable atomic setups for GPAW. The setups contain information of atomic quantities such as projector functions and partial waves, that were discussed in Section II.2. The main quantities of interest for the atomic setups in this implementation are the partial waves and the cutoff value , which is the radius of augmentation sphere. In GPAW the partial waves are chosen as the solutions of the radial Kohn-Sham equation multiplied by spherical harmonics Rostgaard (2006); Mortensen et al. (2005). Other quantities of setups, e.g. the projector functions, are generated from the partial wave and the cutoff value with standard GPAW routines Rostgaard (2006); Mortensen et al. (2005), which make quantities as convergent as possible with respect to the chosen basis of partial waves. Smooth quantities for the calculations on the grid are generated to match the partial waves outside the augmentation sphere. Inside the augmentation sphere, the smooth quantities are just 6th order polynomials fitted at the boundary of the sphere. In the orbital-free setting each atomic setup then contains exactly one partial wave, the square root of density, which is obtained by solving Eq. (4) for a single atom with the exchange-correlation term modified to introduce the Pauli kinetic term, Eq. (2). Here, all the quantities, such as projector functions, have been generated as would be for a orbital, since we have a one-band system where the total occupation is set to the actual number of electrons.

Here lies one of the strengths of the GPAW implementation: we can change the setup parameters per element. We need only study a few parameters: the cutoff value of augmentation spheres and the projector functions. The cutoff is simply chosen as the maximum radial value that allows the all-electron energies to be obtained for a given desired grid spacing. In the PAW formalism, we can choose the type of orbitals in the basis for the expansion of the all-electron density. Our current choice uses a orbital only, but it is possible to break the spherical symmetry imposed by the use of the orbital inside the augmentation sphere by allowing the use of a higher number of bands or by simply changing the basis.

Table 1 lists a comparison between total energy values obtained with the atomic code and reference all-electron OFDFT calculations. A small mean absolute error (MAE) is obtained for various values of using the TFD-W model (MAE of 0.001, 0.011, 0.030 eV for , respectively). For different than one, the ground state of this model converges more easily when regrouping the energy terms differently (Eq. (7)). Here the main point is to avoid having a potential term of the form of the potential arising from the von Weizsäcker term, since this will produce a strong negative divergence in the Pauli potential for (see the discussion in Ref. Karasiev and Trickey, 2012). When all such terms are combined with the kinetic energy operator, the self-consistency cycle works differently but nevertheless leads to convergence, which is faster thanks to the somewhat smoother shape of the remaining terms in the Pauli potential. We have to point out that the above regrouping of terms used requires a higher number of grid points in the all-electron calculation to reach the reported accuracy. The results shown in Table 1 were obtained with 1200 radial grid points. With 600 radial grid points, the MAE of the model increases from 0.001 to 0.003 eV.

### ii.4 OFDFT implementation using the GPAW method

After generating the one-orbital setups, we must ensure that they are loaded correctly. As setups are loaded to orbital-free GPAW, the number of valence electrons is set to correspond to a situation where there is no frozen core (valence equals the atomic number). Then, to actually solve the system, the number of calculation bands is set to one, and the occupation number gives the correct normalization. This is essentially the only modification needed for the orbital-free calculations.

#### ii.4.1 Atoms and diatomic molecules

AE OFDFT (Ref. Chan et al., 2001) | PAW OFDFT | PAW KSDFT LDA (Ref. Tran et al., 2007) | |||||
---|---|---|---|---|---|---|---|

H | -4.922 | 0.764 | |||||

N | -11.539 | 1.095 | |||||

O | -7.550 | 1.204 | |||||

F | -3.356 | 1.388 | |||||

HF | -7.047 | 0.931 | |||||

CO | -12.927 | 1.127 | |||||

MAE |

Results are obtained for atoms and diatomic molecules for the TFD-W model with . First, we tested that the all-electron values presented in Table 1 can be reproduced using PAW and real-space methods. For that purpose, we used the deviation from the all-electron value as the error to test the GPAW calculation parameters for non-periodic systems. We determined for the atoms that the errors obtained using PAW and real-space methods are of the order of the meV. Using the standard grid spacing of 0.18 Å, a cutoff of 1.2 bohr and 1200 radial grid points for setup generation we obtained a mean absolute error of 10 meV and the highest deviation for H is 20 meV. By decreasing the grid spacing to 0.14 Å, for example, the mean absolute error decreases to 9 meV. In the following we use then setups generated with a cutoff of 1.2 bohr and 1200 radial grid points.

Using the derived setups, we calculated the binding energies of simple diatomic molecules. The binding energy is calculated as the difference between the molecule and the atoms energy obtained in all cases with the PAW method. The results obtained are listed in Table 2. As the table shows, the orbital-free GPAW results agree with the reference all-electron calculation. Chan et al. (2001). The mean absolute error (MAE) of the order of meV agrees with the energy difference obtained between the atomic all-electron and the real-space PAW code for atoms. We optimized the bond length by minimizing the forces acting on the atoms. In practice, we accomplished this by using the quasi-Newton method provided by the Atomic Simulation Environment Bahn and Jacobsen (2002) (ASE). The huge number of iterations required to converge the orbital-free scheme in the atomic code is reduced. In the orbital-free GPAW approach, the number of iterations required by calculations are of the same order of magnitude as the normal KS calculations. Thus, using PAW in combination with real-space methods is a promising route for OFDFT calculations. Now, let us study the OFDFT energies of bulk Li and diamond as representatives of periodic systems.

#### ii.4.2 Periodic solids

Method | |||||
---|---|---|---|---|---|

PAW | OFDFT | 1.646 | 945 | ||

PPspd1 | OFDFT | Ref. Karasiev and Trickey,2012 | 3.43 | 15.2 | |

PPmod1 | OFDFT | Ref. Karasiev and Trickey,2012 | 3.43 | 14.9 | |

PAW | KSDFT | PBE | Ref. Tran et al.,2007 | 3.435 | 14.0 |

We performed the OFDFT calculations for Li in a body-centered cubic (bcc) configuration and for carbon in a diamond configuration. For Li first, we used a conventional unit cell with two atoms and to check the effect of size, we repeated the calculations with a cubic unit cell containing 16 atoms. Bulk modulus simulation with PAW and real-space methods usually requires a small grid spacing. A small strain (close to 1 % of the lattice constant) is applied with constant number of grid points and convergence is verified by increasing the number of grid points (equivalently decreasing the grid spacing). For carbon and lithium, we used 20 grid points along each direction (corresponding to a grid spacing around ) and cell increments of 0.02 Å. For the cutoff in the setup generation, we used 1.0 bohr for Li and 1.2 bohr for C. With this cutoff Li and C bond distances of 2.0 and 2.4 bohr respectively (1.05 and 1.27 Å) can be calculated without inducing errors coming from an augmentation sphere superposition Karasiev et al. (2012). The values in Tables 3 and 4 have therefore been calculated without augmentation sphere superposition problems.

Table 3 summarizes Li results. The Li bulk modulus and lattice constant using PAW are extremely different from the reported pseudopotential values. Indeed, such pseudopotentials are obtained by fitting procedures to match KS or experimental values and the energies are then calculated with a OFDFT energy functional. In contrast, in the present PAW calculation the setups and the energy have been calculated using the same OFDFT energy functional and the energy obtained is an all-electron energy Blöchl (1994). Thus from this comparison for Li, we clearly conclude that in order to assess the performance of OFDFT functionals, it is necessary to use all-electron values, and the PAW method is for now an excellent candidate, as shown throughout this work.

Method | ||||

OFDFT | 2.815 | 1407 | ||

OFDFT | 3.213 | 741 | ||

OFDFT | 3.570 | 446 | ||

Exp. | Ref. Tran et al.,2007 | 3.567 | 443 | |

KSDFT | PBE | Ref. Tran et al.,2007 | 3.575 | 431 |

By giving access to all-electron values, the present implementation opens the way to test the accuracy of OFDFT energy functionals. As an example of such studies, we have tested a simple parametrization using as reference bulk diamond. The model contains as Pauli kinetic term the Pauli term of the TFD-W model with , Eq. (II.1), multiplied by a scaling parameter . In other words, the Pauli kinetic term is a parametrized Thomas-Fermi kinetic functional Thomas (1927); Fermi (1927). The exchange-correlation functional is the PBE exchange. Perdew et al. (1996). Such a kinetic decomposition fulfills the exact properties of the Pauli kinetic energy functional. Levy and Ou-Yang (1988) We determined that increasing the fraction of the Fermi kinetic functional present increases the lattice constant in a smooth way. As expected from such behavior, the increased also decreases the cohesive energy and decreases the bulk modulus almost linearly. Finally, we should note that it is possible to fit the parameter to reproduce experimental values for the lattice parameter. With the numerically obtained , we performed a self-consistent evaluation of lattice constant and bulk modulus. The values are reported in Table 4, and with respect to experimental values, they deviate by 0.1% and 0.7(% for lattice parameter and bulk modulus, respectively). More importantly, this value is comparable to the accuracy reached by the PBE functionals in the KS method (the reference KS PBE lattice constant and bulk modulus are 3.575 Å and 431 GPa, see Ref. Tran et al., 2007 for a calculation using PAW). The good value for the bulk modulus indicates that the evolution of the system’s energy as a function of interatomic distances is basically well described around the equilibrium lattice constant. We computed however a large cohesive energy: 14.4 eV for fitted vs 7.58 exp.Kittel (2005). The large cohesive energy means that the drop in energy of the overall system as the atoms are brought together to form the crystal is too large. Since the change in energy as the atoms are moved closer/apart around equilibrium is well described this probably means the reference energy for the isolated atoms is too high. For bulk lithium, the variation of the bulk modulus and lattice constant with increased is similar to the diamond case. Using the same basic functionals, increasing the amount of kinetic Thomas-Fermi functional via increasing , decreases the bulk modulus and increases the lattice parameter. A fitted gives a Li equilibrium lattice parameter of 3.476 Å and a bulk modulus of 28 GPa. The bulk lithium equilibrium lattice parameter can be approached very accurately but the associated bulk modulus while being the right order of magnitude is twice the experimental value. For diamond and bulk Li the procedure of fitting to reproduce the experimental lattice parameters led to different values of in each case. In other words, this very simple fitted functional for diamond is not transferable to bulk Li. To improve the accuracy and transferability of OFDFT functionals, even more terms in the kinetic expansion, better exchange functionals, and correlation functionals can be added. Strategies of fitting parameters can be improved by including a larger set of systems and properties.

#### ii.4.3 Performance

Finally, we include in this section a comparison of the KS DFT and OFDFT performances. Because OFDFT is implemented reusing the KS DFT method, all algorithm prefactors are the same and therefore a good comparison can be carried out. For the KS DFT method, when increasing the size of the system the time scaling becomes inevitably cubic. OFDFT implemented with the same real space code should retain a linear time scaling for all sizes. To illustrate both scaling behaviors, we present in Fig. 1 the total time (including initialization) for computing a small number of steps. The time needed for completing four iterations of the self-consistent cycle is shown as a function of the number of atoms in a diamond unit cell of variable size. When the system size increases, the orthogonalization algorithm –which displays cubic scaling– determines the total time of a KS DFT cycle, while OFDFT remains scaling linearly with size. When increasing the size of the diamond cell it was found that convergence was not reached simply reusing the parameters of the conjugate gradient algorithm employed. A more detailed study of the algorithm parameters is needed before simulations of large (meaning millions) of atoms can be attained.

The number of iterations to reach self-consistency with default KS convergence parameters is another important consideration. Convergence of the all-electron atomic method, used to generate the setups, requires typically 10 to 100 more iterations for OFDFT than for KS DFT, consistent with previous findings. Karasiev and Trickey (2012) The large number of self-consistent iterations needed to reach convergence in the atomic code is related to the density mixing parameter used in the Pulay density mixing algorithm Pulay (1980). The mixing parameter controls how the density is updated in the self-consistency cycle, with small mixing parameter giving slow mixing and helping to the overall convergence stability. The small parameter in the density mixing only needs to be used once per atom inside the setup generation (and does not scale with size), therefore no further exploration was performed. Using PAW and real-space methods stabilizes the self-consistency iteration dramatically. One only needs tens of iterations for atoms, dimers and solids for the TFD-W mode, see Table 5. This is comparable to the number of iterations typically needed by ab initio functionals.

OFDFT | KSDFT | |||
---|---|---|---|---|

Iterations | Iterations | |||

H | 0.14 | 18 | 0.18 | 11 |

N | 0.18 | 32 | 0.18 | 13 |

Li bcc | 0.025 | 27 | 0.0771 | 10 |

## Iii Conclusion

This work demonstrates that the PAW method, in combination with KS codes, can reproduce all-electron OFDFT energies of atoms and dimers without convergence problems. Indeed, the PAW calculation converges in a number of self-consistent steps comparable to the KS method. This combination of methods offers a promising route for reaching easy-to-converge large-scale OFDFT calculations. Moreover, when testing the accuracy of OFDFT kinetic functionals, a method such as the one presented here becomes necessary.

Before this work can be extended to large-scale simulations, the exact relation between the setup cutoff and the resulting energy accuracy for real-space parameters must be studied for the elements involved. It is important to determine the minimum number of self-consistent iterations that can be reached once the target accuracy is defined. With the present knowledge, an increase in size of the same system requires fine tuning of simulation parameters to achieve convergence.

Interestingly, with the simplest kinetic approximation for diamond, we obtained a lattice constant and bulk modulus comparable to the PAW KS PBE values. This begs the question, then, to what extent such simplicity can be maintained when choosing the building blocks of more accurate and transferable kinetic functionals. We hope this work will contribute to the development of better OFDFT functionals by allowing access to all-electron energy values of periodic and non-periodic systems.

## References

- Hohenberg and Kohn (1964) P. Hohenberg and W. Kohn, Phys. Rev. 136, B864 (1964).
- Kohn and Sham (1965) W. Kohn and L. J. Sham, Phys. Rev. 140, A1133 (1965).
- Levy et al. (1984) M. Levy, J. P. Perdew, and V. Sahni, Phys. Rev. A 30, 2745 (1984).
- Romero et al. (2013) N. A. Romero, C. Glinsvad, A. H. Larsen, J. Enkovaara, S. Shende, V. A. Morozov, and J. J. Mortensen, Concurrency Comp.: Pract. Exp. (2013), 10.1002/cpe.3199.
- Parr and Yang (1989) R. Parr and W. Yang, Density-Functional Theory of Atoms and Molecules, International Series of Monographs on Chemistry (Oxford University Press, USA, 1989).
- Karasiev and Trickey (2012) V. Karasiev and S. Trickey, Comput. Phys. Commun. 183, 2519 (2012).
- Ho et al. (2007) G. S. Ho, C. Huang, and E. A. Carter, Curr. Opin. Solid State Mater. Sci. 11, 57 (2007).
- White et al. (2013) T. G. White, S. Richardson, B. J. B. Crowley, L. K. Pattison, J. W. O. Harris, and G. Gregori, Phys. Rev. Lett. 111, 175002 (2013).
- Blöchl (1994) P. E. Blöchl, Phys. Rev. B 50, 17953 (1994).
- Mortensen et al. (2005) J. J. Mortensen, L. B. Hansen, and K. W. Jacobsen, Phys. Rev. B 71, 035109 (2005).
- Weizsäcker (1935) C. Weizsäcker, Zeitschrift für Physik 96, 431 (1935).
- (12) Within the present approximation, where the wave function equals , In the above equation, the first equality is given by the divergence theorem. The surface integral associated with the divergence theorem, , can be easily shown to vanish: for finite systems as ; for periodic systems each infinitesimal contribution to the integral has an equivalent contribution of opposite sign because of the periodic boundary conditions. The second equality follows from the chain rule , which gives .
- Levy and Ou-Yang (1988) M. Levy and H. Ou-Yang, Phys. Rev. A 38, 625 (1988).
- Karasiev et al. (2006) V. Karasiev, S. Trickey, and F. Harris, J. Comput. Aided Mater. Des. 13, 111 (2006).
- Thomas (1927) L. H. Thomas, Mathematical Proceedings of the Cambridge Philosophical Society 23, 542 (1927).
- Fermi (1927) E. Fermi, Rend. Accad. Lincei 6, 602 (1927).
- Dirac (1930) P. A. M. Dirac, Proc. Cambridge Philos. Soc 26, 376 (1930).
- Marques et al. (2012) M. A. Marques, M. J. Oliveira, and T. Burnus, Comput. Phys. Commun. 183, 2272 (2012).
- Rostgaard (2006) C. Rostgaard, Exact Exchange in Density Functional Calculations, Master’s thesis, Technical University of Denmark (2006), available at https://wiki.fysik.dtu.dk/gpaw/_static/rostgaard_master.pdf.
- Chan et al. (2001) G. K.-L. Chan, A. J. Cohen, and N. C. Handy, The Journal of Chemical Physics 114, 631 (2001).
- Tran et al. (2007) F. Tran, R. Laskowski, P. Blaha, and K. Schwarz, Phys. Rev. B 75, 115131 (2007).
- Bahn and Jacobsen (2002) S. Bahn and K. W. Jacobsen, Computing in Science Engineering 4, 56 (2002).
- Perdew et al. (1996) J. P. Perdew, K. Burke, and M. Ernzerhof, Phys. Rev. Lett. 77, 3865 (1996).
- Karasiev et al. (2012) V. V. Karasiev, T. Sjostrom, and S. B. Trickey, Phys. Rev. E 86, 056704 (2012).
- Kittel (2005) C. Kittel, Introduction to Solid State Physics (John Wiley & Sons, USA, 2005).
- Pulay (1980) Pulay, Chem. Phys. Let. 73, 393 (1980).