Skip to content

Stopping power and range of protons or alpha particles in ambient matter

License

Notifications You must be signed in to change notification settings

michaeltouati/SPAM

Repository files navigation

License : GPLv3 Contributor Covenant Clones : 14 days Open issues Closed issues Open pull requests Closed pull requests Binder example

Written by Michaël TOUATI - 09/27/2019

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.

Screenshot

Needed Python packages

SPAM needs the following Python packages :

  • tkinter
  • pillow 9.5.0 (with imagetk module)
  • numpy
  • matplotlib

Running SPAM

In order to use it, download or clone it and just type

python3 spam.py

The tkinter window will pop up.

Jupyter notebook example

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.

License

SPAM is distributed under the terms of the GPLv3 license.