underworld3
underworld3 copied to clipboard
Coordinate transformation matrix does not match the naming convention of it's function
Hi,
mesh.CoordinateSystem.rRotN should gives a matrix to convert coordinates in reference frame (i.e., spherical/Annulus) to native frame (i.e., xyz). However, currently it output a matrix that map N --> r instead of r --> N.
which is
$$
\begin{bmatrix}
\cos(\theta) & \sin(\theta) \\
-\sin(\theta) & \cos(\theta) \\
\end{bmatrix}
$$
But actual matrix should be
Note: By taking transpose will output the right one.