gftool.lattice.box.dos
- gftool.lattice.box.dos(eps, half_bandwidth)[source]
Box-shaped DOS.
- Parameters:
- epsfloat array_like or float
DOS is evaluated at points eps.
- half_bandwidthfloat
Half-bandwidth of the DOS, DOS(| eps | > half_bandwidth) = 0.
- Returns:
- float np.ndarray or float
The value of the DOS.
Examples
>>> eps = np.linspace(-1.1, 1.1, num=500) >>> dos = gt.lattice.box.dos(eps, half_bandwidth=1)
>>> 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()