|
|
|
|
![]() |
![]() |
![]() | ||
|
About McStas Documentation |
Index%BUGS (McDoc section), 186
%D[ESCRIPTION] (McDoc section), 186
%E[ND] (McDoc section), 187
%EX[AMPLE] (McDoc section), 186
%I[DENTIFICATION] (McDoc section), 186
%IN[STRUMENT_SITE] (McDoc section), 187
%L[INK] (McDoc section), 187
%P[ARAMETERS] (McDoc section), 186
%VALIDATION (McDoc section), 186
%include (McStas keyword), 83, 153, 162, 322
ABSOLUTE (McStas keyword), 159
ABSORB (C macro, mcstas-r.h), 153, 160, 165, 174, 323
Absorption, 160, 174
adapt_tree-lib (library), 336
Adaptive sampling, 59
ALLOW_BACKPROP (C macro, mcstas-r.h), 174, 324
Arm, 342
AT (McStas keyword), 159
author (McDoc keyword), 186
Authors, 9
Backpropagation, 174
box_intersect (C function, mccode-r.c), 329
BROWSER (environment variable), 126
Bugs
hard to detect, 32
integer versus floating-point division, 159
JUMPs, 167
MPI, 137
SPLIT, 167
system errors, 95
WHEN vs GROUP, 165
C code
embedded, 153, 157, 158, 163
C functions, 322
Citing McStas, 23
Code generation
options, 80
Comments, 149
Compilation
failure, 153, 157, 184
instrument definition, see mcstas (compiler)
COMPONENT (McStas keyword), 159
Component, 342
declaration (TRACE), 159
instance, 342
Constants, 338
Conversion
of units, 338
Coordinate
retrieval functions, 324
system, 145
coords_add (C function, mccode-r.c), 327
coords_get (C function, mccode-r.c), 327
coords_set (C function, mccode-r.c), 327
COPY (McStas keyword), 164
cylinder_intersect (C function, mccode-r.c), 330
Data formats, 89, 104, 129, 130, 158, 175
date (McDoc keyword), 186
DECLARE (McStas keyword), 156, 173
DEFINE COMPONENT (McStas keyword), 170
DEFINE INSTRUMENT (McStas keyword), 154
Definition parameter, 342
DEFINITION PARAMETERS (McStas keyword), 170
DEG2RAD (constant), 338
DEPENDENCY (McStas keyword), 155, 172
Description
McDoc section, 186
DETECTOR_OUT_0D (C macro, mccode-r.h), 175, 328
DETECTOR_OUT_0D_MEAN (C macro, mccode-r.h), 178, 329
DETECTOR_OUT_1D (C macro, mccode-r.h), 175, 329
DETECTOR_OUT_1D_MEAN (C macro, mccode-r.h), 178, 329
DETECTOR_OUT_2D (C macro, mccode-r.h), 177, 329
DETECTOR_OUT_2D_MEAN (C macro, mccode-r.h), 178, 329
Direction focusing, 54
Documentation
generator, see McDoc
EDITOR (environment variable), 103
Embedded C code, see C code
END (McStas keyword), 161, 182
Environment variables
BROWSER, 126
EDITOR, 103
MCSTAS_FORMAT, 79, 89, 123, 129
MCSTAS, 84, 322, 334
Error estimate, 52
Example
McDoc section, 186
EXTEND (McStas keyword), 162, 163, 183, 324
File
search path, 83
FINALLY (McStas keyword), 161, 179
FLT_MAX (constant), 338
Focusing
importance sampling, 54
Formats, see Data formats
FWHM2RMS (constant), 338
Graphical User Interface, see mcgui
Gravitation, 145
GROUP (McStas keyword), 162, 163, 324
GUI, see mcgui
HBAR (constant), 338
HDF5, see NeXus format
HUP (signal), 97
Identification
McDoc section, 186
Importance sampling
direction focusing, 54
INDEX_CURRENT_COMP (C macro, mccode-r.h), 325
INHERIT (McStas keyword), 183
INITIALIZE (McStas keyword), 158, 174
Input parameter, 342
inside_rectangle (C function, mcstas-r.c), 329
Installation, 73
directory, 83
Installing, 44
Instrument, 342
Instrument definition, 154, 162
units, 148, 155
Instrument site
McDoc section, 187
INT (signal), 97, 161
ITERATE (McStas keyword), 166
JUMP (McStas keyword), 166
K2V (constant), 338
Kernel, 143–187, 342
Keywords, 153
McDoc, 186–187
kill, 95
Language, see Meta-language
Library, 322
adapt_tree-lib, 336
Components
data, 265, 267
components, 83, 125, 160, 262
data, 334
share, 143, 153, 322
mccode-r, 322
mcstas-r, 322
monitor_nd-lib, 335
pol-lib, 202
read_table-lib, 153, 332
run-time, 85, 143, 153, 323
shared, see Library/components/share
vitess-lib, 337
Link
McDoc section, 187
Mailing lists
mcstas-users, 23
Mantid
transfer events and monitor data, 252
MC_GETPAR (C macro, mccode-r.h), 173, 324
mccode-r (library), 322
mccoplot (McStas tool), 124
MCDISPLAY (McStas keyword), 180, 324
mcdisplay (McStas tool), 120
McDoc, 185–187
mcdoc (McStas tool), 125, 185
mcgui (McStas tool), 76–79, 102, 122, 124, 185
MCNP, 89
exchange events, 257
MCPL, 89, 98
mcplot (McStas tool), 79, 90, 104, 111, 115, 123
mcplotdiff (McStas tool), 124
mcresplot (McStas tool), 125
mcrun (McStas tool), 114
MCSTAS (environment variable), 84, 322, 334
McStas
authors, 9
citing, 23
compiler, see mcstas
design, 34
installation, 73
mailing lists, 23
meta-language, see Meta-language
name, 343
pronunciation, 343
release scheme, 74
running from the GUI, 76–79
structure, 68, 71
mcstas (McStas compiler), 80
mcstas-jupylab (McStas tool), 117
mcstas-pygen (McStas tool), 83
mcstas-r (library), 322
mcstas2vitess (McStas tool), 337
MCSTAS_FORMAT (environment variable), 79, 89, 123, 129
mctest (McStas tool), 126
mcviewtest (McStas tool), 126
Meta-language, 34, 143
METADATA (McStas keyword), 168
Microsoft Windows, see Windows
MIN2RAD (constant), 338
MNEUTRON (constant), 338
modified by (McDoc keyword), 186
monitor_nd-lib (library), 335
Monte Carlo method, 49
accuracy, 60
adaptive sampling, 59
direction focusing, 54
stratified sampling, 59
MPI, 103, 131, 132
basic usage, 133
limitations, 137
mcrun, 133
performance, 134
MS Windows, see Windows
MYSELF (McStas keyword), 166
NAME_CURRENT_COMP (C macro, mccode-r.h), 325
Neutron
absorption, 160, 174
state (position, velocity, time, spin, weight), 148
weight, see Weight
Neutron polarisation, see Polarisation
NEXT (McStas keyword), 166
NeXus, 103, 130
extension, 158
NOACC (McStas keyword), 172
NORM (C macro, mccode-r.h), 328
normal_vec (C function, mccode-r.c), 328
Optimization, 87, 97
compiler option, 86
origin (McDoc keyword), 186
Output parameter, 343
OUTPUT PARAMETERS (McStas keyword), 171, 173
Parallel computing, see MPI, 131
Parameters
definition, 159, 170
Instruments, 154
instruments, 88, 89, 114
McDoc section, 186
optimization, 98, 114
optional, default value, 88, 154, 171
protecting, see Keyword/OUTPUT
scans, 114
setting, 159, 170
Path
file search, 83
PI (constant), 338
Polarisation, 193
field functions, 204
precession algorithm, 202
SimpleNumMagnetPrecession, 203
POS_A_COMP (C macro, mccode-r.h), 325
POS_A_COMP_INDEX (C macro, mccode-r.h), 325
POS_A_CURRENT_COMP (C macro, mccode-r.h), 325
POS_R_COMP_INDEX (C macro, mccode-r.h), 326
Preprocessor macros, 322
PREVIOUS (McStas keyword), 160, 166
PRISMA, 302
PROP_DT (C macro, mcstas-r.h), 323
PROP_GRAV_DT (C macro, mcstas-r.h), 324
PROP_NO_G_DT (C macro, mcstas-r.h), 324
PROP_NO_G_X0 (C macro, mcstas-r.h), 324
PROP_NO_G_Y0 (C macro, mcstas-r.h), 324
PROP_NO_G_Z0 (C macro, mcstas-r.h), 324
PROP_Z0 (C macro, mcstas-r.h), 174, 323
Propagation
backward, 174
RAD2DEG (constant), 338
RAD2MIN (constant), 338
rand01 (C function, mccode-r.c), 330
randnorm (C function, mccode-r.c), 330
Random numbers
generator, 316
transformations, 314
randpm1 (C function, mccode-r.c), 330
randtriangle (C function, mccode-r.c), 330
randvec_target_circle (C function, mccode-r.c), 330
randvec_target_rect (C function, mccode-r.c), 331
randvec_target_rect_angular (C function, mccode-r.c), 331
read_table-lib (library), 332
RELATIVE (McStas keyword), 159
Release scheme, 74
Removed neutron events, 324
RESTORE_NEUTRON (C macro, mcstas-r.h), 326
RMS2FWHM (constant), 338
ROT_A_COMP (C macro, mccode-r.h), 325
ROT_A_CURRENT_COMP (C macro, mccode-r.h), 325
rot_apply (C function, mccode-r.c), 327
rot_copy (C function, mccode-r.c), 327
rot_mul (C function, mccode-r.c), 327
ROT_R_COMP (C macro, mccode-r.h), 325
ROT_R_CURRENT_COMP (C macro, mccode-r.h), 325
rot_set_rotation (C function, mccode-r.c), 327
rot_transpose (C function, mccode-r.c), 327
rotate (C macro, mccode-r.h), 328
ROTATED (McStas keyword), 159, 166
Run-time, 343
Sampling, 59
SAVE (McStas keyword), 160, 175
scalar_prod (C function, mccode-r.c), 328
SCATTER (C macro, mcstas-r.h), 163, 165, 174, 324, 326
SCATTERED (C macro, mccode-r.h), 163, 165, 174, 326
SE2V (constant), 338
SEARCH (McStas keyword), 156
Setting parameter, 343
SETTING PARAMETERS (McStas keyword), 170
SHARE (McStas keyword), 173, 322
SHELL (McStas keyword), 156
SIGHUP, 97
SIGINT, 97, 161
Signal handler, 94
HUP signal, 97
INT signal, 97, 161
TERM signal, 97, 161
USR1 signal, 97
USR2 signal, 95, 97, 161
SIGTERM, 97, 161
SIGUSR1, 97
SIGUSR2, 95, 97, 161
solve_2nd_order (C function, mccode-r.c), 328
sphere_intersect (C function, mccode-r.c), 330
Spin-echo, 211
SPLIT (McStas keyword), 167
Statistics
uncertainty, 52
STORE_NEUTRON (C macro, mcstas-r.h), 326
Stratified sampling, 59
Table_Free (C function, read_table-lib.c), 333
Table_Free_Array (C function, read_table-lib.c), 333
Table_Index (C function, read_table-lib.c), 333
Table_Info (C function, read_table-lib.c), 333
Table_Info_Array (C function, read_table-lib.c), 333
Table_Init (C function, read_table-lib.c), 332
Table_Read (C function, read_table-lib.c), 332
Table_Read_Array (C function, read_table-lib.c), 333
Table_Read_Offset (C function, read_table-lib.c), 332
Table_Read_Offset_Binary (C function, read_table-lib.c), 332
Table_Rebin (C function, read_table-lib.c), 333
Table_Value (C function, read_table-lib.c), 333
Table_Value2d (C function, read_table-lib.c), 333
TAS1, 285
TERM (signal), 97, 161
Time-of-flight spectrometer
PRISMA, 302
Tools, 68
external, see IDL, Matlab, NeXus, Perl, PGPLOT, VRML/OpenGL
McStas, see mcdisplay, mcdoc, mcformat, mcgui, mcplot, mcresplot, mcrun, mcstas, mcstas2vitess
TRACE (McStas keyword), 158, 174
Triple-axis spectrometer
TAS1, 285
Tripoli, 89
Union, 218–246
algorithm, 240
conditionals, 238
exit volume, 234
geometry, 230
loggers, 236
masks, 234
master, 235
materials, 229
MCViNE, 227
processes, 224
surfaces, 235
tagging, 238
Union_init, 224
Union_stop, 224
Units, 148
constants and conversions, 338
USERVARS (McStas keyword), 157
USR1 (signal), 97
USR2 (signal), 95, 97, 161
V2K (constant), 338
Variance, 52
Variance reduction, 59
vec_prod (C function, mccode-r.c), 328
version (McDoc keyword), 186
Virtual sources, 59
Vitess, 89
vitess-lib (library), 337
VS2E (constant), 338
Weight, 51
statistical uncertainty, 52
transformation, 54
WHEN (McStas keyword), 165, 166
Windows
file and directory names with spaces, 74
written by (McDoc keyword), 186
|
|||||||
| ||||||||