OGS
TetRule10.h
Go to the documentation of this file.
1
11#pragma once
12
13#include "EdgeReturn.h"
14#include "Element.h"
15#include "TetRule.h"
16
17namespace MeshLib
18{
19
41class TetRule10 : public TetRule
42{
43public:
45 static const unsigned n_all_nodes = 10u;
46
49
51 constexpr static const unsigned face_nodes[4][6] = {
52 {0, 2, 1, 6, 5, 4}, // Face 0
53 {0, 1, 3, 4, 8, 7}, // Face 1
54 {1, 2, 3, 5, 9, 8}, // Face 2
55 {2, 0, 3, 6, 7, 9} // Face 3
56 };
57
59 constexpr static const unsigned edge_nodes[6][3] = {
60 {0, 1, 4}, // Edge 0
61 {1, 2, 5}, // Edge 1
62 {0, 2, 6}, // Edge 2
63 {0, 3, 7}, // Edge 3
64 {1, 3, 8}, // Edge 4
65 {2, 3, 9} // Edge 5
66 };
67
70
72 static const Element* getFace(const Element* e, unsigned i);
73
75 static unsigned identifyFace(Node const* const* element_nodes,
76 Node const* nodes[3])
77 {
78 return CellRule::identifyFace<TetRule10>(element_nodes, nodes);
79 }
80}; /* class */
81
82} // 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 quadratic order edge.
Definition EdgeReturn.h:39
static constexpr const unsigned edge_nodes[6][3]
Constant: Local node index table for edge.
Definition TetRule10.h:59
static const Element * getFace(const Element *e, unsigned i)
Returns the i-th face of the element.
Definition TetRule10.cpp:21
static constexpr const unsigned face_nodes[4][6]
Constant: Local node index table for faces.
Definition TetRule10.h:51
static unsigned identifyFace(Node const *const *element_nodes, Node const *nodes[3])
Returns the ID of a face given an array of nodes.
Definition TetRule10.h:75
static const unsigned n_all_nodes
Constant: The number of all nodes for this element.
Definition TetRule10.h:45
static const CellType cell_type
Constant: The FEM type of the element.
Definition TetRule10.h:48
CellType
Types of mesh elements supported by OpenGeoSys.
Definition MeshEnums.h:64