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

[ Identification | Description | Input parameters | Links ]

The Test_Sources Instrument

A test instrument to compare sources


  • Site: Tests_optics
  • Author: FARHI Emmanuel (
  • Origin: ILL
  • Date: Aug 3, 2008


A test instrument to compare sources and check they provide the valid
sprectrum and intensity. It shows that the first 4 flat sources are equivalent,
the 2 Maxwellian sources as well.

WARNING: Result of test no. 1 for Source_adapt.comp is not correct if MPI is used, as
that source component does not support MPI.

Example: source=1 Detector: m1_I=9.97273e+11

Input parameters

Parameters in boldface are required; the others are optional.
source1selection of the source to use in 1=Source_adapt, 2=Source_div, 3=Source_simple, 4=Source_gen (simple), 5=Source_gen, 6=Source_Maxwell_3, 7=ESS_butterfly, 8=Moderator0
LminAAMinimum wavelength produced at source1
LmaxAAMaximum wavelength produced at source11


[ Identification | Description | Input parameters | Links ]

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

Last Modified: Wednesday, 03-Jan-2024 19:59:10 CET
Search website mailinglist archive GitHub repos