electripy

Learn electrostatics by playing around with electrons and protons


Keywords
electrostatics, simulation, physics, electrical-engineering, electron, proton, python
License
MIT
Install
pip install electripy==0.1.0

Documentation

ElectriPy âš¡

Downloads licence

Visualize the electric field of a point charges network.

🔌 Installation

Install Pygame and ElectriPy package:

$ pip install pygame
$ pip install electripy

You are all done! To start the simulation type:

$ python -m electripy

NOTE: you need to have Python and pip installed.

🔌 Controls

  • right click to add an electron
  • left click to add a proton
  • CTRL + Z to remove last charge added
  • CTRL + Y to add last charge removed
  • R to remove all charges from screen
  • E to show/hide the electric field
  • + to increment the electric field brightness
  • - to decrement the electric field brightness
  • F to show/hide electric force vectors
  • M to show/hide electric field vector at cursor position
  • SPACE to show/hide vectors components

🔌 Physics

You can check out a simple explanation of the physics used to make ElectriPy HERE.