OGS
NumLib::ShapeLine3 Class Reference

Detailed Description

Shape function for a 3-nodes line element

Definition at line 14 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 constexpr std::array reference_element_centre = {0.0}
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 37 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 15 of file ShapeLine3-impl.h.

16{
17 dN[0] = r[0] - 0.5;
18 dN[1] = r[0] + 0.5;
19 dN[2] = -2.0 * r[0];
20}

◆ 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 7 of file ShapeLine3-impl.h.

8{
9 N[0] = 0.5 * r[0] * (r[0] - 1.0);
10 N[1] = 0.5 * r[0] * (r[0] + 1.0);
11 N[2] = 1.0 - r[0] * r[0];
12}

References NumLib::N.

Member Data Documentation

◆ DIM

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

Definition at line 38 of file ShapeLine3.h.

◆ NPOINTS

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

Definition at line 39 of file ShapeLine3.h.

◆ ORDER

int NumLib::ShapeLine3::ORDER = 2
staticconstexpr

Definition at line 40 of file ShapeLine3.h.

◆ reference_element_centre

std::array NumLib::ShapeLine3::reference_element_centre = {0.0}
staticconstexpr

Definition at line 35 of file ShapeLine3.h.

35{0.0};

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