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

[ Identification | Description | Input parameters | Links ]

The Mirror_Elliptic_Bispectral Component

Single mirror plate that is curved and fits into an elliptic guide.

Identification

  • Author: Henrik Jacobsen
  • Origin: RNBI
  • Date: April 2012

Description

Single elliptic mirror plate: one side wall of an elliptic guide, for e.g. a
bispectral extraction. In local coordinates x is the guide axis (beam
direction) and the plate spans $0 \le x \le \mathtt{length}$, starting at mirror_start along the
axis. The wall lies on the z>0 half of the horizontal ellipse with foci at
focus_start_w and focus_end_w and small axis smallaxis_w, centred on z=0. Its
half height follows the vertical ellipse (focus_start_h, focus_end_h,
smallaxis_h). Rotate the component so that local x points along the beam, e.g.
ROTATED (0, -90, 0) for a beam along z.
Reflectivity uses a built-in m-value supermirror model (R0=0.99,
Qc=0.0217 AA^-1) or a reflectivity file. With transmit=1 non-reflected neutrons
pass the plate with substrate and coating attenuation.

This description was written with AI assistance (Claude Code, 2026) from the
component code, after a long history in McStas without sufficient
documentation or an example instrument.

Example: Mirror_Elliptic_Bispectral(focus_start_w=-10, focus_end_w=10,
focus_start_h=-10, focus_end_h=10, mirror_start=9.5, m=2, smallaxis_w=0.1,
smallaxis_h=1, length=0.2)

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
reflectq(AA^-1) R(0-1)(str) Name of reflectivity file. Format0
focus_start_wmHorizontal position of first focal point of ellipse in ABSOLUTE COORDINATES
focus_end_wmHorizontal position of second focal point of ellipse in ABSOLUTE COORDINATES
focus_start_hmVertical position of first focal point of ellipse in ABSOLUTE COORDINATES
focus_end_hmVErtical position of second focal point of ellipse in ABSOLUTE COORDINATES
mirror_startmstart of mirror in ABSOLUTE COORDINATES
mm-value of material
smallaxis_wmSmall-axis dimension of horizontal ellipse
smallaxis_hmSmall-axis dimension of vertical ellipse
lengthmthe length of the mirror
transmit0/10: non reflected neutrons are absorbed. 1: non reflected neutrons pass through0
substrate_thicknessmthickness of substrate (for absorption)0.0005
coating_thicknessmthickness of coating (for absorption)10e-6
AT ( , , ) RELATIVE
ROTATED ( , , ) RELATIVE

Links


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

Generated on mcstas 3.10.5


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