The ground-state electronic density in a Kohn-Sham (KS)-based electronic-structure code such as Octopus is obtained after a self-consistent process that attempts to solve the KS equations.
Kohn-Sham Ground State
In essence, the problem is the following: at a given iteration step, one departs from an approximate solution – some KS eigenfunctions , eigenvalues and density , which determines a KS “input” Hamiltonian. By diagonalizing this Hamiltonian, one obtains the corresponding “output” eigenfunctions, eigenvalues, and density. This density (or, alternatively, the corresponding Kohn-Sham potential) is then used to build a new input Hamiltonian, that will be diagonalized in the next iteration step. This cycle is considered to be closed, and the solution achieved, when the input and output are similar enough that some convergence criterion is fulfilled. In our case, we have allowed for four different criteria, to be defined below. The self-consistent procedure will stop either when the first of the convergence criterions is fulfilled, or when a maximum number of iterations has been performed.
The output density (or potential) of a given iteration is not used directly to construct the Kohn-Sham potential for the following iteration. Instead, it is "mixed" with some densities (or potentials) of previous iteration steps. The manner in which this mixing is produced is determined by the variables, , and .
After each iteration Octopus checks whether some convergence criterion is met. One criterion is that the error in the electron density be smaller than some threshold. Of course, the true electron density is not known, so this "error" is really the change in the density since the last iteration: We call this criterion.
However, since the density is proportional to the number of electrons , this absolute criterion is not very transferable between different system sizes. Therefore the default criterion to use is, in which the relative density, , is used rather than the absolute density. By default we use a value of 1e-5 (or 1e-6, check parser.log).
The other convergence variables, , and are set to 0, indicating that they will not be used as criteria for convergence.
These other available criteria use errors defined as follows:
: The change in each eigenvalue is found and the sum of these changes must be smaller than the threshold.
: The eigenvalues are scaled by the number of electrons, otherwise as above.
To use them, set the relevant variable equal to a number indicating your desired error. Set the other three convergence variables to zero.
In each iteration of the self-consistency problem described above, Octopus must diagonalize the Kohn-Sham input Hamiltonian to obtain the output eigenfunctions and eigenvalues. This diagonalization is done by the eigensolver, also an iterative procedure. There are several options for the iterative scheme used to diagonalize the Hamiltonian, which are specified in the documentation for the variable. You may specify the threshhold for considering this iterative diagonalization finished with the variable . The variable sets a maximum number of steps in the diagonalization, so that if it is reached, the diagonalization is considered finished even if some of the eigenvectors are not fully converged.
During each self-consistent field cycle iteration Octopus reports the eigenvalues it has obtained by diagonalizing the Hamiltonian, and how many of those eigenvectors are fully converged.
*********************** SCF CYCLE ITER # 3 ************************ etot = 4.52092631E+00 abs_ev = 7.91E+02 rel_ev = 4.28E+01 abs_dens = 5.16E-01 rel_dens = 1.43E-02 Matrix vector products: 3669 Converged eigenvectors: 6 Eigenvalues [H] #st Spin Eigenvalue Occupation Error 1 -- -1.288198 2.000000 (7.2E-07) 2 -- -0.830676 2.000000 (1.0E-06) 3 -- -0.826885 2.000000 (8.8E-07) 4 -- -0.808297 2.000000 (6.2E-07) ...
It is not too important whether the eigenvectors are not converged in the SCF steps, only whether they are converged at the end.
Since the solution of the ground-state problem is done iteratively, we need an initial guess; a set of initial Kohn-Sham orbitals. If we are doing the calculation with pseudopotentials (as opposed to model potentials defined by the user), we can use the pseudo-orbitals that are used to generate the pseudopotential. By default, the program will fill the initial guess states with pseudo-orbitals. Whether or not this is done is determined by the variable. The guess density is the sum of the atomic densities.
Note, however, that those pseudo-orbitals are not passed directly to the iterative cycle. Instead, the code performs an initial diagonalization with the Hamiltonian generated by the guess density. Therefore, the SCF cycle is started with the linear combination of those atomic orbitals, with the coefficients that result of that diagonalization (LCAO stands for linear combination of atomic orbitals). In other words, the first step of the SCF cycle is performed inside the LCAO subspace, whereas the following steps are performed in the full space.
This diagonalization will typically be done with a number of pseudo-orbitals that is larger than the number that will be used later in the KS SCF cycle. Once we diagonalize that LCAO matrix, we take the lowest lying eigenstates to proceed with the calculation. There is some default number of pseudo-orbitals that will be used, but one can change it making use of variable.
If you set, the LCAO calculation will be performed self-consistently. Or, in other words, the whole SCF cycle will be done inside the LCAO subspace.
=unocc. The purpose of this run mode is to calculate higher lying Kohn-Sham orbitals. For that purpose, it reads the restart information from a converged previous ground-state calculation, and builds the corresponding Hamiltonian. Then, it calculates the unoccupied eigenvalues and eigenfunctions. The number of unoccupied orbitals calculated is given by the .