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

6  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 6.1) and then the physics of the scattering processes relevant to polarisation (section 6.2). Section 6.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 6.4 then documents the current polarisation components themselves, organised by role, and section 6.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).

6.1 The Polarization Vector
6.1.1 Example: Magnetic fields
6.2 Polarized Neutron Scattering
6.2.1 Example: Nuclear scattering
6.2.2 Example: Polarizing Monochromator and Guides
6.3 Magnetic fields: the precession algorithm and field framework
6.3.1 The magnetic field stack
6.3.2 Numerical spin precession: SimpleNumMagnetPrecession
6.3.3 Available field functions
6.4 Polarisation components in McStas
6.4.1 Setting and analysing polarisation
6.4.2 Polarising monochromators, mirrors and guides
6.4.3 Magnetic field components
6.4.4 Polarisation-sensitive monitors
6.4.5 Samples and polarisation
6.5 Test and example instruments
6.5.1 Component-level regression tests
6.5.2 Test_Pol_TripleAxis
6.5.3 He3_spin_filter
6.5.4 A spin-echo example: SE_example