Off-specular scattering simulation

To set up and run a simulation with off-specular scattering, use

import bornagain as ba
scan = ...
sample = ...
detector = ba.OffspecDetector(...)
simulation = ba.OffspecSimulation(scan, sample, detector)
# ... set options
result = simulation.simulate()

Supported scan types: grazing angle scan, wavelength scan.

For the constructor arguments, see sections scan, sample, and OffspecDetector.

For optional settings, see simulation options.

For the return type of function simulate(), see Datafield.

Examples