MDStressLab++
Grid.h
Go to the documentation of this file.
1 /*
2  * Grid.h
3  *
4  * Created on: Nov 5, 2019
5  * Author: Nikhil
6  */
7 
8 #ifndef GRID_H_
9 #define GRID_H_
10 #include "typedef.h"
11 #include <vector>
12 #include "SubConfiguration.h"
13 #include <set>
14 
15 class GridBase
16 {
17 public:
18  std::vector<Vector3d> coordinates;
21 };
22 
25 
30 template<ConfigType T>
31 class Grid : public GridBase{
32 public:
33  Grid(int);
34  Grid(Vector3d,
35  Vector3d,
36  int ngridx, int ngridy=1,int ngridz=1);
37  Grid(std::string);
38  virtual ~Grid();
39  int ngrid;
40 
41  void read(std::string);
42  void write(std::string) const;
43  void setCounter();
44  std::vector<std::set<int>> getGridNeighborLists(const SubConfiguration&, const double&) const;
45 };
46 
51 #include "Grid.cpp"
52 
53 #endif /* GRID_H_ */
Definition: Grid.h:31
std::vector< Vector3d > coordinates
Definition: Grid.h:18
Definition: Grid.h:15
Eigen::Matrix< double, 1, DIM, Eigen::RowMajor > Vector3d
Definition: typedef.h:60
static int numberOfReferenceGrids
Definition: Grid.h:19
int ngrid
Definition: Grid.h:39
static int numberOfCurrentGrids
Definition: Grid.h:20