OGS
PyramidRule5.h
Go to the documentation of this file.
1
11#pragma once
12
13#include "EdgeReturn.h"
14#include "Element.h"
15#include "PyramidRule.h"
16
17namespace MeshLib
18{
19
44{
45public:
47 static const unsigned n_all_nodes = 5u;
48
51
53 static const unsigned face_nodes[5][4];
54
56 static const unsigned edge_nodes[8][2];
57
59 static const unsigned n_face_nodes[5];
60
63
65 static const Element* getFace(const Element* e, unsigned i);
66
68 static unsigned identifyFace(Node const* const* element_nodes,
69 Node const* nodes[3])
70 {
71 return CellRule::identifyFace<PyramidRule5>(element_nodes, nodes);
72 }
73}; /* class */
74
75} // namespace MeshLib
Definition of the Element class.
static unsigned identifyFace(Node const *const *element_nodes, Node const *nodes[ElementRule::dimension])
Returns the ID of a face given an array of nodes.
Definition CellRule.h:39
Returns linear order edge.
Definition EdgeReturn.h:31
static const unsigned face_nodes[5][4]
Constant: Local node index table for faces.
static const unsigned n_face_nodes[5]
Constant: Table for the number of nodes for each face.
static unsigned identifyFace(Node const *const *element_nodes, Node const *nodes[3])
Returns the ID of a face given an array of nodes.
static const unsigned n_all_nodes
Constant: The number of all nodes for this element.
static const Element * getFace(const Element *e, unsigned i)
Returns the i-th face of the element.
static const CellType cell_type
Constant: The FEM type of the element.
static const unsigned edge_nodes[8][2]
Constant: Local node index table for edge.
CellType
Types of mesh elements supported by OpenGeoSys.
Definition MeshEnums.h:43