16 N[0] = 0.25 * (1.0 + r[0]) * (1.0 + r[1]) * (-1.0 + r[0] + r[1]);
17 N[1] = -0.25 * (1.0 - r[0]) * (1.0 + r[1]) * (1.0 + r[0] - r[1]);
18 N[2] = -0.25 * (1.0 - r[0]) * (1.0 - r[1]) * (1.0 + r[0] + r[1]);
19 N[3] = 0.25 * (1.0 + r[0]) * (1.0 - r[1]) * (-1.0 + r[0] - r[1]);
21 N[4] = 0.5 * (1.0 - r[0] * r[0]) * (1.0 + r[1]);
22 N[5] = 0.5 * (1.0 - r[1] * r[1]) * (1.0 - r[0]);
23 N[6] = 0.5 * (1.0 - r[0] * r[0]) * (1.0 - r[1]);
24 N[7] = 0.5 * (1.0 - r[1] * r[1]) * (1.0 + r[0]);
30 const double r = rs[0];
31 const double s = rs[1];
34 dN[0] = (1 + s) * (2 * r + s) * 0.25;
35 dN[1] = (1 + s) * (2 * r - s) * 0.25;
36 dN[2] = (1 - s) * (2 * r + s) * 0.25;
37 dN[3] = (1 - s) * (2 * r - s) * 0.25;
40 dN[5] = -(1 - s * s) * 0.5;
42 dN[7] = (1 - s * s) * 0.5;
45 dN[8] = (1 + r) * (r + 2 * s) * 0.25;
46 dN[9] = -(1 - r) * (r - 2 * s) * 0.25;
47 dN[10] = (1 - r) * (r + 2 * s) * 0.25;
48 dN[11] = -(1 + r) * (r - 2 * s) * 0.25;
50 dN[12] = (1 - r * r) * 0.5;
51 dN[13] = -(1 - r) * s;
52 dN[14] = -(1 - r * r) * 0.5;
53 dN[15] = -(1 + r) * s;