Mr. Electric!

Griffiths chapter 2 visualizer

This is a guide to running the web simulator:

Navigate to the simulate page, and select a mode from the dropdown menu.

Once selected, input the suggested inputs, some modes will ask for one or two charges, some for distances. Input all necessary values.

Recommended values will automatically be present, it's not recommended to lower the charge below 10 nanocoulombs, or past a few hundred nanocoulombs, results may grow unstable!

Wait for pyodide to load, bottom output should read "Ready-run simulation!", when this occurs, click Run simulation.

Scroll around the plot with your mouse, and take a look at the output information.

This is a guide to running the python file:

For those who want the experience as seen in the gallery, download the file off of Github. You will need to download matplotlib, numpy and scipy.

When all are loaded, open any python agent, and run Physics.py.

Select a mode, input the information, and click enter, and you will have a plot!

Notes for both run modes:

A charge of zero will give an error, as will any radius of zero for the gaussian sphere, pick wisely!

Suggested Values: Before typing anything into the inputs, you will see suggested values, try these! Most charges are at their most useful at 10 nanocoulombs, furthermore the distances in the two charge mode should be decently far away in the 100x100 grid!

Using it for calculations:

The electric field simulator is intended to be very useful for electrostatics. When you select a probe point in 3d space, the field will return the electric field magnitude at that point. Which is very useful for electrostatics problems. You can even check the results yourself!

The Dirac Delta simulator is more for entertainment, the Gaussian Sphere is still a work in progress. New features are coming soon that will make it more useful!

Home Physics *Guide* Gallery Simulate