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_multi_pipe

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

The Test_multi_pipe Instrument

Test of multi_pipe against its analytic open fraction.

Identification

  • Site: Tests_optics
  • Author: Peter Willendrup
  • Origin: DTU
  • Date: November 2026

Description

A near-parallel beam illuminates a 4x4 cm multi_pipe plate with a generated
grid of holes. The transmitted intensity psd_out should equal psd_in times the
open fraction $N\pi\,\mathrm{radius}^2/(0.04\,\mathrm{m})^2$: 36 holes for the defaults, 25 holes
for gap=0.003.

Examples

(Test cases in bold)
  • Test: Detector: psd_out_I=2.76531e-11
  • Test: thickness=0.01 Detector: psd_out_I=2.75873e-11
  • Test: gap=0.003 thickness=0.01 Detector: psd_out_I=1.91664e-11

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
radiusmRadius of a single hole0.002
gapmDistance between holes0.002
thicknessmThickness of the plate0

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