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

[ Identification | Description | Input parameters | Links ]

The McStas_Single_crystal Instrument

Wrapper for use of Single_crystal in SIMRES


  • Site: SINE2020
  • Author: Erik B Knudsen
  • Origin: DTU Physics
  • Date: Dec. 2018


This instrument provides an MCPL-based interface for the use of Single_crystal in the SIMRES package.
The instrument has been developed in the context of WP8 in the SINE2020 project  and is part of
deliverable D8.8.

(EU Horizon 2020 research and innovation programme under grant agreement No 654000).

The default material is Al as a cylinder of radius 0.01 m x height 0.02 m

Example: McStas_Single_crystal reflections=Al.lau radius=0.01 yheight=0.02

Input parameters

Parameters in boldface are required; the others are optional.
reflectionsstringInput file for reflections, laz and lau formats from McStas accepted"Al.lau"
geometrystringName of an Object File Format (OFF) or PLY file for complex geometry.""
radiusmSample radius1e-2
xwidthmSample width along x0
yheightmSample height along y2e-2
zdepthmSample depth along z0
delta_d_d1Lattice spacing variance, gaussian RMS1e-3
mosaicarc minutesCrystal mosaic (isotropic), gaussian RMS. Puts the crystal in the isotropic mosaic model state, thus disregarding other mosaicity parameters.1
mosaic_aarc minutesHorizontal (rotation around lattice vector a) mosaic (anisotropic), gaussian RMS. Put the crystal in the anisotropic crystal vector state. I.e. model mosaicity through rotation around the crystal lattice vectors. Has precedence over in-plane mosaic model.0
mosaic_barc minutesVertical (rotation around lattice vector b) mosaic (anisotropic), gaussian RMS.0
mosaic_carc minutesOut-of-plane (Rotation around lattice vector c) mosaic (anisotropic), gaussian RMS0
barns1Flag to indicate if |F 2| from "reflections" is in barns or fm2 (barns = 1 for laz, barns = 0 for lau type files).0
order1Limit multiple scattering up to given order (0: all, 1: first, 2: second, ...)0
rot_xdegSample rotation around x0
rot_ydegSample rotation around y0
rot_zdegSample rotation around z0


[ Identification | Description | Input parameters | Links ]

Generated on 2023-09-19 20:01:36

Last Modified: Wednesday, 03-Jan-2024 19:59:10 CET
Search website mailinglist archive GitHub repos