PeriodicBox.hpp
Go to the documentation of this file.
1 
6 #ifndef PERIODICBOX_HPP
7 #define PERIODICBOX_HPP 1
8 
9 #include "../OuterBoundary.hpp"
10 
13 {
14 public:
15  bool AreWeReflective(Edge const& edge)const;
16 
17  BoundaryType GetBoundaryType(void) const;
18 
19  bool PointIsReflective(Vector2D const& point)const;
20 
21  double GetGridBoundary(Directions dir) const;
29  PeriodicBox(double left, double right,double up, double down);
30 
35  PeriodicBox(const Vector2D& lower_left,
36  const Vector2D& upper_right);
37 
41  std::pair<Vector2D, Vector2D> getBoundaries(void) const;
42 
43 private:
44  const double _left,_right,_up,_down;
45 };
46 
47 #endif // PERIODICBOX_HPP
Directions
Directions of boundaries of the computational domain.
Square box outer boundary conditions.
Definition: PeriodicBox.hpp:12
PeriodicBox(double left, double right, double up, double down)
Class constructor.
Definition: PeriodicBox.cpp:14
Interface between two cells.
Definition: Edge.hpp:13
bool AreWeReflective(Edge const &edge) const
Return wheter an edge is reflective or not.
Definition: PeriodicBox.cpp:9
BoundaryType
Type of boundary.
std::pair< Vector2D, Vector2D > getBoundaries(void) const
Returns the lower left and upper right corners.
Definition: PeriodicBox.cpp:31
BoundaryType GetBoundaryType(void) const
Returns the boundary type.
Definition: PeriodicBox.cpp:37
double GetGridBoundary(Directions dir) const
Returns the boundary coordinate.
Definition: PeriodicBox.cpp:42
bool PointIsReflective(Vector2D const &point) const
Checks if the point is a reflected point outside the domain.
Definition: PeriodicBox.cpp:4
Abstract class for geometric boundary conditions for the tessellation.
2D Mathematical vector
Definition: geometry.hpp:15