Core code analysis: How a simulation is run

All the following is from ISimulation::simulate.

To compute reflectivity, BornAgain first reprocesses the sample, as described in

Then it computes the transmitted and reflected radiation intensity for each sample slice. In GISAS mode, it then compute the scattering by inhomogeneities in distorted-wave Born approximation (DWBA). These computational steps are analyzed in more detail in