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

 Linux Install (deb/rpm)
 Mac OS X Install
 Unix Install (src code)
 Windows Install
 Other Downloads (share)

Mailing list

Search web/mailinglist

 McStas manual
 Known problems
 C Compilers



Links <- UPDATED!

Report bugs


McStas Ubuntu live-dvd

McStas: Test_Scatter_log_losses Instrument at Templates

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

The Test_Scatter_log_losses Instrument

Example instrument of Scatter_logger feature usage for detection of lost instensity


  • Site: Templates
  • Author: Erik B Knudsen (
  • Origin: DTU Fysik
  • Date: 2013
  • Version:(Unknown)


This instrument is an example of how to use thet newly developed (and experimental)
Scatter_logger family of components in McStas. In this example the neutrons deposited in the
guide wall of a LENGTH m long straight guide are monitored bytwo instances of Monitor_nD
The first (mnd1) stretches the full length of the guide and simply monitors the intensity lost in
the guide walls, the latter (mnd2) shows the lost intensity binned by neutron wavelength in the last
1m of guide.

Also include (but commented out) is a code-snippet that would dump the lost neutrons to stdout

Example: mcrun Test_Scatter_log_losses LENGTH=10

Input parameters

Parameters in boldface are required; the others are optional.
Name Unit Description Default
LENGTH m The length of the guide to be modelled 10


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

Generated automatically by McDoc, Peter Willendrup <> / Tue May 29 09:12:10 2018

Last Modified: Tuesday, 29-May-2018 11:12:10 CEST
Search website mailinglist archive GitHub repos