OGS
ShapeTet4-impl.h
Go to the documentation of this file.
1
11
namespace
NumLib
12
{
13
template
<
class
T_X,
class
T_N>
14
void
ShapeTet4::computeShapeFunction
(
const
T_X&
r
, T_N& N)
15
{
16
N
[0] = 1. -
r
[0] -
r
[1] -
r
[2];
17
N
[1] =
r
[0];
18
N
[2] =
r
[1];
19
N
[3] =
r
[2];
20
}
21
22
template
<
class
T_X,
class
T_N>
23
void
ShapeTet4::computeGradShapeFunction
(
const
T_X&
/*r*/
, T_N& dNdr)
24
{
25
// dr
26
dNdr[0] = -1.0;
27
dNdr[1] = 1.0;
28
dNdr[2] = 0.0;
29
dNdr[3] = 0.0;
30
31
// ds
32
dNdr[4] = -1.0;
33
dNdr[5] = 0.0;
34
dNdr[6] = 1.0;
35
dNdr[7] = 0.0;
36
37
// dt
38
dNdr[8] = -1.0;
39
dNdr[9] = 0.0;
40
dNdr[10] = 0.0;
41
dNdr[11] = 1.0;
42
}
43
44
}
// namespace NumLib
NumLib::ShapeTet4::computeShapeFunction
static void computeShapeFunction(const T_X &r, T_N &N)
Definition:
ShapeTet4-impl.h:14
NumLib::ShapeTet4::computeGradShapeFunction
static void computeGradShapeFunction(const T_X &r, T_N &dN)
Definition:
ShapeTet4-impl.h:23
MathLib::r
static const double r
Definition:
GaussLegendreTet.cpp:64
NumLib
Definition:
ProjectData.h:35
NumLib::ShapeMatrixType::N
@ N
calculates N
NumLib
Fem
ShapeFunction
ShapeTet4-impl.h
Generated by
1.9.1