vaspparser.dft.waves.dos.Dos#

class vaspparser.dft.waves.dos.Dos(n_bins=100, es_obj=None, eigenvalues=None, bin_density=None)[source]#

Bases: object

The DOS class stores all information to store and retrieve the total and resolved density of states from an electronic structure calculation.

Parameters:
  • n_bins (int) – Number of histogram bins required to calculate the DOS

  • es_obj (vaspparser.dft.waves.electronic.ElectronicStructure) – The electronic structure instance for which the DOS has to be computed

  • eigenvalues (list/numpy.ndarray) – If es_obj is None, the eigenvalues could be specified as a list

__init__(n_bins=100, es_obj=None, eigenvalues=None, bin_density=None)[source]#

Methods

__init__([n_bins, es_obj, eigenvalues, ...])

get_orbital_resolved_dos(orbital_indices[, ...])

Gives the dos contribution of a given indices of orbitals as arranged in the pyiron_atomistics.objects.waves.ElectronicStructure instance.

get_spatial_orbital_resolved_dos(...[, ...])

Gives the dos contribution of a given indices of atoms as well as orbitals as arranged in the pyiron_atomistics.objects.waves.ElectronicStructure instance.

get_spatially_resolved_dos(atom_indices[, ...])

Gives the dos contribution of a given indices of atoms as arranged in the pyiron_atomistics.objects.waves.ElectronicStructure instance.

get_spin_resolved_dos(spin_indices)

Gives the dos contribution of a given indices of spin as arranged in the pyiron_atomistics.objects.waves.ElectronicStructure instance.

plot_orbital_resolved_dos(**kwargs)

Plots the orbital resolved DOS

plot_total_dos(**kwargs)

Plots the total DOS

get_orbital_resolved_dos(orbital_indices, spin_indices=0)[source]#

Gives the dos contribution of a given indices of orbitals as arranged in the pyiron_atomistics.objects.waves.ElectronicStructure instance.

Parameters:
  • orbital_indices (list/numpy.ndarray) – The index/indices of the orbitals for which the dos contribution is required

  • spin_indices (list/numpy.ndarray) – The index/indices of the spins for which the dos contribution is required

Returns:

The required dos

Return type:

numpy.ndaray

get_spatial_orbital_resolved_dos(atom_indices, orbital_indices, spin_indices=0)[source]#

Gives the dos contribution of a given indices of atoms as well as orbitals as arranged in the pyiron_atomistics.objects.waves.ElectronicStructure instance.

Parameters:
  • atom_indices (list/numpy.ndarray) – The index/indices of the atoms for which the dos contribution is required

  • orbital_indices (list/numpy.ndarray) – The index/indices of the orbitals for which the dos contribution is required

  • spin_indices (list/numpy.ndarray) – The index/indices of the spins for which the dos contribution is required

Returns:

The required dos

Return type:

numpy.ndaray

get_spatially_resolved_dos(atom_indices, spin_indices=0)[source]#

Gives the dos contribution of a given indices of atoms as arranged in the pyiron_atomistics.objects.waves.ElectronicStructure instance.

Parameters:
  • atom_indices (list/numpy.ndarray) – The index/indices of the atoms for which the dos contribution is required

  • spin_indices (list/numpy.ndarray) – The index/indices of the spins for which the dos contribution is required

Returns:

The required dos

Return type:

numpy.ndarray

get_spin_resolved_dos(spin_indices)[source]#

Gives the dos contribution of a given indices of spin as arranged in the pyiron_atomistics.objects.waves.ElectronicStructure instance.

Parameters:

spin_indices (list/numpy.ndarray) – The index/indices of the spins for which the dos contribution is required

Returns:

The required dos

Return type:

numpy.ndarray

plot_orbital_resolved_dos(**kwargs)[source]#

Plots the orbital resolved DOS

Parameters:

**kwargs – Variable for matplotlib.pylab.plot customization (linewidth, linestyle, etc.)

Returns:

matplotlib.pylab.plot

plot_total_dos(**kwargs)[source]#

Plots the total DOS

Parameters:

**kwargs – Variables for matplotlib.pylab.plot customization (linewidth, linestyle, etc.)

Returns:

matplotlib.pylab.plot