This example demonstrates beam wavelength spread effects in reflectivity computations. All simulation parameters (except for those related to beam spread itself) coincide with those defined in reflectometry simulation tutorial.
In real specular experiments the observed reflectivity is always affected by the beam spread in both wavelength and incident angle.
In this example the following parameters related to the spread of the beam were set to the simulation:
As one can see from the Python script, the definitions of beam parameter distributions
match ones described in similar example for GISAS simulations.
However, in the case of the incident angle one should always use a distribution with zero mean,
since the actual mean value is substituted by SpecularSimulation
in dependence on the
defined inclination angle range.
If the distribution of the incident angle has non-zero mean value, an exception
is thrown:
terminate called after throwing an instance of 'std::runtime_error'
what(): Error in SpecularSimulation: parameter distribution of beam inclination angle should have zero mean.
|
|