1 #include "stationary_box.hpp" 3 StationaryBox::StationaryBox(
void) {}
20 vector<Vector2D> StationaryBox::operator()
22 const vector<Vector2D>& point_velocities)
const 25 vector<Vector2D> res(edge_list.size());
26 const size_t nloop = res.size();
27 for(
size_t i=0;i<nloop;++i)
29 const Edge& edge = edge_list[i];
30 res[i] = is_outer_edge(tess,edge) ?
33 (point_velocities.at(static_cast<size_t>(edge.
neighbors.first)),
34 point_velocities.at(static_cast<size_t>(edge.
neighbors.second)),
Abstract class for tessellation.
virtual int GetOriginalIndex(int point) const
Returns the original index of the duplicated point.
Interface between two cells.
virtual Vector2D GetMeshPoint(int index) const =0
Returns Position of mesh generating point.
virtual const vector< Edge > & getAllEdges(void) const =0
Returns reference to the list of all edges.
std::pair< int, int > neighbors
Neighboring cells.
Vector3D calc_centroid(const Face &face)
Calculates the centroid of aa face.
virtual Vector2D CalcFaceVelocity(Vector2D wl, Vector2D wr, Vector2D rL, Vector2D rR, Vector2D f) const =0
Calculates the velocity of a single edge.