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

 Wiki (GitHub)
 McStas manual


Report bugs (GitHub)

Code-repository (GitHub)

McStas: Elliptic_guide_gravity_shieldinglogger

[ Identification | Description | Input parameters | Links ]

The Elliptic_guide_gravity_shieldinglogger Component

to the m-value of the coating or to -1 if missed the guide opening Perfect elliptic guide which allow for simulations with gravity. The guide mirrors can be divided into segments with individual m-values. Parabolic guide components can also be simulated.


  • Site:
  • Author: Henrik Bo Hoffmann Carlsen and Mads Bertelsen
  • Origin: NBI
  • Date: 27 Aug 2012


The perfect elliptic guide is centered along the z-axis with the entrance
and exit in the xy-plane. The horizontal and vertical ellipses defining
the guide geometry is by default set by two focal points.
These are placed a distance away from the guide openings along the z-axis;
if distance given is positive, when the focal point is outside the guide.

Multiple options for defining these ellipse exist including approximation of
parabolas and half ellipses (mid point of the ellipse or one of the guide openings)

The guide coating parameters can be set for each side of the guide.
Furthermore the m-value can be specified for user defined segments
of the guide.

Input parameters

Parameters in boldface are required; the others are optional.
mvaluesright(pointer) Pointer to array of m-values, right mirrorNULL
mvaluesleft(pointer) - same, left mirrorNULL
mvaluestop(pointer) - same, top mirrorNULL
mvaluesbottom(pointer) - same, bottom mirrorNULL
seglength(pointer) Pointer to array of segment lengths for discrete mirror descriptionNULL


  • Source code for Elliptic_guide_gravity_shieldinglogger.comp.

[ Identification | Description | Input parameters | Links ]

Generated on 2024-01-03 11:47:43

Last Modified: Tuesday, 16-Apr-2024 20:05:21 CEST
Search website mailinglist archive GitHub repos