The workhorse calculation of materials physics. Rather than following every electron, it works with the electron density and a recipe for how electrons avoid one another – which makes a whole crystal cheap enough to compute, and makes the accuracy depend entirely on that recipe.
Going deeper
Left: a DFT calculation is a loop. From a guessed electron density it builds a potential, solves one-electron equations, and forms a new density, repeating until nothing changes. Everything approximate is hidden in the exchange–correlation part. Right: codes that assume periodic crystals see a monolayer as an infinite stack of copies, so enough vacuum must separate them that they stop interacting.
Trading electrons for a density
Solving the quantum mechanics of every electron in a crystal exactly is hopeless: the effort grows exponentially with their number. Density functional theory rests on two results. Hohenberg and Kohn showed that the ground-state electron density alone – a function of just three coordinates – determines every ground-state property. Kohn and Sham then showed how to find that density by solving equations for independent electrons moving in an effective potential, which is tractable for hundreds or thousands of atoms.
The catch is a single unknown term, the exchange–correlation energy, which contains all the subtle many-electron physics. It has to be approximated. Local and semi-local functionals (LDA, GGA such as PBE) are fast and give good structures and vibrations; hybrid functionals, which mix in some exact exchange, are more accurate for many properties and far more expensive.
What it is good for, and what it is not
DFT is the standard tool for , formation energies, relative phase stability, , magnetic ground states and , and for screening many hypothetical materials quickly. Its best-known failure is the : the Kohn–Sham eigenvalues are not true excitation energies, and semi-local functionals typically underestimate gaps by tens of percent. are absent altogether. When quantitative gaps or optical spectra matter, DFT is the starting point for and Bethe–Salpeter calculations rather than the answer.
Traps specific to 2D materials
Most codes treat the simulation cell as the repeating unit of an infinite crystal, so a is really a stack of copies separated by vacuum. That vacuum has to be thick enough – often 15–20 Å, and far more for charged or excited-state calculations – or a must be applied. A layer without needs a dipole correction. Interlayer binding in bilayers and bulk crystals comes almost entirely from , which standard functionals miss, so a dispersion correction is required. must be switched on for heavy elements, and magnetic usually need an on-site U whose value changes and noticeably.
For specialists
Ground-state electronic structure from the density, exact in principle by Hohenberg–Kohn and made practical by the Kohn–Sham equations with an approximate exchange–correlation functional. Two dimensions need care: a vacuum gap wide enough that periodic images stop interacting or a truncated Coulomb interaction, a dispersion correction for interlayer binding, and the knowledge that semi-local functionals underestimate gaps – hybrid functionals narrow that error at far higher cost, and quantitative gaps and optical spectra need GW and Bethe–Salpeter on top.