A downloadable tool for Windows

A simple program that lets you place electric charges and formations of electric charges (meshes) in a 2D grid and calculates the electric field and electric field lines. It just uses the Coulomb's law to calculate the field strength at a point. The formula E = k * q / r^2 is used to calculate the field strength vector for a single charge at a single point and then all the vectors are added together to get the field strength vector for a single point.

Usage

Hold down the middle mouse button and move the mouse to move the view. Hold down the left mouse button to see the field strength at the mouse position. Rightclick to open the menu. In the view section the buttons let you toggle the electric field and the field lines on or off. Click on a point charge or a mesh to select it. To deselect click on empty space. Press Delete or Backspace to delete the selected object.

Made using Raylib 4.5.

Source code: https://github.com/UkuNano/Electric-field-simulator

Download

Download
ElectricFieldSim.zip 292 kB

Install instructions

Unzip the ElectricFieldSim.zip file, which contains a folder. The folder can be moved anywhere and it includes the executable.

Leave a comment

Log in with itch.io to leave a comment.