SOFT (for "Synchrotron-detecting Orbit Following Toolkit") is a synthetic synchrotron diagnostic that can be used to study the synchrotron radiation emitted by runaway electrons in tokamaks. By taking the effect of electron orbits into account, SOFT can accurately reproduce synchrotron images and spectra as obtained in experiments, assuming the runaway electron distribution function is known.
Basic documentation of SOFT is available at [http://soft.readthedocs.io/en/latest/].
SOFT utilizes a number of third-party libraries. Some are required for the code to at all compile, while some can be optionally linked to for additional functionality. Software that must be installed on your system is
- A compiler supporting OpenMP (such as gcc)
- GNU Scientific Library version 2.0 or later
Optional software that is recommended, but not required, to compile, is
- HDF5, for reading/writing data in this format.
- Matlab, for reading/writing data in .mat format.
- MPI, for MPI support. Allows running SOFT across multiple computers. See for example MPICH or OpenMPI.
- The first step to compiling SOFT is to configure the source code by running CMake. This is done by entering the build directory and running cmake:
$ cd build/ $ cmake ../
By default, CMake will look for HDF5 and Matlab, and if they are not found on the system, configuration will fail. To disable, HDF5 and Matlab support, run instead
$ cmake ../ -DUSE_HDF5=OFF -DUSE_MATLAB=OFF
Similarly, MPI support can be enabled using
$ cmake ../ -DUSE_MPI=ON
- Once SOFT is configured, the code can be compiled with
in the build directory. The resulting binary can be found under build/src/.
- (Optional) To install SOFT on your system, run
$ make install
from the build directory. This will copy the build/src/soft binary to /usr/bin.
Documentation of SOFT is available in two forms:
- The official SOFT manual, located under docs/. Documenting the details of implementation in SOFT.
- The SOFT beginner's guide, found at [http://soft.readthedocs.io/en/latest/].
Who's behind SOFT?
SOFT is developed by the Plasma Theory group at the Department of Physics, Chalmers University of Technology.
How to cite
When refering to SOFT, please cite the SOFT paper:
 M. Hoppe, O. Embréus, R. A. Tinguely, R. S. Granetz, A. Stahl and T. Fülöp, "SOFT: a synthetic synchrotron diagnostic for runaway electrons", Nucl. Fusion **58** 026032 [https://doi.org/10.1088/1741-4326/aa9abb].