OGS
ShapeTri3-impl.h
Go to the documentation of this file.
1
14
namespace
NumLib
15
{
16
template
<
class
T_X,
class
T_N>
17
void
ShapeTri3::computeShapeFunction
(
const
T_X& r, T_N&
N
)
18
{
19
N
[0] = 1. - r[0] - r[1];
20
N
[1] = r[0];
21
N
[2] = r[1];
22
}
23
24
template
<
class
T_X,
class
T_N>
25
void
ShapeTri3::computeGradShapeFunction
(
const
T_X&
/*r*/
, T_N& dN)
26
{
27
// dN/dr
28
dN[0] = -1.0;
29
dN[1] = 1.0;
30
dN[2] = 0.0;
31
// dN/ds
32
dN[3] = -1.0;
33
dN[4] = 0.0;
34
dN[5] = 1.0;
35
}
36
37
}
// namespace NumLib
NumLib::ShapeTri3::computeShapeFunction
static void computeShapeFunction(const T_X &r, T_N &N)
Definition
ShapeTri3-impl.h:17
NumLib::ShapeTri3::computeGradShapeFunction
static void computeGradShapeFunction(const T_X &r, T_N &dN)
Definition
ShapeTri3-impl.h:25
NumLib
Definition
ProjectData.h:46
NumLib::ShapeMatrixType::N
@ N
calculates N
NumLib
Fem
ShapeFunction
ShapeTri3-impl.h
Generated by
1.11.0