Run the first simulation

This section explains how to run the first simulation.

Post installation steps

After the installation is completed, the location of BornAgain libraries needs to be included into LD_LIBRARY_PATH (or DYLD_LIBRARY_PATH for MacOS) and PYTHONPATH environment variables. This can be done by running the BornAgain setup script in the terminal session

source <install_dir>/bin/

Conveniently, a given call can be placed in your .bashrc  (.profile for MacOS) file.

Running the first Python simulation

In your installation directory you will find

|-- bin                   - Links to executables
|-- include
|   |-- BornAgain-1.11     - C++ headers to dive into the development
|-- lib
|   |-- BornAgain-1.11     - BornAgain libraries
|-- share
|   |-- BornAgain-1.11
|       |-- Examples      - Directory with examples

Run your first example and enjoy the first BornAgain simulation plot.

python <install_dir>/share/BornAgain-1.11/Examples/python/simulation/ex01_BasicParticles/
Running BornAgain GUI

BornAgain application can be run by executing following command

$ bornagain

See also