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

B.1  Run-time calls and functions (mcstas-r)

Here we list a number of preprogrammed macros which may ease the task of writing component and instrument definitions.

B.1.1  Neutron propagation

Propagation routines perform all necessary operations to transport neutron rays from one point to an other. Except when using the special ALLOW_BACKPROP; call prior to executing any PROP_* propagation, the neutron rays which have negative propagation times are removed automatically.

B.1.2  Coordinate and component variable retrieval

B.1.3  Coordinate transformations

B.1.4  Mathematical routines

(\(^*\) The experienced c-programmer may be puzzled that these routines can return information without the use of pass by reference, the reason is that these calls are implemented as macros / #define wrapped functions.)

B.1.5  Output from detectors

Details about using these functions are given in the McStas User Manual.

B.1.6  Ray-geometry intersections

B.1.7  Random numbers