Equipotential


Instructions:

  1. Click and drag as the protons onto the gridded field to create a design
    • To delete a charge, simply drag it up to the top
    • To clear the field, click on the Reset button
  2. Click the "Visualize" button to create an interactive 3D contour plot
  3. Rotate, pan, zoom, and take a screenshot using the plot's tools
  4. Click on "Download CSV" to download a CSV file, which can be viewed with Excel or Google Sheets

Proton
Electron Reset
Visualize
Download CSV


How it works:

  • Equation: V = kQ/r
    • k = 8.987551792 * 109 N*m2/C2
    • Q = charge of proton/electron
      • p = 1.6021766 * 10-19 C
      • e = -1.6021766 * 10-19 C
    • r = distance
      • 1 pixel = 1 picometer (10-12 meters)
      • Each measurement taken 3 pixels apart
  • Interactive field created using draggable and droppable from JQuery
  • Electric potentials calculated using JavaScript
  • Surface plot created using Plotly, an open source graphing library