TBTK
ReciprocalLattice.h
Go to the documentation of this file.
1 /* Copyright 2016 Kristofer Björnson
2  *
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
24 #ifndef COM_DAFER45_TBTK_RECIPROCAL_LATTICE
25 #define COM_DAFER45_TBTK_RECIPROCAL_LATTICE
26 
27 #include "UnitCell.h"
28 #include "Model.h"
29 #include "StateTreeNode.h"
30 
31 #include <vector>
32 #include <initializer_list>
33 
34 namespace TBTK{
35 
68 public:
70  ReciprocalLattice(UnitCell *unitCell, std::initializer_list<int> size);
71 
74 
76  Model* generateModel(std::initializer_list<double> momentum) const;
77 
79  const std::vector<std::vector<double>>& getReciprocalLatticeVectors() const;
80 private:
82  UnitCell *unitCell;
83 
88  StateSet *realSpaceEnvironment;
89 
91  StateTreeNode *realSpaceEnvironmentStateTree;
92 
97  StateSet *realSpaceReferenceCell;
98 
100  std::vector<std::vector<double>> reciprocalLatticeVectors;
101 
104  std::vector<int> size;
105 
108  static constexpr double ROUNDOFF_MARGIN_MULTIPLIER = 1.01;
109 };
110 
111 inline const std::vector<std::vector<double>>& ReciprocalLattice::getReciprocalLatticeVectors() const{
112  return reciprocalLatticeVectors;
113 }
114 
115 }; //End of namespace TBTK
116 
117 #endif
Tree structure for quick access of multiple States.
Definition: StateTreeNode.h:38
Unit cell that act as container of States.
const std::vector< std::vector< double > > & getReciprocalLatticeVectors() const
Definition: ReciprocalLattice.h:111
Definition: ReciprocalLattice.h:67
Model * generateModel(std::initializer_list< double > momentum) const
Definition: ReciprocalLattice.cpp:303
Model Hamiltonian.
Definition: UnitCell.h:30
~ReciprocalLattice()
Definition: ReciprocalLattice.cpp:294
Definition: AbstractOperator.h:26
ReciprocalLattice(UnitCell *unitCell, std::initializer_list< int > size)
Definition: ReciprocalLattice.cpp:33
Definition: StateSet.h:30
Definition: Model.h:40