Off-specular scattering simulation

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

import bornagain as ba

sample = ...

# one of
scan = ba.AlphaScan(...)
scan = ba.LambdaScan(...)

detector = ba.OffspecDetector(...)
simulation = ba.OffspecSimulation(scan, sample, detector)

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.

Examples