Material magnetization M is described by R3 vectors with components in A/m.
magnetization = ba.R3(Mx, My, Mz)
Magnetic materials are constructed as
color = (0.8, 0.2, 0.2)
material = ba.RefractiveMaterial(name, color, delta, beta, magnetization)
# or
material = ba.SLDMaterial(name, color, sld_real, sld_imag, magnetization)
Magnetization is often quoted as μ₀M in tesla. Multiply such a value by
ba.tesla to obtain M in A/m:
magnetization = ba.R3(0, 2.2*ba.tesla, 0) # mu_0*M = 2.2 T along y
ba.tesla = 1/μ₀, approximately 795774.715 A/m;
ba.gauss = 1e-4*ba.tesla, approximately 79.5774715 A/m.
Thus 2.2*ba.tesla and 22000*ba.gauss specify the same magnetization.
The model uses μ₀ = 4π × 10⁻⁷ T m/A.
For M reported in emu/cm³, multiply by 1000 to obtain A/m; see the unit conversions.
These inputs describe magnetization M. Magnetic induction B also depends on the magnetic field strength H through B = μ₀(H + M).
The magnetization of a particle material is given in the particle’s own frame and rotates with the particle. For a magnetization M in the sample frame, give the material the magnetization R⁻¹M, where R is the particle rotation.
An external field H, in A/m, is set on the sample:
sample.setExternalField(ba.R3(Hx, Hy, Hz))
sample.setExternalField(ba.R3(0, 0.5*ba.tesla, 0)) # mu_0*H = 0.5 T along y
H is the field in the top layer, which is the medium of incidence for a beam from above. Every layer then has the in-plane induction B = μ₀(H + M) with its own magnetization M, and the vertical induction B_z = μ₀(H_z + M_z) of the top layer, which is the same in all layers: the demagnetizing field of a laterally homogeneous layer cancels its vertical magnetization.
A field in the top layer splits the kinetic energies of the two neutron spin states. The consequences for specular reflectometry are described under specular simulation. Other simulation types (depth probe, off-specular, GISAS) support a field in the top layer only if all magnetic inductions in the sample are parallel or antiparallel to it. In every simulation type, polarizer and analyzer must be parallel or antiparallel to the field of the medium through which the beam enters or leaves the sample, or absent, since the phase that the two spin states accumulate on their path through that field is not computed.
Spin-flip scattering by magnetic particles, in GISAS and off-specular simulations, neglects the lateral Zeeman shift of the flipped wave in the field region: its lateral wavevector differs from that of the incident wave by an amount proportional to the field and to the wavelength, 1.2e-4 /nm at 0.5 T and a wavelength of 0.5 nm. A narrow lateral feature may therefore appear displaced by that amount. See BornAgain issue #1529.