McStas logo McStas - A neutron ray-trace simulation package ILL; PSI; ESS Niels Bohr Institute DTU Physics

McStas

About McStas
 Conditions of use
 Authors/Contacts
 Project funding

Download
 Components
 Other Downloads (share)

Mailing list

Search web/mailinglist

Documentation
 Wiki (GitHub)
 McStas manual
 Publications

Links

Report bugs (GitHub)

Code-repository (GitHub)


McStas: Test_Monochromators

[ Identification | Description | Examples | Input parameters | Links ]

The Test_Monochromators Instrument

Compares intensities of Monochromator components.

Identification

  • Site: Tests_optics
  • Author: Peter Christiansen
  • Origin: RISOE.
  • Date: July 2006.

Description

Very simple setup to compare intensities diffracted by Monochromators.
It shows that implementations are equivalent.

PG 002 oriented examples:

Examples

(Test cases in bold)
  • Test: Mono=1 Detector: psd1_I=8.9e-05
  • Test: Mono=2 Detector: psd1_I=8.9e-05
  • Test: Mono=3 Detector: psd1_I=8.9e-05
  • Test: Mono=4 Detector: psd1_I=8.9e-05
  • Test: Mono=5 Detector: psd1_I=8.9e-05
  • Test: Mono=6 Detector: psd1_I=1.0e-04
  • Test: Mono=6 PG=1 Detector: psd1_I=1.3e-04
  • Test: Mono=6 powder=1 Moz=60 Detector: psd1_I=4.5e-07
  • Test: Mono=6 ay=2.13389 az=-1.232 bz=2.464 cx=6.711 Detector: psd1_I=1.0e-04
  • Test: Mono=6 ay=2.94447 by=1.47224 bz=2.54999 cx=0.936252 recip=1 Detector: psd1_I=1.0e-04
  • Test: Mono=7 ay=2.94447 by=1.47224 bz=2.54999 cx=0.936252 recip=1 Detector: psd1_I=9.6e-05
  • SiO2 lattice orientation examples:
  • Example: Mono=1 DM=4.25504 lmin=0.1 lmax=7.0 lambda=6.0
  • Example: Mono=6 DM=4.25504 lmin=0.1 lmax=7.0 lambda=6.0 reflections=SiO2_quartza.lau ax=4.3271 az=-2.49825 bz=4.9965 cy=-5.4543
  • Example: Mono=6 DM=4.25504 lmin=0.1 lmax=7.0 lambda=6.0 reflections=SiO2_quartza.lau recip=1 ax=1.45205 bx=0.726027 bz=1.25752 cy=-1.15197
  • Example: Mono=7 DM=4.25504 lmin=0.1 lmax=7.0 lambda=6.0 NXrefs=SiO2-alpha_sg154_AlphaQuartz.ncmat recip=1 ax=1.45205 bx=0.726027 bz=1.25752 cy=-1.15197

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
Mono1Choice of Monochromator component to use, with 1=Monochromator_flat 2=Monochromator_pol 3=Monochromator_pol (forcing 1% events to be reflected) 4=Monochromator_curved (in flat mode) 5=Monochromator_2foc (contrib, flat mode) 6=Single_crystal 7=NCrystal1
lminAAMinimum wavelength produced from source1.6
lmaxAAMaximum wavelength produced from source2.4
MozarcminMosaicity40
reflectionsstrinput-file for Single_crystal (Mono=6)"C_graphite.lau"
NXrefsstrinput-file for NCrystal (Mono=7)"C_sg194_pyrolytic_graphite.ncmat"
DMAAMono lattice spacing (should be chosen compatible with file-unput when Mono=6/73.3539
PG1PG-mode for Single_crystal (range 0-1)0
powder1Powder-mode for Single_crystal0
order1Maximum order of scattering in Single_crystal0
axAA or 1/AAx-coordinate of 1st direct/recip lattice unit cell vector (depends on recip setting)0
ayAA or 1/AAy-coordinate of 1st direct/recip lattice unit cell vector (depends on recip setting)0
azAA or 1/AAz-coordinate of 1st direct/recip lattice unit cell vector (depends on recip setting)0
bxAA or 1/AAx-coordinate of 2nd direct/recip lattice unit cell vector (depends on recip setting)0
byAA or 1/AAy-coordinate of 2nd direct/recip lattice unit cell vector (depends on recip setting)0
bzAA or 1/AAz-coordinate of 2nd direct/recip lattice unit cell vector (depends on recip setting)0
cxAA or 1/AAx-coordinate of 3rd direct/recip lattice unit cell vector (depends on recip setting)0
cyAA or 1/AAy-coordinate of 3rd direct/recip lattice unit cell vector (depends on recip setting)0
czAA or 1/AAx-coordinate of 3rd direct/recip lattice unit cell vector (depends on recip setting)0
recip1Flag to indicate if ax/y/z, bx/y/z, cx/y/z lattice corrdinates are in direct (=0) or reciprocal space units0
dthickmThickness of mono slab in Mono=6/7 cases0.0015
p_transmit1Probability of transmission in Single_crystal Mono=6 case0.001
lambdaAATarget mochromator wavelength2.0

Links


[ Identification | Description | Examples | Input parameters | Links ]

Generated for mcstas 3.8.4


Last Modified: Friday, 11-Sep-2026 15:00:09 CEST
Search website mailinglist archive GitHub repos