OGS
NumLib::ShapeLine2 Class Reference

Detailed Description

Shape function for a line element of two nodes in natural coordinates

*  2 (-1,0)     1 (1,0)
*     *--------*
* 

Definition at line 25 of file ShapeLine2.h.

#include <ShapeLine2.h>

Public Types

using MeshElement = MeshLib::Line
 

Static Public Member Functions

template<class T_X , class T_N >
static void computeShapeFunction (const T_X &r, T_N &N)
 
template<class T_X , class T_N >
static void computeGradShapeFunction (const T_X &r, T_N &dN)
 

Static Public Attributes

static const unsigned DIM = MeshElement::dimension
 
static const unsigned NPOINTS = MeshElement::n_all_nodes
 
static constexpr int ORDER = 1
 

Member Typedef Documentation

◆ MeshElement

Definition at line 46 of file ShapeLine2.h.

Member Function Documentation

◆ computeGradShapeFunction()

template<class T_X , class T_N >
void NumLib::ShapeLine2::computeGradShapeFunction ( const T_X & r,
T_N & dN )
static

Evaluate derivatives of the shape function at the given point

Parameters
[in]rpoint coordinates
[out]dNa matrix of the derivatives

Definition at line 21 of file ShapeLine2-impl.h.

22{
23 dN[0] = -0.5;
24 dN[1] = 0.5;
25}

◆ computeShapeFunction()

template<class T_X , class T_N >
void NumLib::ShapeLine2::computeShapeFunction ( const T_X & r,
T_N & N )
static

Evaluate the shape function at the given point

Parameters
[in]rpoint coordinates
[out]Na vector of calculated shape function.

Definition at line 14 of file ShapeLine2-impl.h.

15{
16 N[0] = (1.0 - r[0]) * 0.5;
17 N[1] = (1.0 + r[0]) * 0.5;
18}

References NumLib::N.

Member Data Documentation

◆ DIM

const unsigned NumLib::ShapeLine2::DIM = MeshElement::dimension
static

Definition at line 47 of file ShapeLine2.h.

◆ NPOINTS

const unsigned NumLib::ShapeLine2::NPOINTS = MeshElement::n_all_nodes
static

Definition at line 48 of file ShapeLine2.h.

◆ ORDER

constexpr int NumLib::ShapeLine2::ORDER = 1
staticconstexpr

Definition at line 49 of file ShapeLine2.h.


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