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: 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 <> / Wed Jan 12 15:13:32 2022

Last Modified: Wednesday, 12-Jan-2022 16:13:32 CET
Search website mailinglist archive GitHub repos