I’ve been studying medical physics for a while, and I wanted to create something that turns theory into something visual and interactive.
So I decided to build a small web app that shows how X-rays, Gamma rays, and Protons interact with matter.
The project is built with Python and Flask, and it uses simplified physical equations like Klein–Nishina and Bethe–Bloch to simulate photon and particle interactions.
meant for educational use.
You can:
Compare materials like water, bone, and lead.
Generate plots for different energies.
Export results to PDF and Excel.
See how energy, density, and atomic number affect attenuation and dose.
It’s a simple open-source project, but I hope it helps students and researchers visualize the physics they study every day.
Any feedback or suggestions are welcome.
GitHub: github.com/hassony/MedicalRadiationVisualizer
Top comments (2)
Nice work! Turning medical physics into a visual app is super helpful. Quick question, Is all the physics calculated server-side with Python, or do you use any client-side stuff?
This project is completely open source and designed for teaching purposes only. I’m planning to add the Electrons and Shielding modules next.