gftool.lattice.rectangular.dos
- gftool.lattice.rectangular.dos(eps, half_bandwidth, scale)[source]
DOS of non-interacting 2D rectangular lattice.
- Parameters:
- epsfloat np.ndarray or float
DOS is evaluated at points eps.
- half_bandwidthfloat
Half-bandwidth of the DOS, DOS(| eps | > half_bandwidth) = 0. The half_bandwidth corresponds to the nearest neighbor hopping \(t=D/2/(scale+1)\).
- scalefloat
Relative scale of the different hoppings \(t_1=scale*t_2\). scale=1 corresponds to the square lattice.
- Returns:
- float np.ndarray or float
The value of the DOS.
Examples
>>> eps = np.linspace(-1.1, 1.1, num=500) >>> dos = gt.lattice.rectangular.dos(eps, half_bandwidth=1, scale=2)
>>> import matplotlib.pyplot as plt >>> _ = plt.plot(eps, dos) >>> _ = plt.xlabel(r"$\epsilon/D$") >>> _ = plt.ylabel(r"DOS * $D$") >>> _ = plt.axvline(0, color='black', linewidth=0.8) >>> _ = plt.ylim(bottom=0) >>> _ = plt.xlim(left=eps.min(), right=eps.max()) >>> plt.show()