OGS
ShapeLine2-impl.h
Go to the documentation of this file.
1
11
namespace
NumLib
12
{
13
template
<
class
T_X,
class
T_N>
14
void
ShapeLine2::computeShapeFunction
(
const
T_X& r, T_N&
N
)
15
{
16
N
[0] = (1.0 - r[0]) * 0.5;
17
N
[1] = (1.0 + r[0]) * 0.5;
18
}
19
20
template
<
class
T_X,
class
T_N>
21
void
ShapeLine2::computeGradShapeFunction
(
const
T_X&
/*r*/
, T_N& dN)
22
{
23
dN[0] = -0.5;
24
dN[1] = 0.5;
25
}
26
27
}
// namespace NumLib
NumLib::ShapeLine2::computeShapeFunction
static void computeShapeFunction(const T_X &r, T_N &N)
Definition
ShapeLine2-impl.h:14
NumLib::ShapeLine2::computeGradShapeFunction
static void computeGradShapeFunction(const T_X &r, T_N &dN)
Definition
ShapeLine2-impl.h:21
NumLib
Definition
ProjectData.h:46
NumLib::ShapeMatrixType::N
@ N
calculates N
NumLib
Fem
ShapeFunction
ShapeLine2-impl.h
Generated by
1.11.0