Python examples

This catalog covers every published BornAgain Python example. Its sections are organized by calculation type. Each entry opens a dedicated page with the self-contained Python script and uses the automatically generated result as its preview.

  • GISAS
  • Grazing-incidence small-angle scattering grouped by calculation focus.

  • SAS
  • Small-angle scattering from particles in bulk samples.

  • Specular
  • Specular reflectometry grouped by physical and instrumental focus.

  • Off-specular
  • Off-specular reflectometry with angle and wavelength scans.

  • Fitting
  • Fitting examples grouped by simulated data type.

  • Form factors
  • Direct particle form-factor calculations and plots.

  • Depth probe
  • Depth-resolved intensity, transmission, opacity, and resonances.

  • Sample structure
  • Materials, profiles, rough surfaces, and three-dimensional sample views.