TBTK
Need a break? Support the development by playing Polarity Puzzles
BandDiagramGenerator.h
1 /* Copyright 2017 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 
17 
24 #ifndef COM_DAFER45_TBTK_BAND_DIAGRAM_GENERATOR
25 #define COM_DAFER45_TBTK_BAND_DIAGRAM_GENERATOR
26 
27 #include "TBTK/ReciprocalLattice.h"
28 
29 #include <initializer_list>
30 #include <vector>
31 
32 namespace TBTK{
33 
34 class BandDiagramGenerator{
35 public:
37  BandDiagramGenerator();
38 
40  void setReciprocalLattice(const ReciprocalLattice &reciprocalLattice);
41 
43  std::vector<std::vector<double>> generateBandDiagram(
44  std::initializer_list<std::initializer_list<double>> kPoints,
45  unsigned int resolution,
46  std::initializer_list<std::initializer_list<double>> nestingVectors = {}
47  ) const;
48 private:
50  const ReciprocalLattice *reciprocalLattice;
51 };
52 
53 inline void BandDiagramGenerator::setReciprocalLattice(
54  const ReciprocalLattice &reciprocalLattice
55 ){
56  this->reciprocalLattice = &reciprocalLattice;
57 }
58 
59 }; //End of namespace TBTK
60 
61 #endif
62 
Definition: Boolean.h:32