|
| Model () |
|
| Model (const std::vector< unsigned int > &capacity) |
|
| Model (const Model &model) |
|
| Model (Model &&model) |
|
| Model (const std::string &serialization, Mode mode) |
|
virtual | ~Model () |
|
Model & | operator= (const Model &rhs) |
|
Model & | operator= (Model &&rhs) |
|
void | add (HoppingAmplitude ha) |
|
void | addModel (const Model &model, const Index &subsytemIndex) |
|
int | getBasisIndex (const Index &index) const |
|
int | getBasisSize () const |
|
void | generateHoppingAmplitudeSet (const HoppingAmplitude::AmplitudeCallback &hoppingAmplitudeCallback) |
|
void | generateOverlapAmplitudeSet (const OverlapAmplitude::AmplitudeCallback &overlapAmplitudeCallback) |
|
void | construct () |
|
bool | getIsConstructed () |
|
void | setTemperature (double temperature) |
|
double | getTemperature () const |
|
void | setChemicalPotential (double chemicalPotential) |
|
double | getChemicalPotential () const |
|
void | setStatistics (Statistics statistics) |
|
Statistics | getStatistics () const |
|
const BasisStateSet & | getBasisStateSet () const |
|
const HoppingAmplitudeSet & | getHoppingAmplitudeSet () const |
|
const SourceAmplitudeSet & | getSourceAmplitudeSet () const |
|
const OverlapAmplitudeSet & | getOverlapAmplitudeSet () const |
|
Geometry & | getGeometry () |
|
const Geometry & | getGeometry () const |
|
void | createManyParticleContext () |
|
ManyParticleContext * | getManyParticleContext () |
|
void | setFilter (const AbstractHoppingAmplitudeFilter &hoppingAmplitudeFilter) |
|
void | setFilter (const AbstractIndexFilter &indexFilter) |
|
Model & | operator<< (const AbstractState &basisState) |
|
Model & | operator<< (const HoppingAmplitude &hoppingAmplitude) |
|
Model & | operator<< (const std::tuple< HoppingAmplitude, HoppingAmplitude > &hoppingAmplitudes) |
|
Model & | operator<< (const HoppingAmplitudeList &hoppingAmplitudeList) |
|
Model & | operator<< (const SourceAmplitude &sourceAmplitude) |
|
Model & | operator<< (const OverlapAmplitude &overlapAmplitudeSet) |
|
virtual std::string | toString () const |
|
std::string | serialize (Mode mode) const |
|
template<> |
std::string | serialize (const bool &data, Mode mode) |
|
template<> |
std::string | serialize (const double &data, Mode mode) |
|
template<> |
std::string | serialize (const std::complex< double > &data, Mode mode) |
|
template<> |
std::string | serialize (const int &data, Mode mode) |
|
template<> |
std::string | serialize (const unsigned int &data, Mode mode) |
|
template<> |
std::string | serialize (const SpinMatrix &data, Mode mode) |
|
template<> |
std::string | serialize (const Statistics &data, Mode mode) |
|
template<> |
std::string | serialize (const std::vector< std::complex< double >> &data, Mode mode) |
|
template<> |
int | deserialize (const std::string &serialization, Mode mode) |
|
| Communicator (bool verbose) |
|
void | setVerbose (bool verbose) |
|
bool | getVerbose () const |
|
|
enum | Mode { Debug,
Binary,
XML,
JSON
} |
|
static bool | hasID (const std::string &serialization, Mode mode) |
|
static std::string | getID (const std::string &serialization, Mode mode) |
|
static std::string | extractComponent (const std::string &serialization, const std::string &containerID, const std::string &componentID, const std::string &componentName, Mode mode) |
|
static void | setGlobalVerbose (bool globalVerbose) |
|
static bool | getGlobalVerbose () |
|
static bool | validate (const std::string &serialization, const std::string &id, Mode mode) |
|
static std::string | getContent (const std::string &serialization, Mode mode) |
|
static std::vector< std::string > | split (const std::string &content, Mode mode) |
|
template<typename DataType > |
static std::enable_if<!std::is_pointer< DataType >::value, std::string >::type | serialize (const DataType &data, Mode mode) |
|
template<typename DataType > |
static std::enable_if< std::is_pointer< DataType >::value, std::string >::type | serialize (const DataType &data, Mode mode) |
|
template<typename DataType > |
static DataType | deserialize (const std::string &serialization, Mode mode) |
|
static std::string | extract (const std::string &serialization, Mode mode, std::string component) |
|
Container of Model related information.
The Model contains all model related information such as the Hamiltonian, temperature, and chemical potential.
Example
#include <complex>
using namespace std;
using namespace TBTK;
int main(){
complex<double> U = 1;
complex<double> t = 1;
double mu = -1;
double T = 300;
unsigned int SIZE_X = 10;
unsigned int SIZE_Y = 10;
for(unsigned int x = 0; x < SIZE_X; x++){
for(unsigned int y = 0; y < SIZE_Y; y++){
for(unsigned int spin = 0; spin < 2; spin++){
U,
{x, y, spin},
{x, y, spin}
);
if(x+1 < SIZE_X){
-t,
{x+1, y, spin},
{x, y, spin}
) + HC;
}
if(y+1 < SIZE_Y){
-t,
{x, y+1, spin},
{x, y, spin}
) + HC;
}
}
}
}
}
Output
Temperature: 300K (300 n.u.)
Chemical potential: -1eV (-1 n.u.)
Statistics: Fermi-Dirac
Basis size: 200