OuterBoundary.cpp
1 #include "OuterBoundary.hpp"
2 
3 OuterBoundary::~OuterBoundary(void) {}
4 
5 vector<Edge> OuterBoundary::GetBoxEdges(void) const
6 {
7  vector<Edge> res(4);
10  res[3]=Edge(Vector2D(GetGridBoundary(Left),GetGridBoundary(Down)),
11  Vector2D(GetGridBoundary(Right),GetGridBoundary(Down)),0,0);
12  res[0]=Edge(Vector2D(GetGridBoundary(Right),GetGridBoundary(Up)),
13  Vector2D(GetGridBoundary(Right),GetGridBoundary(Down)),0,0);
14  res[2]=Edge(Vector2D(GetGridBoundary(Left),GetGridBoundary(Up)),
15  Vector2D(GetGridBoundary(Left),GetGridBoundary(Down)),0,0);
16  return res;
17 }
18 
Outer Boundary Conditions.
Interface between two cells.
Definition: Edge.hpp:13
vector< Edge > GetBoxEdges(void) const
Returns the outer box as a set of edges in the order: Right, Up, Left and Down. All neighbors are set...
2D Mathematical vector
Definition: geometry.hpp:15
virtual double GetGridBoundary(Directions dir) const =0
Returns the boundary coordinate.