Square box outer boundary conditions with two sides reflective and two periodic. The x direction is taken to be periodic. More...
#include <HalfPeriodicBox.hpp>
Public Member Functions | |
bool | AreWeReflective (Edge const &edge) const |
Return wheter an edge is reflective or not. More... | |
BoundaryType | GetBoundaryType (void) const |
Returns the boundary type. More... | |
bool | PointIsReflective (Vector2D const &point) const |
Checks if the point is a reflected point outside the domain. More... | |
double | GetGridBoundary (Directions dir) const |
Returns the boundary coordinate. More... | |
HalfPeriodicBox (double left, double right, double up, double down) | |
Class constructor. More... | |
std::pair< Vector2D, Vector2D > | getBoundaries (void) const |
Returns the lower left and upper right corners. More... | |
![]() | |
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 to zero. More... | |
Square box outer boundary conditions with two sides reflective and two periodic. The x direction is taken to be periodic.
Definition at line 12 of file HalfPeriodicBox.hpp.
HalfPeriodicBox::HalfPeriodicBox | ( | double | left, |
double | right, | ||
double | up, | ||
double | down | ||
) |
Class constructor.
left | The left coordinate |
right | The right coordinate |
up | The up coordinate |
down | The down coordinate |
Definition at line 17 of file HalfPeriodicBox.cpp.
|
virtual |
Return wheter an edge is reflective or not.
edge | The edge to check |
Implements OuterBoundary.
Definition at line 43 of file HalfPeriodicBox.cpp.
Returns the lower left and upper right corners.
Definition at line 4 of file HalfPeriodicBox.cpp.
|
virtual |
Returns the boundary type.
Implements OuterBoundary.
Definition at line 24 of file HalfPeriodicBox.cpp.
|
virtual |
Returns the boundary coordinate.
dir | The direction of the boundary |
Implements OuterBoundary.
Definition at line 29 of file HalfPeriodicBox.cpp.
|
virtual |
Checks if the point is a reflected point outside the domain.
point | The point to check |
Implements OuterBoundary.
Definition at line 10 of file HalfPeriodicBox.cpp.