#include "TBTK/PropertyExtractor/Diagonalizer.h"
#include <complex>
using namespace std;
using namespace TBTK;
using namespace Visualization::MatPlotLib;
complex<double> i(0, 1);
int main(){
const unsigned int SIZE_X = 12;
const unsigned int SIZE_Y = 12;
const unsigned int SIZE_Z = 12;
const double t = -1;
const double mu = -3;
for(unsigned int x = 0; x < SIZE_X; x++){
for(unsigned int y = 0; y < SIZE_Y; y++){
for(unsigned int z = 0; z < SIZE_Z; z++){
if(x+1 < SIZE_X){
t,
{x+1, y, z},
{x, y, z}
) + HC;
}
if(y+1 < SIZE_Y){
t,
{x, y+1, z},
{x, y, z}
) + HC;
}
if(z+1 < SIZE_Z){
t,
{x, y, z+1},
{x, y, z}
) + HC;
}
}
}
}
const double LOWER_BOUND = -10;
const double UPPER_BOUND = 10;
const unsigned int RESOLUTION = 1000;
propertyExtractor.setEnergyWindow(
LOWER_BOUND,
UPPER_BOUND,
RESOLUTION
);
const double SMOOTHING_SIGMA = 0.2;
const unsigned int SMOOTHING_WINDOW = 101;
dos = Smooth::gaussian(dos, SMOOTHING_SIGMA, SMOOTHING_WINDOW);
Plotter plotter;
plotter.plot(dos);
plotter.save("figures/DOS.png");
= propertyExtractor.calculateWaveFunctions(
{{_a_, _a_, _a_}},
{_a_}
);
plotter.clear();
plotter.plot({_a_, _a_, SIZE_Z/2}, 10, waveFunctions);
plotter.save("figures/WaveFunction.png");
}