OGS
ShapeTri6-impl.h
Go to the documentation of this file.
1
11
namespace
NumLib
12
{
13
template
<
class
T_X,
class
T_N>
14
void
ShapeTri6::computeShapeFunction
(
const
T_X& r, T_N&
N
)
15
{
16
N
[0] = 2. * (1. - r[0] - r[1]) * (0.5 - r[0] - r[1]);
17
N
[1] = r[0] * (2. * r[0] - 1.);
18
N
[2] = r[1] * (2. * r[1] - 1.);
19
N
[3] = 4. * r[0] * (1. - r[0] - r[1]);
20
N
[4] = 4. * r[0] * r[1];
21
N
[5] = 4. * r[1] * (1. - r[0] - r[1]);
22
}
23
24
template
<
class
T_X,
class
T_N>
25
void
ShapeTri6::computeGradShapeFunction
(
const
T_X& r, T_N& dN)
26
{
27
dN[0] = 4. * (r[0] + r[1]) - 3.;
// dN1/dL1
28
dN[6] = dN[0];
// dN1/dL2
29
30
dN[1] = 4. * r[0] - 1.;
// dN2/dL1
31
dN[7] = 0.;
// dN2/dL2
32
33
dN[2] = 0.;
// dN3/dL1
34
dN[8] = 4. * r[1] - 1.;
// dN3/dL2
35
36
dN[3] = 4. * (1 - 2. * r[0] - r[1]);
// dN4/dL1
37
dN[9] = -4. * r[0];
// dN4/dL2
38
39
dN[4] = 4. * r[1];
// dN5/dL1
40
dN[10] = -dN[9];
// dN5/dL2
41
42
dN[5] = -dN[4];
// dN6/dL1
43
dN[11] = 4. * (1 - r[0] - 2. * r[1]);
// dN6/dL2
44
}
45
46
}
// namespace NumLib
NumLib::ShapeTri6::computeGradShapeFunction
static void computeGradShapeFunction(const T_X &r, T_N &dN)
Definition
ShapeTri6-impl.h:25
NumLib::ShapeTri6::computeShapeFunction
static void computeShapeFunction(const T_X &r, T_N &N)
Definition
ShapeTri6-impl.h:14
NumLib
Definition
ProjectData.h:46
NumLib::ShapeMatrixType::N
@ N
calculates N
NumLib
Fem
ShapeFunction
ShapeTri6-impl.h
Generated by
1.10.0