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

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

The Test_Mask Instrument

Unit test instrument for the Mask and Absorber components

Identification

  • Site: Tests_optics
  • Author: Erik B Knudsen (erkn@fysik.dtu.dk)
  • Origin: DTU Physics
  • Date: 12/03/2014

Description

A non-divergent beam impinges on a masking image, with 2D detectors up- and downstream
of the mask. Ported from the McXtrace Test_Mask instrument.
The mask transmits 1/4 of the beam (invert=0) or 3/4 (invert=1).
With absorber=1 the mask is replaced by an Absorber block covering the x>0 half of the beam.

Examples

(Test cases in bold)
  • Test: invert=0 Detector: psd1_I=1.52973e-10
  • Test: invert=1 Detector: psd1_I=4.56267e-10
  • Test: absorber=1 Detector: psd1_I=3.03816e-10

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
invert1If nonzero the transparency/opacity sense of the masking image is reversed.0
absorber1If nonzero, test Absorber instead of Mask.0

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