« Introduction | Algorithm Design »

The Biot-Savart Law

The Biot-Savart Law is a fundamental equation of magnetostatics, and analytically determines the magnetic field generated by a constant electric current traveling along a path in 3D space. Anyone who’s had to take a physics class before will recognize using it to determine the magnetic field around a wire. Because it is analytical, it can be very useful in accurately calculating the effects of complicated arrangements of currents in 3D space, by breaking down the larger problem into smaller pieces.

Wikipedia has a much better description than I can provide on my own, but the core equation is a line integral:

\[\vec{B}(r) = \frac{\mu_0}{4\pi} \int_C{\frac{I dl \times r' }{|r'|^3}}\]
  • $r$ is the location in 3D space at which the field is being computed
  • $\mu_0$ is the magnetic permeability of vacuum - free space (magnetic fields within materials may vary considerably)
  • $I$ is the current flowing along the path
  • $dl$ is a differential vector along the path
  • $l$ is a point on the path, such that $r’ = r - L$

For input units in amps [A] and meters [m], the constant $\mu_0=4\pi \times 10^-7$ [H/m] and $\vec{B}$ is in Tesla [T].

Magnetic Field Around a Current-Carrying Wire

Infinitely Thin Wire

For the case of an infinitely thin wire, this equation simplies greatly into the common scalar form:

\[B(r) = \frac{\mu_0 I}{2 \pi r}\]

This equation computes the magnitude of the magnetic field, which is oriented tangent to a circle around the wire axis and perpendicular to the current path.

Note that the equation has a singularity at radius $r=0$ and predicts infinite magnetic field at the center of the wire. Real conductors have finite cross-section and do not generate infinite magnetic fields. Also note that the magnetic field decays very quickly as the observation point moves further away from the current.

For more discussion see the Hyperphysics Textbook.

Circular Solid Conductor

Inside a solid conductor, the magnetic field is bounded, and is in fact zero on the axis. It is also now a function of the magnetic permeability, $\mu$, of the material that the current is travelling through. For some materials, like copper, this value is close to that of free space, but for others, it can vary significantly.

\[B(r) = \frac{\mu I r}{2 \pi R^2}\]

Outside the conductor, the calculation of the field is exactly the same.

Notice the difference between the graph and the previous: the maximum value of the field is on the surface of the conductor and has a finite value. Also, the field decays incredibly quickly: just 50mm (2”) away from the center of the conductor, the field has decayed to less than 1/8 of its maximum value.

Biot-Savart Law Integration

For simple, straight wires in 2D space, the Biot-Savart law is quite straightforward and has limited applicability. However, it can be even more useful in determining the magnetic fields generated by complex arrangements of current-carrying wires by splitting the problem up into many small wires.

The purpose of Wired.jl is to integrate the Biot-Savart law over a large number of outpoint points I call nodes. In this case, the current sources are discrete wires of a finite length, and an analytical solution is employed.

Diagram

If $P$ is an arbitrary point in 3D space, and $\vec{a}$ is a wire segment carrying current $I$, then let $\vec{b}$ and $\vec{c}$ be vectors from $P$ to the start and end points of $\vec{a}$. Assuming $P$ is in free space, then the magnetic flux density at $P$ is given by:

\[\vec{B} = \frac{I \cdot \mu_{0}}{4 \pi} \cdot \left( \frac{\vec{a} \cdot \vec{c}}{|\vec{c}|} - \frac{\vec{a} \cdot \vec{b}}{|\vec{b}|} \right) \cdot \frac{\vec{c}\times\vec{a}}{ {|\vec{c} \times\vec{a}|}^2}\]

If there are many current sources and many output locations at which to observe the magnetic field, then this equation can be numerically integrated for all of them. This vector analytical solution corresponds to the infinitely thin wire scalar solution. For this series of benchmarks, the case of a solid conductor is not considered.


Copyright © 2024 ryan@freestatelabs