McStas
P. Horn
horn at ill.fr
Wed Aug 25 14:23:22 CEST 1999
Hello!
At working with McStas i found a bug in the component Monochromator at
line 59. The instrument definition i attached to this e-mail should
reproduce the error or not.
Something else:
What else monitors are existing now?
I have only seen the official and unofficial components on your
McStas-pages.
I have written a Monitor wich gives a 2D-output of the energy an the
vertical divergence. Do you want it?
Thanks a lot in forward.
Pay Schulze Horn
-------------- next part --------------
DEFINE INSTRUMENT mono_bug()
DECLARE
%{
double mono_q, lambda_zero, e_zero;
%}
INITIALIZE
%{
lambda_zero=5;
e_zero=((2*PI)/lambda_zero)*((2*PI)/lambda_zero)*K2V*K2V*VS2E;
mono_q=4*PI*sin(DEG2RAD*45)/lambda_zero; /* Here is the angle 45 deg not 80 */
%}
TRACE
COMPONENT a1=Arm()
AT (0,0,0) ABSOLUTE
ROTATED (0,0,0) ABSOLUTE
COMPONENT s=Source_div(
width=0.001,
height=0.001,
hdiv=0,
vdiv=0,
E0=e_zero,
dE=0)
AT (0,0,0) RELATIVE a1
ROTATED (0,0,0) RELATIVE a1
COMPONENT m1=Monochromator(
zmin=-0.5,
zmax=0.5,
ymin=-0.5,
ymax=0.5,
mosaich=15,
mosaicv=15,
r0=1,
Q=mono_q)
AT (0,0,0.2) RELATIVE a1
ROTATED (0,40,0) RELATIVE a1
COMPONENT a2=Arm()
AT (0,0,0.3) RELATIVE a1
ROTATED (0,80,0) RELATIVE a1 /* But here is an angle above twice of the
mosiaic.*/
COMPONENT moni1=Monitor(
xmin=-0.3,
xmax=0.3,
ymin=-0.3,
ymax=0.3)
AT (0,0,0.2) RELATIVE a2
ROTATED (0,0,0) RELATIVE a2
END
More information about the mcstas-users
mailing list