OGS
ShapeTri3-impl.h
Go to the documentation of this file.
1
14namespace NumLib
15{
16template <class T_X, class T_N>
17void 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
24template <class T_X, class T_N>
25void 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
static void computeShapeFunction(const T_X &r, T_N &N)
static void computeGradShapeFunction(const T_X &r, T_N &dN)