Self-consistency cycle: Difference between revisions
Vaspmaster (talk | contribs) No edit summary |
Vaspmaster (talk | contribs) No edit summary |
||
Line 18: | Line 18: | ||
This ensures that the wavefunctions that are initialized with random numbers have converged to something sensible before they are used to construct a new charge density. | This ensures that the wavefunctions that are initialized with random numbers have converged to something sensible before they are used to construct a new charge density. | ||
Furthermore, note that per default the iterative refinement of the orbitals is preceded by a diagonalization of the subspace spanned by the current orbitals | Furthermore, note that per default ({{TAG|LDIAG}}=.TRUE.) the iterative refinement of the orbitals is preceded (RMM-DIIS) or followed (blocked-Davidson) by a diagonalization of the subspace spanned by the current orbitals. | ||
In case of the RMM-DIIS, the optimization step is additionally followed by an orthogonalization of the refined orbitals. | |||
For (a lot) more details on the self-consistency cycle and associated algorithms in {{VASP}}, we recommend the seminal papers by Kresse and Furthmüller.{{cite|kresse:cms:1996}}{{cite|kresse:prb:96}} | For (a lot) more details on the self-consistency cycle and associated algorithms in {{VASP}}, we recommend the seminal papers by Kresse and Furthmüller.{{cite|kresse:cms:1996}}{{cite|kresse:prb:96}} |
Revision as of 17:15, 13 November 2023
The term self-consistency cycle (SCC) denotes a category of algorithms that determine the electronic ground state by a combination of iterative matrix diagonalization and density mixing.
Figure 1. shows a procedural flowchart of the self-consistency cycle:
- When starting from scratch, the SCC starts with an initial guess for the electronic density of the system under consideration: VASP uses the approximation of overlapping atomic charge densities. The orbitals are initialized with random numbers. Alternatively, the SCC may (re-)start from the orbitals and/or electronic density obtained in a previous calculation.
- The density defines the Hamiltonian.
- By means of iterative matrix diagonalization techniques, one obtains the NBANDS lowest lying eigenstates of the Hamiltonian. The iterative matrix diagonalization algorithms implemented in VASP are the blocked-Davidson algorithm and the residual-minimization method with direct inversion in the iterative subspace (RMM-DIIS). Per default VASP uses the blocked-Davidson algorithm (ALGO = Normal). This step is often referred to as iterative optimization/refinement of the orbitals.
- After the eigenstates and eigenvalues of the Hamiltonian, i.e., orbitals and one-electron energies, have been determined with sufficient accuracy, the corresponding partial occupancies of the orbitals are calculated.
- From the one-electron energies and partial occupancies, the free energy of the system is computed.
- From the orbitals and partial occupancies, a new electronic density is constructed.
- In principle, the new density could be directly used to define a new Hamiltonian. In most cases, however, this does not lead to a stable algorithm (on account of, e.g., charge sloshing). Instead, the new density is not used directly but is mixed with the old density. By default VASP uses a Broyden mixer (IMIX). The resulting density then defines the new Hamiltonian for the next round of iterative matrix diagonalization.
Steps 2-7 are repeated until the change in the free energy from one cycle to the next drops below a specific threshold (EDIFF).
Note that when starting from scratch (ISTART = 0), the self-consistency cycle procedure of VASP always begins with several (NELMDL) cycles where the density is kept fixed at the initial approximation (overlapping atomic charge densities). This ensures that the wavefunctions that are initialized with random numbers have converged to something sensible before they are used to construct a new charge density.
Furthermore, note that per default (LDIAG=.TRUE.) the iterative refinement of the orbitals is preceded (RMM-DIIS) or followed (blocked-Davidson) by a diagonalization of the subspace spanned by the current orbitals. In case of the RMM-DIIS, the optimization step is additionally followed by an orthogonalization of the refined orbitals.
For (a lot) more details on the self-consistency cycle and associated algorithms in VASP, we recommend the seminal papers by Kresse and Furthmüller.[1][2]