SPAM (Stopping Power of Protons and Alpha particles in Ambient Matter) is a python tool allowing for printing and saving the stopping power and/or the Bragg's peak of protons or alpha particles in ambiant matter. Equations computed by SPAM are detailed in the spam.pdf file. The comparisons with PSTAR and ASTAR NIST databases that has been used to validate SPAM can be found in the benchmarks.tar.xz file. The next release will take into account the angular scattering of protons and alpha particles using a Monte-Carlo approach.
SPAM needs the following Python packages :
- tkinter
- pillow 9.5.0 (with imagetk module)
- numpy
- matplotlib
In order to use it, download or clone it and just type
python3 spam.py
The tkinter window will pop up.
An example of jupyter notebook about how to compute the stopping power, range and Bragg peak curve of a projectile in a compound material at ambient conditions, that is not yet implemented, can be found and run by using the binder interactive notebook badge link.