BornAgain
≻
git-develop
≻
Documentation
≻
Examples
≻
Specular
≻ Magnetic and polarized
Magnetic and polarized
Calculate polarized reflectivity, spin-flip channels, magnetic rotations, and spin asymmetry.
Basic specular
Magnetic field minus Z
Magnetic layer
Magnetic layer imperfect
Magnetic rotation reflectivity
Polarized Fe Ni bilayer
Polarized Fe Ni bilayer NC
Polarized Fe Ni bilayer NCQ
Polarized Fe Ni bilayer Q
Polarized Fe Ni bilayer spin flip
Polarized Fe Ni bilayer spin flip NC
Polarized Fe Ni bilayer spin flip NCQ
Polarized Fe Ni bilayer spin flip Q
Polarized Fe Ni bilayer spin flip tanh
Polarized Fe Ni bilayer spin flip tanh Q
Polarized Fe Ni bilayer tanh
Polarized Fe Ni bilayer tanh Q
Polarized Q angle reflectivity
Spin asymmetry
Stripe domains reflectivity
Introduction
Functionality overview
Install or build
Install Python
Python on Linux
Python on Windows
Python on Mac
Versioned scripts
Python modules
Install BornAgain
Linux
Windows
MacOS
Development snapshot
Build BornAgain
Unix
Install third-party software
Get the source
Build and install BornAgain
Run a first simulation
Windows
Python scripting
Run a script
Understand the syntax
AI-assisted scripting
Fitting
Upgrading
Reference
Simulation model
Simulation classes
Specular
Example
Scattering
Examples
GISAS
without DWBA terms
with specular peak
SAS
Polarized SANS
Monte-Carlo
Off-specular
Off-specular
Yoneda peak
Depth probe
Thin film
Fresnel transmission
Transmitted modulus
Opaque sample
Resonator
Common settings
Background
Options
Monte-Carlo
# threads
Mesocrystal summation
Offspec integration
Average materials
Include specular
Progress monitor
Instrument model
Beam
Footprint
Beam divergence
Scan
TOF reflectometry
TOF resolution
Beam Angular Spread
Beam Wavelength Spread
Detectors
SphericalDetector
2d detector resolution
Offspec detector
Neutron polarization
Examples
2D detector resolution
Neutron polarization
Magnetic layer
Ditto, realistic instrument
Spin asymmetry
Polarized scattering
Sample model
Materials
SLD from chemical formulas
Magnetization
Multilayer
Layer
LayerStack
Roughness
Interface model
Transient
Cross-correlation
Real space
Examples
Reflectivity
GISAS
Particles
Form factor
Hard particles
Bipyramid4
Box
CantellatedCube
Cone
Cylinder
Dodecahedron
Ellipsoid
EllipsoidalCylinder
EllipsoidalSegment
HorizontalCylinder
Icosahedron
PlatonicOctahedron
PlatonicTetrahedron
Prism3
Prism6
Pyramid2
Pyramid3
Pyramid4
Pyramid6
Sphere
SphericalSegment
Spheroid
SpheroidalSegment
TruncatedCube
Ripples
Bar ripple
Cosine ripple
Sawtooth ripple
Soft particles
FuzzySphere
Gauss
Custom formfactor
Composite particles
Core and shell
Mixture
Compound particle
Mesocrystal
Examples
Compound particle
Core and shell
Crossing an interface
Mesocrystal
Rotation example
Structure
2D structures
Disorder
Uncorrelated mixture
Polydispersity
Grating
1D lattice
1D paracrystal
Triangular ripples in a lattice
2D lattice
Square lattice
Lattice orientation distribution
Finite square lattice
Lattice with basis
Multi-layer lattice
Position variance
2D paracrystal
Radial paracrystal
Size-distribution models
3D structures
Disordered
3D sample view
Model modifiers
Rotation
Correlation profiles
Distributions
Data import
Reflectometry tables
2D ASCII tables
Detector images
BerSANS / NICOS images
HDF5 / NeXus
Data types
Class Datafield
Axis coordinates and transformations
Export
Find intensity peaks
Fourier transform of 2D data
Material profiles
Profiles with rough interfaces
SLD profile with a sliced particle layer
Plotting
Functions
Configuration
Heat map
LaTeX markup
Export
Fitting
Minimizer
Fit monitoring
Multiple datasets
Examples
Fitting with masks
Fitting along slices
GISAS fit
Poisson likelihood
Experiment at GALAXI
Bayesian Sampling
Consecutive fitting
Considering uncertainties
SciPy differential evolution
Simultaneous fit of two datasets
Spin asymmetry fit
Reflectometry: Fit Pt layer
Reflectometry: Fit honeycomb
Examples
GISAS
Simulation setup and instrument
Background
Beam divergence
Boxes with specular peak
Custom background
Cylinders
Cylinders and specular
Lattice with specular
Oblique device
Resolution
Rough and specular
Particles, layers, and interfaces
Attach above substrate
Attach below vacuum
Bi-material cylinders
Box composition rotate X
Box composition rotate Y
Box composition rotate Z
Box composition rotate Z and Y
Box stack composition
Compound
Compound plus
Core shell box rotate Z and Y
Core shell nanoparticles
Core shell nanoparticles 2
Correlated roughness
Custom formfactor
Custom morphology
Cylinders and prisms
Cylinders in average layer
Cylinders slices
Dilute film
Film vs density
Film vs monolayer
Film vs thickness
GISAS absorptive SLD layers
Half spheres in average top layer
Half spheres slices
Multi layer with linear growth
Multi layer with roughness
Multiple layout
Particle across interface
Polydisperse cylinders
Rotated pyramids
Sliced composition
Sliced layer
Soft spheres
Soft spheres film
Thick absorptive sample with roughness
Structures and correlations
Centered square lattice 2D
Cosine ripple
Crystal 1D grating
Disordered
Finite square lattice
Hard disk
Hex paracrystal
Holes lattice
Holes lattice ref
Lattice 2D with basis
Lattice orientation distribution
Mesocone
Mesocrystal
Mesocrystal evanescent
Mesocrystal plus
Mesocrystal slices
Mesocrystal with basis
Mesocrystal with basis slices
Paracrystal
Paracrystal 1D grating
Position variance
Radial paracrystal
Rectangular grating
Rect paracrystal
Rotated square lattice 2D
Sawtooth ripple
Square lattice
Square lattice 2D
Triangular ripple
Triangular ripple PC
Two layer lattice
Magnetic scattering
Magnetic cylinders
Magnetic cylinders unpol
Magnetic domains
Magnetic particle zero field
Magnetic rotation unpol
Magnetic rotation ZPM
Magnetic roughness only
Magnetic spheres
Magnetic spheres in mag layer
Magnetic spheres transmission
Magnetic substrate zero field
Methods and analysis
Approximations
Cylinders in BA
Cylinders in BA beam from below
Cylinders in BA transmission
Find peaks
Fourier transform
Large particles
Vs Q
SAS
Dodecahedra SAS
Polarized SANS
Specular
Basics
Alternating layers
Basic
Homogeneous Ti Ni sample with absorption
Reflectivity Q4
Instrument and resolution
Background
Beam full divergence
Distributions
Footprint correction
Gaussian beams
Instrument definition comparison
Time of flight reflectometry
TOF relative resolution
TOFR with resolution
Vs GenX
Roughness and slicing
NC roughness in specular
Roughness model
Specular simulation with roughness
Specular with slicing 1
Specular with slicing 2
Specular with slicing 2Q
Specular with slicing 3
Magnetic and polarized
Basic specular
Magnetic field minus Z
Magnetic layer
Magnetic layer imperfect
Magnetic rotation reflectivity
Polarized Fe Ni bilayer
Polarized Fe Ni bilayer NC
Polarized Fe Ni bilayer NCQ
Polarized Fe Ni bilayer Q
Polarized Fe Ni bilayer spin flip
Polarized Fe Ni bilayer spin flip NC
Polarized Fe Ni bilayer spin flip NCQ
Polarized Fe Ni bilayer spin flip Q
Polarized Fe Ni bilayer spin flip tanh
Polarized Fe Ni bilayer spin flip tanh Q
Polarized Fe Ni bilayer tanh
Polarized Fe Ni bilayer tanh Q
Polarized Q angle reflectivity
Spin asymmetry
Stripe domains reflectivity
Off-specular
Offspec 1
Offspec lambda
Offspec resolved
Offspec resonator
Stripe domains
Yoneda BA
Fitting
GISAS
Consecutive fitting
Expfit GALAXI
Fit along slices
Fit GISAS
Fit with masks
Multiple datasets
Poisson likelihood
SciPy basics
Specular
Honeycomb fit
Likelihood sampling
Pt layer fit
Specular 1 par
Spin asymmetry fit
TREFF Ni film
Form factors
SAS FF
Sphere
Depth probe
Depthprobe
Depthprobe 1
Opaque 2D
Opaque vs alpha
Opaque vs depth
Resonator
Transmission
Transmission vs alpha
Transmission vs depth
Transmitted modulus
Sample structure
Material from formula
Material profile
Material profile with particles
Rough surface
How to
Get announcements
Solve known problems
Request help or report bugs
Cite BornAgain
Developers' corner
Configure
Pyenv
Doxygen
Develop
Manual checks
Debug
Webdoc
Release