I am trying to plot the density of states $$ N(E)= \frac{1}{N}\Sigma_{k} (\delta{(E - \epsilon_{k}))} $$ where $\epsilon_{k} = -2t*[cos(k_x)+cos(k_y)]$ and $k$ goes from $-\pi$ to $\pi$. For this plot, we will get a singular point when E = 0 and it will peak at this point. This is done for a 2D Hubbard Model without considering the disorder. This is the plot I am expected to get -
My code:
energy[kx_, ky_] := -2 t (Cos[kx] + Cos[ky]);
nPoints = 100;
kRange = Range[-Pi, Pi, 2 Pi/(nPoints - 1)];
energyValues =
Flatten[Table[energy[kx, ky], {kx, kRange}, {ky, kRange}]];
densityOfStates[
Ee_] := (1/Length[energyValues]) Sum[
DiracDelta[Ee - en], {en, energyValues}];
Plot[densityOfStates[Ee], {Ee, -4, 4}, PlotRange -> All,
AxesLabel -> {"E", "N(E)"}, PlotRange -> {{-4, 4}, {0, 0.5}}]
This is the plot I am getting -
I am implementing this paper - https://www.cond-mat.de/events/correl16/manuscripts/scalettar.pdf
DiracDelta
is the implementation of the $\delta$-distribution in Mathematica, not a usual function. Its plots make no sense. $\endgroup$t
? How can you plot anything when you miss the definition oft
? $\endgroup$