SquareBox.hpp
Go to the documentation of this file.
1 
6 #ifndef SQUAREBOX_HPP
7 #define SQUAREBOX_HPP 1
8 
10 #include "../OuterBoundary.hpp"
11 
12 using std::pair;
13 
15 class SquareBox: public OuterBoundary
16 {
17 public:
18 
19  bool AreWeReflective(Edge const& edge)const;
20 
21  BoundaryType GetBoundaryType(void) const;
22 
23  bool PointIsReflective(Vector2D const& point)const;
24 
25  double GetGridBoundary(Directions dir) const;
33  SquareBox(double left, double right,double up, double down);
34 
39  SquareBox(Vector2D const& bottom_left,
40  Vector2D const& top_right);
41 
45  pair<Vector2D,Vector2D> getBoundary(void) const;
46 
47  void SetBoundary(Vector2D const& ll, Vector2D const& ur);
48 
49  ~SquareBox(void);
50 private:
51  double _left,_right,_up,_down;
52 };
53 
54 #endif // SQUAREBOX_HPP
Directions
Directions of boundaries of the computational domain.
pair< Vector2D, Vector2D > getBoundary(void) const
Returns the coordinates of the lower left and top right of the square frame.
Definition: SquareBox.cpp:62
Interface between two cells.
Definition: Edge.hpp:13
bool PointIsReflective(Vector2D const &point) const
Checks if the point is a reflected point outside the domain.
Definition: SquareBox.cpp:4
BoundaryType GetBoundaryType(void) const
Returns the boundary type.
Definition: SquareBox.cpp:43
Square frame for the tessellation.
Definition: SquareBox.hpp:15
BoundaryType
Type of boundary.
bool AreWeReflective(Edge const &edge) const
Return wheter an edge is reflective or not.
Definition: SquareBox.cpp:13
SquareBox(double left, double right, double up, double down)
Class constructor.
Definition: SquareBox.cpp:27
Abstract class for geometric boundary conditions for the tessellation.
2D Mathematical vector
Definition: geometry.hpp:15
double GetGridBoundary(Directions dir) const
Returns the boundary coordinate.
Definition: SquareBox.cpp:48