TBTK
Need a break? Support the development by playing Polarity Puzzles
ParallelepipedCell.h
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 
17 
24 #ifndef COM_DAFER45_TBTK_PARALLELEPIPED_CELL
25 #define COM_DAFER45_TBTK_PARALLELEPIPED_CELL
26 
27 #include "TBTK/Index.h"
28 #include "TBTK/SpacePartition.h"
29 #include "TBTK/Vector3d.h"
30 
31 #include <vector>
32 
33 namespace TBTK{
34 
36 class ParallelepipedCell : public SpacePartition{
37 public:
39  ParallelepipedCell();
40 
42  ParallelepipedCell(
43  const std::vector<std::vector<double>> &basisVectors,
44  MeshType meshType
45  );
46 
48  virtual ~ParallelepipedCell();
49 
51  virtual Index getMajorCellIndex(
52  const std::vector<double> &coordinate
53  ) const;
54 
56  virtual Index getMinorCellIndex(
57  const std::vector<double> &coordinate,
58  const std::vector<unsigned int> &numMeshPoints
59  ) const;
60 
62  virtual std::vector<std::vector<double>> getMajorMesh(
63  const std::vector<unsigned int> &numMeshPoints
64  ) const;
65 
67  virtual std::vector<std::vector<double>> getMinorMesh(
68  const std::vector<unsigned int> &numMeshPoints
69  ) const;
70 
72  virtual std::vector<double> getMinorMeshPoint(
73  const std::vector<unsigned int> &meshPoint,
74  const std::vector<unsigned int> &numMeshPoints
75  ) const;
76 private:
82  std::vector<Vector3d> reciprocalNormals;
83 };
84 
85 }; //End namespace TBTK
86 
87 #endif
88 
Physical index.
Three-dimensional vector with components of double type.
Definition: Boolean.h:32