OGS
QuadRule4.h
Go to the documentation of this file.
1 
11 #pragma once
12 
13 #include "MeshLib/MeshEnums.h"
14 #include "Element.h"
15 #include "FaceRule.h"
16 #include "EdgeReturn.h"
17 #include "Line.h"
18 
19 namespace MeshLib
20 {
21 
37 class QuadRule4 : public FaceRule
38 {
39 public:
41  static const unsigned n_base_nodes = 4u;
42 
44  static const unsigned n_all_nodes = 4u;
45 
48 
51 
53  static const unsigned n_edges = 4;
54 
56  static const unsigned n_neighbors = 4;
57 
59  static const unsigned edge_nodes[4][2];
60 
63 
68  static bool isPntInElement(Node const* const* nodes,
69  MathLib::Point3d const& pnt, double eps);
70 
74  static ElementErrorCode validate(const Element* e);
75 
77  static unsigned identifyFace(Node const* const* /*_nodes*/,
78  Node const* nodes[3]);
79 
81  static double computeVolume(Node const* const* _nodes);
82 
83 }; /* class */
84 
85 } // namespace MeshLib
Definition of the Element class.
Definition of the Line class.
Definition of mesh-related Enumerations.
Collects error flags for mesh elements.
Returns linear order edge.
Definition: EdgeReturn.h:31
static ElementErrorCode validate(const Element *e)
Definition: QuadRule4.cpp:64
static double computeVolume(Node const *const *_nodes)
Calculates the volume of a convex hexahedron by partitioning it into six tetrahedra.
Definition: QuadRule4.cpp:25
static const unsigned n_all_nodes
Constant: The number of all nodes for this element.
Definition: QuadRule4.h:44
static unsigned identifyFace(Node const *const *, Node const *nodes[3])
Returns the ID of a face given an array of nodes.
Definition: QuadRule4.cpp:40
static const unsigned n_neighbors
Constant: The number of neighbors.
Definition: QuadRule4.h:56
static const unsigned n_edges
Constant: The number of edges.
Definition: QuadRule4.h:53
static bool isPntInElement(Node const *const *nodes, MathLib::Point3d const &pnt, double eps)
Definition: QuadRule4.cpp:31
static const MeshElemType mesh_elem_type
Constant: The geometric type of the element.
Definition: QuadRule4.h:47
static const CellType cell_type
Constant: The FEM type of the element.
Definition: QuadRule4.h:50
static const unsigned n_base_nodes
Constant: The number of base nodes for this element.
Definition: QuadRule4.h:41
static const unsigned edge_nodes[4][2]
Constant: Local node index table for edge.
Definition: QuadRule4.h:59
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