Off-specular scattering simulation

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

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

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.