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

Mailing list

Search web/mailinglist

Documentation
 Wiki (GitHub)
 McStas manual
 Publications

Links

Report bugs (GitHub)

Code-repository (GitHub)



McStas: BTsimple

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

The BTsimple Instrument

Example instrument showing how to calculate brilliance transfer using L_monitor's and WHEN statements

Identification

  • Site: Templates
  • Author: Peter Willendrup
  • Origin: DTU
  • Date: 2018/03/21

Description

Example instrument showing how to calculate brilliance transfer using L_monitor's and WHEN statements
Wavelength, divergence and PSD monitors are placed before and after an elliptic guide.
WHEN conditions restrict both monitor sets to neutrons within the divergence limits
maxhd and maxvd, so the ratio of the two wavelength spectra gives the brilliance
transfer of the guide.

Examples

(Test cases in bold)
  • Test: BTsimple.instr lambda=10 Detector: BTransfer_I=75.4758

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
lambdaAACentral wavelength produced at the source10
dlambdaAAHalfwidth of wavelength band produced at the source9.9
maxhddegMaximal horizontal divergence accepted3
maxvddegMaximal vertical divergence accepted3
gwmOpening-width of elliptic guide0.1
ghmOpening-height of elliptic guide0.1
gLmLength of elliptic guide50
gm1M-value of the guide coating6
delta1mOptional focal displacement of guide wrt source0
delta2mOptional focal displacement of guide wrt sample position0
Nbins1Number of bins on Wavelength / Brilliance transfer monitors101

Links


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

Generated for mcstas 3.10.5


Last Modified: Wed Dec 2 00:25:28 2026
Search website mailinglist archive GitHub repos