pengwann.descriptors.DescriptorCalculator.from_eigenvalues#
- classmethod descriptors.DescriptorCalculator.from_eigenvalues(eigenvalues, num_wann, nspin, energy_range, resolution, sigma, kpoints, u, h=None, occupation_matrix=None)#
Initialise a DescriptorCalculator object from a set of Kohn-Sham eigenvalues.
The input eigenvalues are used to calculate the DOS array: the density of states at each k-point and band across a range of discretised energies as specified by energy_range and resolution. This is required to compute descriptors such as the WOHP in a vectorised manner.
- Parameters:
- eigenvalues
ndarrayoffloat The Kohn-Sham eigenvalues.
- num_wann
int The total number of Wannier functions.
- nspin
int The number of electrons per fully-occupied band. This should be set to 2 for non-spin-polarised calculations and set to 1 for spin-polarised calculations.
- energy_range2-length
tupleoffloat The energy range over which the density of states is to be evaluated.
- resolution
float The desired energy resolution of the density of states.
- sigma
float The width of the Gaussian kernel used to smear the density of states.
- kpoints
ndarrayoffloat The full k-point mesh used in the prior Wannier90 calculation.
- u
ndarrayofcomplex The U matrices that define the Wannier functions in terms of the canonical Bloch states.
- h
dictof {3-lengthtupleofintndarrayofcomplex} pairs orNone, optional The Hamiltonian in the Wannier basis. Required for the computation of WOHPs. Defaults to None.
- occupation_matrix
ndarrayoffloatorNone, optional The Kohn-Sham occupation matrix. Required for the computation of WOBIs. Defaults to None.
- eigenvalues
- Returns:
- descriptor_calculator
DescriptorCalculator The initialised DescriptorCalculator object.
- descriptor_calculator
See also
pengwann.io.readParse Wannier90 output files.
pengwann.utils.get_occupation_matrix