topoptlab.rotation_matrices module
- topoptlab.rotation_matrices.R_2d(theta)[source]
2D rotation matrix
- Parameters:
theta (np.ndarray, shape (n)) – angle in radian.
- Returns:
R – rotation matrices.
- Return type:
np.ndarray shape (n,2,2)
- topoptlab.rotation_matrices.R_3d(theta, phi)[source]
3D rotation matrix.
- Parameters:
theta (np.ndarray, shape (n,)) – angle in radian for rotation around z axis.
phi (np.ndarray, shape (n,)) – angle in radian for rotation around y axis.
- Returns:
R – Rotation matrices for each (theta, phi) pair.
- Return type:
np.ndarray, shape (n, 3, 3)
- topoptlab.rotation_matrices.Rv_2d(theta)[source]
2D rotation matrix for tensors of 2nd order (“Voigt vectors”) and 4th order (“Voigt matrices”).
- Parameters:
theta (np.ndarray, shape (n)) – angle in radian.
- Returns:
R – rotation matrices.
- Return type:
np.ndarray shape (n,3,3)
- topoptlab.rotation_matrices.dRvdtheta_2d(theta)[source]
First order derivtive of 2D rotation matrix for tensors of 2nd order (“Voigt vectors”) and 4th order (“Voigt matrices”).
- Parameters:
theta (np.ndarray, shape (n)) – angle in radian.
- Returns:
dRvdtheta – rotation matrices.
- Return type:
np.ndarray shape (n,3,3)