triqs.dos.dos.DOS

class triqs.dos.dos.DOS(eps, rho, name='')[source]

Bases: object

Density of states of fermions on a 1D epsilon grid.

Stores a discrete representation of

\[\rho(\epsilon) \equiv \sum_k^{'} \delta(\epsilon - \epsilon_k),\]

normalised so that \(\int_{-\infty}^{\infty} d\epsilon\, \rho(\epsilon) = 1\).

Parameters:
epsarray-like

1D array of energy values \(\epsilon_i\).

rhoarray-like

1D array of DOS values \(\rho(\epsilon_i)\), same length as eps.

namestr, optional

Name of the DOS / orbital, used as the plot label. Default ''.

Attributes

eps

(numpy.ndarray) Energy grid.

rho

(numpy.ndarray) DOS values on the grid.

name

(str) Name of the DOS / orbital.

Methods

copy()

Return an independent DOS with the same eps, rho and name.

density([mu])

Integrated density of free fermions up to chemical potential mu.

Notes

The class implements the TRIQS plot protocol, so instances can be passed directly to triqs.plot.mpl_interface.oplot(). HDF5 read/write is registered via h5.formats.register_class().