The Calculation of the Magnetic Field Produced by an Arbitrary Shaped Current-Carrying Wire in its Plane
Instead of performing the integration explicitly to calculate the magnetic field from an arbitrary shaped wire, an improved method was proposed. The magnetic field generated by a straight line segment carrying steady current was calculated based on the Biot-Savart law. The new approach is to break the wire down into a number of straight line segments in its plane. According to the principle of vector superposition and coordinate rotation, the magnetic field from the complete current wire can then be calculated by summing the contribution from each of the separate straight line pieces. The simulation results show that the proposed numerical method has high accuracy and faster computational time and is efficient and convenient to the application in projects.