VTK  9.4.20241103
WdgF2Gradient.h
Go to the documentation of this file.
1RealT uu = 1.0 - rr - ss;
2RealT rs = rr * ss;
3RealT tp = 1. + tt;
4RealT tm = 1. - tt;
5
7 -0.5 * tt * tm * (3 * ss - 2) * uu + 0.5 * tt * tm * (3 * rs - 2 * rr - 2 * ss + 1);
9 -0.5 * tt * tm * (3 * rr - 2) * uu + 0.5 * tt * tm * (3 * rs - 2 * rr - 2 * ss + 1);
11 0.5 * tt * uu * (3 * rs - 2 * rr - 2 * ss + 1) - 0.5 * tm * uu * (3 * rs - 2 * rr - 2 * ss + 1);
12
13basisGradient[3] = -0.5 * tt * tm * (-3 * rs + 4 * rr + ss * (-3 * rr - 3 * ss + 3) - 1);
14basisGradient[4] = -0.5 * tt * tm * (-3 * rs + rr * (-3 * rr - 3 * ss + 3));
15basisGradient[5] = 0.5 * tt * (rs * (-3 * rr - 3 * ss + 3) - 2 * rs - 2 * rr * uu + rr) -
16 0.5 * tm * (rs * (-3 * rr - 3 * ss + 3) - 2 * rs - 2 * rr * uu + rr);
17
18basisGradient[6] = -0.5 * tt * tm * (-3 * rs + ss * (-3 * rr - 3 * ss + 3));
19basisGradient[7] = -0.5 * tt * tm * (-3 * rs + rr * (-3 * rr - 3 * ss + 3) + 4 * ss - 1);
20basisGradient[8] = 0.5 * tt * (rs * (-3 * rr - 3 * ss + 3) - 2 * rs - 2 * ss * uu + ss) -
21 0.5 * tm * (rs * (-3 * rr - 3 * ss + 3) - 2 * rs - 2 * ss * uu + ss);
22
24 0.5 * tt * (3 * ss - 2) * tp * uu - 0.5 * tt * tp * (3 * rs - 2 * rr - 2 * ss + 1);
25basisGradient[10] =
26 0.5 * tt * (3 * rr - 2) * tp * uu - 0.5 * tt * tp * (3 * rs - 2 * rr - 2 * ss + 1);
27basisGradient[11] =
28 0.5 * tt * uu * (3 * rs - 2 * rr - 2 * ss + 1) + 0.5 * tp * uu * (3 * rs - 2 * rr - 2 * ss + 1);
29
30basisGradient[12] = 0.5 * tt * tp * (-3 * rs + 4 * rr + ss * (-3 * rr - 3 * ss + 3) - 1);
31basisGradient[13] = 0.5 * tt * tp * (-3 * rs + rr * (-3 * rr - 3 * ss + 3));
32basisGradient[14] = 0.5 * tt * (rs * (-3 * rr - 3 * ss + 3) - 2 * rs - 2 * rr * uu + rr) +
33 0.5 * tp * (rs * (-3 * rr - 3 * ss + 3) - 2 * rs - 2 * rr * uu + rr);
34
35basisGradient[15] = 0.5 * tt * tp * (-3 * rs + ss * (-3 * rr - 3 * ss + 3));
36basisGradient[16] = 0.5 * tt * tp * (-3 * rs + rr * (-3 * rr - 3 * ss + 3) + 4 * ss - 1);
37basisGradient[17] = 0.5 * tt * (rs * (-3 * rr - 3 * ss + 3) - 2 * rs - 2 * ss * uu + ss) +
38 0.5 * tp * (rs * (-3 * rr - 3 * ss + 3) - 2 * rs - 2 * ss * uu + ss);
39
40basisGradient[18] = -0.5 * tt * tm * (4 - 12 * ss) * uu + 0.5 * tt * tm * (-12 * rs + 4 * rr);
41basisGradient[19] = 6.0 * rr * tt * tm * uu + 0.5 * tt * tm * (-12 * rs + 4 * rr);
42basisGradient[20] = 0.5 * tt * (-12 * rs + 4 * rr) * uu - 0.5 * tm * (-12 * rs + 4 * rr) * uu;
43
44basisGradient[21] = -0.5 * tt * tm * (12 * rs - ss * (-12 * rr - 12 * ss + 12) + 4 * ss);
45basisGradient[22] = -0.5 * tt * tm * (12 * rs - rr * (-12 * rr - 12 * ss + 12) + 4 * rr);
46basisGradient[23] = 0.5 * tt * (-rs * (-12 * rr - 12 * ss + 12) + 4 * rs) -
47 0.5 * tm * (-rs * (-12 * rr - 12 * ss + 12) + 4 * rs);
48
49basisGradient[24] = 6.0 * ss * tt * tm * uu + 0.5 * tt * tm * (-12 * rs + 4 * ss);
50basisGradient[25] = -0.5 * tt * tm * (4 - 12 * rr) * uu + 0.5 * tt * tm * (-12 * rs + 4 * ss);
51basisGradient[26] = 0.5 * tt * (-12 * rs + 4 * ss) * uu - 0.5 * tm * (-12 * rs + 4 * ss) * uu;
52
53basisGradient[27] = 0.5 * tt * (4 - 12 * ss) * tp * uu - 0.5 * tt * tp * (-12 * rs + 4 * rr);
54basisGradient[28] = -6.0 * rr * tt * tp * uu - 0.5 * tt * tp * (-12 * rs + 4 * rr);
55basisGradient[29] = 0.5 * tt * (-12 * rs + 4 * rr) * uu + 0.5 * tp * (-12 * rs + 4 * rr) * uu;
56
57basisGradient[30] = 0.5 * tt * tp * (12 * rs - ss * (-12 * rr - 12 * ss + 12) + 4 * ss);
58basisGradient[31] = 0.5 * tt * tp * (12 * rs - rr * (-12 * rr - 12 * ss + 12) + 4 * rr);
59basisGradient[32] = 0.5 * tt * (-rs * (-12 * rr - 12 * ss + 12) + 4 * rs) +
60 0.5 * tp * (-rs * (-12 * rr - 12 * ss + 12) + 4 * rs);
61
62basisGradient[33] = -6.0 * ss * tt * tp * uu - 0.5 * tt * tp * (-12 * rs + 4 * ss);
63basisGradient[34] = 0.5 * tt * (4 - 12 * rr) * tp * uu - 0.5 * tt * tp * (-12 * rs + 4 * ss);
64basisGradient[35] = 0.5 * tt * (-12 * rs + 4 * ss) * uu + 0.5 * tp * (-12 * rs + 4 * ss) * uu;
65
66basisGradient[36] = tm * (3 * ss - 2) * tp * uu - tm * tp * (3 * rs - 2 * rr - 2 * ss + 1);
67basisGradient[37] = tm * (3 * rr - 2) * tp * uu - tm * tp * (3 * rs - 2 * rr - 2 * ss + 1);
68basisGradient[38] =
69 tm * uu * (3 * rs - 2 * rr - 2 * ss + 1) - tp * uu * (3 * rs - 2 * rr - 2 * ss + 1);
70
71basisGradient[39] = tm * tp * (-3 * rs + 4 * rr + ss * (-3 * rr - 3 * ss + 3) - 1);
72basisGradient[40] = tm * tp * (-3 * rs + rr * (-3 * rr - 3 * ss + 3));
73basisGradient[41] = tm * (rs * (-3 * rr - 3 * ss + 3) - 2 * rs - 2 * rr * uu + rr) -
74 tp * (rs * (-3 * rr - 3 * ss + 3) - 2 * rs - 2 * rr * uu + rr);
75
76basisGradient[42] = tm * tp * (-3 * rs + ss * (-3 * rr - 3 * ss + 3));
77basisGradient[43] = tm * tp * (-3 * rs + rr * (-3 * rr - 3 * ss + 3) + 4 * ss - 1);
78basisGradient[44] = tm * (rs * (-3 * rr - 3 * ss + 3) - 2 * rs - 2 * ss * uu + ss) -
79 tp * (rs * (-3 * rr - 3 * ss + 3) - 2 * rs - 2 * ss * uu + ss);
80
81basisGradient[45] = 13.5 * rs * tt * tm - 13.5 * ss * tt * tm * uu;
82basisGradient[46] = 13.5 * rs * tt * tm - 13.5 * rr * tt * tm * uu;
83basisGradient[47] = 13.5 * rs * tt * uu - 13.5 * rs * tm * uu;
84
85basisGradient[48] = -13.5 * rs * tt * tp + 13.5 * ss * tt * tp * uu;
86basisGradient[49] = -13.5 * rs * tt * tp + 13.5 * rr * tt * tp * uu;
87basisGradient[50] = 13.5 * rs * tt * uu + 13.5 * rs * tp * uu;
88
89basisGradient[51] = tm * (4 - 12 * ss) * tp * uu - tm * tp * (-12 * rs + 4 * rr);
90basisGradient[52] = -12 * rr * tm * tp * uu - tm * tp * (-12 * rs + 4 * rr);
91basisGradient[53] = tm * (-12 * rs + 4 * rr) * uu - tp * (-12 * rs + 4 * rr) * uu;
92
93basisGradient[54] = tm * tp * (12 * rs - ss * (-12 * rr - 12 * ss + 12) + 4 * ss);
94basisGradient[55] = tm * tp * (12 * rs - rr * (-12 * rr - 12 * ss + 12) + 4 * rr);
95basisGradient[56] =
96 tm * (-rs * (-12 * rr - 12 * ss + 12) + 4 * rs) - tp * (-rs * (-12 * rr - 12 * ss + 12) + 4 * rs);
97
98basisGradient[57] = -12 * ss * tm * tp * uu - tm * tp * (-12 * rs + 4 * ss);
99basisGradient[58] = tm * (4 - 12 * rr) * tp * uu - tm * tp * (-12 * rs + 4 * ss);
100basisGradient[59] = tm * (-12 * rs + 4 * ss) * uu - tp * (-12 * rs + 4 * ss) * uu;
101
102basisGradient[60] = -rs * tm * (27 * tt + 27) + ss * tm * (27 * tt + 27) * uu;
103basisGradient[61] = -rs * tm * (27 * tt + 27) + rr * tm * (27 * tt + 27) * uu;
104basisGradient[62] = 27 * rs * tm * uu - rs * (27 * tt + 27) * uu;
RealT tm
RealT uu
RealT tp
RealT rs
basisGradient[0]