RealTensorValue in RotationMatrix #16140
-
For a I ask because I'm looking at the rotation matrix from euler angles computed here. It looks like it is following the Z1X2Z3 convention as expected, but for instance the 2nd entry (row 1 column 2) isn't going in the 2nd entry for the variable, it's going in the 4th (index 3), which is where would expect column 1 row 2, unless it really does need to be filled in top to bottom. Or perhaps the function is just doing the transpose? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@dschwen Do you know the answer to this? |
Beta Was this translation helpful? Give feedback.
-
In case anybody finds this, I think the answer is clear and I just wasn't seeing it. As the documentation clearly stated, the Bunge convention is used for the Euler angles, meaning the angles are used to build the passive (sample-to-crystal) rotation matrix, so yes, the transpose of the matrix is computed and applied when using Euler angles. The documentation has been updated a bit. See also #16341. I added some functionality such that one can apply a rotation matrix directly to the elasticity tensor. |
Beta Was this translation helpful? Give feedback.
In case anybody finds this, I think the answer is clear and I just wasn't seeing it. As the documentation clearly stated, the Bunge convention is used for the Euler angles, meaning the angles are used to build the passive (sample-to-crystal) rotation matrix, so yes, the transpose of the matrix is computed and applied when using Euler angles.
The documentation has been updated a bit. See also #16341. I added some functionality such that one can apply a rotation matrix directly to the elasticity tensor.