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
 Other Downloads (share)

Mailing list

Search web/mailinglist

Documentation
 Wiki (GitHub)
 McStas manual
 Publications

Links

Report bugs (GitHub)

Code-repository (GitHub)


McStas: Monochromator_bent

[ Identification | Description | Input parameters | Links ]

The Monochromator_bent Component

A bent crystal monochromator. Mosacity and bending radius can be set.

Identification

  • Site:
  • Author: Daniel Lomholt Christensen
  • Origin: ILL / Niels Bohr Institute, University of Copenhagen.
  • Date: 24 August 2023

Description

This monochromator is an array of crystals, that can be bent.
The crystals are placed by the user in the x,y,z pos and rot parameters.
The crystal is bent, so that it follows a curve on a cylinder of radius_x.
The monochromator lies along the z plane, so when a diffraction angle of theta
is desired, it should just be inserted in the ROTATED parameter around
the y-axis.
Instruments that showcase the use of this component is the
"Test_monochromator_bent.instr", and the "ILL_SALSA.instr" under the examples folder.
SALSA showcases its complex use in a real instrument, while Test_monochromator_bent
makes a simple show of its capabilities.

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
zwidthmWidth of each crystal without bending.0.2
yheightmHeight of each crystal without bending.0.1
xthicknessmThickness of each crystal without bending.0.0005
radius_xmRadius of the circle the monochromator bends on in the plane.2
plane_of_reflectionstrThe plane of reflection from the material, e.g. "Si400". The list of possible reflections can can be seen in the source code."Si400"
angle_to_cut_horizontaldegAngle between cut and normal of crystal slab, horizontally0
angle_to_cut_verticaldegAngle between cut and normal of crystal slab, vertically ! NOTE: This may not work as intended.0
mosaicityarcminGaussian mosaicity of the crystal. Always the horizontal mosaicity30
n_crystals1Number of mono crystals1
mosaic_anisotropy1Anisotropy of the mosaicity, changes vertical mosaicity to be mosaic_anisotropy*mosaicity1
domainthickness1e-6mThickness of the crystal domains.10
temperatureKTemperature of the monochromator in Kelvin.300
optimize1Flag to tell if the component should optimize for reflections or not. NOTE: May not work perfectly1
x_posvectorx-Position of each crystalNULL
y_posvectory-Position of each crystalNULL
z_posvectorz-Position of each crystalNULL
x_rotvectorRotation around x-axis for each crystal (NOTE: Rotations happen around x, then y, then z.)NULL
y_rotvectorRotation around y-axis for each crystalNULL
z_rotvectorRotation around z-axis for each crystalNULL
verbose1Verbosity of the monochromator. Used for debugging.0
draw_as_rectangles1Flag to visualise component as individual rectangles pr. mono crystal0
AT ( , , ) RELATIVE
ROTATED ( , , ) RELATIVE

Links


[ Identification | Description | Input parameters | Links ]

Generated on mcstas 3.5.32


Last Modified: Tuesday, 17-Jun-2025 20:11:09 CEST
Search website mailinglist archive GitHub repos