| 1 |
+++ |
| 2 |
title = "Magnetic layer" |
| 3 |
weight = 10 |
| 4 |
+++ |
| 5 |
|
| 6 |
### Polarized neutron reflectometry with a magnetic layer |
| 7 |
|
| 8 |
This is the introductory example for specular reflectometry with polarized neutrons. |
| 9 |
|
| 10 |
The sample consists of a single magnetic layer on top of a substrate. |
| 11 |
The magnetic field vector `B` lies in the xy plane. |
| 12 |
The field direction forms an angle of `Bang = 30 * deg` with the x axis. |
| 13 |
The field magnitude `Bmag=1e8` is in units of A/m. |
| 14 |
The field is passed as an optional function argument to the constructor |
| 15 |
`ba.SLDMaterial`. |
| 16 |
|
| 17 |
The neutron polarizer and analyzer directions are set through |
| 18 |
``` |
| 19 |
scan.setPolarization(polarizer_vec) |
| 20 |
scan.setAnalyzer(analyzer_vec) |
| 21 |
``` |
| 22 |
|
| 23 |
|
| 24 |
The resulting reflectivities are shown in this plot: |
| 25 |
|
| 26 |
{{< galleryscg >}} |
| 27 |
{{< figscg src="/img/auto/specular/MagneticLayer.png" width="650px" caption="Reflectivity">}} |
| 28 |
{{< /galleryscg >}} |
| 29 |
|
| 30 |
As expected, we find the birefringent behavior. |
| 31 |
The critical angles also depends on the polarization. |
| 32 |
|
| 33 |
The curve for polarizer settings `-+` is not shown |
| 34 |
because it coincides with the `+-` curve. |
| 35 |
|
| 36 |
Here is the complete example: |
| 37 |
|
| 38 |
{{< show-ex file="specular/MagneticLayer.py" >}} |