Phase Space Transformation
Kristian Nielsen
kristian.nielsen at risoe.dk
Mon May 3 10:06:58 CEST 1999
> Dear Kristian!
>
> It's been some time ago since Grenoble but I found some time and tried
> to use the phase space transformation (which is nothing than bragg
> scattering at a moving crystal with a large mosaic). It is based upon
> Abd now the question: Can you crosscheck this routine if you have some
> time to do it? I'm not sure if this would be interesting for anybody,
Thanks for sending me your work on the phase space transformer
component. I am sure that this would be useful for others when it is
finished, especially if you find the time to document it.
Ok, I looked at your code. I haven't completely understood the code, but
I did manage to find a few problems, and by fixing them get some counts
in the detector. The following points should get you going again.
- When you compute mosaic_h, you use asin(Q/ki_betrag). This should be
asin(Q/2.0/ki_betrag), should it not?
- There is a problem in your code in that it makes assumptions about
from which direction the neutron is coming (I think). This is partly
inherited from the admittedly not particularly good Monochromator.comp
code. For example, in your test instrument the neutron is actually
intersecting the crystal from behind (v_x > 0), so when you compute G,
you have to make it negative:
gz_h = -Q * sin(mosaic_h);
gx_h = -Q * cos(mosaic_h);
- I do not understand your formula for computing kf. It seems to me
that your code uses kf = 2*g - ki, that should be kf = 2*g + ki, I
think(?).
- In your instrument, the crystal is at the angle theta=69.2. If the
crystal was stationary, the neutron would be scattered at an angle of
2*theta, with phase transformation it might be something else, but the
detector should be at some other angle than theta, shouldn't it? A good
way to test this is to put a 4PI PSD detector around the PST component.
I put up my modifications to your code on the web server at
http://neutron.risoe.dk/mcstas/support/kirstein/
but the code still needs more modifications.
I hope this helps, please feel free to ask again if you have further
questions.
- Kristian.
More information about the mcstas-users
mailing list