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