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: templateSANS_Mantid Instrument at Templates

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

The templateSANS_Mantid Instrument

Test instrument for the Sans_spheres component. No guide / velocity selector etc. Will be developed further at later time.


  • Site: Templates
  • Author: Kim Lefmann
  • Origin: Risoe
  • Date: 19th Dec 2003.
  • Version:(Unknown)


Very simple test instrument for the Sans_spheres componen

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

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

Example: lambda=6 

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
r AA Radius of scattering hard spheres 150
PHI 1 Particle volume fraction 1e-3
Delta_Rho fm/AA^3 Excess scattering length density 0.6
sigma_abs barns Absorption cross section at 2200 m/s 0.0


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

Generated automatically by McDoc, Peter Willendrup <> / Wed Jan 12 15:13:21 2022

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