/******************************************************************************* * McStas instrument definition URL=http://www.mcstas.org * * Instrument: templateLaue * * %Identification * Written by: K. Nielsen * Date: June 2nd, 2010 * Origin: ILL * Modified by: EF, * %INSTRUMENT_SITE: Templates * * A simple Laue diffractometer * * %Description * A single crystal sample is illuminated with a white cold beam. * Based on a Laue tutorial written by K. Nielsen, Feb 7, 2000. * * %Example: templateLaue reflections=YBaCuO.lau Detector: det_I=1.14351e+07 * %Example: templateLaue reflections=leucine.lau Detector: det_I=4.63548e+08 * * %Parameters * reflections: [string] Single crystal reflection list * * %End *******************************************************************************/ /* Change name of instrument and input parameters with default values */ DEFINE INSTRUMENT templateLaue(string reflections="Ho2Ti2O7.lau", Omega=0.1, ax=-7.1422,ay=0,az=7.1422, bx=7.1422,by=0,bz=7.1422, cx=0,cy=10.10060,cz=0) TRACE COMPONENT Origin = Progress_bar() AT (0,0,0) ABSOLUTE COMPONENT source = Source_simple( radius=0.02, focus_xw=0.01, focus_yh=0.01, lambda0=7, dlambda=5, flux=1e12) AT (0,0,0) ABSOLUTE COMPONENT slit = Slit( xwidth=0.01, yheight=0.01) AT (0,0,5) RELATIVE source COMPONENT sample = Single_crystal( xwidth=0.01, yheight=0.01, zdepth=0.01, delta_d_d=1e-4, mosaic = 5, sigma_inc=0, reflections=reflections, order=1, ax=ax,ay=ay,az=az, bx=bx,by=by,bz=bz, cx=cx,cy=cy,cz=cz) AT (0,0,Omega) RELATIVE slit EXTEND %{ if (!SCATTERED) ABSORB; /* perfect beam stop */ %} COMPONENT det= PSD_monitor_4PI(radius=1, nx=360,ny=180,filename="psd") AT (0,0,0) RELATIVE sample END