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: ILL_H16_IN5_Mantid

[ Identification | Description | Input parameters | Links ]

The ILL_H16_IN5_Mantid Instrument

The full ILL IN5B ToF spectrometer adapted for use with Mantid-friendly NeXus output.


  • Site: Mantid
  • Author: E. Farhi, J. Ollivier, Celia Castan Guerrero
  • Origin: Mantid
  • Date: Jan 2004-2009


The full ILL IN5B: H16 guide & chopper system + sample + PSD and tof detector, adapted for
use with Mantid-friendly NeXus output. To compile and run, use these steps:

  1. Compile the instrument with NeXus support - zero neutrons:
    • export MCSTAS_CFLAGS="-g -lm -O2 -DUSE_NEXUS -lNeXus"
    • mcrun -c -n0 --format=NeXus ILL_H16_IN5_Mantid.instr --no-output-files
  2. Generate the IDF in XML format using the (Perl) mcdisplay tool:
    • mcdisplay ILL_H16_IN5_Mantid.instr -n0 --format=Mantid
  3. Run a simulation with NeXus output
    • mcrun ILL_H16_IN5_Mantid.instr --format=NeXus
The IN5@ILL TOF spectrometer from cold source to final detector, with sample. The detector model includes Fe housing and tube cross talk absorbing masks with angle restriction (neutrons that scatter in Fe in front of a tube and enter a different tube are absorbed).

Input parameters

Parameters in boldface are required; the others are optional.
lambdaAAmean incident wavelength4.5
dlambdaAAwavelength half width. Use e.g. 0.8*lambda for white beam.0.09


[ Identification | Description | Input parameters | Links ]

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

Last Modified: Tuesday, 16-Apr-2024 20:05:20 CEST
Search website mailinglist archive GitHub repos