17 #ifndef _aspect_particle_property_elastic_tensor_decomposition_h
18 #define _aspect_particle_property_elastic_tensor_decomposition_h
50 std::array<unsigned int, 3>
102 std::array<std::array<double,3>,7>
115 {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
116 {0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
117 {0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
118 {0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
119 {0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
120 {0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
121 {0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
122 {0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0},
123 {0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0},
124 {0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0},
125 {0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0},
126 {0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0},
127 {0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0},
128 {0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0},
129 {0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0},
130 {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0},
131 {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0},
132 {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0},
133 {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0},
134 {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0},
135 {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
157 {0.5,0.5,0.0,0.0,0.0,0.0,0.0,0.0,0.0},
158 {0.5,0.5,0.0,0.0,0.0,0.0,0.0,0.0,0.0},
159 {0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0},
160 {0.0,0.0,0.0,0.5,0.5,0.0,0.0,0.0,0.0},
161 {0.0,0.0,0.0,0.5,0.5,0.0,0.0,0.0,0.0},
162 {0.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0},
163 {0.0,0.0,0.0,0.0,0.0,0.0,0.5,0.5,0.0},
164 {0.0,0.0,0.0,0.0,0.0,0.0,0.5,0.5,0.0},
165 {0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0}
172 {3./8. , 3./8. , 0.0, 0.0, 0.0, 1./(4.*
std::sqrt(2.)) , 0.0, 0.0, 1./4. },
173 {3./8. , 3./8. , 0.0, 0.0, 0.0, 1./(4.*
std::sqrt(2.)) , 0.0, 0.0, 1./4. },
174 {0.0 , 0.0 , 1.0, 0.0, 0.0, 0.0 , 0.0, 0.0, 0.0 },
175 {0.0 , 0.0 , 0.0, 0.5, 0.5, 0.0 , 0.0, 0.0, 0.0 },
176 {0.0 , 0.0 , 0.0, 0.5, 0.5, 0.0 , 0.0, 0.0, 0.0 },
178 {0.0 , 0.0 , 0.0, 0.0, 0.0, 0.0 , 0.5, 0.5, 0.0 },
179 {0.0 , 0.0 , 0.0, 0.0, 0.0, 0.0 , 0.5, 0.5, 0.0 },
180 {1./4. , 1./4. , 0.0, 0.0, 0.0, -1./(2.*
std::sqrt(2.)) , 0.0, 0.0, 0.5 }
235 std::vector<double> &particle_properties)
const override;
258 std::vector<std::pair<std::string, unsigned int>>
boost::iterator_range< particle_iterator > particle_iterator_range
void update_particle_properties(const ParticleUpdateInputs< dim > &inputs, typename ParticleHandler< dim >::particle_iterator_range &particles) const override
ElasticTensorDecomposition()=default
UpdateTimeFlags need_update() const override
std::vector< std::pair< std::string, unsigned int > > get_property_information() const override
void initialize_one_particle_property(const Point< dim > &position, std::vector< double > &particle_properties) const override
void initialize() override
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)
SymmetricTensor< 2, 3 > compute_voigt_stiffness_tensor(const SymmetricTensor< 2, 6 > &elastic_tensor)
std::array< std::array< double, 3 >, 7 > compute_elastic_tensor_SCCS_decompositions(const Tensor< 2, 3 > &unpermutated_SCCS, const SymmetricTensor< 2, 6 > &elastic_matrix)
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} }))
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,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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, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}, }))
const SymmetricTensor< 2, 9 > projection_matrix_hexagonal_to_isotropic(Tensor< 2, 9 >({ {3./15., 3./15., 3./15., std::sqrt(2.)/15., std::sqrt(2.)/15., std::sqrt(2.)/15., 2./15., 2./15., 2./15. }, {3./15., 3./15., 3./15., std::sqrt(2.)/15., std::sqrt(2.)/15., std::sqrt(2.)/15., 2./15., 2./15., 2./15. }, {3./15., 3./15., 3./15., std::sqrt(2.)/15., std::sqrt(2.)/15., std::sqrt(2.)/15., 2./15., 2./15., 2./15. }, {std::sqrt(2.)/15., std::sqrt(2.)/15., std::sqrt(2.)/15., 4./15., 4./15., 4./15., -std::sqrt(2.)/15., -std::sqrt(2.)/15., -std::sqrt(2.)/15. }, {std::sqrt(2.)/15., std::sqrt(2.)/15., std::sqrt(2.)/15., 4./15., 4./15., 4./15., -std::sqrt(2.)/15., -std::sqrt(2.)/15., -std::sqrt(2.)/15. }, {std::sqrt(2.)/15., std::sqrt(2.)/15., std::sqrt(2.)/15., 4./15., 4./15., 4./15., -std::sqrt(2.)/15., -std::sqrt(2.)/15., -std::sqrt(2.)/15. }, {2./15., 2./15., 2./15., -std::sqrt(2.)/15., -std::sqrt(2.)/15., -std::sqrt(2.)/15., 1./5., 1./5., 1./5. }, {2./15., 2./15., 2./15., -std::sqrt(2.)/15., -std::sqrt(2.)/15., -std::sqrt(2.)/15., 1./5., 1./5., 1./5. }, {2./15., 2./15., 2./15., -std::sqrt(2.)/15., -std::sqrt(2.)/15., -std::sqrt(2.)/15., 1./5., 1./5., 1./5. } }))
SymmetricTensor< 2, 3 > compute_dilatation_stiffness_tensor(const SymmetricTensor< 2, 6 > &elastic_tensor)
std::array< unsigned int, 3 > indexed_even_permutation(const unsigned int index)
const SymmetricTensor< 2, 9 > projection_matrix_tetragonal_to_hexagonal(Tensor< 2, 9 >({ {3./8., 3./8., 0.0, 0.0, 0.0, 1./(4.*std::sqrt(2.)), 0.0, 0.0, 1./4. }, {3./8., 3./8., 0.0, 0.0, 0.0, 1./(4.*std::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.*std::sqrt(2.)), 1./(4.*std::sqrt(2.)), 0.0, 0.0, 0.0, 3./4., 0.0, 0.0, -1./(2.*std::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.*std::sqrt(2.)), 0.0, 0.0, 0.5 } }))
::VectorizedArray< Number, width > sqrt(const ::VectorizedArray< Number, width > &)