Component Manual for the Neutron Ray-Tracing Package McStas, version 3.10.4

Index

%include (McStas keyword), 1633
ABSORB (C macro, mcstas-r.h), 1634
adapt_tree-lib (library), 1647
Adaptive sampling, 74
ALLOW_BACKPROP (C macro, mcstas-r.h), 1635
Arm, 1653
box_intersect (C function, mccode-r.c), 1640
Bugs, 58, 193, 194, 405
C functions, 1633
Coherent and incoherent isotropic scatterer, 430
Component, 1653
instance, 1653
Concentric components, 369, 430
Constants, 1649
Contrib, 983
Conversion
of units, 1649
Coordinate
retrieval functions, 1635
system, 47
coords_add (C function, mccode-r.c), 1638
coords_get (C function, mccode-r.c), 1638
coords_set (C function, mccode-r.c), 1638
cylinder_intersect (C function, mccode-r.c), 1641
Data files, 48
Definition parameter, 1653
DEG2RAD (constant), 1649
DETECTOR_OUT_0D (C macro, mccode-r.h), 1639
DETECTOR_OUT_0D_MEAN (C macro, mccode-r.h), 1640
DETECTOR_OUT_1D (C macro, mccode-r.h), 1640
DETECTOR_OUT_1D_MEAN (C macro, mccode-r.h), 1640
DETECTOR_OUT_2D (C macro, mccode-r.h), 1640
DETECTOR_OUT_2D_MEAN (C macro, mccode-r.h), 1640
Diffraction, 369, 386, 404
Direction focusing, 69
Environment variable
BROWSER, 56
MCSTAS, 55
Environment variables
MCSTAS, 1633, 1645
Error estimate, 67
EXTEND (McStas keyword), 1635
FLT_MAX (constant), 1649
Focusing
importance sampling, 69
FWHM2RMS (constant), 1649
GROUP (McStas keyword), 1635
HBAR (constant), 1649
Importance sampling
direction focusing, 69
Incoherent elastic scattering, 345, 386
Incoherent inelastic scattering, 353
INDEX_CURRENT_COMP (C macro, mccode-r.h), 1636
Inelastic scattering, 409, 430
Input parameter, 1653
inside_rectangle (C function, mcstas-r.c), 1640
Instrument, 1653
K2V (constant), 1649
Kernel, 1653
Keyword
EXTEND, 55, 83, 522
OUTPUT PARAMETERS, 522
Library, 1633
adapt_tree-lib, 1647
Components
contrib, 983
data, 50, 52, 53
misc, 538
monitors, 471
obsolete, 1402
optics, 140, 204, 256
samples, 329
sasmodels, 706
sources, 83
union, 564
components
data, 1645
share, 1633
mccode-r, 1633
mcstas-r, 1633
monitor_nd-lib, 1646
pol-lib, 1583
read_table-lib, 1643
read_table-lib (Read_Table), 48
Run-time
MC_GETPAR, 522
run-time, 1634
vitess-lib, 1648
MC_GETPAR (C macro, mccode-r.h), 1635
mccode-r (library), 1633
MCDISPLAY (McStas keyword), 1635
MCNP, 134
MCSTAS (environment variable), 1633, 1645
McStas
name, 1654
pronunciation, 1654
mcstas-r (library), 1633
mcstas2vitess (McStas tool), 1648
MCViNE, 1308, 1356
MIN2RAD (constant), 1649
MNEUTRON (constant), 1649
monitor_nd-lib (library), 1646
Monitors, 471
Adaptive importance sampling monitor, 119
Banana shape, 520
Beam analyzer, 558
Capture flux, 516
Custom monitoring (user variables, Monitor_nD), 521
Divergence monitor, 491
Divergence/position monitor, 494
Energy monitor, 482
Neutron parameter correlations, PreMonitor_nD, 522
Number of neutron bounces in a guide, 522
Position sensitive detector (PSD), 488
Position sensitive monitor recording mean energy, 520
The All-in-One monitor (Monitor_nD), 514
Time-of-flight monitor, 475
TOF2E monitor, 479
Wavelength monitor, 485
Monte Carlo method, 64
accuracy, 75
adaptive sampling, 74
direction focusing, 69
stratified sampling, 74
Multiple scattering, 386, 430
NAME_CURRENT_COMP (C macro, mccode-r.h), 1636
Neutron polarisation, see Polarisation
NORM (C macro, mccode-r.h), 1639
normal_vec (C function, mccode-r.c), 1639
Obsolete, 1402
Optics, 140, 174, 204, 256
Beam stop, 147
Bender (non polarizing), 195
Curved guides (polygonal model), 195
Disc chopper, 207
Fermi Chopper, 194, 219, 237
Guide with channels (straight, non focusing), 192
Guide with channels and gravitation handling (straight), 194
Linear collimator, 161
Monochromator, 298
Monochromator, curved, 311
Monochromator, polarizing, 315
Monochromator, thick, 322
phase space transformer, 323
Point in space (Arm, Optical bench), 142
Radial collimator, 167
Slit, 144
Straight guide, 184
Velocity selector, 246, 252
Optimization, 114, 119, 126, 132
Output parameter, 1654
PI (constant), 1649
Polarisation, 256, 1574
field functions, 1585
monitors, 528
Monochromator_pol, 315
precession algorithm, 1583
SimpleNumMagnetPrecession, 1584
POS_A_COMP (C macro, mccode-r.h), 1636
POS_A_COMP_INDEX (C macro, mccode-r.h), 1636
POS_A_CURRENT_COMP (C macro, mccode-r.h), 1636
POS_R_COMP_INDEX (C macro, mccode-r.h), 1637
Preprocessor macros, 1633
PROP_DT (C macro, mcstas-r.h), 1634
PROP_GRAV_DT (C macro, mcstas-r.h), 1635
PROP_NO_G_DT (C macro, mcstas-r.h), 1635
PROP_NO_G_X0 (C macro, mcstas-r.h), 1635
PROP_NO_G_Y0 (C macro, mcstas-r.h), 1635
PROP_NO_G_Z0 (C macro, mcstas-r.h), 1635
PROP_Z0 (C macro, mcstas-r.h), 1634
RAD2DEG (constant), 1649
RAD2MIN (constant), 1649
rand01 (C function, mccode-r.c), 1641
randnorm (C function, mccode-r.c), 1641
randpm1 (C function, mccode-r.c), 1641
randtriangle (C function, mccode-r.c), 1641
randvec_target_circle (C function, mccode-r.c), 1641
randvec_target_rect (C function, mccode-r.c), 1642
randvec_target_rect_angular (C function, mccode-r.c), 1642
read_table-lib (library), 1643
Removed neutron events, 47, 442, 1635
RESTORE_NEUTRON (C macro, mcstas-r.h), 1637
RMS2FWHM (constant), 1649
ROT_A_COMP (C macro, mccode-r.h), 1636
ROT_A_CURRENT_COMP (C macro, mccode-r.h), 1636
rot_apply (C function, mccode-r.c), 1638
rot_copy (C function, mccode-r.c), 1638
rot_mul (C function, mccode-r.c), 1638
ROT_R_COMP (C macro, mccode-r.h), 1636
ROT_R_CURRENT_COMP (C macro, mccode-r.h), 1636
rot_set_rotation (C function, mccode-r.c), 1638
rot_transpose (C function, mccode-r.c), 1638
rotate (C macro, mccode-r.h), 1639
Run-time, 1654
Sample environments, 369, 430, 448
Samples, 329
Coherent and incoherent isotropic scatterer, 430
Dilute colloid medium, 404
Incoherent inelastic scatterer, 353
Incoherent isotropic scatterer (Vanadium), 345
Phonon scattering, 409
Powder, multiple diffraction line, 369
Single crystal diffraction, 386
Sampling, 74
SANS, 337
SasView, 706
scalar_prod (C function, mccode-r.c), 1639
SCATTER (C macro, mcstas-r.h), 1635, 1637
SCATTERED (C macro, mccode-r.h), 1637
SE2V (constant), 1649
Setting parameter, 1654
SHARE (McStas keyword), 1633
Simulation progress bar, 557
Small angle scattering, 404
solve_2nd_order (C function, mccode-r.c), 1639
Sources, 83
Adaptive importance sampling monitor, 119
Adaptive source, 114
Continuous source with a Maxwellian spectrum, 97
Continuous source with specified divergence, 94
General continuous source, 104
ISIS pulsed moderators, 1001
Optimization location, see Sources/Optimizer
Optimizer, 126
Simple continuous source, 91
Time of flight pulsed moderator, 110
sphere_intersect (C function, mccode-r.c), 1641
Spin-echo, 1592
Statistics
uncertainty, 67
STORE_NEUTRON (C macro, mcstas-r.h), 1637
Stratified sampling, 74
Symbols, 47
Table_Free (C function, read_table-lib.c), 1644
Table_Free_Array (C function, read_table-lib.c), 1644
Table_Index (C function, read_table-lib.c), 1644
Table_Info (C function, read_table-lib.c), 1644
Table_Info_Array (C function, read_table-lib.c), 1644
Table_Init (C function, read_table-lib.c), 1643
Table_Read (C function, read_table-lib.c), 1643
Table_Read_Array (C function, read_table-lib.c), 1644
Table_Read_Offset (C function, read_table-lib.c), 1643
Table_Read_Offset_Binary (C function, read_table-lib.c), 1643
Table_Rebin (C function, read_table-lib.c), 1644
Table_Value (C function, read_table-lib.c), 1644
Table_Value2d (C function, read_table-lib.c), 1644
Tools
mcdoc, 56
Tripoli, 134
Union, 564, 1599–1627
algorithm, 1621
conditionals, 1619
exit volume, 1615
geometry, 1611
loggers, 1617
masks, 1615
master, 1616
materials, 1610
MCViNE, 1356, 1608
processes, 1605
surfaces, 1616
tagging, 1619
Union_init, 1605
Union_stop, 1605
Units
constants and conversions, 1649
V2K (constant), 1649
Variance, 67
Variance reduction, 74
vec_prod (C function, mccode-r.c), 1639
Virtual sources, 74
Vitess, 134
vitess-lib (library), 1648
VS2E (constant), 1649
Weight, 66
statistical uncertainty, 67
transformation, 69