User and Programmers Guide to the Neutron Ray-Tracing Package McStas, version 3.8.6

5  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 5.1) and then the physics of the scattering processes relevant to polarisation (section 5.2). Section 5.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 5.4 then documents the current polarisation components themselves, organised by role, and section 5.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).

5.1 The Polarization Vector
5.1.1 Example: Magnetic fields
5.2 Polarized Neutron Scattering
5.2.1 Example: Nuclear scattering
5.2.2 Example: Polarizing Monochromator and Guides
5.3 Magnetic fields: the precession algorithm and field framework
5.3.1 The magnetic field stack
5.3.2 Numerical spin precession: SimpleNumMagnetPrecession
5.3.3 Available field functions
5.4 Polarisation components in McStas
5.4.1 Setting and analysing polarisation
5.4.2 Polarising monochromators, mirrors and guides
5.4.3 Magnetic field components
5.4.4 Polarisation-sensitive monitors
5.4.5 Samples and polarisation
5.5 Test and example instruments
5.5.1 Component-level regression tests
5.5.2 Test_Pol_TripleAxis
5.5.3 He3_spin_filter
5.5.4 A spin-echo example: SE_example