# Neutron polarization on BornAgain

file:///usr/share/doc/bornagain/html/ref/instr/ex/pol/index.html Recent content in Neutron polarization on BornAgain Hugo en-us

# Magnetic layer

file:///usr/share/doc/bornagain/html/ref/instr/ex/pol/magnetic-layer.html Mon, 01 Jan 0001 00:00:00 +0000 file:///usr/share/doc/bornagain/html/ref/instr/ex/pol/magnetic-layer.html <h3 id="polarized-neutron-reflectometry-with-a-magnetic-layer">Polarized neutron reflectometry with a magnetic layer</h3> <p>This is the introductory example for specular reflectometry with polarized neutrons.</p> <p>The sample consists of a single magnetic layer on top of a substrate. The magnetic field vector <code>B</code> lies in the xy plane. The field direction forms an angle of <code>Bang = 30 * deg</code> with the x axis. The field magnitude <code>Bmag=1e8</code> is in units of A/m. The field is passed as an optional function argument to the constructor <code>ba.MaterialBySLD</code>.</p>

# Ditto, realistic instrument

file:///usr/share/doc/bornagain/html/ref/instr/ex/pol/magnetic-layer-imperfect.html Mon, 01 Jan 0001 00:00:00 +0000 file:///usr/share/doc/bornagain/html/ref/instr/ex/pol/magnetic-layer-imperfect.html <h3 id="polarized-specular-reflectometry-with-non-perfect-polarizer-and-analyzer">Polarized specular reflectometry with non-perfect polarizer and analyzer</h3> <p>In this example, we show how to perform a specular reflectometry simulation with polarized neutrons and both a non-perfect polarizer as well as analyzer. The example is inspired by and performed with parameters close to the ones in <a href="https://doi.org/10.1063/1.4790717">the paper by Devishvili et al.</a>. This example is a saturated iron film on top of a MgO substrate. On top of the iron layer is a thin Pd cap layer.</p>

# Polarized scattering

file:///usr/share/doc/bornagain/html/ref/instr/ex/pol/polarized-scattering.html Mon, 01 Jan 0001 00:00:00 +0000 file:///usr/share/doc/bornagain/html/ref/instr/ex/pol/polarized-scattering.html <h2 id="polarized-scattering-by-magnetic-particles">Polarized scattering by magnetic particles</h2> <p>This example shows a GISAS simulation with polarized beam, magnetic sample, and polarization analyzing detector.</p> <p>The sample is made of magnetic spherical particles embedded in the substrate of a simple 2-layer system. The magnetization is in z direction.</p> <p>The incident beam is polarized in +z direction. The polarization analyzer transmits neutron with -z polarization component. Accordingly, only spin-flip scattering is detected.</p> <figure class="center"> <a href="file:///usr/share/doc/bornagain/html/img/auto/scatter2d/MagneticSpheres.png"> <img src="file:///usr/share/doc/bornagain/html/img/auto/scatter2d/MagneticSpheres.png" width="500px"> </a> <figcaption> <p></p> </figcaption> </figure> <div class="highlight"><div class="chroma"> <table class="lntable"><tr><td class="lntd"> <pre tabindex="0" class="chroma"><code></code></pre></td> <td class="lntd"> <pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"></code></pre></td></tr></table> </div> </div> <a class="linktofile" href="https://jugit.fz-juelich.de/mlz/bornagain/-/tree/r23/auto/Examples/scatter2d/MagneticSpheres.py"/>auto/Examples/scatter2d/MagneticSpheres.py</a>