-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix strain to stress conversion in TensorMap class, better TensorMap documentation #345
Conversation
ImageD11/sinograms/tensor_map.py
Outdated
# rotate the strain tensor from ImageD11 coordinate system to IEEE 1976 coordinate system | ||
# determine rotation matrix E | ||
C_c = np.linalg.inv(B0).T | ||
E = np.column_stack((C_c[:, 0], np.cross(C_c[:, 2], C_c[:, 0]), C_c[:, 2])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks extremely dodgy. Not a rotation.
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
The IEEE <-> ImageD11 rotation has now been removed from |
Sure - go for it. |
We now compute the Biot stress tensor in the crystal reference frame (ImageD11 convention), given a Biot strain tensor in the crystal reference frame (ImageD11 convention, the default obtained when calling
ImageD11.grain.eps_crystal_matrix(dzero_cell)
) and a 6x6 stiffness tensor (Voigt-compatible, IEEE 1976 lattice convention, what materialsproject.org gives you).Thanks to @AxelHenningsson and @jonwright for discussions on this.
Partially fixes #194 - the dream is to move the
Numba
kernels fromtensor_map.py
intostress.py
eventually