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

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

The Test_Sources Instrument

A test instrument to compare sources

Identification

  • Site: Tests_optics
  • Author: FARHI Emmanuel (farhi@ill.fr)
  • Origin: ILL
  • Date: Aug 3, 2008

Description

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

Examples

(Test cases in bold)
  • Test: source=2 Detector: m1_I=9.48467e+11
  • Test: source=3 Detector: m1_I=9.96553e+11
  • Test: source=4 Detector: m1_I=9.966e+11
  • Test: source=5 Detector: m1_I=2.4279e+11
  • Test: source=6 Detector: m1_I=2.42284e+11
  • Test: source=7 Detector: m1_I=2.28139e+13
  • Test: source=8 Detector: m1_I=5.0787e+13

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
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

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