OGS
QuadRule.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 "Element.h"
7#include "FaceRule.h"
8#include "MeshLib/MeshEnums.h"
9
10namespace MeshLib
11{
12
16class QuadRule : public FaceRule
17{
18public:
20 static const unsigned n_base_nodes = 4u;
21
24
26 static const unsigned n_edges = 4;
27
29 static const unsigned n_neighbors = 4;
30
35 static bool isPntInElement(Node const* const* nodes,
36 MathLib::Point3d const& pnt, double eps);
37
41 static ElementErrorCode validate(const Element* e);
42
44 static double computeVolume(Node const* const* element_nodes);
45};
46} // namespace MeshLib
Collects error flags for mesh elements.
static ElementErrorCode validate(const Element *e)
Definition QuadRule.cpp:28
static const MeshElemType mesh_elem_type
Constant: The geometric type of the element.
Definition QuadRule.h:23
static const unsigned n_neighbors
Constant: The number of neighbors.
Definition QuadRule.h:29
static const unsigned n_edges
Constant: The number of edges.
Definition QuadRule.h:26
static bool isPntInElement(Node const *const *nodes, MathLib::Point3d const &pnt, double eps)
Definition QuadRule.cpp:19
static const unsigned n_base_nodes
Constant: The number of base nodes for this element.
Definition QuadRule.h:20
static double computeVolume(Node const *const *element_nodes)
Calculates the area of a quad with straight edges.
Definition QuadRule.cpp:11
MeshElemType
Types of mesh elements supported by OpenGeoSys. Values are from VTKCellType enum.
Definition MeshEnums.h:37