Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Protected Member Functions | Friends | List of all members
bitpit::ReferenceVertexInfo Class Reference

The ReferenceVertexInfo class defines the information about the reference vertex. More...

Inheritance diagram for bitpit::ReferenceVertexInfo:
Inheritance graph
[legend]
Collaboration diagram for bitpit::ReferenceVertexInfo:
Collaboration graph
[legend]

Public Member Functions

std::array< double, 3 > evalNormal (const std::array< double, 3 > *vertexCoords, const std::array< double, 3 > &orientation={{1., 0., 0.}}) const override
 
double evalPointDistance (const std::array< double, 3 > &point, const std::array< double, 3 > *vertexCoords) const override
 
void evalPointProjection (const std::array< double, 3 > &point, const std::array< double, 3 > *vertexCoords, std::array< double, 3 > *projection, double *distance) const override
 
double evalSize (const std::array< double, 3 > *vertexCoords) const override
 

Static Public Attributes

static BITPIT_PUBLIC_API const ReferenceVertexInfo info
 
- Static Public Attributes inherited from bitpit::ReferenceElementInfo
static BITPIT_PUBLIC_API const int MAX_ELEM_EDGES = 12
 
static BITPIT_PUBLIC_API const int MAX_ELEM_FACES = 6
 
static BITPIT_PUBLIC_API const int MAX_ELEM_VERTICES = 8
 

Protected Member Functions

 ReferenceVertexInfo ()
 
 ReferenceVertexInfo (ReferenceVertexInfo const &)=delete
 
ReferenceVertexInfooperator= (ReferenceVertexInfo const &)=delete
 
- Protected Member Functions inherited from bitpit::Reference0DElementInfo
 Reference0DElementInfo (ElementType type)
 
- Protected Member Functions inherited from bitpit::ReferenceElementInfo
 ReferenceElementInfo (int _dimension, ElementType _type, int _nVertices, int _nFaces, int _nEdges)
 
 ReferenceElementInfo (ReferenceElementInfo const &)=delete
 
void initializeFaceEdges (const std::vector< const ReferenceElementInfo * > &facesInfo, const std::vector< const ReferenceElementInfo * > &edgesInfo)
 
ReferenceElementInfooperator= (ReferenceElementInfo const &)=delete
 

Friends

class ReferenceElementInfo
 
class ReferenceLineInfo
 
class ReferencePixelInfo
 
class ReferenceQuadInfo
 
class ReferenceTriangleInfo
 

Additional Inherited Members

- Static Public Member Functions inherited from bitpit::ReferenceElementInfo
static BITPIT_PUBLIC_API const ReferenceElementInfogetInfo (ElementType type)
 
static bool hasInfo (ElementType type)
 
- Public Attributes inherited from bitpit::ReferenceElementInfo
int dimension
 
std::array< std::array< int, MAX_ELEM_VERTICES >, MAX_ELEM_EDGES > edgeConnectStorage
 
std::array< ElementType, MAX_ELEM_EDGES > edgeTypeStorage
 
std::array< std::array< int, MAX_ELEM_VERTICES >, MAX_ELEM_FACES > faceConnectStorage
 
std::array< std::array< int, MAX_ELEM_FACES >, MAX_ELEM_FACES > faceEdgeStorage
 
std::array< ElementType, MAX_ELEM_FACES > faceTypeStorage
 
int nEdges
 
int nFaces
 
int nVertices
 
ElementType type
 

Detailed Description

The ReferenceVertexInfo class defines the information about the reference vertex.

Definition at line 346 of file element_reference.hpp.

Constructor & Destructor Documentation

◆ ReferenceVertexInfo()

bitpit::ReferenceVertexInfo::ReferenceVertexInfo ( )
protected

Default constructor

Definition at line 1834 of file element_reference.cpp.

Member Function Documentation

◆ evalNormal()

std::array< double, 3 > bitpit::ReferenceVertexInfo::evalNormal ( const std::array< double, 3 > * vertexCoords,
const std::array< double, 3 > & orientation = {{1., 0., 0.}} ) const
overridevirtual

Evaluates the normal of an element with the specified vertex coordinates.

For a vertex it makes no sense to evaluate a normal, this is only a dummy function that returns the direction that receives in input.

Parameters
vertexCoordsare the coordinate of the vertices
orientationis a vector that specifies the direction of the normal
Returns
The normal of the element.

Implements bitpit::Reference0DElementInfo.

Definition at line 1882 of file element_reference.cpp.

◆ evalPointDistance()

double bitpit::ReferenceVertexInfo::evalPointDistance ( const std::array< double, 3 > & point,
const std::array< double, 3 > * vertexCoords ) const
overridevirtual

Evaluates the distance between the element and the specified point.

Parameters
[in]pointis the point
vertexCoordsare the coordinate of the vertices
Returns
The distance between the element and the specified point.

Implements bitpit::ReferenceElementInfo.

Definition at line 1916 of file element_reference.cpp.

◆ evalPointProjection()

void bitpit::ReferenceVertexInfo::evalPointProjection ( const std::array< double, 3 > & point,
const std::array< double, 3 > * vertexCoords,
std::array< double, 3 > * projection,
double * distance ) const
overridevirtual

Evaluates the projection of the point on the element.

Parameters
pointis the point
vertexCoordsare the coordinate of the vertices
[out]projectionon output contains the projection point
[out]distanceon output contains the distance between the point and the projection

Implements bitpit::ReferenceElementInfo.

Definition at line 1902 of file element_reference.cpp.

◆ evalSize()

double bitpit::ReferenceVertexInfo::evalSize ( const std::array< double, 3 > * vertexCoords) const
overridevirtual

Evaluates the characteristics size of an element with the specified vertex coordinates.

Parameters
vertexCoordsare the coordinate of the vertices
Returns
The length of the element.

Implements bitpit::ReferenceElementInfo.

Definition at line 1865 of file element_reference.cpp.

Friends And Related Symbol Documentation

◆ ReferenceElementInfo

friend class ReferenceElementInfo
friend

Definition at line 348 of file element_reference.hpp.

◆ ReferenceLineInfo

friend class ReferenceLineInfo
friend

Definition at line 349 of file element_reference.hpp.

◆ ReferencePixelInfo

friend class ReferencePixelInfo
friend

Definition at line 351 of file element_reference.hpp.

◆ ReferenceQuadInfo

friend class ReferenceQuadInfo
friend

Definition at line 352 of file element_reference.hpp.

◆ ReferenceTriangleInfo

friend class ReferenceTriangleInfo
friend

Definition at line 350 of file element_reference.hpp.

Member Data Documentation

◆ info

const ReferenceVertexInfo bitpit::ReferenceVertexInfo::info
static

Definition at line 362 of file element_reference.hpp.


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