SOLIDstate
A C++ library for solid state physics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Canonical.hpp
Go to the documentation of this file.
1 
11 #ifndef ENSEMBLE_CANONICAL_HPP
12 #define ENSEMBLE_CANONICAL_HPP
13 
14 #include "Ensemble.hpp"
15 #include "Sector.hpp"
16 #include "../Combinadics/Binomials.hpp"
17 
18 namespace solid
19 {
20 
26 class Canonical : public Ensemble, public IEnsemble
27 {
28 public:
29 
33  int N = 0;
34 
41  Canonical(int _L, int _N);
42 
46  void SetSize() override;
47 
51  void FillSectors() override;
52 };
53 
54 } // namespace solid
55 
56 #endif
Sector header.
void FillSectors() override
Filling Ensemble with selected sector.
Definition: Canonical.cpp:33
Canonical(int _L, int _N)
Construct a new Canonical object.
Definition: Canonical.cpp:22
interface for Ensemble class
Definition: Ensemble.hpp:25
int N
number of particles
Definition: Canonical.hpp:33
Ensemble parent class.
Definition: Ensemble.hpp:55
Ensemble: Canonical (int L, int N) with: L – sites N – particles.
Definition: Canonical.hpp:26
Ensemble interface and parent class header.
void SetSize() override
Set the Size object.
Definition: Canonical.cpp:28