CONUNDrum: A program for orbital-free density functional theory calculations☆,☆☆
Introduction
Ab initio modeling is a critically important part of computational material science. One of the most popular methods is the density functional theory (DFT) [1] that remains the only practical approach for ab initio modeling of many classes of materials. This is because in DFT, the energy is expressed as a functional of three-dimensional electron density rather than of a 3 dimensional wavefunction (where is the number of electrons). The Kohn–Sham (KS-DFT) orbital formulation [2] of DFT is implemented in a plethora of numerical codes and is widely used in applications. Its widespread use is justified by a well-defined ansatz of non-interacting particles, which facilitates the calculation of the kinetic energy leaving only exchange and correlation contributions to be approximated. However, the necessity to compute at least as many solutions of the Kohn–Sham equation as there are electrons leads to a near-cubic scaling of the CPU cost. While near-linear scaling formulations of KS-DFT exist [3], [4], [5], [6], [7], [8], [9], [10], [11], [12], [13], [14], they introduce additional approximations and achieve advantages in scaling only for large calculations (where the sparsity of matrices due to finite basis function support becomes significant) for which the cost is still significant.
In Orbital-free (OF-DFT), one dispenses with the need to compute orbitals. Instead, the energy is computed as a function only of density-dependent quantities. A key problem of OF-DFT is expression of the kinetic energy – typically done based on the Kohn–Sham decomposition of the total energy – as a functional of the density (kinetic energy functional, KEF). Specifically, with semilocal KEFs (or KEDFs, kinetic energy density functionals) [15], [16], [17], [18], [19], [20], [21], [22], [23], [24], [25], [26], [27], [28] one achieves near-linear scaling enabling routine large scale ab initio calculations. Even with non-local KEFs, systems with dozens of thousands of atoms are routinely computable on a desktop computer. Sufficiently accurate KEFs for applied simulations are still missing for major materials classes, and KEF development will continue to be an active area of research for the foreseeable future. Specifically, machine-learnt (ML) KEFs hold significant promise [29], [30]. Availability of OF-DFT software allowing for tests and development of new types of KEFs is therefore as important as the possibility to perform applied simulations with existing functionals.
Contrary to KS-DFT, the OF-DFT formulation is only implemented in several codes [31], [32], [33], [34]. This is not surprising, since only a limited set of problems can be successfully treated with an accuracy sufficient for applications with existing OF-DFT approximations, which include simplest metallic systems (Al, Li, Mg), their alloys and some semi-conductors [35], [36], [37], [38], [39], which limited software demand. As more and more powerful approximations are proposed, the need for OF-DFT software tools is increasing, specifically those capable of working with novel types of functionals (e.g. machine-learnt).
In terms of OF-DFT codes and capabilities easily accessible to the public, PROFESS [31] is a plane-wave based implementation relying on local pseudopotentials. The advantages of PROFESS include, among others, availability of multiple non-local KEFs and a molecular dynamics capability. Real-space approaches to DFT are promising and have recently been implemented in a number of electronic structure codes [40], [41], [42], [43], [44], [45], [46], [47]; they are also becoming a method of choice in some OF-DFT codes. As an example, the OF-DFT implementation in the publicly available GPAW code [34] permits using OF-DFT with the PAW formalism;however, the choice of KEFs is limited. Other groups proposed OF-DFT implementations which are not distributed [32], [33]. A finite-element formulation was suggested in Ref. [48], [49], where also an advantage of higher-order finite-element discretization over linear finite elements in terms of computational efficiency was shown. However, in the context of OF-DFT the corresponding implementations were made only for simplest KEFs.
In the present paper, we introduce a new OF-DFT code (CONUNDrum, C++ COde for NUmerical ab iNitio analysis withorbital-free Density functional theory), which is designed for careful treatment of semi-local KEDFs (and, in particular, to address problems of numerical stability in self-consistent minimization procedures we faced with existing codes), including the capability of using ML based KEDFs. In our implementation, we combine a real-space representation [32] of the density and finite-difference derivatives with a spectral representation for some operations (such as the Hartree energy). With this scheme, we can converge density-dependent quantities requiring higher-order derivatives and powers of the density (such as terms of the 4th order gradient expansion of the kinetic energy density). Our code explicitly permits using neural-network based KEFs. The code is designed to perform density and structure optimization and calculation of bulk properties of solid compounds and relies on periodic boundary conditions. We also kept in mind the use for testing of future KEDFs and therefore tried to make the implementation as simple as possible.
Section snippets
Theoretical background
In the context of DFT, the many-body electron problem is reformulated as a search for an electron density in the three-dimensional space of electron coordinates r, that minimizes the total energy of the system. OF-DFT scheme assumes that this can be done without explicit reference to the KS one-electron wavefunctions (orbitals). The energy is a functional of density-dependent variables only. The total energy is considered as a sum of total electron energy and the energy ofion–ion
General workflow of the density optimization procedure
We seek a solution to the unconstrained minimization problem applying the Lagrange multiplier method: where the integration is over the volume of the system .
The chemical potential ensures that the number of electrons is conserved. Eq. (13) is solved self-consistently by varying a trial density until the norm of the potential (the Euclidean norm is used) is smaller than a predefined tolerance. It has been argued that the use of the electron
Numerical results
All calculations were performed on bulk systems of Al, Li and Mg. Initial cell geometries (conventional cells) were taken from experimental geometries (fcc Al: a 7.652 a.u.; bcc Li: a 6.633 a.u.; hcp Mg a 6.065 a.u., c 9.847 a.u.) [85]. For tested GGA-type KEDFs, the initial density state was precalculated with Wang–Teter (WT) KEF [57] (this is allowed by a special keyword in CONUNDrum), since the start from this state as initial yields a bit lower final total energies than the start
Conclusions
We developed a code for a numerical solution of theOF-DFT problems with enhanced possibilities for testing of new KE approximations. Special attention was paid to “problematic” semi-local KE functionals, which can be unstable during electron density minimization. Here, with the right choice of minimization parameters for these KE functionals the stability in density minimization procedure can be ensured up to 10 per atom, in cell relaxation procedure up to 10 a.u. for lattice parameters
Acknowledgment
This work was in part supported by the Ministry of Education of Singapore via an AcRF Tier 1 grant.
Declaration of competing interest
The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
References (97)
- et al.
J. Comput. Phys.
(2009) - et al.
Comput. Phys. Comm.
(2009) Phys. Lett. A
(1992)- et al.
Comput. Phys. Comm.
(2008) - et al.
Comput. Phys. Comm.
(2016) - et al.
Comput. Phys. Comm.
(2018) - et al.
Comput. Phys. Comm.
(2017) - et al.
Comput. Phys. Comm.
(2017) - et al.
J. Comput. Phys.
(2016) - et al.
Comput. Phys. Comm.
(2010)
Comput. Phys. Comm.
J. Mech. Phys. Solids
J. Comput. Phys.
Chem. Phys. Lett.
Comput. Phys. Comm.
J. Alloy Compd.
Int. J. Electrochem. Sci.
Comput. Mater. Sci.
Int. J. Plast.
J. Alloy Compd.
Adv. Quantum Chem.
Phys. Rev. B
Phys. Rev. B
Phys. Rev.
Phys. Rev.
Phys. Rev. Lett.
Phys. Rev. B
Phys. Rev. B
Phys. Rev. Lett.
Phys. Status Solidi b
J. Phys. Chem. A
Rev. Modern Phys.
J. Phys. Condens. Matter.
J. Chem. Theory Comput.
Phys. Chem. Chem. Phys.
Sov. Phys. JRTP
Can. J. Phys.
Phys. Rev. A: At. Mol. Opt. Phys.
Int. J. Quantum Chem.
Int. J. Quantum Chem.
J. Comput.-Aided Mater. Des.
Phys. Rev. B
J. Chem. Theory Comput.
Phys. Rev. B
J. Chem. Theory Comput.
J. Chem. Phys.
Phys. Rev. B
J. Phys. Chem. Lett.
Cited by (20)
2D MOF-enhanced SPR sensing platform: Facile and ultrasensitive detection of Sulfamethazine via supramolecular probe
2023, Journal of Hazardous MaterialsHighly accurate machine learning model for kinetic energy density functional
2021, Physics Letters, Section A: General, Atomic and Solid State PhysicsCitation Excerpt :Burke and coworkers original paper [18] was based on kernel regression and many followed the same approach [22–24]. Also, recently, neural network was applied [22,25,26]. For example, an interesting approach was recently proposed by Nagai et al. [22] to adopted generalized linear expansion to train neural network model.
Nonlocal pseudopotential energy density functional for semiconductors
2024, Physical Review BMachine learning of kinetic energy densities with target and feature smoothing: Better results with fewer training data
2023, Journal of Chemical PhysicsAtoms, dimers, and nanoparticles from orbital-free density-potential-functional theory
2023, Physical Review A
- ☆
The review of this paper was arranged by Prof. D.P. Landau.
- ☆☆
This paper and its associated computer program are available via the Computer Physics Communication homepage on ScienceDirect (http://www.sciencedirect.com/science/journal/00104655)