source
newtonian
two_dimensional
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);
8
res[1]=
Edge
(
Vector2D
(
GetGridBoundary
(Left),
GetGridBoundary
(Up)),
9
Vector2D
(
GetGridBoundary
(Right),
GetGridBoundary
(Up)),0,0);
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
OuterBoundary.hpp
Outer Boundary Conditions.
Edge
Interface between two cells.
Definition:
Edge.hpp:13
OuterBoundary::GetBoxEdges
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...
Definition:
OuterBoundary.cpp:5
Vector2D
2D Mathematical vector
Definition:
geometry.hpp:15
OuterBoundary::GetGridBoundary
virtual double GetGridBoundary(Directions dir) const =0
Returns the boundary coordinate.
Generated on Thu Jun 4 2020 18:12:16 by
1.8.13