The ReferenceElementInfo class allows to define information about reference elements. More...
Public Member Functions | |
virtual double | evalPointDistance (const std::array< double, 3 > &point, const std::array< double, 3 > *vertexCoords) const =0 |
virtual void | evalPointProjection (const std::array< double, 3 > &point, const std::array< double, 3 > *vertexCoords, std::array< double, 3 > *projection, double *distance) const =0 |
virtual double | evalSize (const std::array< double, 3 > *vertexCoords) const =0 |
Static Public Member Functions | |
static BITPIT_PUBLIC_API const ReferenceElementInfo & | getInfo (ElementType type) |
static bool | hasInfo (ElementType type) |
Public Attributes | |
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 |
Static Public Attributes | |
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 | |
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) |
ReferenceElementInfo & | operator= (ReferenceElementInfo const &)=delete |
The ReferenceElementInfo class allows to define information about reference elements.
The local numbering scheme of element vertices is shown below.
Definition at line 37 of file element_reference.hpp.
|
protected |
Constructor
_dimension | is the space dimension of the element |
_type | is the type of element |
_nVertices | is the number of vertices |
_nFaces | is the number of faces |
_nEdges | is the number of edges |
Definition at line 56 of file element_reference.cpp.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
static |
Gets the information for the specified element type.
type | is the type of element |
Definition at line 108 of file element_reference.cpp.
|
static |
Check if the sepcified element type is associated to a reference element.
type | is the type of element |
Definition at line 79 of file element_reference.cpp.
|
protected |
Initializes the list of edges associated to the faces
Definition at line 152 of file element_reference.cpp.
int bitpit::ReferenceElementInfo::dimension |
Definition at line 47 of file element_reference.hpp.
std::array<std::array<int, MAX_ELEM_VERTICES>, MAX_ELEM_EDGES> bitpit::ReferenceElementInfo::edgeConnectStorage |
Definition at line 59 of file element_reference.hpp.
std::array<ElementType, MAX_ELEM_EDGES> bitpit::ReferenceElementInfo::edgeTypeStorage |
Definition at line 58 of file element_reference.hpp.
std::array<std::array<int, MAX_ELEM_VERTICES>, MAX_ELEM_FACES> bitpit::ReferenceElementInfo::faceConnectStorage |
Definition at line 55 of file element_reference.hpp.
std::array<std::array<int, MAX_ELEM_FACES>, MAX_ELEM_FACES> bitpit::ReferenceElementInfo::faceEdgeStorage |
Definition at line 56 of file element_reference.hpp.
std::array<ElementType, MAX_ELEM_FACES> bitpit::ReferenceElementInfo::faceTypeStorage |
Definition at line 54 of file element_reference.hpp.
|
static |
Definition at line 42 of file element_reference.hpp.
|
static |
Definition at line 41 of file element_reference.hpp.
|
static |
Definition at line 40 of file element_reference.hpp.
int bitpit::ReferenceElementInfo::nEdges |
Definition at line 52 of file element_reference.hpp.
int bitpit::ReferenceElementInfo::nFaces |
Definition at line 51 of file element_reference.hpp.
int bitpit::ReferenceElementInfo::nVertices |
Definition at line 50 of file element_reference.hpp.
ElementType bitpit::ReferenceElementInfo::type |
Definition at line 48 of file element_reference.hpp.