Electric Field Simulator

In my Electricity and Magnetism physics course, some of my assignments were to write a VPython script to visualize the electric field of a distributed charge in some particular situation. Since I’m lazy, and I don’t like rewriting code when I don’t have to, I created a generic electric field visualizer that supports arbitrary shapes.

heartsub1689

Here’s an example that shows the electric field of a uniformly charged heart.

Leave a Reply

Your email address will not be published. Required fields are marked *