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

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

The NCrystal_Single_crystal Instrument

Example instrument for Single_crystal with an NCrystal material

Identification

  • Site: NCrystal
  • Author: T. Kittelmann
  • Origin: ESS
  • Date: 2026

Description

A white beam hits a Single_crystal sample, whose crystal structure is taken
from an NCrystal material, and the scattered neutrons are recorded on a
spherical detector (Laue pattern) and on a banana detector. Optionally, a
non-crystalline phase is added with the parameters extra_phase and
extra_frac, e.g. giving the NCrystal cfg-string

"phases<0.9*stdlib::Al_sg225.ncmat&0.1*stdlib::Epoxy_Araldite506_C18H20O3.ncmat>"

for extra_frac=0.1.

Examples

(Test cases in bold)
  • Test: omega=0 Detector: laue_I=1.12
  • Test: crystal="stdlib::Al_sg225.ncmat;density=0.5x" Detector: laue_I=0.653
  • Test: crystal="stdlib::Ge_sg227.ncmat" omega=10 Detector: laue_I=4.87
  • Test: extra_frac=0.1 Detector: laue_I=9.46

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
crystalstringNCrystal cfg-string of the crystal."stdlib::Al_sg225.ncmat"
extra_phasestringNCrystal cfg-string of an additional non-crystalline phase (only used if extra_frac>0)."stdlib::Epoxy_Araldite506_C18H20O3.ncmat"
extra_frac1Volume fraction of the additional phase.0
omegadegRotation of the crystal around the vertical axis.0
mosaicarcminIsotropic mosaic of the crystal.30

Links

  • Source code for NCrystal_Single_crystal.instr.
  • https://github.com/mctools/ncrystal/wiki/

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

Generated for mcstas 3.9.2


Last Modified: Tuesday, 06-Oct-2026 21:19:12 CEST
Search website mailinglist archive GitHub repos