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


About McStas
 Conditions of use
 Project funding

 Other Downloads (share)

Mailing list

Search web/mailinglist

 Wiki (GitHub)
 McStas manual


Report bugs (GitHub)

Code-repository (GitHub)

McStas: Test_single_magnetic_crystal

[ Identification | Description | Input parameters | Links ]

The Test_single_magnetic_crystal Instrument

Unit test instrument for magnetic single crystal


  • Site: Test
  • Author: Erik B Knudsen (
  • Origin: DTU Physics
  • Date: Jan 2020


A very simple unit test/example instrument for the experimental Single_magnetic_crystal
component. It is a very simple implementation of a Laue camera using 4PI spherical

Input parameters

Parameters in boldface are required; the others are optional.
L0AACentre wavelength to simulate4
dLAAHalf wavelength spread to sample3.91
OMdegSample rotation0
TTdegRotation of detector arm0
PX x-component of initial polarization0
PY y-component of initial polarization1
PZ z-component of initial polarization0
MOSarcminIsotropic mosaic of the crystal.100
QMINAA^-1lower boundary of momentum transfer range to generate hkls in0.1
QMAXAA^-1upper boundary of momentum transfer range to generate hkls in5


  • Source code for Test_single_magnetic_crystal.instr.
  • A reference/HTML link for more information

[ Identification | Description | Input parameters | Links ]

Generated on 2023-09-19 20:01:36

Last Modified: Wednesday, 03-Jan-2024 19:59:10 CET
Search website mailinglist archive GitHub repos