2 #include "../../../misc/universal_error.hpp" 6 if(point.
x<_left||point.
x>_right)
8 if(point.
y<_down||point.
y>_up)
19 void assert_directions(
double left,
double right,
20 double up,
double down)
22 if(left>=right||down>=up)
28 _left(left),_right(right),_up(up),_down(down)
30 assert_directions(left,right,up,down);
40 assert_directions(_left,_right,_up,_down);
64 return pair<Vector2D,Vector2D>(
Vector2D(_left,_down),
76 SquareBox::~SquareBox(
void) {}
Directions
Directions of boundaries of the computational domain.
Square box outer boundary conditions.
Container for error reports.
pair< Vector2D, Vector2D > getBoundary(void) const
Returns the coordinates of the lower left and top right of the square frame.
Interface between two cells.
bool PointIsReflective(Vector2D const &point) const
Checks if the point is a reflected point outside the domain.
BoundaryType GetBoundaryType(void) const
Returns the boundary type.
double y
Component in the y direction.
BoundaryType
Type of boundary.
bool AreWeReflective(Edge const &edge) const
Return wheter an edge is reflective or not.
SquareBox(double left, double right, double up, double down)
Class constructor.
double x
Component in the x direction.
double GetGridBoundary(Directions dir) const
Returns the boundary coordinate.