OGS
TriRule3.h
Go to the documentation of this file.
1
11#pragma once
12
13#include "EdgeReturn.h"
14#include "Element.h"
15#include "TriRule.h"
16
17namespace MeshLib
18{
19
39class TriRule3 : public TriRule
40{
41public:
43 static const unsigned n_all_nodes = 3u;
44
47
49 static const unsigned edge_nodes[3][2];
50
53
55 static unsigned identifyFace(Node const* const* element_nodes,
56 Node const* nodes[2])
57 {
58 return FaceRule::identifyFace<TriRule3>(element_nodes, nodes);
59 }
60
61}; /* class */
62
63} // namespace MeshLib
Definition of the Element class.
static unsigned identifyFace(Node const *const *element_nodes, Node const *nodes[ElementRule::dimension])
Returns the ID of an edge given an array of nodes.
Definition FaceRule.h:48
Returns linear order edge.
Definition EdgeReturn.h:31
static const unsigned n_all_nodes
Constant: The number of all nodes for this element.
Definition TriRule3.h:43
static const CellType cell_type
Constant: The FEM type of the element.
Definition TriRule3.h:46
static unsigned identifyFace(Node const *const *element_nodes, Node const *nodes[2])
Returns the ID of a face given an array of nodes.
Definition TriRule3.h:55
static const unsigned edge_nodes[3][2]
Constant: Local node index table for edge.
Definition TriRule3.h:49
CellType
Types of mesh elements supported by OpenGeoSys.
Definition MeshEnums.h:43