OGS
|
This class represents a 2d quad element in 3d space.
Definition at line 23 of file QuadRule.h.
#include <QuadRule.h>
Static Public Member Functions | |
static bool | isPntInElement (Node const *const *nodes, MathLib::Point3d const &pnt, double eps) |
static ElementErrorCode | validate (const Element *e) |
static double | computeVolume (Node const *const *element_nodes) |
Calculates the area of a quad with straight edges. | |
Static Public Member Functions inherited from MeshLib::FaceRule | |
static const Element * | getFace (const Element *e, unsigned i) |
Returns the face i of the element. | |
static bool | testElementNodeOrder (Element const &e) |
static Eigen::Vector3d | getFirstSurfaceVector (Element const &e) |
static Eigen::Vector3d | getSecondSurfaceVector (Element const &e) |
static Eigen::Vector3d | getSurfaceNormal (Element const &e) |
Returns the surface normal of a 2D element. | |
Static Public Attributes | |
static const unsigned | n_base_nodes = 4u |
Constant: The number of base nodes for this element. | |
static const MeshElemType | mesh_elem_type = MeshElemType::QUAD |
Constant: The geometric type of the element. | |
static const unsigned | n_edges = 4 |
Constant: The number of edges. | |
static const unsigned | n_neighbors = 4 |
Constant: The number of neighbors. | |
Static Public Attributes inherited from MeshLib::FaceRule | |
static const unsigned | dimension = 2u |
Constant: Dimension of this mesh element. | |
static const unsigned | n_faces = 0 |
Constant: The number of faces. | |
Additional Inherited Members | |
Static Protected Member Functions inherited from MeshLib::FaceRule | |
template<typename ElementRule > | |
static unsigned | identifyFace (Node const *const *element_nodes, Node const *nodes[ElementRule::dimension]) |
Returns the ID of an edge given an array of nodes. | |
|
static |
Calculates the area of a quad with straight edges.
Definition at line 17 of file QuadRule.cpp.
References MathLib::calcTriangleArea().
|
static |
Checks if a point is inside the element.
pnt | a 3D MathLib::Point3d object |
eps | tolerance for numerical algorithm used or computing the property |
nodes | the nodes of the element. |
Definition at line 25 of file QuadRule.cpp.
References MathLib::isPointInTriangle().
|
static |
Tests if the element is geometrically valid.
Definition at line 34 of file QuadRule.cpp.
References MathLib::dividedByPlane(), MeshLib::Element::getNodes(), MeshLib::hasZeroVolume(), MathLib::isCoplanar(), NodeOrder, NonConvex, NonCoplanar, MeshLib::Element::testElementNodeOrder(), and ZeroVolume.
|
static |
Constant: The geometric type of the element.
Definition at line 30 of file QuadRule.h.
|
static |
Constant: The number of base nodes for this element.
Definition at line 27 of file QuadRule.h.
|
static |
Constant: The number of edges.
Definition at line 33 of file QuadRule.h.
|
static |
Constant: The number of neighbors.
Definition at line 36 of file QuadRule.h.