Ab Initio Total Energy Calculations
ab initio methods are computational techniques that aim to solve the Schrödinger equation for a many‑electron system without empirical parameters. In the context of solid‑state physics, the most widely used ab initio approach is density fun…
ab initio methods are computational techniques that aim to solve the Schrödinger equation for a many‑electron system without empirical parameters. In the context of solid‑state physics, the most widely used ab initio approach is density functional theory (DFT), which replaces the many‑electron wavefunction with the electron density as the fundamental variable. The core idea of DFT is that the ground‑state energy of a system can be expressed as a functional of the charge density, and the true ground‑state density minimizes this functional. This principle underlies both the Quantum Espresso (QE) and Vienna Ab initio Simulation Package (VASP) codes, which are designed to calculate total energies, forces, and related properties from first principles.
The term total energy refers to the expectation value of the Hamiltonian for the system’s electronic ground state, including kinetic, potential, exchange‑correlation, and ion‑ion interaction contributions. Computing the total energy accurately is essential for predicting equilibrium structures, phase stability, reaction pathways, and many other properties. In practice, the total energy is obtained by solving the Kohn‑Sham equations, a set of one‑electron Schrödinger‑like equations that incorporate an effective potential composed of the external (ionic) potential, the Hartree (classical electrostatic) potential, and the exchange‑correlation (XC) potential.
The Kohn‑Sham equations are written as
[−½∇² + V_eff(r)] ψ_i(r) = ε_i ψ_i(r)
Where ψ_i(r) are the Kohn‑Sham orbitals, ε_i their eigenvalues, and V_eff(r) the effective potential. The effective potential depends on the electron density ρ(r), which is constructed from the occupied orbitals:
Ρ(r) = Σ_i f_i |ψ_i(r)|²
With f_i the occupation numbers. The self‑consistent solution of these equations is achieved through an iterative process known as the self‑consistent field (SCF) cycle. During each SCF iteration, the electron density is updated, the effective potential is recomputed, and the Kohn‑Sham equations are solved again until convergence criteria for the total energy, charge density, and forces are satisfied.
A crucial component of DFT calculations is the choice of the exchange‑correlation functional. The simplest approximation is the local density approximation (LDA), which assumes that the XC energy density at each point depends only on the local electron density, as in a uniform electron gas. While LDA often yields reasonable lattice constants and bulk moduli for many metals, it tends to overbind, leading to underestimated bond lengths. The generalized gradient approximation (GGA) improves upon LDA by including the gradient of the density, allowing the functional to respond to variations in the electronic environment. Popular GGA parametrizations include PBE (Perdew‑Burke‑Ernzerhof) and PW91. For systems where localized d or f electrons play a significant role, hybrid functionals that mix a fraction of exact Hartree‑Fock exchange with GGA exchange, such as HSE06, can provide more accurate band gaps and magnetic properties.
In addition to the XC functional, the representation of the electron‑ion interaction is a major factor influencing computational efficiency. Most plane‑wave DFT codes employ pseudopotentials to replace the all‑electron potential of the nuclei and core electrons with a smoother effective potential that reproduces the scattering properties of the valence electrons. Three main types of pseudopotentials are commonly used: (I) norm‑conserving pseudopotentials, which preserve the norm of the all‑electron wavefunction within a chosen cutoff radius; (ii) ultrasoft pseudopotentials (USPP), which relax the norm‑conservation constraint to allow a lower plane‑wave cutoff; and (iii) the projector‑augmented wave (PAW) method, which reconstructs the all‑electron wavefunction from the pseudo‑wavefunction using augmentation functions. VASP’s default PAW datasets and QE’s PAW or USPP libraries provide a balance between accuracy and computational cost, and the choice often depends on the element, desired precision, and available resources.
Plane‑wave basis sets are employed because they naturally satisfy periodic boundary conditions and are straightforward to converge systematically. The size of the basis is controlled by the plane‑wave kinetic energy cutoff (E_cut), which determines the maximum kinetic energy of plane waves included in the expansion. Selecting an appropriate E_cut is a convergence parameter; higher cutoffs increase accuracy but also computational expense. A typical workflow involves testing the total energy as a function of E_cut for the material of interest until the energy variation falls below a chosen tolerance (e.G., 1 MeV per atom).
The Brillouin zone (BZ) sampling is another essential convergence factor. In reciprocal space, the electronic states are evaluated at a discrete set of k‑points. The density of this k‑point mesh directly influences the accuracy of the total energy, forces, and derived quantities such as the density of states (DOS). The most common scheme for generating uniform k‑point grids is the Monkhorst‑Pack method, which creates a regular mesh characterized by three integers (N_x, N_y, N_z) defining the number of divisions along each reciprocal lattice vector. For metallic systems, where the Fermi surface must be resolved accurately, denser meshes and smearing techniques are required to achieve reliable convergence.
Smearing methods smooth the occupation numbers near the Fermi level to aid SCF convergence. Common smearing schemes include the Methfessel‑Paxton, Gaussian, and Fermi‑Dirac approaches. The smearing width (σ) must be chosen carefully: Too large a σ artificially broadens the electronic distribution and can affect total energies, while too small a σ may lead to poor convergence. In practice, one performs a series of calculations with decreasing σ to extrapolate to the zero‑smearing limit for properties such as formation energies.
The output of a DFT calculation includes not only the total energy but also the forces acting on each ion, which are derived from the Hellmann‑Feynman theorem combined with Pulay corrections when the basis set depends on atomic positions. Forces are used in geometry optimizations, where the atomic coordinates are iteratively updated to minimize the forces below a target threshold (often 0.01 EV/Å or lower). The optimization algorithm may be a conjugate‑gradient (CG) method, a quasi‑Newton approach such as the Broyden‑Fletcher‑Goldfarb‑Shanno (BFGS) algorithm, or a damped dynamics scheme. Converged structures provide the equilibrium lattice parameters, bond lengths, and angles that can be directly compared with experimental crystallographic data.
Beyond static total‑energy calculations, both QE and VASP can perform phonon and vibrational analyses. In QE, the density‑functional perturbation theory (DFPT) module computes dynamical matrices by linear response to atomic displacements, yielding phonon frequencies throughout the BZ. VASP implements the finite‑difference approach, where supercells are constructed and small atomic displacements are introduced; the resulting forces are used to build the force constant matrix. Phonon spectra provide insight into lattice stability, thermal properties, and electron‑phonon coupling.
The stress tensor is another quantity derived from DFT calculations, representing the response of the system’s energy to infinitesimal strain. The stress components are essential for variable‑cell relaxations, where both atomic positions and lattice vectors are optimized simultaneously. The pressure can be extracted from the trace of the stress tensor, allowing simulations under external stress conditions such as hydrostatic compression or tensile strain.
When modeling surfaces, interfaces, or low‑dimensional materials, a slab model is employed. The slab consists of a finite number of atomic layers separated by a vacuum region thick enough to prevent spurious interactions between periodic images. The vacuum thickness is typically set to at least 10–15 Å, but convergence tests are necessary to ensure that properties like surface energies and work functions are not affected by the chosen vacuum. For asymmetric slabs, a dipole correction can be applied to cancel the artificial electric field arising from the net dipole moment across the slab.
Spin polarization is an additional degree of freedom required for magnetic materials. In spin‑polarized DFT, the electron density is split into up‑ and down‑spin components, ρ↑(r) and ρ↓(r), and the Kohn‑Sham equations are solved separately for each spin channel. The resulting magnetic moments on atoms can be compared with experimental magnetization data. For strongly correlated systems, the standard DFT approximations often fail to capture the correct electronic structure. The DFT+U method introduces a Hubbard‑type correction term to penalize fractional occupations of localized orbitals, improving the description of Mott insulators and magnetic ordering. The value of U is typically derived from constrained DFT calculations or fitted to experimental observables.
Van der Waals (vdW) interactions, which arise from long‑range correlation effects, are poorly described by conventional LDA or GGA functionals. To address this, several vdW correction schemes have been implemented in QE and VASP. The DFT‑D approach adds an empirical pairwise dispersion term of the form C_6/R⁶ with a damping function, as pioneered by Grimme. More sophisticated methods like the Tkatchenko‑Scheffler (TS) scheme compute C_6 coefficients on the fly based on the electron density. Non‑local functionals such as the vdW‑DF family incorporate dispersion directly into the XC functional. Selecting the appropriate vdW correction is crucial for accurate adsorption energies, layered material interlayer spacings, and molecular crystal structures.
In addition to total‑energy and structural properties, DFT calculations frequently target electronic structure information. The band structure is obtained by evaluating the Kohn‑Sham eigenvalues along high‑symmetry paths in the BZ. Plotting ε_i(k) reveals whether a material is metallic, semiconducting, or insulating, and provides the band gap value. The density of states (DOS) aggregates the eigenvalues over the entire BZ, often using a Gaussian smearing to produce a smooth curve. The projected density of states (PDOS) decomposes the DOS onto atomic orbitals or angular momentum channels, helping to identify the contributions of specific atoms or orbitals to the electronic states near the Fermi level.
Charge analysis techniques such as Bader charge partitioning or Hirshfeld analysis can be applied to the electron density to quantify charge transfer between atoms or molecules. In VASP, the CHGCAR file contains the total charge density, which can be processed with external tools to obtain Bader volumes. These analyses are valuable for interpreting chemical bonding, oxidation states, and surface reactivity.
Practical aspects of setting up DFT calculations include the preparation of input files. In QE, the primary input is a plain‑text file containing sections for control parameters (e.G., Calculation type, convergence thresholds), system specifications (e.G., Lattice vectors, atomic species), and electron‑ion interactions (e.G., Pseudopotential files). VASP uses a set of fixed‑name files: INCAR for control parameters, POSCAR for the crystal structure, POTCAR for the pseudopotentials, and KPOINTS for the k‑point mesh. Both codes require consistent units (e.G., Angstrom for distances, Ry or eV for energies) and careful matching of pseudopotential versions with the chosen XC functional.
Convergence criteria are typically defined in terms of energy, force, and charge density. An SCF convergence threshold of 10⁻⁶ Ry (≈1.36 × 10⁻⁵ EV) for the total energy is common, while force thresholds of 10⁻³ Ry/Bohr (≈0.025 EV/Å) are used for geometry optimizations. The choice of thresholds depends on the property of interest; for high‑precision formation energies, tighter energy convergence may be required, whereas for qualitative band structure plots, looser criteria may suffice.
Parallelization strategies are essential for handling large supercells or dense k‑point meshes. Both QE and VASP support MPI parallelism, distributing k‑points, plane‑wave basis functions, or real‑space grids across processors. Efficient scaling often requires balancing the workload to avoid idle CPUs, especially when the number of k‑points is small. Hybrid parallelization combining MPI with OpenMP threads can further improve performance on multicore architectures.
A common challenge in DFT simulations is the trade‑off between computational cost and accuracy. For instance, increasing the plane‑wave cutoff improves the representation of the wavefunctions but raises memory usage and CPU time. Similarly, denser k‑point meshes reduce Brillouin‑zone integration errors but increase the number of diagonalizations. Users typically perform systematic convergence tests, varying one parameter while keeping others fixed, to identify a cost‑effective set of settings that meet the target accuracy.
Another difficulty arises when dealing with systems that have multiple low‑energy configurations, such as polymorphs, surface reconstructions, or magnetic ordering patterns. In such cases, it is advisable to explore several initial structures, perform full relaxations for each, and compare the resulting total energies. The energy differences, often on the order of a few meV per atom, can be decisive for predicting the most stable phase. Care must be taken to ensure that each calculation uses identical convergence parameters and that the same pseudopotential and XC functional are employed throughout the comparison.
The treatment of charged defects or ions in periodic supercells introduces spurious electrostatic interactions between periodic images. To mitigate these effects, correction schemes such as the Makov‑Payne method or the Freysoldt–Neugebauer–Van de Walle (FNV) approach are applied. These corrections estimate the energy contribution from the artificial background charge and the image interactions, allowing for more accurate formation energies of charged defects. In VASP, the NELECT tag can be used to set the total number of electrons, and the LDIPOL and IDIPOL tags enable dipole corrections for slab calculations.
Hybrid functional calculations, while more accurate for band gap predictions, are computationally demanding because they require the evaluation of exact exchange integrals. Both QE and VASP implement screened hybrid functionals (e.G., HSE06) that limit the range of exchange interactions, reducing the cost relative to full Hartree‑Fock exchange. Nonetheless, hybrid calculations often necessitate a reduced k‑point mesh or a coarser plane‑wave cutoff, and careful convergence testing is essential to avoid systematic errors.
Many‑body perturbation techniques such as the GW approximation build upon DFT results to improve quasiparticle energies. In the GW method, the self‑energy Σ is approximated as the product of the Green’s function G and the screened Coulomb interaction W. The GW correction typically opens the band gap relative to DFT values, bringing theoretical predictions closer to experimental photoemission data. While QE provides a GW module (Yambo) and VASP includes a GW implementation, these calculations are significantly more expensive than standard DFT and often require a reduced number of empty bands, a fine frequency grid, and careful convergence of the dielectric function.
Molecular dynamics (MD) simulations can be performed within the DFT framework to study finite‑temperature behavior. In ab initio MD, forces are computed on the fly from DFT at each time step, allowing the system to evolve under Newtonian dynamics. The Car‑Parrinello method introduces fictitious dynamics for the electronic degrees of freedom, enabling larger time steps at the cost of additional parameters (e.G., The fictitious mass). In contrast, the Born‑Oppenheimer approach solves the electronic ground state at each MD step, ensuring accurate forces but requiring more SCF cycles. Applications of ab initio MD include melting simulations, diffusion studies, and the investigation of phase transitions.
The projector‑augmented wave (PAW) method deserves special attention because it provides an all‑electron description while retaining the efficiency of plane‑wave calculations. In PAW, the wavefunction is expressed as a combination of a smooth pseudo‑wavefunction and atom‑centered augmentation functions that recover the nodal structure near the nuclei. The PAW formalism yields accurate forces and stresses, and it is the default choice in VASP. QE’s PAW implementation follows a similar approach but may require explicit specification of augmentation charge grids.
When dealing with transition‑metal oxides or rare‑earth compounds, the choice of pseudopotential is critical. For example, the inclusion of semi‑core states (such as 3p for 3d transition metals) can affect the description of bonding and magnetic moments. Users should verify that the pseudopotential includes the necessary valence states and that the recommended cutoff energies are respected. In some cases, generating a custom pseudopotential with a tool like ONCVPSP (for norm‑conserving) or the PAW generator in QE may be advantageous.
The density of states can be decomposed further into local density of states (LDOS) to visualize spatial variations, such as surface states or defect‑induced levels. In QE, the LDOS can be extracted using the projwfc.X utility, while VASP provides the LDOS via the LORBIT tag and the DOSCAR file. Visualizing the LDOS with external software (e.G., VESTA) helps interpret the nature of electronic states localized at particular atomic sites.
Another important concept is the band alignment in heterostructures. Determining the relative positions of the valence‑band maximum (VBM) and conduction‑band minimum (CBM) across an interface requires calculating the electrostatic potential lineup. This is often done by averaging the planar‑averaged electrostatic potential across the slab and aligning the bulk reference potentials of each material. Accurate band alignment enables predictions of charge transfer, Schottky barrier heights, and photovoltaic performance.
In the context of alloy modeling, the special quasi‑random structure (SQS) approach creates supercells that mimic the statistical distribution of atomic species in a random alloy. By generating an SQS, one can perform a single DFT calculation that approximates the properties of a disordered alloy without resorting to costly configurational averaging. Tools such as ATAT can be employed to construct SQS cells, which are then imported into QE or VASP for total‑energy evaluation.
For high‑throughput calculations, automation frameworks such as AiiDA, FireWorks, or the Materials Project workflow are widely used. These platforms manage job submission, result parsing, and data provenance, enabling large‑scale screening of materials properties. The standardized input formats of QE and VASP, together with their well‑documented flags, facilitate the integration of these codes into automated pipelines.
The stress tensor can also be used to compute elastic constants via finite‑difference methods. By applying small strains to the crystal lattice and calculating the resulting stress, one obtains the components of the elastic stiffness tensor C_ij. This procedure requires high convergence precision because elastic constants are derived from second‑order energy derivatives. Symmetry analysis reduces the number of independent strain configurations needed, and tools like ElaStic automate the process for both QE and VASP.
When calculating properties that depend on the electronic structure near the Fermi level, such as transport coefficients or thermoelectric performance, the Boltzmann transport equation (BTE) can be solved using the electronic band structure as input. Packages like BoltzTraP take the band eigenvalues and velocities from DFT calculations to compute the Seebeck coefficient, electrical conductivity, and thermal conductivity under the constant relaxation‑time approximation. Accurate interpolation of the band structure onto a dense k‑mesh is essential for reliable transport predictions.
The magnetic ordering of a system is explored by defining different spin configurations (e.G., Ferromagnetic, antiferromagnetic, ferrimagnetic) in the initial magnetic moments. In VASP, the MAGMOM tag sets the starting spin values for each atom, while QE’s starting_magnetization variable defines the initial spin polarization. After relaxation, the final magnetic moments can be examined to confirm the stability of the chosen magnetic state. For complex magnetic structures, non‑collinear calculations with spin‑orbit coupling (SOC) may be required, especially in heavy elements where relativistic effects are significant.
Spin‑orbit coupling introduces a coupling between the electron’s spin and its orbital motion, leading to band splitting and anisotropic magnetic behavior. In VASP, SOC is activated by setting LSORBIT = .TRUE. And specifying a non‑collinear magnetic configuration. QE’s relativistic pseudopotentials and the noncolin = .True. Flag enable SOC calculations. Including SOC is crucial for topological insulators, Rashba systems, and materials with strong magnetic anisotropy.
The formation energy of a compound is a thermodynamic quantity that measures its stability relative to elemental reference phases. It is computed as
E_f = E_tot (compound) – Σ_i n_i μ_i
Where n_i is the number of atoms of element i, and μ_i the chemical potential (typically the total energy per atom of the elemental phase). Accurate formation energies require consistent computational settings across all phases, including identical XC functional, pseudopotentials, and convergence criteria. Small errors in total energies can lead to significant deviations in predicted phase diagrams.
Defect formation energies in solids follow a similar expression but also include terms for the charge state, the Fermi level, and correction terms for finite‑size effects. The general formula is
E_def = E_tot (defective) – E_tot (perfect) – Σ_i n_i μ_i + q (E_F + ε_VBM) + E_corr
Where q is the defect charge, E_F the Fermi level, ε_VBM the valence‑band maximum, and E_corr the finite‑size correction. VASP’s built‑in tools (e.G., The VTST scripts) automate these calculations, while QE users often rely on external scripts such as PyCDT.
The kinetic energy cutoff for the charge density, often denoted as ecutrho in QE or ENMAX in VASP, is typically set to a multiple (e.G., 4–8 Times) of the wavefunction cutoff. This higher cutoff ensures that the charge density, which includes contributions from the square of the wavefunctions, is represented accurately. Neglecting to raise the density cutoff can lead to errors in forces and stresses.
In calculations involving polar materials, the presence of a macroscopic electric field due to polarization can cause divergence in the total energy. To address this, a dipole correction or the use of the Berry‑phase method for polarization is required. QE’s modern version includes a Berry‑phase implementation that computes the spontaneous polarization by integrating the Berry connection over the occupied bands. VASP provides the LCALCPOL tag for Berry‑phase calculations.
The Berry phase concept also underlies the calculation of electronic properties such as anomalous Hall conductivity and orbital magnetization. By evaluating the change in the phase of the Bloch wavefunctions under adiabatic transport in k‑space, one can extract topological invariants like the Chern number. Both QE and VASP have modules or post‑processing tools to compute these quantities, although careful convergence with respect to k‑point density is mandatory.
For materials under pressure, the equation of state (EOS) is derived by calculating the total energy at various volumes and fitting the results to an analytical form such as the Birch‑Murnaghan or Vinet EOS. The bulk modulus and its pressure derivative follow from the fit parameters. Accurate EOS determination demands high convergence of both energy and stress at each volume point.
The charge density itself can be visualized to gain insight into bonding characteristics. Contour plots of ρ(r) reveal regions of high electron localization, while the Laplacian ∇²ρ(r) highlights charge depletion zones. In VASP, the CHGCAR file contains the total charge density, and the AECCAR0 and AECCAR2 files provide the all‑electron densities for Bader analysis. QE’s charge density is stored in the .Save directory and can be extracted with the pp.X utility.
When simulating nanoparticles or clusters, periodic boundary conditions can introduce artificial interactions between replicas. To minimize these, large vacuum regions (often >15 Å) are placed around the cluster, and dipole corrections are applied if the cluster possesses a net dipole moment. Convergence with respect to vacuum size must be verified, as the total energy may still be affected by the periodic image interactions.
The electron localization function (ELF) is a scalar field that measures the probability of finding an electron near a reference electron with the same spin. ELF values range from 0 to 1, with values close to 1 indicating strong localization (e.G., Lone pairs or covalent bonds). ELF can be computed in QE with the pp.X utility and in VASP using the LELF = .TRUE. Flag. ELF visualizations help interpret chemical bonding patterns and identify regions of metallic versus covalent character.
Hybrid functionals and GW calculations often require a dense set of unoccupied (empty) bands to capture the screening effects accurately. The number of empty bands is controlled by the NBANDS tag in VASP or the nbnd parameter in QE. Insufficient empty bands can lead to underestimation of the quasiparticle gap or incorrect self‑energy. Therefore, convergence tests should be performed by increasing NBANDS until the target property (e.G., Band gap) changes by less than a chosen tolerance.
The k‑point symmetry reduction exploits the crystal’s point‑group symmetry to minimize the number of irreducible k‑points needed for integration. Both QE and VASP automatically detect symmetry operations and generate the irreducible Brillouin zone (IBZ). However, when performing non‑collinear magnetic calculations or applying external fields, symmetry may be reduced or turned off, leading to a larger k‑point set. Users must be aware of this effect when comparing results across different calculation types.
In systems with strong spin‑orbit coupling, the inclusion of relativistic effects in the pseudopotential is essential. Fully relativistic PAW datasets incorporate SOC and are required for accurate band structure predictions in heavy elements such as Bi, Pb, or transition‑metal dichalcogenides. When using scalar‑relativistic pseudopotentials, the SOC term must still be added explicitly in the DFT code.
The self‑interaction error (SIE) is an intrinsic limitation of approximate XC functionals, causing an electron to spuriously interact with itself. SIE can lead to delocalization of d and f electrons, underestimation of band gaps, and inaccurate charge transfer. Hybrid functionals reduce SIE by mixing in exact exchange, while DFT+U adds an on‑site correction that penalizes fractional occupations. Understanding the magnitude of SIE for a given system guides the selection of corrective methods.
For charge‑density difference analyses, one often subtracts the charge density of the isolated components from that of the combined system to highlight charge redistribution upon bonding or adsorption. In VASP, the CHGCAR files of the separate fragments are summed and subtracted from the CHGCAR of the combined system, yielding a Δρ(r) that can be visualized with tools like VESTA. This technique is valuable for studying adsorption-induced polarization and charge transfer at interfaces.
When investigating surface reconstructions, the choice of the slab termination and the number of layers can dramatically affect the predicted structure. Surface energies are calculated as
Γ = (E_slab – N_bulk E_bulk) / (2A)
Where E_slab is the total energy of the slab, N_bulk the number of bulk units in the slab, E_bulk the bulk energy per unit, and A the surface area. The factor of 2 accounts for the two surfaces of a symmetric slab. Accurate surface energies require converged slab thickness, vacuum size, and k‑point sampling.
The dipole correction in slab calculations removes the artificial electric field arising from the periodic replication of a dipolar slab. In VASP, setting IDIPOL and adding LDIPOL = .TRUE. Applies the correction, while QE’s dipfield.X utility can be used for the same purpose. The correction is especially important for polar surfaces and for systems with an intrinsic dipole moment, such as ferroelectric thin films.
The Born effective charge tensor quantifies the coupling between atomic displacements and macroscopic electric fields. It is computed via DFPT in QE or via finite‑difference methods in VASP. Born charges are essential for evaluating dielectric properties, infrared activity, and piezoelectric coefficients.
In the context of high‑entropy alloys, the configurational disorder is modeled using special quasi‑random structures or large supercells with random atomic distributions. The statistical sampling of different configurations may be required to capture the average properties. Automated workflows that generate multiple random configurations, perform DFT relaxations, and average the results are increasingly common for these complex materials.
The thermodynamic integration method can be employed to compute free energies from DFT by coupling the system to a reference model (e.G., An Einstein crystal) and integrating over a coupling parameter λ. This approach yields temperature‑dependent phase stability information beyond the static 0 K total energy.
When performing non‑periodic calculations such as isolated molecules, a large cubic box with vacuum padding is used to eliminate interactions between periodic images. The total energy convergence with respect to box size must be checked, especially for charged species where the background charge can introduce artifacts. In VASP, the ISMEAR = -5 setting (tetrahedron method with Blöchl corrections) is appropriate for molecular systems.
The Hubbard U parameter can be treated as an empirical value or calculated from first principles using linear response methods. In VASP, the LDAU tag activates the DFT+U scheme, while the LDAUTYPE and LDAUL variables define the type of correction and the angular momentum channel (e.G., D‑orbitals). Properly calibrated U values improve the description of Mott insulators, magnetic ordering, and band gaps.
The energy‑volume curve is often fitted to extract the equilibrium lattice constant a₀, bulk modulus B₀, and its pressure derivative B′. The fitting is performed using a least‑squares algorithm that minimizes the residuals between the DFT energies and the chosen EOS functional. The quality of the fit is assessed by the residual sum of squares and by visual inspection of the curve.
In optical property calculations, the frequency‑dependent dielectric function ε(ω) is obtained from the linear response of the system to an external electric field. In VASP, the LEPSILON = .TRUE. Flag triggers a calculation of the static dielectric tensor, while the optic module computes the frequency‑dependent response using the independent‑particle approximation. QE’s epsilon.X utility provides similar capabilities. The resulting absorption spectra, refractive indices, and reflectivity can be compared to experimental measurements.
The phonon density of states (PhDOS) is derived from the phonon frequencies throughout the Brillouin zone and provides insight into vibrational contributions to thermodynamic quantities such as the free energy and specific heat. In QE, the matdyn.X utility processes the dynamical matrices to produce the PhDOS, while VASP’s Phonopy interface performs the same task using finite displacements.
Thermal conductivity calculations can be performed using the Boltzmann transport equation for phonons, requiring the third‑order force constants. Packages such as ShengBTE, interfaced with both QE and VASP, compute lattice thermal conductivity by solving the phonon BTE with scattering rates derived from anharmonic interactions.
The charge carrier mobility can be estimated from the deformation potential theory, which relates the change in band edge energies to strain. By applying small deformations to the lattice, the deformation potential constant is extracted from the slope of the band edge versus strain plot. Combined with effective mass and elastic modulus data, the mobility μ can be evaluated using the formula
Μ = (e ħ³ C) / (k_B T m*² E_d²)
Where C is the elastic constant, m* the effective mass, and E_d the deformation potential. This approach is widely used for two‑dimensional semiconductors and organic crystals.
In modeling defects, the supercell size must be large enough to minimize spurious defect‑defect interactions. Typically, a supercell containing at least 100 atoms is recommended for point defects. Finite‑size corrections, such as the Makov‑Payne term, scale inversely with the supercell dimension and must be applied to obtain reliable formation energies.
The magnetic anisotropy energy (MAE) quantifies the energy difference between magnetization directions and is crucial for permanent magnet design. MAE is computed by performing two total‑energy calculations with SOC included, each with the magnetization aligned along different crystallographic axes. The energy difference provides the anisotropy constant, and converged results often require dense k‑point meshes and high plane‑wave cutoffs.
When simulating ferroelectric materials, the spontaneous polarization is obtained via the Berry‑phase method, and the double‑well potential energy surface can be mapped by displacing the ions along the polarization direction. The coercive field and switching barrier are derived from the energy profile, informing the design of ferroelectric devices.
The dielectric constant can be split into electronic (high‑frequency) and ionic contributions. The electronic part is obtained from the linear response of the electron density, while the ionic part arises from lattice vibrations. In QE, the ph.X module provides the phonon contribution, and the epsilon.X utility yields the electronic dielectric tensor. VASP’s LEPSILON flag returns the static dielectric constant, combining both contributions.
In high‑pressure research, the use of variable‑cell relaxations (vc‑relax) allows the simulation of structural phase transitions under applied stress. The ISIF tag in VASP controls which degrees of freedom are relaxed: ISIF = 3 relaxes ions and cell shape, while ISIF = 2 relaxes ions at a fixed cell. QE’s variable‑cell relaxation is performed with the ‘vc‑relax’ calculation mode, and the cell parameters are updated iteratively based on the stress tensor.
When dealing with complex oxides, the presence of multiple oxidation states necessitates careful assignment of pseudopotential valence configurations and possibly the inclusion of semicore states. For example, TiO₂ calculations may require Ti pseudopotentials that treat 3s and 3p as valence to capture Ti‑O bonding accurately. Validation against experimental lattice constants and band gaps helps confirm the adequacy of the chosen potentials.
The charge density difference technique is also useful for analyzing catalytic reactions. By subtracting the sum of the charge densities of the clean surface and the isolated adsorbate from the combined system, one visualizes charge accumulation and depletion regions that indicate bond formation or activation.
Key takeaways
- In the context of solid‑state physics, the most widely used ab initio approach is density functional theory (DFT), which replaces the many‑electron wavefunction with the electron density as the fundamental variable.
- The term total energy refers to the expectation value of the Hamiltonian for the system’s electronic ground state, including kinetic, potential, exchange‑correlation, and ion‑ion interaction contributions.
- Where ψ_i(r) are the Kohn‑Sham orbitals, ε_i their eigenvalues, and V_eff(r) the effective potential.
- During each SCF iteration, the electron density is updated, the effective potential is recomputed, and the Kohn‑Sham equations are solved again until convergence criteria for the total energy, charge density, and forces are satisfied.
- For systems where localized d or f electrons play a significant role, hybrid functionals that mix a fraction of exact Hartree‑Fock exchange with GGA exchange, such as HSE06, can provide more accurate band gaps and magnetic properties.
- Most plane‑wave DFT codes employ pseudopotentials to replace the all‑electron potential of the nuclei and core electrons with a smoother effective potential that reproduces the scattering properties of the valence electrons.
- The size of the basis is controlled by the plane‑wave kinetic energy cutoff (E_cut), which determines the maximum kinetic energy of plane waves included in the expansion.