38 std::vector<std::pair<unsigned int, unsigned int> > ids(6);
39 ids[0] = std::pair<unsigned int, unsigned int>(0,0);
40 ids[1] = std::pair<unsigned int, unsigned int>(1,1);
41 ids[2] = std::pair<unsigned int, unsigned int>(2,2);
42 ids[3] = std::pair<unsigned int, unsigned int>(0,1);
43 ids[4] = std::pair<unsigned int, unsigned int>(1,2);
44 ids[5] = std::pair<unsigned int, unsigned int>(2,0);
46 for (
unsigned int i=0; i<6; i++)
47 for (
unsigned int j=0; j<3; j++) {
50 T(ids[j].first, ids[i].first) * T(ids[j].second, ids[i].second);
58 T(ids[j+3].first, ids[i].first) * T(ids[j+3].second, ids[i].second) +
59 T(ids[j+3].first, ids[i].second) * T(ids[j+3].second, ids[i].first);
80 std::vector<std::pair<unsigned int, unsigned int> > ids(6);
81 ids[0] = std::pair<unsigned int, unsigned int>(0,0);
82 ids[1] = std::pair<unsigned int, unsigned int>(1,1);
83 ids[2] = std::pair<unsigned int, unsigned int>(2,2);
84 ids[3] = std::pair<unsigned int, unsigned int>(0,1);
85 ids[4] = std::pair<unsigned int, unsigned int>(1,2);
86 ids[5] = std::pair<unsigned int, unsigned int>(2,0);
88 for (
unsigned int i=0; i<6; i++)
89 for (
unsigned int j=0; j<3; j++) {
92 dT(ids[j].first, ids[i].first) * T(ids[j].second, ids[i].second) +
93 T (ids[j].first, ids[i].first) * dT(ids[j].second, ids[i].second);
97 dT(ids[j+3].first, ids[i].first) * T(ids[j+3].second, ids[i].second) +
98 T (ids[j+3].first, ids[i].first) * dT(ids[j+3].second, ids[i].second) +
99 dT(ids[j+3].first, ids[i].second) * T(ids[j+3].second, ids[i].first) +
100 T (ids[j+3].first, ids[i].second) * dT(ids[j+3].second, ids[i].first);
Matrix< Real, Dynamic, Dynamic > RealMatrixX
This creates the base class for functions that have a saptial and temporal dependence, and provide sensitivity operations with respect to the functions and parameters.
void stress_strain_transformation_matrix(const RealMatrixX &T, RealMatrixX &mat) const
prepares the matrix mat that transforms stress and strain tensors represented in a 6x1 vector from th...
void stress_strain_transformation_matrix_sens(const RealMatrixX &T, const RealMatrixX &dT, RealMatrixX &mat) const
CoordinateBase(const std::string &nm)