62 const double r = rst[0];
63 const double s = rst[1];
64 const double t = rst[2];
66 N[0] = ShapeFunctionHexHQ_Corner(r, s, t);
67 N[1] = ShapeFunctionHexHQ_Corner(-r, s, t);
68 N[2] = ShapeFunctionHexHQ_Corner(-r, -s, t);
69 N[3] = ShapeFunctionHexHQ_Corner(r, -s, t);
70 N[4] = ShapeFunctionHexHQ_Corner(r, s, -t);
71 N[5] = ShapeFunctionHexHQ_Corner(-r, s, -t);
72 N[6] = ShapeFunctionHexHQ_Corner(-r, -s, -t);
73 N[7] = ShapeFunctionHexHQ_Corner(r, -s, -t);
75 N[8] = ShapeFunctionHexHQ_Middle(r, s, t);
76 N[10] = ShapeFunctionHexHQ_Middle(r, -s, t);
77 N[14] = ShapeFunctionHexHQ_Middle(r, -s, -t);
78 N[12] = ShapeFunctionHexHQ_Middle(r, s, -t);
80 N[11] = ShapeFunctionHexHQ_Middle(s, t, r);
81 N[15] = ShapeFunctionHexHQ_Middle(s, -t, r);
82 N[13] = ShapeFunctionHexHQ_Middle(s, -t, -r);
83 N[9] = ShapeFunctionHexHQ_Middle(s, t, -r);
85 N[16] = ShapeFunctionHexHQ_Middle(t, r, s);
86 N[17] = ShapeFunctionHexHQ_Middle(t, -r, s);
87 N[18] = ShapeFunctionHexHQ_Middle(t, -r, -s);
88 N[19] = ShapeFunctionHexHQ_Middle(t, r, -s);
94 const double r = rst[0];
95 const double s = rst[1];
96 const double t = rst[2];
97 const static double sign1[] = {-1.0, 1.0, 1.0};
98 const static double sign2[] = {1.0, -1.0, 1.0};
99 const static double sign3[] = {1.0, 1.0, -1.0};
100 for (
int i = 0; i < 3; i++)
102 dN[20 * i + 0] = dShapeFunctionHexHQ_Corner(r, s, t, i);
103 dN[20 * i + 1] = sign1[i] * dShapeFunctionHexHQ_Corner(-r, s, t, i);
105 sign1[i] * sign2[i] * dShapeFunctionHexHQ_Corner(-r, -s, t, i);
106 dN[20 * i + 3] = sign2[i] * dShapeFunctionHexHQ_Corner(r, -s, t, i);
107 dN[20 * i + 4] = sign3[i] * dShapeFunctionHexHQ_Corner(r, s, -t, i);
109 sign1[i] * sign3[i] * dShapeFunctionHexHQ_Corner(-r, s, -t, i);
110 dN[20 * i + 6] = sign1[i] * sign2[i] * sign3[i] *
111 dShapeFunctionHexHQ_Corner(-r, -s, -t, i);
113 sign2[i] * sign3[i] * dShapeFunctionHexHQ_Corner(r, -s, -t, i);
115 dN[20 * i + 8] = dShapeFunctionHexHQ_Middle(r, s, t, i);
116 dN[20 * i + 10] = sign2[i] * dShapeFunctionHexHQ_Middle(r, -s, t, i);
118 sign2[i] * sign3[i] * dShapeFunctionHexHQ_Middle(r, -s, -t, i);
119 dN[20 * i + 12] = sign3[i] * dShapeFunctionHexHQ_Middle(r, s, -t, i);
122 int const co = (i + 2) % 3;
123 dN[20 * i + 11] = dShapeFunctionHexHQ_Middle(s, t, r, co);
125 sign3[i] * dShapeFunctionHexHQ_Middle(s, -t, r, co);
127 sign1[i] * sign3[i] * dShapeFunctionHexHQ_Middle(s, -t, -r, co);
129 sign1[i] * dShapeFunctionHexHQ_Middle(s, t, -r, co);
133 int const co = (i + 1) % 3;
134 dN[20 * i + 16] = dShapeFunctionHexHQ_Middle(t, r, s, co);
136 sign1[i] * dShapeFunctionHexHQ_Middle(t, -r, s, co);
138 sign1[i] * sign2[i] * dShapeFunctionHexHQ_Middle(t, -r, -s, co);
140 sign2[i] * dShapeFunctionHexHQ_Middle(t, r, -s, co);