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

 McStas manual
 Known problems



Links <- UPDATED!

Report bugs


McStas: templateSasView_Mantid Instrument at Mantid

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

The templateSasView_Mantid Instrument

Test instrument for the SasView_model component generating event data for Mantid. No guide / velocity selector etc.


  • Site: Mantid
  • Author: Peter Willendrup and Torben Nielsen
  • Origin: DTU, European Spallation Source ERIC
  • Date: 25 Jan 2016
  • Version:(Unknown)
  • Modification history:
    • Based on templatesSANS.instr by Kim Lefmann


Very simple test instrument for the SasView_model component.

Modified to show a proof of concept method for storing a 'Mantid friendly' type of NeXus file.

Needed steps (McStas):
1) Compile your instrument with NeXus library and ISO c99 support
2) Generate an IDF using mcdisplay templateSANS_Mantid --format=Mantid -n0
3) mcrun templateSasView_Mantid -n1e6 --format=NeXus

Needed steps (Mantid):
a) Load McStas NeXus file
b) Run Mantid algorithm: 'ConvertUnits' using the 'wavelenth' and 'elastic' options
c) Run Mantid algorithm: 'Qxy' using the options 'MaxQxy=0.6', 'DeltaQ=0.003', 'SolidAngleWeighting=False'

Input parameters

Parameters in boldface are required; the others are optional.
Name Unit Description Default
lambda AA Mean wavelength of neutrons 6
dlambda AA Wavelength spread of neutrons 0.05


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

Generated automatically by McDoc, Peter Willendrup <> / Tue May 26 13:03:59 2020

Last Modified: Tuesday, 26-May-2020 15:03:59 CEST
Search website mailinglist archive GitHub repos