SOLIDstate
A C++ library for solid state physics
|
Ensemble: Canonical (int L, int N) with: L – sites N – particles. More...
#include <Canonical.hpp>
Public Member Functions | |
Canonical (int _L, int _N) | |
Construct a new Canonical object. More... | |
void | SetSize () override |
Set the Size object. More... | |
void | FillSectors () override |
Filling Ensemble with selected sector. More... | |
Public Member Functions inherited from solid::Ensemble | |
virtual | ~Ensemble () |
Destroy the Ensemble object. More... | |
Public Member Functions inherited from solid::IEnsemble | |
virtual | ~IEnsemble () |
Destroy the IEnsemble object. More... | |
Public Attributes | |
int | N = 0 |
number of particles More... | |
Public Attributes inherited from solid::Ensemble | |
int | L |
number of sites More... | |
int | size |
total size of the sectors More... | |
std::vector< Sector > | sectors |
contains vector of Sectors More... | |
solid::Canonical::Canonical | ( | int | _L, |
int | _N | ||
) |
Construct a new Canonical object.
_L | number os sites |
_N | number of particles |
|
overridevirtual |
Filling Ensemble with selected sector.
Implements solid::IEnsemble.
|
overridevirtual |
Set the Size object.
Implements solid::IEnsemble.
int solid::Canonical::N = 0 |
number of particles