OGS
ShapeLine3-impl.h
Go to the documentation of this file.
1
11
namespace
NumLib
12
{
13
template
<
class
T_X,
class
T_N>
14
void
ShapeLine3::computeShapeFunction
(
const
T_X& r, T_N&
N
)
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
}
20
21
template
<
class
T_X,
class
T_N>
22
void
ShapeLine3::computeGradShapeFunction
(
const
T_X& r, T_N& dN)
23
{
24
dN[0] = r[0] - 0.5;
25
dN[1] = r[0] + 0.5;
26
dN[2] = -2.0 * r[0];
27
}
28
29
}
// namespace NumLib
NumLib::ShapeLine3::computeShapeFunction
static void computeShapeFunction(const T_X &r, T_N &N)
Definition
ShapeLine3-impl.h:14
NumLib::ShapeLine3::computeGradShapeFunction
static void computeGradShapeFunction(const T_X &r, T_N &dN)
Definition
ShapeLine3-impl.h:22
NumLib
Definition
ProjectData.h:46
NumLib::ShapeMatrixType::N
@ N
calculates N
NumLib
Fem
ShapeFunction
ShapeLine3-impl.h
Generated by
1.12.0