Magnetic Flux and the Vector Potential
A current clamp, a transformer and a wireless charger all work by the same thing: magnetic flux, the amount of passing through a loop. Faraday's law will say that a changing flux induces a voltage (Faraday's and Lenz's Laws), and inductance is flux per ampere (Inductance of Common Geometries and Magnetic Energy). This lesson defines flux, states the one law every magnetic field obeys (no magnetic charges, so field lines close on themselves) and introduces the magnetic vector potential . does for magnetostatics what did for electrostatics (Electric Potential and the Gradient Relation): it is easier to compute than the field, and the flux through a loop is simply its circulation around the loop.
Magnetic flux and Gauss's law for magnetism
The flux through an open surface is
(Surface Integrals). Through a closed surface the net flux is always zero:
Every flux line that enters a closed surface also leaves it. There is no magnetic counterpart of a point charge; cut a bar magnet in half and you get two magnets, each with both poles. Two engineering consequences:
- The flux through any surface bounded by a given loop is the same, so "the flux linked by a loop" is well defined. That is what lets Faraday's law talk about the flux through a circuit without saying which surface.
- At a boundary between materials the normal component of is continuous (Magnetic Boundary Conditions and Magnetic Circuits), and flux in a core behaves like current in a circuit: what goes into a junction comes out.
The vector potential
A field with zero divergence is always the curl of another field (the divergence of a curl is zero, Curl and Divergence). So we may write
and holds automatically. has the unit (or ). Putting this into Ampère's law and choosing (the Coulomb gauge; the freedom to choose is the subject of Electromagnetic Potentials and Gauges) gives one Poisson equation per component, exactly like the electrostatic :
Compare with : each current element contributes a potential parallel to itself, falling as . There is no cross product, which makes easier to integrate than Biot–Savart. For a current flowing along (a 2-D problem: wires, busbars, the cross-section of a motor), is a single scalar function, and its contour lines are the field lines of . That is why 2-D magnetic finite-element programs (FEMM and others) solve for (FEM, MoM and BEM).
Flux from . Stokes' theorem turns the flux into a line integral:
For the field of a long straight wire, (the reference radius is arbitrary, like the zero of ; it cancels in every flux). A rectangle beside the wire, with sides of length parallel to it at and , has perpendicular to its two short sides, so only the long sides count:
The same result comes from integrating over the rectangle, with more work. For a two-wire line (currents , centre spacing , wire radius ) the potentials of the two wires add, and the flux per metre between the wires is : the start of its inductance per metre.
Worked example: flux from a wire into a nearby loop
Given: a long straight wire carries . A rectangular loop beside it has its sides of parallel to the wire at and .
Find: the flux through the loop and the mutual inductance .
Solve:
Check: the average over the loop is , between the at and the at , closer to the far value because the far part of the loop is larger. in nanohenries per is typical of crosstalk between a power wire and a nearby signal loop (Mutual Inductance).
In Python: flux two ways, and the curl of A
import numpy as np
import sympy as sp
from scipy.integrate import quad
MU0 = 4e-7 * np.pi
I, ell, r1, r2 = 10.0, 0.10, 0.02, 0.05 # wire current, loop side along the wire, near/far distances
B = lambda r: MU0 * I / (2 * np.pi * r) # long straight wire
A = lambda r: MU0 * I / (2 * np.pi) * np.log(1.0 / r) # A_z with reference radius 1 m
phi_B, _ = quad(lambda r: B(r) * ell, r1, r2) # flux = integral of B over the loop
phi_A = ell * (A(r1) - A(r2)) # flux = circulation of A (only the sides parallel to the wire)
print(f"flux from B: {phi_B*1e9:.3f} nWb")
print(f"flux from A: {phi_A*1e9:.3f} nWb")
print(f"mutual inductance M = {phi_B/I*1e9:.3f} nH")
x, y, z = sp.symbols("x y z", real=True)
mu, Is = sp.symbols("mu_0 I", positive=True)
Az = mu * Is / (2 * sp.pi) * sp.log(1 / sp.sqrt(x**2 + y**2))
Bx, By, Bz = sp.diff(Az, y), -sp.diff(Az, x), sp.Integer(0) # curl of (0, 0, Az)
print("B_x =", sp.simplify(Bx), " B_y =", sp.simplify(By))
print("|B| =", sp.simplify(sp.sqrt(Bx**2 + By**2)))
print("div B =", sp.simplify(sp.diff(Bx, x) + sp.diff(By, y)))
print("laplacian of A_z (off the wire) =", sp.simplify(sp.diff(Az, x, 2) + sp.diff(Az, y, 2)))flux from B: 183.258 nWb
flux from A: 183.258 nWb
mutual inductance M = 18.326 nH
B_x = -I*mu_0*y/(2*pi*(x**2 + y**2)) B_y = I*mu_0*x/(2*pi*(x**2 + y**2))
|B| = I*mu_0/(2*pi*sqrt(x**2 + y**2))
div B = 0
laplacian of A_z (off the wire) = 0
The curl of is the familiar circling field of magnitude , its divergence is zero, and wherever , as the Poisson equation says.
A scalar potential where there is no current. In a current-free region , so one may also write with a magnetic scalar potential (amperes). It is handy around permanent magnets, but it is multivalued around a current (each turn around a wire adds ), so is the general tool.
Guided lab: measure the mutual inductance
Hand calculation. per turn for the worked-example geometry. With a -turn pickup loop and a sine of amplitude in the wire, the induced EMF amplitude is .
Simulation. The code above; move the loop (, ) and watch follow .
What you would measure. Run a straight wire about long across a board, with its return path at least away (otherwise the return current's flux cancels part of the signal). Drive it from a function generator through a resistor and measure the current as the voltage across that resistor. Wind the -turn rectangular pickup coil on a card frame, place it at to , and read its open-circuit voltage on an oscilloscope. Expect about amplitude, within (coil dimensions, the return wire, the generator's current); doubling the frequency should double the EMF, and rotating the coil about the line from the wire to the coil's centre (so that its plane contains the field lines) should make it vanish.
Hazards and safe setup. Signal-level voltages only. Keep the generator's output within its rating into the low-resistance wire.
Pitfalls
- is not unique. Adding the gradient of any function leaves unchanged; only differences and circulations (fluxes) are physical in statics.
- Flux through a surface that is not bounded by the loop. The surface must be bounded by the circuit; for a coil of turns, the flux linkage is only if all turns link the same flux.
- is not "B is uniform". It only says no flux is created or destroyed; the field can still spread out, as at the end of a solenoid.
- The reference radius of a 2-D . For an infinite wire diverges logarithmically; always use differences.
Practice
- Repeat the worked example with the loop at , .
- A uniform field . Show that produces it, and use on a circle of radius to find the flux.
- Is a possible magnetic field?
Answer
- , .
- . On the circle , so , the flux.
- No: .
Test yourself
for every closed surface because…
- is always uniform
- there are no magnetic charges
- currents are steady
- is small
The vector potential of a current element points…
- along the element
- perpendicular to the element and to
- along
- radially outward
The magnetic flux through a loop can be computed as…
A long wire carries ; a loop beside it spans to over of length. The flux is about…