Python script examples

This section of the online documentation is the BornAgain examples. It is a vast collection of exemplary Python scripts for various model systems. All scripts are also shipped with the BornAgain binaries. They can be found in the “Examples” directory:

C:\BornAgain-1.18.0\Examples\python

/Applications/BornAgain.app/Contents/share/BornAgain-1.18/Examples/python

install_dir/share/BornAgain-1.18/Examples/python

The examples are subdivided into the following categories:

Embedded particles

Layered structures

Interference functions

Complex shapes

Beam and detector

Reflectometry

Polarized Reflectometry

Fitting

Basic

Advanced

Extended

Miscellaneous