2 #include "../../../misc/universal_error.hpp" 6 return std::pair<Vector2D, Vector2D>(
Vector2D(_left, _down),
12 if(point.
y<_down||point.
y>_up)
18 :_left(left),_right(right),_up(up),_down(down)
20 if(left>=right||down>=up)
48 if(fabs(edge.
vertices.first.y-_up)<1e-5*length
49 ||fabs(edge.
vertices.first.y-_down)<1e-5*length)
Directions
Directions of boundaries of the computational domain.
Container for error reports.
double GetGridBoundary(Directions dir) const
Returns the boundary coordinate.
Interface between two cells.
double y
Component in the y direction.
bool PointIsReflective(Vector2D const &point) const
Checks if the point is a reflected point outside the domain.
BoundaryType
Type of boundary.
bool AreWeReflective(Edge const &edge) const
Return wheter an edge is reflective or not.
std::pair< Vector2D, Vector2D > vertices
Points at the ends of the edge.
BoundaryType GetBoundaryType(void) const
Returns the boundary type.
Square box outer boundary conditions with two sides reflective and two periodic. The x direction is t...
HalfPeriodicBox(double left, double right, double up, double down)
Class constructor.
double GetLength(void) const
Returns the length of the edge.
std::pair< Vector2D, Vector2D > getBoundaries(void) const
Returns the lower left and upper right corners.