Public Member Functions | List of all members
Tessellation3D Class Referenceabstract

Abstract class for tessellation in 3D. More...

#include <Tessellation3D.hpp>

Public Member Functions

virtual void Initialise (vector< Vector3D > const &points, OuterBoundary3D const *bc)=0
 Initialises the tessellation. More...
 
virtual void Update (vector< Vector3D > const &points)=0
 Update the tessellation. More...
 
virtual size_t GetPointNo (void) const =0
 Get Total number of mesh generating points. More...
 
virtual Vector3D GetMeshPoint (size_t index) const =0
 Returns Position of mesh generating point. More...
 
virtual Vector3D const & GetCellCM (size_t index) const =0
 Returns Position of Cell's Center of Mass. More...
 
virtual size_t GetTotalFacesNumber (void) const =0
 Returns the total number of faces. More...
 
virtual Face const & GetFace (size_t index) const =0
 Returns Face (interface between cells) More...
 
virtual double GetWidth (size_t index) const =0
 Returns the effective width of a cell. More...
 
virtual double GetVolume (size_t index) const =0
 Returns the volume of a cell. More...
 
virtual vector< size_t > const & GetCellFaces (size_t index) const =0
 Returns the indeces of a cell's Faces. More...
 
virtual vector< Vector3D > & GetMeshPoints (void)=0
 Returns a reference to the point vector. More...
 
virtual vector< size_t > GetNeighbors (size_t index) const =0
 Returns a list of the neighbors of a cell. More...
 
virtual Tessellation3Dclone (void) const =0
 Cloning function. More...
 
virtual ~Tessellation3D (void)
 Virtual destructor.
 
virtual bool NearBoundary (size_t index) const =0
 Returns if the cell is adjacent to a boundary. More...
 
virtual bool BoundaryFace (size_t index) const =0
 Returns if the face is a boundary one. More...
 
virtual vector< vector< size_t > > & GetDuplicatedPoints (void)=0
 Returns the indeces of the points that where sent to other processors as ghost points (or to same cpu for single thread) ad boundary points. More...
 
virtual vector< vector< size_t > > const & GetDuplicatedPoints (void) const =0
 Returns the indeces of the points that where sent to other processors as ghost points (or to same cpu for single thread) ad boundary points. More...
 
virtual size_t GetTotalPointNumber (void) const =0
 Returns the total number of points (including ghost) More...
 
virtual vector< Vector3D > & GetAllCM (void)=0
 Returns the center of masses of the cells. More...
 
virtual void GetNeighborNeighbors (vector< size_t > &result, size_t point) const =0
 Returns the neighbors and neighbors of the neighbors of a cell. More...
 
virtual Vector3D Normal (size_t faceindex) const =0
 Returns a vector normal to the face whose magnitude is the seperation between the neighboring points. More...
 
virtual bool IsGhostPoint (size_t index) const =0
 Checks if a point is a ghost point or not. More...
 
virtual Vector3D CalcFaceVelocity (size_t p0, size_t p1, Vector3D const &v0, Vector3D const &v1) const =0
 Calculates the velocity of a face. More...
 

Detailed Description

Abstract class for tessellation in 3D.

Author
Elad Steinberg

Definition at line 19 of file Tessellation3D.hpp.

Member Function Documentation

◆ BoundaryFace()

virtual bool Tessellation3D::BoundaryFace ( size_t  index) const
pure virtual

Returns if the face is a boundary one.

Parameters
indexThe face to check
Returns
True if boundary false otherwise
Here is the caller graph for this function:

◆ CalcFaceVelocity()

virtual Vector3D Tessellation3D::CalcFaceVelocity ( size_t  p0,
size_t  p1,
Vector3D const &  v0,
Vector3D const &  v1 
) const
pure virtual

Calculates the velocity of a face.

Parameters
p0The index of the first neighbor
p1The index of the second neighbor
v0The velocity of the first neighbor
v1The velocity of the second neighbor
Returns
The velocity of the face
Here is the caller graph for this function:

◆ clone()

virtual Tessellation3D* Tessellation3D::clone ( void  ) const
pure virtual

Cloning function.

Returns
Pointer to clone

◆ GetAllCM()

virtual vector<Vector3D>& Tessellation3D::GetAllCM ( void  )
pure virtual

Returns the center of masses of the cells.

Returns
The CM's

◆ GetCellCM()

virtual Vector3D const& Tessellation3D::GetCellCM ( size_t  index) const
pure virtual

Returns Position of Cell's Center of Mass.

Parameters
indexMesh generating point index (the cell's index)
Returns
Position of CM

◆ GetCellFaces()

virtual vector<size_t> const& Tessellation3D::GetCellFaces ( size_t  index) const
pure virtual

Returns the indeces of a cell's Faces.

Parameters
indexCell index
Returns
Cell edges
Here is the caller graph for this function:

◆ GetDuplicatedPoints() [1/2]

virtual vector<vector<size_t> >& Tessellation3D::GetDuplicatedPoints ( void  )
pure virtual

Returns the indeces of the points that where sent to other processors as ghost points (or to same cpu for single thread) ad boundary points.

Returns
The sent points, outer vector is the index of the outer Face and inner vector are the points sent through the face

◆ GetDuplicatedPoints() [2/2]

virtual vector<vector<size_t> > const& Tessellation3D::GetDuplicatedPoints ( void  ) const
pure virtual

Returns the indeces of the points that where sent to other processors as ghost points (or to same cpu for single thread) ad boundary points.

Returns
The sent points, outer vector is the index of the outer Face and inner vector are the points sent through the face

◆ GetFace()

virtual Face const& Tessellation3D::GetFace ( size_t  index) const
pure virtual

Returns Face (interface between cells)

Parameters
indexFace index
Returns
Interface between cells
Here is the caller graph for this function:

◆ GetMeshPoint()

virtual Vector3D Tessellation3D::GetMeshPoint ( size_t  index) const
pure virtual

Returns Position of mesh generating point.

Parameters
indexMesh generating point index
Returns
Position of mesh generating point
Here is the caller graph for this function:

◆ GetMeshPoints()

virtual vector<Vector3D>& Tessellation3D::GetMeshPoints ( void  )
pure virtual

Returns a reference to the point vector.

Returns
The reference

◆ GetNeighborNeighbors()

virtual void Tessellation3D::GetNeighborNeighbors ( vector< size_t > &  result,
size_t  point 
) const
pure virtual

Returns the neighbors and neighbors of the neighbors of a cell.

Parameters
pointThe index of the cell to calculate for
resultThe neighbors and their neighbors indeces

◆ GetNeighbors()

virtual vector<size_t> Tessellation3D::GetNeighbors ( size_t  index) const
pure virtual

Returns a list of the neighbors of a cell.

Parameters
indexThe cell to check
Returns
The neighbors

◆ GetPointNo()

virtual size_t Tessellation3D::GetPointNo ( void  ) const
pure virtual

Get Total number of mesh generating points.

Returns
Number of mesh generating points
Here is the caller graph for this function:

◆ GetTotalFacesNumber()

virtual size_t Tessellation3D::GetTotalFacesNumber ( void  ) const
pure virtual

Returns the total number of faces.

Returns
Total number of faces
Here is the caller graph for this function:

◆ GetTotalPointNumber()

virtual size_t Tessellation3D::GetTotalPointNumber ( void  ) const
pure virtual

Returns the total number of points (including ghost)

Returns
The total number of points

◆ GetVolume()

virtual double Tessellation3D::GetVolume ( size_t  index) const
pure virtual

Returns the volume of a cell.

Parameters
indexCell index
Returns
Cell volume
Here is the caller graph for this function:

◆ GetWidth()

virtual double Tessellation3D::GetWidth ( size_t  index) const
pure virtual

Returns the effective width of a cell.

Parameters
indexCell index
Returns
Effective cell width

◆ Initialise()

virtual void Tessellation3D::Initialise ( vector< Vector3D > const &  points,
OuterBoundary3D const *  bc 
)
pure virtual

Initialises the tessellation.

Parameters
pointsInitial position of mesh generating points
bcBoundary conditions of the computational domain

◆ IsGhostPoint()

virtual bool Tessellation3D::IsGhostPoint ( size_t  index) const
pure virtual

Checks if a point is a ghost point or not.

Parameters
indexPoint index
Returns
True if is a ghost point, false otherwise
Here is the caller graph for this function:

◆ NearBoundary()

virtual bool Tessellation3D::NearBoundary ( size_t  index) const
pure virtual

Returns if the cell is adjacent to a boundary.

Parameters
indexThe cell to check
Returns
If near boundary

◆ Normal()

virtual Vector3D Tessellation3D::Normal ( size_t  faceindex) const
pure virtual

Returns a vector normal to the face whose magnitude is the seperation between the neighboring points.

Parameters
faceindexThe index of the face
Returns
The vector normal to the face whose magnitude is the seperation between the neighboring points pointing from the first neighbor to the second

◆ Update()

virtual void Tessellation3D::Update ( vector< Vector3D > const &  points)
pure virtual

Update the tessellation.

Parameters
pointsThe new positions of the mesh generating points

The documentation for this class was generated from the following files: