OGS
PrismRule.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 PrismRule : public CellRule
13{
14public:
16 static const unsigned n_base_nodes = 6u;
17
20
22 static const unsigned n_faces = 5;
23
25 static const unsigned n_edges = 9;
26
28 static const unsigned n_neighbors = 5;
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 MeshElemType mesh_elem_type
Constant: The geometric type of the element.
Definition PrismRule.h:19
static const unsigned n_neighbors
Constant: The number of neighbors.
Definition PrismRule.h:28
static ElementErrorCode validate(const Element *e)
Definition PrismRule.cpp:40
static const unsigned n_edges
Constant: The number of edges.
Definition PrismRule.h:25
static bool isPntInElement(Node const *const *nodes, MathLib::Point3d const &pnt, double eps)
Definition PrismRule.cpp:28
static const unsigned n_faces
Constant: The number of faces.
Definition PrismRule.h:22
static const unsigned n_base_nodes
Constant: The number of base nodes for this element.
Definition PrismRule.h:16
static double computeVolume(Node const *const *element_nodes)
Definition PrismRule.cpp:12
MeshElemType
Types of mesh elements supported by OpenGeoSys. Values are from VTKCellType enum.
Definition MeshEnums.h:37