Magnetic Field Simulator
October 2020Android app for simulating the magnetic field generated around a current carrying wire
Development
The app was created in the Unity Engine in C# over the course of a month.
How it works
The Biot-Savart law is used to calculate the magnetic field around a wire of arbitrary shape.
However, rather than solving for the exact solution to the integral, we can get an approximate solution by calculating numerically. The app does this by breaking up the wire into very small pieces and calculating their contribution to the magnetic field at some point.
Future Plans
After over 2 years of learning, I finally understand the propagation of electromagnetic waves and am able to simulate their generation around a wire. So, I am planning on creating a desktop version that will simulate both the electric and magnetic fields around a time varying current. Work is already started using the Unity Engine, and I plan on using compute shaders to greatly increase calculation speed by using the GPU.