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)


The CavitiesOut McStas Component

14.36  The CavitiesOut McStas Component

Slit - sorting in channels

Identification

  • Author: Henrich Frielinghaus

  • Origin: JCNS - FZ-Juelich

  • Date: Oct 2007

Description

This routine sorts the ’full’ neutron beam (given by xw,yw) in xc,yc channels. These can be imagined as cavities. CavitiesOut sorts these channels back to normal coordinates.

Example: Slit(xw=0.05, yw=0.05, xc=4, yc=1)

Input parameters

Parameters in boldface are required; the others are optional.

Name

Unit

Description

Default

xw

m

width in X-dir (full width, might be larger for trumpets)

0.05

yw

m

width in Y-dir (full width, might be larger for trumpets)

0.05

xc

1

Number of x-channels

1

yc

1

Number of y-channels

1

Links

  • Component source code found in file CavitiesOut.comp.


Last Modified: Tuesday, 06-Oct-2026 21:19:10 CEST
Search website mailinglist archive GitHub repos