SOLIDstate
A C++ library for solid state physics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
GrandCanonical.hpp
Go to the documentation of this file.
1 
11 #ifndef ENSEMBLE_GRANDCANONICAL_HPP
12 #define ENSEMBLE_GRANDCANONICAL_HPP
13 
14 #include "Ensemble.hpp"
15 #include "Sector.hpp"
16 #include <cmath>
17 
18 namespace solid
19 {
20 
25 class GrandCanonical : public Ensemble, public IEnsemble
26 {
27 public:
28 
34  GrandCanonical(int _L);
35 
39  void SetSize() override;
40 
44  void FillSectors() override;
45 };
46 
47 } // namespace solid
48 
49 #endif
Sector header.
interface for Ensemble class
Definition: Ensemble.hpp:25
GrandCanonical(int _L)
Construct a new GrandCanonical object.
Definition: GrandCanonical.cpp:16
Ensemble parent class.
Definition: Ensemble.hpp:55
void FillSectors() override
Filling Ensemble with selected sectors.
Definition: GrandCanonical.cpp:26
void SetSize() override
Set the Size object.
Definition: GrandCanonical.cpp:21
Ensemble interface and parent class header.
Ensemble: GrandCanonical (int L) with: L – sites.
Definition: GrandCanonical.hpp:25