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

 Other Downloads (share)

Mailing list

Search web/mailinglist

 McStas manual
 Known problems



Links <- UPDATED!

Report bugs


McStas: Slit Component

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

The Slit Component

Rectangular/circular slit


  • Author: Kim Lefmann and Henrik M. Roennow
  • Origin: Risoe
  • Date: June 16, 1997
  • Version:(Unknown)


A simple rectangular or circular slit. You may either
specify the radius (circular shape), or the rectangular bounds.
No transmission around the slit is allowed.

Example: Slit(xmin=-0.01, xmax=0.01, ymin=-0.01, ymax=0.01)
         Slit(xwidth=0.02, yheight=0.02)

The Slit will issue a warning if run as "closed"

Input parameters

Parameters in boldface are required; the others are optional.
Name Unit Description Default
xmin m Lower x bound 0
xmax m Upper x bound 0
ymin m Lower y bound 0
ymax m Upper y bound 0
radius m Radius of slit in the z=0 plane, centered at Origo 0
xwidth m Width of slit. Overrides xmin,xmax if they are unset. 0
yheight m Height of slit. Overrides ymin,ymax if they are unset. 0


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

Generated automatically by McDoc, Peter Willendrup <> / Tue May 26 13:03:59 2020

Last Modified: Tuesday, 26-May-2020 15:03:59 CEST
Search website mailinglist archive GitHub repos