17 #ifndef _aspect_particle_property_elastic_tensor_decomposition_h 18 #define _aspect_particle_property_elastic_tensor_decomposition_h 35 std::array<unsigned int, 3>
74 const SymmetricTensor<2,3> &voigt_stiffness_tensor);
87 std::array<std::array<double,3>,7>
89 const Tensor<2,3> &unpermutated_SCCS,
90 const SymmetricTensor<2,6> &elastic_matrix);
100 {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
101 {0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
102 {0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
103 {0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
104 {0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
105 {0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
106 {0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
107 {0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0},
108 {0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0},
109 {0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0},
110 {0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0},
111 {0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0},
112 {0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0},
113 {0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0},
114 {0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0},
115 {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0},
116 {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0},
117 {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0},
118 {0,0,0,0,0,0,0,0,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 3./15. , sqrt(2.)/15. , sqrt(2.)/15. , sqrt(2.)/15. , 2./15. , 2./15. , 2./15. },
169 {3./15. , 3./15. , 3./15. , sqrt(2.)/15. , sqrt(2.)/15. , sqrt(2.)/15. , 2./15. , 2./15. , 2./15. },
170 {3./15. , 3./15. , 3./15. , sqrt(2.)/15. , sqrt(2.)/15. , sqrt(2.)/15. , 2./15. , 2./15. , 2./15. },
171 {sqrt(2.)/15., sqrt(2.)/15., sqrt(2.)/15., 4./15. , 4./15. , 4./15. , -sqrt(2.)/15., -sqrt(2.)/15., -sqrt(2.)/15. },
172 {sqrt(2.)/15., sqrt(2.)/15., sqrt(2.)/15., 4./15. , 4./15. , 4./15. , -sqrt(2.)/15., -sqrt(2.)/15., -sqrt(2.)/15. },
173 {sqrt(2.)/15., sqrt(2.)/15., sqrt(2.)/15., 4./15. , 4./15. , 4./15. , -sqrt(2.)/15., -sqrt(2.)/15., -sqrt(2.)/15. },
174 {2./15. , 2./15. , 2./15. , -sqrt(2.)/15., -sqrt(2.)/15., -sqrt(2.)/15., 1./5. , 1./5. , 1./5. },
175 {2./15. , 2./15. , 2./15. , -sqrt(2.)/15., -sqrt(2.)/15., -sqrt(2.)/15., 1./5. , 1./5. , 1./5. },
176 {2./15. , 2./15. , 2./15. , -sqrt(2.)/15., -sqrt(2.)/15., -sqrt(2.)/15., 1./5. , 1./5. , 1./5. }
215 initialize_one_particle_property (
const Point<dim> &position,
216 std::vector<double> &particle_properties)
const override;
223 typename ParticleHandler<dim>::particle_iterator_range &particles)
const override;
230 need_update ()
const override;
239 std::vector<std::pair<std::string, unsigned int>>
240 get_property_information()
const override;
std::array< unsigned int, 3 > indexed_even_permutation(const unsigned int index)
static const SymmetricTensor< 2, 9 > projection_matrix_tetragonal_to_hexagonal(Tensor< 2, 9 >({ {3./8., 3./8., 0.0, 0.0, 0.0, 1./(4.*sqrt(2.)), 0.0, 0.0, 1./4. }, {3./8., 3./8., 0.0, 0.0, 0.0, 1./(4.*sqrt(2.)), 0.0, 0.0, 1./4. }, {0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 }, {0.0, 0.0, 0.0, 0.5, 0.5, 0.0, 0.0, 0.0, 0.0 }, {0.0, 0.0, 0.0, 0.5, 0.5, 0.0, 0.0, 0.0, 0.0 }, {1./(4.*sqrt(2.)), 1./(4.*sqrt(2.)), 0.0, 0.0, 0.0, 3./4., 0.0, 0.0, -1./(2.*sqrt(2.))}, {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5, 0.5, 0.0 }, {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5, 0.5, 0.0 }, {1./4., 1./4., 0.0, 0.0, 0.0, -1./(2.*sqrt(2.)), 0.0, 0.0, 0.5 } }))
static const SymmetricTensor< 2, 9 > projection_matrix_monoclinic_to_orthorhombic(Tensor< 2, 9 >({ {1, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 1, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 1, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 1, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 1, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 1} }))
unsigned int cpo_elastic_tensor_data_position
Tensor< 2, 3 > compute_unpermutated_SCCS(const SymmetricTensor< 2, 3 > &dilatation_stiffness_tensor, const SymmetricTensor< 2, 3 > &voigt_stiffness_tensor)
static const SymmetricTensor< 2, 21 > projection_matrix_triclinic_to_monoclinic(Tensor< 2, 21 >({ {1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,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 0, 0, 0, 0, 0, 0, 0, 1, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}, }))
std::array< std::array< double, 3 >, 7 > compute_elastic_tensor_SCCS_decompositions(const Tensor< 2, 3 > &unpermutated_SCCS, const SymmetricTensor< 2, 6 > &elastic_matrix)
SymmetricTensor< 2, 3 > compute_voigt_stiffness_tensor(const SymmetricTensor< 2, 6 > &elastic_tensor)
static const SymmetricTensor< 2, 9 > projection_matrix_hexagonal_to_isotropic(Tensor< 2, 9 >({ {3./15., 3./15., 3./15., sqrt(2.)/15., sqrt(2.)/15., sqrt(2.)/15., 2./15., 2./15., 2./15. }, {3./15., 3./15., 3./15., sqrt(2.)/15., sqrt(2.)/15., sqrt(2.)/15., 2./15., 2./15., 2./15. }, {3./15., 3./15., 3./15., sqrt(2.)/15., sqrt(2.)/15., sqrt(2.)/15., 2./15., 2./15., 2./15. }, {sqrt(2.)/15., sqrt(2.)/15., sqrt(2.)/15., 4./15., 4./15., 4./15., -sqrt(2.)/15., -sqrt(2.)/15., -sqrt(2.)/15. }, {sqrt(2.)/15., sqrt(2.)/15., sqrt(2.)/15., 4./15., 4./15., 4./15., -sqrt(2.)/15., -sqrt(2.)/15., -sqrt(2.)/15. }, {sqrt(2.)/15., sqrt(2.)/15., sqrt(2.)/15., 4./15., 4./15., 4./15., -sqrt(2.)/15., -sqrt(2.)/15., -sqrt(2.)/15. }, {2./15., 2./15., 2./15., -sqrt(2.)/15., -sqrt(2.)/15., -sqrt(2.)/15., 1./5., 1./5., 1./5. }, {2./15., 2./15., 2./15., -sqrt(2.)/15., -sqrt(2.)/15., -sqrt(2.)/15., 1./5., 1./5., 1./5. }, {2./15., 2./15., 2./15., -sqrt(2.)/15., -sqrt(2.)/15., -sqrt(2.)/15., 1./5., 1./5., 1./5. } }))
static const SymmetricTensor< 2, 9 > projection_matrix_orthorhombic_to_tetragonal(Tensor< 2, 9 >({ {0.5, 0.5, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, {0.5, 0.5, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, {0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, {0.0, 0.0, 0.0, 0.5, 0.5, 0.0, 0.0, 0.0, 0.0}, {0.0, 0.0, 0.0, 0.5, 0.5, 0.0, 0.0, 0.0, 0.0}, {0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0}, {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5, 0.5, 0.0}, {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5, 0.5, 0.0}, {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0} }))
SymmetricTensor< 2, 3 > compute_dilatation_stiffness_tensor(const SymmetricTensor< 2, 6 > &elastic_tensor)