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

[ Identification | Description | Input parameters | Links ]

The Union_NCrystal_material Component

Version: $Revision: 0.1 $

Identification

  • Author: Mads Bertelsen
  • Origin: ESS DMSC
  • Date: 2026-09-28

Description

Creates one NCrystal scattering process and a complete Union material. The
absorption coefficient is obtained from the same NCrystal configuration, so
density modifiers such as density=0.6x are applied automatically. Use
NCrystal_process together with Union_make_material when NCrystal scattering
must be combined with other Union processes.
The user does not provide my_absorption for this component.

This component requires a Union geometry and Union_master.

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
cfgstrNCrystal material configuration string (details on this page).""
interact_fraction1Fraction of scattering events assigned to this process 0-1 (default -1 lets Union assign it).-1
include_SLD0/1Include the scattering length density calculated from cfg in the material refraction information.0
initstringDeprecated and unused. Accepted so that instruments written for McStas/McXtrace 3.8.7 and earlier, which name the Union_init component here, still compile. *******************************************************************************/""
AT ( , , ) RELATIVE
ROTATED ( , , ) RELATIVE

Links


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

Generated on mcstas 3.9.2


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