OGS
PyramidRule5.h
Go to the documentation of this file.
1 
11 #pragma once
12 
13 #include "MeshLib/MeshEnums.h"
14 #include "Element.h"
15 #include "EdgeReturn.h"
16 #include "CellRule.h"
17 
18 namespace MeshLib
19 {
20 
43 class PyramidRule5 : public CellRule
44 {
45 public:
47  static const unsigned n_base_nodes = 5u;
48 
50  static const unsigned n_all_nodes = 5u;
51 
54 
57 
59  static const unsigned n_faces = 5;
60 
62  static const unsigned n_edges = 8;
63 
65  static const unsigned n_neighbors = 5;
66 
68  static const unsigned face_nodes[5][4];
69 
71  static const unsigned edge_nodes[8][2];
72 
74  static const unsigned n_face_nodes[5];
75 
78 
80  static const Element* getFace(const Element* e, unsigned i);
81 
86  static bool isPntInElement(Node const* const* nodes,
87  MathLib::Point3d const& pnt, double eps);
88 
92  static ElementErrorCode validate(const Element* e);
93 
95  static unsigned identifyFace(Node const* const* /*_nodes*/,
96  Node const* nodes[3]);
97 
99  static double computeVolume(Node const* const* _nodes);
100 
101 }; /* class */
102 
103 } // namespace MeshLib
Definition of the Element class.
Definition of mesh-related Enumerations.
Collects error flags for mesh elements.
Returns linear order edge.
Definition: EdgeReturn.h:31
static const unsigned n_neighbors
Constant: The number of neighbors.
Definition: PyramidRule5.h:65
static const unsigned n_base_nodes
Constant: The number of base nodes for this element.
Definition: PyramidRule5.h:47
static const MeshElemType mesh_elem_type
Constant: The geometric type of the element.
Definition: PyramidRule5.h:53
static bool isPntInElement(Node const *const *nodes, MathLib::Point3d const &pnt, double eps)
static const unsigned face_nodes[5][4]
Constant: Local node index table for faces.
Definition: PyramidRule5.h:68
static unsigned identifyFace(Node const *const *, Node const *nodes[3])
Returns the ID of a face given an array of nodes.
static const unsigned n_face_nodes[5]
Constant: Table for the number of nodes for each face.
Definition: PyramidRule5.h:74
static const unsigned n_faces
Constant: The number of faces.
Definition: PyramidRule5.h:59
static const unsigned n_all_nodes
Constant: The number of all nodes for this element.
Definition: PyramidRule5.h:50
static double computeVolume(Node const *const *_nodes)
Calculates the volume of a convex hexahedron by partitioning it into six tetrahedra.
static const Element * getFace(const Element *e, unsigned i)
Returns the i-th face of the element.
static const unsigned n_edges
Constant: The number of edges.
Definition: PyramidRule5.h:62
static const CellType cell_type
Constant: The FEM type of the element.
Definition: PyramidRule5.h:56
static ElementErrorCode validate(const Element *e)
static const unsigned edge_nodes[8][2]
Constant: Local node index table for edge.
Definition: PyramidRule5.h:71
CellType
Types of mesh elements supported by OpenGeoSys.
Definition: MeshEnums.h:43
MeshElemType
Types of mesh elements supported by OpenGeoSys. Values are from VTKCellType enum.
Definition: MeshEnums.h:27