OGS
NumLib::ShapeLine3 Class Reference

Detailed Description

Shape function for a 3-nodes line element

Definition at line 20 of file ShapeLine3.h.

#include <ShapeLine3.h>

Public Types

using MeshElement = MeshLib::Line3
 

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 = 2
 

Member Typedef Documentation

◆ MeshElement

Definition at line 41 of file ShapeLine3.h.

Member Function Documentation

◆ computeGradShapeFunction()

template<class T_X , class T_N >
void NumLib::ShapeLine3::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 22 of file ShapeLine3-impl.h.

23{
24 dN[0] = r[0] - 0.5;
25 dN[1] = r[0] + 0.5;
26 dN[2] = -2.0 * r[0];
27}

◆ computeShapeFunction()

template<class T_X , class T_N >
void NumLib::ShapeLine3::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 ShapeLine3-impl.h.

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

References NumLib::N.

Member Data Documentation

◆ DIM

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

Definition at line 42 of file ShapeLine3.h.

◆ NPOINTS

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

Definition at line 43 of file ShapeLine3.h.

◆ ORDER

constexpr int NumLib::ShapeLine3::ORDER = 2
staticconstexpr

Definition at line 44 of file ShapeLine3.h.


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