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_sample

[ Identification | Description | Input parameters | Links ]

The NCrystal_sample Component

McStas sample component for the NCrystal library for thermal neutron transport (www).

Identification

  • Site:
  • Author: NCrystal developers
  • Origin: NCrystal Developers (European Spallation Source ERIC and DTU Nutech)
  • Date: 2015

Description

McStas sample component using the NCrystal library for thermal neutron
transport in a single bulk material filling a single simple convex volume
(box, sphere or cylinder).

The geometrical layout of the volume is determined via the xwidth, yheight,
zdepth, and radius parameters, and the material being modelled is determined
via an NCrystal configuration string ("cfg-string").

For more information about NCrystal and cfg-strings, refer to the NCrystal wiki.
In particular, browse the available datafiles at Data-library and read about the
format of the cfg-string expected in the "cfg" parameter at Using-NCrystal.

For more complicated geometries, it might be desirable to use NCrystal via the
McStas Union components instead.

Note that the physics backend of this component will be whichever NCrystal
installation is available and associated with the "ncrystal-config" command.

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
cfgstrNCrystal material configuration string (details on this page)."void"
xwidthmx-dimension (width) of sample, if box shape is desired0
yheightmy-dimension (height) of sample, if box or cylinder shape is desired0
zdepthmz-dimension (depth) of sample, if box shape is desired0
radiusmradius of sample, if sphere or cylinder shape is desired0
absorptionmode0|1|20 : disable absorption. 1 : enable absorption via intensity reduction. 2 : enable absorption by terminating the tracking.1
multscat0|10 : disable multiple scattering. 1 : enable multiple scattering1
AT ( , , ) RELATIVE
ROTATED ( , , ) RELATIVE

Links


[ Identification | Description | Input parameters | Links ]

Generated on mcstas 3.6.1


Last Modified: Friday, 12-Dec-2025 12:58:06 CET
Search website mailinglist archive GitHub repos