To set up and run a specular reflectometry simulation, use
import bornagain as ba
scan = ...
sample = ...
simulation = ba.SpecularSimulation(scan, sample)
# ... set options
result = simulation.simulate()
For the constructor arguments, see sections scan and sample.
For optional settings, see simulation options.
For the return type of function simulate()
,
see SimulationResult.