31 GradientVectorType
const& grad_u,
33 const bool is_axially_symmetric)
35 static_assert(0 < DisplacementDim && DisplacementDim <= 3,
36 "NonLinearBMatrix::computeBMatrix: DisplacementDim must be "
39 BMatrixType B = BMatrixType::Zero(
41 NPOINTS * DisplacementDim);
43 switch (DisplacementDim)
46 for (
int i = 0; i < NPOINTS; ++i)
48 B(0, i) = dNdx(0, i) * grad_u[0];
49 B(1, i) = dNdx(1, i) * grad_u[1];
50 B(2, i) = dNdx(2, i) * grad_u[2];
52 B(0, NPOINTS + i) = dNdx(0, i) * grad_u[3];
53 B(1, NPOINTS + i) = dNdx(1, i) * grad_u[4];
54 B(2, NPOINTS + i) = dNdx(2, i) * grad_u[5];
56 B(0, 2 * NPOINTS + i) = dNdx(0, i) * grad_u[6];
57 B(1, 2 * NPOINTS + i) = dNdx(1, i) * grad_u[7];
58 B(2, 2 * NPOINTS + i) = dNdx(2, i) * grad_u[8];
60 B(3, i) = (dNdx(1, i) * grad_u[0] + dNdx(0, i) * grad_u[1]) /
62 B(4, i) = (dNdx(2, i) * grad_u[1] + dNdx(1, i) * grad_u[2]) /
64 B(5, i) = (dNdx(2, i) * grad_u[0] + dNdx(0, i) * grad_u[2]) /
68 (dNdx(1, i) * grad_u[3] + dNdx(0, i) * grad_u[4]) /
71 (dNdx(2, i) * grad_u[4] + dNdx(1, i) * grad_u[5]) /
74 (dNdx(2, i) * grad_u[3] + dNdx(0, i) * grad_u[5]) /
77 B(3, 2 * NPOINTS + i) =
78 (dNdx(1, i) * grad_u[6] + dNdx(0, i) * grad_u[7]) /
80 B(4, 2 * NPOINTS + i) =
81 (dNdx(2, i) * grad_u[7] + dNdx(1, i) * grad_u[8]) /
83 B(5, 2 * NPOINTS + i) =
84 (dNdx(2, i) * grad_u[6] + dNdx(0, i) * grad_u[8]) /
89 for (
int i = 0; i < NPOINTS; ++i)
91 B(0, i) = dNdx(0, i) * grad_u[0];
92 B(1, i) = dNdx(1, i) * grad_u[1];
95 B(0, NPOINTS + i) = dNdx(0, i) * grad_u[2];
96 B(1, NPOINTS + i) = dNdx(1, i) * grad_u[3];
99 B(3, i) = (dNdx(1, i) * grad_u[0] + dNdx(0, i) * grad_u[1]) /
102 (dNdx(1, i) * grad_u[2] + dNdx(0, i) * grad_u[3]) /
105 if (is_axially_symmetric)
107 for (
int i = 0; i < NPOINTS; ++i)
109 B(2, i) = grad_u[4] * N[i] / radius;