McXtrace logo

McXtrace - An X-ray ray-trace simulation package

Synchrotron SOLEIL DTU Physics

McXtrace

About McXtrace
 Publications
 Project Partners
 Project People
 Goal

Download
 Components

Mailing list

Search

Documentation
 Manual
 Commands
 Wiki (GitHub)
 Tutorial

Links

Report bugs (GitHub)

Code-repository (GitHub)


McXtrace: Mirror_curved

[ Identification | Description | Input parameters | Links ]

The Mirror_curved Component

Rectangular curved mirror (paraboloid/quasi-spherical/cylindrical) or flat

Identification

  • Author: Emmanuel Farhi, adapted from Mirror by Erik B Knudsen
  • Origin: SOLEIL
  • Date: November 2026

Description

Like the Mirror component, the mirror is by default tangent to the local
XZ plane (mirror surface at y=0, nominal beam along +z), and placed in the
local YZ plane instead by setting 'yheight' or 'width'.
The surface has two principal curvature radii:
Rx: radius bending the surface across the mirror width, i.e. in the local
XZ plane for an XZ mirror, or in the YZ plane for a YZ mirror
(perpendicular, sagittal radius).
Rz: radius bending the surface along the mirror length (in the local YZ
plane), i.e. focusing along the beam (meridional, tangential radius).
A radius equal to 0 means the surface is NOT curved in that direction.
- Rx  =   Rz      -> quasi-spherical mirror (paraxial toroid, large Rx=Rz).
- Rx !=   Rz      -> toroidal/astigmatic mirror (paraxial sag intersection).
- Rx !=0  Rz  =0  -> cylindrical
- Rx  =0  Rz !=0  -> bent mirror (along beam, e.g. for KB)
- Rx  =   Rz  =0  -> perfectly flat mirror, equivalent to Mirror.
The radii usually follow f_t=Rz*sin(theta)/2 and f_s=Rx/sin(theta)/2
where theta is the tilt angle, and f_t and f_s are tangential and sagittal
focus distances.

Sign convention: R > 0 means the surface sags towards the normal side
(towards +y for an XZ mirror): the centre of curvature lies upstream and a
beam along +z is focused. R > 0 converges (concave).

Surface: N = ( T^2/(2 Rx) + z^2/(2 Rz) ), where N is the surface normal
(y for an XZ mirror, x for a YZ mirror) and T the transverse coordinate
(x for an XZ mirror, y for a YZ mirror). The mirror is truncated to the
aperture |T| <= (xwidth|yheight)/2 and |z| <= zdepth/2.
With one non-zero radius the ray/cylinder intersection is exact (the
surface stays flat along the other direction); with two
non-zero radii the sag equation (paraxial toroid) is used, exact in the
limit of aperture << R. Use Rx=Rz for quasi-spherical optics.
The mirror is located at its center.
Default geometry is a mirror in the XZ plane, as the Mirror component.
When using the 'width' or 'yheight' parameter, the mirror flips in the YZ plane.
To model a toroid, better use the Mirror_toroid component.

Reflectivity is handled exactly as in Mirror: either constant (R0) or from
a datafile/coating recipe ('coating').

Example: Mirror_curved(xwidth=1e-3, zdepth=1e-2, Rx=1.0, Rz=0, R0=1, coating="B4C.dat")
Example: Mirror_curved(xwidth=2e-3, zdepth=5e-2, Rx=0.5, Rz=0.7)
Example: Mirror_curved(yheight=1e-3, zdepth=1e-2, Rx=0.3)  (YZ-plane mirror)

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
zdepthmMirror aperture length along local z (beam direction)0.1
xwidthmMirror aperture width along local x (XZ mirror, default)0.01
yheightmSetting yheight > 0 overrides xwidth and places the mirror in the YZ plane (aperture along local y), as for Mirror.0
RxmSagittal curvature radius (across the mirror width). 0 = flat.0
RzmTangential curvature radius (along the beam). 0 = flat.0
coatingstrFilename containing reflectivities (or coating).""
R00-1Constant reflectivity1
radiusmRadius of tangential curvature along Z = Rz (compatibility).0
lengthmLength of the unbent mirror along Z = zdepth (compatibility).0
widthmWidth of the mirror along Y = yheight (compatibility).0
AT ( , , ) RELATIVE
ROTATED ( , , ) RELATIVE

Links


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

Generated on mcxtrace 3.10.4


Last Modified: Friday, 27-Nov-2026 21:12:13 CET
Search website mailinglist archive GitHub repos