Skip to content

benjamin-cates/Interactive-EM

Repository files navigation

The Interactive EM Webapp is a dynamic simulator for the electric field. This project was created as a part of Friday Night Lab at College of the Sequoias. The simulator is written in TypeScript and the graphics are in WebGL.

Play with the project here

Features

  • Various charge shapes
    • Point charges
    • Infinite planes
    • Line charges
  • Live property editor for physical features
    • Velocity
    • Angular velocity
    • Charge density
    • Size
    • Mass
  • Variety of conductor shapes
  • Equipotential lines
  • Electric field vectors

Example images

Ring Conductor Infinite Plane Two Oppositely Charged Lines

Math

Simulating the electric field is a difficult task. Either it is computationally expensive, or requires hard integrals to be solved. We decided to solve integrals and present our math in a LaTeX document. The work-in-progress document can be viewed here.

License

This project is under the MIT License. Feel free to fork and edit features (and maybe submit a pull request).