OGS
MeshLib::LineRule2 Class Reference

Detailed Description

A 1d Edge or Line Element with 2 nodes.

0--------1

Definition at line 24 of file LineRule2.h.

#include <LineRule2.h>

Inheritance diagram for MeshLib::LineRule2:
[legend]
Collaboration diagram for MeshLib::LineRule2:
[legend]

Public Types

using EdgeReturn = MeshLib::LinearEdgeReturn
 Edge rule.
 

Static Public Attributes

static const unsigned n_all_nodes = 2u
 Constant: The number of all nodes for this element.
 
static const CellType cell_type = CellType::LINE2
 Constant: The FEM type of the element.
 
static const unsigned edge_nodes [1][2]
 Constant: Local node index table for edge.
 
- Static Public Attributes inherited from MeshLib::LineRule
static const unsigned n_base_nodes = 2u
 Constant: The number of base nodes for this element.
 
static const MeshElemType mesh_elem_type = MeshElemType::LINE
 Constant: The geometric type of the element.
 
static const unsigned n_neighbors = 2
 Constant: The number of neighbors.
 
- Static Public Attributes inherited from MeshLib::EdgeRule
static const unsigned dimension = 1u
 Constant: Dimension of this mesh element.
 
static const unsigned n_faces = 0
 Constant: The number of faces.
 
static const unsigned n_edges = 1
 Constant: The number of edges.
 

Additional Inherited Members

- Static Public Member Functions inherited from MeshLib::LineRule
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.
 
static double computeVolume (Node const *const *element_nodes)
 Calculates the length of a line.
 
- Static Public Member Functions inherited from MeshLib::EdgeRule
static const ElementgetFace (const Element *, unsigned)
 Returns the i-th face of the element.
 
static bool testElementNodeOrder (Element const &)
 

Member Typedef Documentation

◆ EdgeReturn

Edge rule.

Definition at line 37 of file LineRule2.h.

Member Data Documentation

◆ cell_type

const CellType MeshLib::LineRule2::cell_type = CellType::LINE2
static

Constant: The FEM type of the element.

Definition at line 31 of file LineRule2.h.

◆ edge_nodes

const unsigned MeshLib::LineRule2::edge_nodes
static
Initial value:
= {
{0, 1}
}

Constant: Local node index table for edge.

Definition at line 34 of file LineRule2.h.

◆ n_all_nodes

const unsigned MeshLib::LineRule2::n_all_nodes = 2u
static

Constant: The number of all nodes for this element.

Definition at line 28 of file LineRule2.h.


The documentation for this class was generated from the following files: