Local coordinates for 3D beamline layout
Posted: 28 Sep 2011, 16:37
Dear Michael,
Please, could you explain the meaning of "theta", "phi" and "psi" angles in the floor_coordinates output?
How can I obtain the local coordinate system using these angles?
I'm trying to understand the coordinate transformation when the "TILT" parameter is used in BEND. It seems like in some cases the floor_coordinates command gives a wrong answer for the angles of local coordinate system (if I understand the meaning of these angles correctly) -- please see the attached pictures for example: red arrows here show the x-direction and blue arrows show y-direction. As you can see in the second picture the coordinate system after the second blue SBEND has wrong direction and then it goes back to normal.
The coordinate system transformation used in this script is the following: 1) rotate by +psi around Z-axis 2) rotate by -phi around X-axis 3) rotate by +theta around Y axis.
The lattice is in the 3Dlayout.tar.gz archive.
/Alexey
Please, could you explain the meaning of "theta", "phi" and "psi" angles in the floor_coordinates output?
How can I obtain the local coordinate system using these angles?
I'm trying to understand the coordinate transformation when the "TILT" parameter is used in BEND. It seems like in some cases the floor_coordinates command gives a wrong answer for the angles of local coordinate system (if I understand the meaning of these angles correctly) -- please see the attached pictures for example: red arrows here show the x-direction and blue arrows show y-direction. As you can see in the second picture the coordinate system after the second blue SBEND has wrong direction and then it goes back to normal.
The coordinate system transformation used in this script is the following: 1) rotate by +psi around Z-axis 2) rotate by -phi around X-axis 3) rotate by +theta around Y axis.
The lattice is in the 3Dlayout.tar.gz archive.
/Alexey