Version: $Revision: 0.1 $
Author: Mads Bertelsen
Origin: ESS DMSC
Date: 2026-09-28
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.
Parameters in boldface are required; the others are optional.
|
Name |
Unit |
Description |
Default |
|
|
|||
|
cfg |
str |
NCrystal material configuration string (details <a href="https://github.com/mctools/ncrystal/wiki/Using-NCrystal">on this page</a>). |
"" |
|
interact_fraction |
1 |
Fraction of scattering events assigned to this process 0-1 (default -1 lets Union assign it). |
-1 |
|
include_SLD |
0/1 |
Include the scattering length density calculated from cfg in the material refraction information. |
0 |
|
init |
string |
Deprecated and unused. Accepted so that instruments written for McStas/McXtrace 3.8.7 and earlier, which name the Union_init component here, still compile. *******************************************************************************/ |
"" |
|
|
|||
|
|
|||
|
|
|||
Component source code found in file Union_NCrystal_material.comp.