OGS
TetRule4.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 TetRule4 : public TetRule
42{
43public:
45 static const unsigned n_all_nodes = 4u;
46
49
51 static const unsigned face_nodes[4][3];
52
54 static const unsigned edge_nodes[6][2];
55
58
60 static const Element* getFace(const Element* e, unsigned i);
61
63 static unsigned identifyFace(Node const* const* element_nodes,
64 Node const* nodes[3])
65 {
66 return CellRule::identifyFace<TetRule4>(element_nodes, nodes);
67 }
68}; /* class */
69
70} // 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[4][3]
Constant: Local node index table for faces.
Definition TetRule4.h:51
static const CellType cell_type
Constant: The FEM type of the element.
Definition TetRule4.h:48
static unsigned identifyFace(Node const *const *element_nodes, Node const *nodes[3])
Returns the ID of a face given an array of nodes.
Definition TetRule4.h:63
static const unsigned edge_nodes[6][2]
Constant: Local node index table for edge.
Definition TetRule4.h:54
static const Element * getFace(const Element *e, unsigned i)
Returns the i-th face of the element.
Definition TetRule4.cpp:37
static const unsigned n_all_nodes
Constant: The number of all nodes for this element.
Definition TetRule4.h:45
CellType
Types of mesh elements supported by OpenGeoSys.
Definition MeshEnums.h:43