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

A.  Polarisation in McStas

McStas provides a set of components for simulating neutron beam polarisation and the optical elements that manipulate it: polarising monochromators, mirrors and guides, magnetic-field regions (including spin flippers and spin-echo coils), and polarisation-sensitive monitors. This chapter originated as an appendix written by P. Christiansen documenting the first polarisation components (2006); it is now promoted to a full chapter and brought up to date with the current McStas 3.x component set and the pol-lib field/precession framework that underlies it.

We first describe the polarisation vector and how it is related to the neutron wave-function (section A.1) and then the physics of the scattering processes relevant to polarisation (section A.2). Section A.3 describes in detail how McStas propagates the polarisation vector through magnetic fields – the numerical precession algorithm and the field functions available – since this underlies every magnetic-field component in the library. Section A.4 then documents the current polarisation components themselves, organised by role, and section A.5 lists example and test instruments, including a worked spin-echo example.

We rely heavily on the books [Lov84; Wil88] for the underlying physics, where the detailed calculations can be found.

The notation used here (and in [Wil88]) is \(P\) (scalar), \(\PB \) (vector), \(\tP \) (unit-vector), \(\sigmaH \) (operator), and \(\sigmao \) (vector of operators).

A.1 The Polarization Vector
A.1.1 Example: Magnetic fields
A.2 Polarized Neutron Scattering
A.2.1 Example: Nuclear scattering
A.2.2 Example: Polarizing Monochromator and Guides
A.3 Magnetic fields: the precession algorithm and field framework
A.3.1 The magnetic field stack
A.3.2 Numerical spin precession: SimpleNumMagnetPrecession
A.3.3 Available field functions
A.4 Polarisation components in McStas
A.4.1 Setting and analysing polarisation
A.4.2 Polarising monochromators, mirrors and guides
A.4.3 Magnetic field components
A.4.4 Polarisation-sensitive monitors
A.4.5 Samples and polarisation
A.5 Test and example instruments
A.5.1 Component-level regression tests
A.5.2 Test_Pol_TripleAxis
A.5.3 He3_spin_filter
A.5.4 A spin-echo example: SE_example