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_Curved_Bispectral

[ Identification | Description | Input parameters | Links ]

The Mirror_Curved_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 curved mirror plate for e.g. a bispectral extraction inside an
elliptic guide. In local coordinates x is the guide axis (beam direction) and
the plate passes through the origin, spanning $-\mathtt{length}/2 \le x \le \mathtt{length}/2$. Its shape
in the x-z plane is $z(x) = a_1 x^3 + b_1 x^2 + c_1 x$, with slopes given by the angles
theta_1, theta_2 and theta_3 at the start, centre and end. Its half height
follows the elliptic guide (focus_s, focus_e, smallaxis), or is yheight/2 before
guide_start. 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; neutrons with velocity
along the normal sin(theta)*e_x - cos(theta)*e_z hit the back side.

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_Curved_Bispectral(focus_s=-10, focus_e=10, mirror_start=-0.1,
guide_start=-0.1, yheight=0.05, smallaxis=1, length=0.2, m=2,
theta_1=1, theta_2=1, theta_3=1)

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_smfirst focal point of ellipse in ABSOLUTE COORDINATES
focus_emsecond focal point of ellipse in ABSOLUTE COORDINATES
mirror_startmstart of mirror in ABSOLUTE COORDINATES
guide_startmstart of guide in ABSOLUTE COORDINATES
yheightmthe height of the mirror when not in the guide
smallaxismthe smallaxis of the guide
lengthmthe length of the mirror
mm-value of material
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
theta_1degangle of mirror wrt propagation direction at start of mirror1.25
theta_2degangle of mirror wrt propagation direction at center of mirror1.25
theta_3degangle of mirror wrt propagation direction at end of mirror1.25
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