![]() |
OGS
|
#include <LineRule2.h>
Public Types | |
using | EdgeReturn = MeshLib::LinearEdgeReturn |
Edge rule. More... | |
Static Public Member Functions | |
static bool | isPntInElement (Node const *const *nodes, MathLib::Point3d const &pnt, double eps) |
static ElementErrorCode | validate (const Element *e) |
static unsigned | identifyFace (Node const *const *, Node const *nodes[1]) |
Returns the ID of a face given an array of nodes. More... | |
static double | computeVolume (Node const *const *_nodes) |
Calculates the length of a line. More... | |
![]() | |
static const Element * | getFace (const Element *, unsigned) |
Returns the i-th face of the element. More... | |
static bool | testElementNodeOrder (Element const &) |
Static Public Attributes | |
static const unsigned | n_base_nodes = 2u |
Constant: The number of base nodes for this element. More... | |
static const unsigned | n_all_nodes = 2u |
Constant: The number of all nodes for this element. More... | |
static const MeshElemType | mesh_elem_type = MeshElemType::LINE |
Constant: The geometric type of the element. More... | |
static const CellType | cell_type = CellType::LINE2 |
Constant: The FEM type of the element. More... | |
static const unsigned | n_neighbors = 2 |
Constant: The number of neighbors. More... | |
static const unsigned | edge_nodes [1][2] |
Constant: Local node index table for edge. More... | |
![]() | |
static const unsigned | dimension = 1u |
Constant: Dimension of this mesh element. More... | |
static const unsigned | n_faces = 0 |
Constant: The number of faces. More... | |
static const unsigned | n_edges = 1 |
Constant: The number of edges. More... | |
Edge rule.
Definition at line 49 of file LineRule2.h.
|
static |
Calculates the length of a line.
Definition at line 22 of file LineRule2.cpp.
References MathLib::sqrDist().
|
static |
Returns the ID of a face given an array of nodes.
Definition at line 37 of file LineRule2.cpp.
|
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 27 of file LineRule2.cpp.
References MathLib::calcProjPntToLineAndDists().
|
static |
Tests if the element is geometrically valid.
Definition at line 51 of file LineRule2.cpp.
References MeshLib::hasZeroVolume(), and ZeroVolume.
|
static |
Constant: The FEM type of the element.
Definition at line 40 of file LineRule2.h.
|
static |
Constant: Local node index table for edge.
Definition at line 46 of file LineRule2.h.
|
static |
Constant: The geometric type of the element.
Definition at line 37 of file LineRule2.h.
|
static |
Constant: The number of all nodes for this element.
Definition at line 34 of file LineRule2.h.
|
static |
Constant: The number of base nodes for this element.
Definition at line 31 of file LineRule2.h.
|
static |
Constant: The number of neighbors.
Definition at line 43 of file LineRule2.h.