McStas

Kristian Nielsen kristian.nielsen at risoe.dk
Fri Mar 12 10:48:39 CET 1999


> You promised some headache in your manual about conventions ... In your
> proposed convention about xyz a word is missing about rotations, what's
> their convention?

I am not quite sure what you mean here ... I do not think we have any
special conventions for rotations, since the meanings of rotations is
pretty much given when the meaning of the axes is fixed. Eg. once we say
that the Y axis is pointing upwards, it is clear what a rotation around
the Y axis means.

Maybe the following copy of an answer by me on the mailing list will be
of help to you, otherwise ask again.

 - Kristian.

------------------------------------------------------------------------
> Now the question:
> I'm trying to optimize the angle of a specific mirror in the neutron
> path. From the manual and also the results of the calculations it is not
> quite clear to me, how the mirror is moved and rotated and what the
> reference points are.

Yes, this is a point that can be a bit confusing, and I am planning on
writing a clarification in the next version of the manual.

But if you approach the issue in the right way, it is not at all
complicated. The coordinate system of a component has a position and an
orientation. The position is the spatial location of the reference
point. The orientation is the direction of the axes.

Now, when a component is specified in the instrument definition, it has
an AT and a ROTATED specification. The AT specifies the position and the
ROTATED specifies the orientation.

Thus if component C is AT (x,y,z) relative component A and ROTATED
(v,0,0) relative component B, the reference point of C is at (x,y,z) in
the coordinate system of A and the axes of C are the axes of B rotated
the angle v around the X axis of B.






More information about the mcstas-users mailing list