Depth probe simulation is an auxiliary simulation type, which helps to visualize the total intensity in dependence on the beam incidence angle and the position in the sample.
To set up and run a simulation, use
import bornagain as ba
scan = ...
sample = ...
z_axis = ba.FixedBinAxis("z", nz, z_min, z_max)
simulation = ba.DepthprobeSimulation(scan, sample, z_axis)
# ... set options
result = simulation.simulate()
For the constructor arguments, see sections scan, sample.
For optional settings, see simulation options.
For the return type of function simulate()
,
see SimulationResult.
We consider a neutron resonator, composed of one Ti/Pt bilayer.
The beam comes from the Si side. By convention the beam always comes ‘‘from above’’. Accordingly, we consider Si the ‘‘ambient’’ material, placed ‘‘on top’’ of the sample.
As a result, we obtain the neutron intensity as function of depth and incident angle $\alpha_i$.
|
|