Ampere’s Law Project

In this project, we investigate Ampere’s Law by considering a 2D problem
with the axis of the wire perpendicular to the plane. We calculate the magnetic potential A_z for a certain current density, and generate and plot the magnetic field.
Later, we generalize the approach to two wires with parallel currents and
antiparallel currents.
Finally, we adapt the code to plot for three wires, wire of other shapes
(\pi shape), and a 5×5 grid of 25 wires.
For the 5×5 grid of wires, we consider a case whereby each wire is
switched on one at a time, in a certain pattern. The objective is to observe
the interactions of magnetic fields.