TExcelTAD
Home › Electromagnetic Theory: Maxwell's Equations to Waves › Magnetic Flux and the Vector Potential

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 B\mathbf{B} 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 A\mathbf{A}. A\mathbf{A} does for magnetostatics what VV 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 SS is

Φ=∫SB⋅dS(Wb=T⋅m2)\Phi = \int_S \mathbf{B} \cdot d\mathbf{S} \quad (\text{Wb} = \text{T} \cdot \text{m}^2)

(Surface Integrals). Through a closed surface the net flux is always zero:

∮SB⋅dS=0⟺∇⋅B=0\oint_S \mathbf{B} \cdot d\mathbf{S} = 0 \qquad\Longleftrightarrow\qquad \nabla \cdot \mathbf{B} = 0

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 B\mathbf{B} 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

B=∇×A\mathbf{B} = \nabla \times \mathbf{A}

and ∇⋅B=0\nabla \cdot \mathbf{B} = 0 holds automatically. A\mathbf{A} has the unit Wb/m\text{Wb/m} (or T⋅m\text{T} \cdot \text{m}). Putting this into Ampère's law ∇×B=μ0J\nabla \times \mathbf{B} = \mu_0\mathbf{J} and choosing ∇⋅A=0\nabla \cdot \mathbf{A} = 0 (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 ∇2V=−ρv/ε\nabla^2 V = -\rho_v/\varepsilon:

∇2A=−μ0J⇒A(r)=μ04π∫J dv′R=μ04π∮I dl′R\nabla^2 \mathbf{A} = -\mu_0 \mathbf{J} \qquad\Rightarrow\qquad \mathbf{A}(\mathbf{r}) = \frac{\mu_0}{4\pi}\int \frac{\mathbf{J}\,dv'}{R} = \frac{\mu_0}{4\pi}\oint \frac{I\,d\mathbf{l}'}{R}

Compare with V=14πε∫ρv dv′/RV = \frac{1}{4\pi\varepsilon}\int \rho_v\,dv'/R: each current element contributes a potential parallel to itself, falling as 1/R1/R. There is no cross product, which makes A\mathbf{A} easier to integrate than Biot–Savart. For a current flowing along zz (a 2-D problem: wires, busbars, the cross-section of a motor), A=Azz^\mathbf{A} = A_z\hat{\mathbf{z}} is a single scalar function, and its contour lines are the field lines of B\mathbf{B}. That is why 2-D magnetic finite-element programs (FEMM and others) solve for AzA_z (FEM, MoM and BEM).

I A (large)A (small) Phi rho1rho2 l x x xx x x B into page(right of wire) Phi = circulation of A = l (A(rho1) - A(rho2))

Flux from A\mathbf{A}. Stokes' theorem turns the flux into a line integral:

Φ=∫S(∇×A)⋅dS=∮CA⋅dl\Phi = \int_S (\nabla \times \mathbf{A}) \cdot d\mathbf{S} = \oint_C \mathbf{A} \cdot d\mathbf{l}

For the field of a long straight wire, Az=μ0I2πln⁡ρ0ρA_z = \frac{\mu_0 I}{2\pi}\ln\frac{\rho_0}{\rho} (the reference radius ρ0\rho_0 is arbitrary, like the zero of VV; it cancels in every flux). A rectangle beside the wire, with sides of length ℓ\ell parallel to it at ρ1\rho_1 and ρ2\rho_2, has A\mathbf{A} perpendicular to its two short sides, so only the long sides count:

Φ=ℓ [Az(ρ1)−Az(ρ2)]=μ0Iℓ2πln⁡ρ2ρ1\Phi = \ell\,[A_z(\rho_1) - A_z(\rho_2)] = \frac{\mu_0 I \ell}{2\pi}\ln\frac{\rho_2}{\rho_1}

The same result comes from integrating B=μ0I/(2πρ)B = \mu_0 I/(2\pi\rho) over the rectangle, with more work. For a two-wire line (currents ±I\pm I, centre spacing dd, wire radius aa) the potentials of the two wires add, and the flux per metre between the wires is μ0Iπln⁡d−aa\frac{\mu_0 I}{\pi}\ln\frac{d - a}{a}: the start of its inductance per metre.

Worked example: flux from a wire into a nearby loop

Given: a long straight wire carries I=10 AI = 10\ \text{A}. A rectangular loop beside it has its sides of ℓ=10 cm\ell = 10\ \text{cm} parallel to the wire at ρ1=2 cm\rho_1 = 2\ \text{cm} and ρ2=5 cm\rho_2 = 5\ \text{cm}.

Find: the flux through the loop and the mutual inductance M=Φ/IM = \Phi/I.

Solve:

Φ=μ0Iℓ2πln⁡ρ2ρ1=2×10−7 H/m⋅10 A⋅0.1 m⋅ln⁡2.5=1.833×10−7 Wb=183.3 nWbM=ΦI=18.33 nH\begin{aligned} \Phi &= \frac{\mu_0 I \ell}{2\pi}\ln\frac{\rho_2}{\rho_1} = 2 \times 10^{-7}\ \text{H/m} \cdot 10\ \text{A} \cdot 0.1\ \text{m} \cdot \ln 2.5 = 1.833 \times 10^{-7}\ \text{Wb} = 183.3\ \text{nWb} \\ M &= \frac{\Phi}{I} = 18.33\ \text{nH} \end{aligned}

Check: the average BB over the loop is Φ/(ℓ(ρ2−ρ1))=61 μT\Phi/(\ell(\rho_2 - \rho_1)) = 61\ \mu\text{T}, between the 100 μT100\ \mu\text{T} at 2 cm2\ \text{cm} and the 40 μT40\ \mu\text{T} at 5 cm5\ \text{cm}, closer to the far value because the far part of the loop is larger. MM in nanohenries per 10 cm10\ \text{cm} 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

python · try it yourself
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 Azz^A_z\hat{\mathbf{z}} is the familiar circling field of magnitude μ0I/(2πρ)\mu_0 I/(2\pi\rho), its divergence is zero, and ∇2Az=0\nabla^2 A_z = 0 wherever J=0\mathbf{J} = 0, as the Poisson equation says.

A scalar potential where there is no current. In a current-free region ∇×H=0\nabla \times \mathbf{H} = 0, so one may also write H=−∇Vm\mathbf{H} = -\nabla V_m with a magnetic scalar potential VmV_m (amperes). It is handy around permanent magnets, but it is multivalued around a current (each turn around a wire adds II), so A\mathbf{A} is the general tool.

Guided lab: measure the mutual inductance

Hand calculation. M=18.3 nHM = 18.3\ \text{nH} per turn for the worked-example geometry. With a 5050-turn pickup loop and a 20 kHz20\ \text{kHz} sine of 0.1 A0.1\ \text{A} amplitude in the wire, the induced EMF amplitude is ωNMI=2π⋅2×104⋅50⋅18.33×10−9⋅0.1 V=11.5 mV\omega NMI = 2\pi \cdot 2 \times 10^4 \cdot 50 \cdot 18.33 \times 10^{-9} \cdot 0.1\ \text{V} = 11.5\ \text{mV}.

Simulation. The code above; move the loop (ρ1\rho_1, ρ2\rho_2) and watch MM follow ln⁡(ρ2/ρ1)\ln(\rho_2/\rho_1).

What you would measure. Run a straight wire about 1 m1\ \text{m} long across a board, with its return path at least 50 cm50\ \text{cm} away (otherwise the return current's flux cancels part of the signal). Drive it from a function generator through a 47 Ω47\ \Omega resistor and measure the current as the voltage across that resistor. Wind the 5050-turn rectangular pickup coil on a card frame, place it at 22 to 5 cm5\ \text{cm}, and read its open-circuit voltage on an oscilloscope. Expect about 11.5 mV11.5\ \text{mV} amplitude, within ±10 %\pm 10\ \% (coil dimensions, the return wire, the generator's current); doubling the frequency should double the EMF, and rotating the coil 90∘90^\circ 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

  • A\mathbf{A} is not unique. Adding the gradient of any function leaves B\mathbf{B} 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 NN turns, the flux linkage is NΦN\Phi only if all turns link the same flux.
  • ∇⋅B=0\nabla \cdot \mathbf{B} = 0 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 AzA_z. For an infinite wire AzA_z diverges logarithmically; always use differences.

Practice

  1. Repeat the worked example with the loop at ρ1=1 cm\rho_1 = 1\ \text{cm}, ρ2=4 cm\rho_2 = 4\ \text{cm}.
  2. A uniform field B=B0z^\mathbf{B} = B_0\hat{\mathbf{z}}. Show that A=12B0(−yx^+xy^)\mathbf{A} = \frac{1}{2}B_0(-y\hat{\mathbf{x}} + x\hat{\mathbf{y}}) produces it, and use ∮A⋅dl\oint \mathbf{A} \cdot d\mathbf{l} on a circle of radius rr to find the flux.
  3. Is B=k(xx^+yy^)\mathbf{B} = k(x\hat{\mathbf{x}} + y\hat{\mathbf{y}}) a possible magnetic field?
Answer
  1. Φ=2×10−7⋅10⋅0.1⋅ln⁡4=277.3 nWb\Phi = 2 \times 10^{-7} \cdot 10 \cdot 0.1 \cdot \ln 4 = 277.3\ \text{nWb}, M=27.7 nHM = 27.7\ \text{nH}.
  2. ∇×A=(∂xAy−∂yAx)z^=(B0/2+B0/2)z^\nabla \times \mathbf{A} = (\partial_x A_y - \partial_y A_x)\hat{\mathbf{z}} = (B_0/2 + B_0/2)\hat{\mathbf{z}}. On the circle Aϕ=B0r/2A_\phi = B_0 r/2, so ∮=2πr⋅B0r/2=B0πr2\oint = 2\pi r \cdot B_0 r/2 = B_0\pi r^2, the flux.
  3. No: ∇⋅B=2k≠0\nabla \cdot \mathbf{B} = 2k \ne 0.

Test yourself

∮SB⋅dS=0\oint_S \mathbf{B} \cdot d\mathbf{S} = 0 for every closed surface because…

  1. B\mathbf{B} is always uniform
  2. there are no magnetic charges
  3. currents are steady
  4. μ0\mu_0 is small

The vector potential of a current element points…

  1. along the element
  2. perpendicular to the element and to R\mathbf{R}
  3. along R\mathbf{R}
  4. radially outward

The magnetic flux through a loop can be computed as…

  1. ∮B⋅dl\oint \mathbf{B} \cdot d\mathbf{l}
  2. ∮A⋅dl\oint \mathbf{A} \cdot d\mathbf{l}
  3. ∇⋅A\nabla \cdot \mathbf{A}
  4. ∫A⋅dS\int \mathbf{A} \cdot d\mathbf{S}

A long wire carries 10 A10\ \text{A}; a loop beside it spans 22 to 5 cm5\ \text{cm} over 10 cm10\ \text{cm} of length. The flux is about…

  1. 18 nWb18\ \text{nWb}
  2. 183 nWb183\ \text{nWb}
  3. 1.8 μWb1.8\ \mu\text{Wb}
  4. 61 μWb61\ \mu\text{Wb}