OGS
HexRule.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5
6#include "CellRule.h"
7#include "Element.h"
8#include "MeshLib/MeshEnums.h"
9
10namespace MeshLib
11{
12class HexRule : public CellRule
13{
14public:
16 static const unsigned n_base_nodes = 8u;
17
20
22 static const unsigned n_faces = 6;
23
25 static const unsigned n_edges = 12;
26
28 static const unsigned n_neighbors = 6;
29
34 static bool isPntInElement(Node const* const* nodes,
35 MathLib::Point3d const& pnt, double eps);
36
40 static ElementErrorCode validate(const Element* e);
41
44 static double computeVolume(Node const* const* element_nodes);
45};
46} // namespace MeshLib
Collects error flags for mesh elements.
static const unsigned n_neighbors
Constant: The number of neighbors.
Definition HexRule.h:28
static ElementErrorCode validate(const Element *e)
Definition HexRule.cpp:58
static const unsigned n_edges
Constant: The number of edges.
Definition HexRule.h:25
static const unsigned n_faces
Constant: The number of faces.
Definition HexRule.h:22
static bool isPntInElement(Node const *const *nodes, MathLib::Point3d const &pnt, double eps)
Definition HexRule.cpp:40
static const MeshElemType mesh_elem_type
Constant: The geometric type of the element.
Definition HexRule.h:19
static double computeVolume(Node const *const *element_nodes)
Definition HexRule.cpp:12
static const unsigned n_base_nodes
Constant: The number of base nodes for this element.
Definition HexRule.h:16
MeshElemType
Types of mesh elements supported by OpenGeoSys. Values are from VTKCellType enum.
Definition MeshEnums.h:37