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

McStas

About McStas
 Conditions of use
 Authors/Contacts
 Project funding

Download
 Components
 Other Downloads (share)

Mailing list

Search web/mailinglist

Documentation
 Wiki (GitHub)
 McStas manual
 Publications

Links

Report bugs (GitHub)

Code-repository (GitHub)


McStas: templateSasView

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

The templateSasView Instrument

Test instrument for some SasView_model components. No guide / velocity selector etc.

Identification

  • Site: Templates
  • Author: Torben Nielsen
  • Origin: DTU Physics / ESS DMSC
  • Date:

Description

Very simple test instrument for 3 examples from the suite of SasView_ components.
Select sample model with 'model_index':
1= SasView_barbell
3= SasView_bcc_paracrystal
47= SasView_parallelepiped

Examples

(Test cases in bold)
  • Test: model_index=1 Ncount=1e6 par1=4 par2=1 par3=40 par4=20 par5=400 Detector: detector_I=5e6
  • Test: model_index=3 Ncount=1e6 par1=220 par2=0.06 par3=40 par4=4 par5=1 Detector: detector_I=3.3e4
  • Test: model_index=47 Ncount=1e6 par1=4 par2=2 par3=35 par4=75 par5=400 Detector: detector_I=2.5e6

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
lambdaAAMean wavelength of neutrons6
dlambdaAAWavelength spread of neutrons0.05
model_index SASmodels model index (see SasView_model.comp mcdoc page)47
par1 Slot 1 in SASmodel parameter vector0
par2 Slot 2 in SASmodel parameter vector0
par3 Slot 3 in SASmodel parameter vector0
par4 Slot 4 in SASmodel parameter vector0
par5 Slot 5 in SASmodel parameter vector0
par6 Slot 6 in SASmodel parameter vector0
par7 Slot 7 in SASmodel parameter vector0
par8 Slot 8 in SASmodel parameter vector0
Ncount0

Links


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

Generated for mcstas 3.8.4


Last Modified: Friday, 11-Sep-2026 15:00:09 CEST
Search website mailinglist archive GitHub repos