## Magnetic field due to current carrying conductors

#### Magnetic field due to current carrying conductors.

Originally written in www.debipattnaik.com

Hans Christian Ørsted was a Danish physicist who found this interesting relation between electric current and magnetic field. He was the first to experimentally verify this interconnection between Electric field and Magnetic field in space, and formulated the basics step of electromagnetism.

After this mutual relationship between these two fields had been established,  and that they always co-exist, Jean-Baptiste Biot and Félix Savart formulated and discovered the Biot-Savart’s law in 1820.

This law is a very fundamental law that gives information about the magnetic field produced by a steady current. The maths and some examples have been clearly in the document (Biot_savarts 1D), which can be handy for beginners before they start simulating for magnetic field in two current carrying conductors in opposite direction.

“The proposed problem we are simulating here is two equal current carrying parallel conductors in x axis separated by a given distance in the y axis. We need to find the Magnetic field due to such a system down the z axis.”

Find the code which simulates this here.

The program assigns two current sources in the xy plane, and then divides each conductor to rings or current element. The magnetic field due to each current element is then computed. The program employs the fundamental Biot Savart’s law to compute this static magnetic field at a point down the z axis.

Such kind of systems where conductors carry equal current but in opposite directions are a crucial parameter when constructing electromagnets, and also simulating Fraday’s law. Often  semiconductor industries employ high permeable magnetic shielding to prevent this stray magnetic field to behave as a parasite and harm the integrity of the magnetic  semiconductor