19 t_diff_deviator(
i,
j,
k,
l) = t_diff_stress(
i,
j,
k,
l);
21 constexpr
double third = boost::math::constants::third<double>();
23 t_diff_deviator(0, 0, 0, 0) -=
third;
24 t_diff_deviator(0, 0, 1, 1) -=
third;
26 t_diff_deviator(1, 1, 0, 0) -=
third;
27 t_diff_deviator(1, 1, 1, 1) -=
third;
29 t_diff_deviator(2, 2, 0, 0) -=
third;
30 t_diff_deviator(2, 2, 1, 1) -=
third;
32 t_diff_deviator(0, 0, 2, 2) -=
third;
33 t_diff_deviator(1, 1, 2, 2) -=
third;
34 t_diff_deviator(2, 2, 2, 2) -=
third;
36 return t_diff_deviator;
39 constexpr
static auto size_symm = (3 * (3 + 1)) / 2;
76 t_diff(
i,
j,
k,
l) = 0;
77 t_diff(0, 0, 0, 0) = 1;
78 t_diff(1, 1, 1, 1) = 1;
80 t_diff(1, 0, 1, 0) = 0.5;
81 t_diff(1, 0, 0, 1) = 0.5;
83 t_diff(0, 1, 0, 1) = 0.5;
84 t_diff(0, 1, 1, 0) = 0.5;
87 t_diff(2, 2, 2, 2) = 1;
89 t_diff(2, 0, 2, 0) = 0.5;
90 t_diff(2, 0, 0, 2) = 0.5;
91 t_diff(0, 2, 0, 2) = 0.5;
92 t_diff(0, 2, 2, 0) = 0.5;
94 t_diff(2, 1, 2, 1) = 0.5;
95 t_diff(2, 1, 1, 2) = 0.5;
96 t_diff(1, 2, 1, 2) = 0.5;
97 t_diff(1, 2, 2, 1) = 0.5;