| 1 |
+++ |
| 2 |
title = "Neutron polarization" |
| 3 |
weight = 60 |
| 4 |
+++ |
| 5 |
|
| 6 |
## Neutron polarization |
| 7 |
|
| 8 |
BornAgain takes neutron polarization into account |
| 9 |
if there is magnetism in the sample model |
| 10 |
or if a polarizer is set in the instrument model. |
| 11 |
|
| 12 |
Sample magnetization is explained in |
| 13 |
[Sample model > Materials > Magnetization](/ref/sample/material/magnetization). |
| 14 |
|
| 15 |
Beam polarization is set through |
| 16 |
```python |
| 17 |
polarizer_vec = R3(x, y, z) |
| 18 |
beam.setPolarization(polarizer_vec) # for scattering |
| 19 |
scan.setPolarization(polarizer_vec) # for specular and offspec |
| 20 |
``` |
| 21 |
The `polarizer_vec` is a Bloch vector. |
| 22 |
If it is a unit vector, then the beam polarization is perfect. |
| 23 |
A shorter vector indicates imperfect polarization. |
| 24 |
|
| 25 |
The analyzer properties are through |
| 26 |
```python |
| 27 |
analyzer_vec = R3(x, y, z) |
| 28 |
detector.setAnalyzer(analyzer_vec, t_parallel, t_antiparallel) # for scattering and offspec |
| 29 |
scan.setAnalyzer(analyzer_vec, t_parallel, t_antiparallel) # for specular |
| 30 |
``` |
| 31 |
The first argument is a non-zero direction vector that specifies the analyzer orientation. |
| 32 |
|
| 33 |
`t_parallel` is the probability of passing the particle with the "desired" |
| 34 |
(or selected) spin component (along the analyzer orientation). |
| 35 |
|
| 36 |
`t_antiparallel` is the probability of passing the particle with the "undesired" |
| 37 |
(or suppressed) spin component (against the analyzer orientation). |
| 38 |
|
| 39 |
|
| 40 |
Examples are under [Examples > Instrument > Polarization](/ref/instr/ex/pol). |
| 41 |
|
| 42 |
Examples to be moved: |
| 43 |
{{% children %}} |