OGS
NumLib::ShapeTet4 Class Reference

Detailed Description

Shape function for a 4-nodes tetrahedral element

Definition at line 14 of file ShapeTet4.h.

#include <ShapeTet4.h>

Public Types

using MeshElement = MeshLib::Tet

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.25, 0.25, 0.25}
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 38 of file ShapeTet4.h.

Member Function Documentation

◆ computeGradShapeFunction()

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

Evaluate derivatives of the shape function at the given point The point coordinates in r are not used.

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

Definition at line 16 of file ShapeTet4-impl.h.

17{
18 // dr
19 dN[0] = -1.0;
20 dN[1] = 1.0;
21 dN[2] = 0.0;
22 dN[3] = 0.0;
23
24 // ds
25 dN[4] = -1.0;
26 dN[5] = 0.0;
27 dN[6] = 1.0;
28 dN[7] = 0.0;
29
30 // dt
31 dN[8] = -1.0;
32 dN[9] = 0.0;
33 dN[10] = 0.0;
34 dN[11] = 1.0;
35}

◆ computeShapeFunction()

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

8{
9 N[0] = 1. - r[0] - r[1] - r[2];
10 N[1] = r[0];
11 N[2] = r[1];
12 N[3] = r[2];
13}

References NumLib::N.

Member Data Documentation

◆ DIM

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

Definition at line 39 of file ShapeTet4.h.

◆ NPOINTS

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

Definition at line 40 of file ShapeTet4.h.

◆ ORDER

int NumLib::ShapeTet4::ORDER = 1
staticconstexpr

Definition at line 41 of file ShapeTet4.h.

◆ reference_element_centre

std::array NumLib::ShapeTet4::reference_element_centre = {0.25, 0.25, 0.25}
staticconstexpr

Definition at line 36 of file ShapeTet4.h.

36{0.25, 0.25, 0.25};

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