Simulation
Electromagnetism
Unity
Controls:
Use left mouse button to pan the camera, right mouse button to rotate view. WASD or arrow keys to move the camera. Scroll wheel to zoom in and out.
Double right click to create a charge distribution. A menu will appear on the right to change the parameters of the charge. Click off of this menu to close it.
Clicking on a charge will display its menu again.
About:
I started this project after taking my first electromagnetism course. The phenomena of electromagnetism fascinates me, but is challenging to understand
due to its intangibility. My objective was to make a VR simulation where you can create and manipulate charge distributions, and watch how electrical and magnetic fields change and
affect the charges in real time.
Currently, this simulator only computes electric fields caused by point charges, and infinite and finite line charges. The fields do not yet apply forces on the charges. The white lines show the direction of electric field, and their thickness represent
field strength on a logscale. I use Heun's method to iteratively plot the field lines in an efficient manner. Optimizing my code was a challenge, because everything runs in real time.
I've been working off and on this project for 2 years, coming back to it when I have the time. There are many bugs fix and features to add.