Ampère's Circuital Law: H and B
The Biot–Savart sum works for any current path, but for a coaxial cable, a long solenoid or a toroidal core it is a lot of work for an answer that symmetry almost gives away. Ampère's circuital law is the magnetic twin of Gauss's law (Gauss's Law for Symmetric Charge Distributions): when the field has the same magnitude all along a well-chosen closed path, one line integral gives it. This lesson states the law in integral and point form, separates the two magnetic fields and , and solves the four configurations every engineer uses: the thick wire, the coaxial cable, the solenoid and the toroid. The school version is in Field of a Solenoid.
The law
The circulation of around any closed path equals the current through any surface bounded by , counted positive by the right-hand rule (fingers along , thumb through ). Stokes' theorem (Stokes' Theorem) turns it into the point form: the curl of is the local current density. Where there is no current, is curl-free; field lines still circle the current, but the field has no local "swirl".
The law as written holds for steady currents. With time-varying fields a capacitor in the circuit breaks it (a surface between the plates encloses no conduction current), and Maxwell's displacement current repairs it (Displacement Current and the Continuity Equation).
Two magnetic fields: H and B
(A/m), the magnetic field intensity, is the field that free currents produce; Ampère's law counts only those currents. (T = Wb/m), the magnetic flux density, is the field that exerts forces () and whose flux induces voltages. In a linear material
The material's own atomic currents (magnetisation) are hidden inside (Magnetic Materials, Permeability and Hysteresis). For a symmetric problem this split is useful: the same coil current gives the same whether the toroid is wound on air or on ferrite, while is times larger in the ferrite. Since 2019 is a measured constant, but it equals to better than one part in , which is how this course uses it.
Applying the law
The recipe is the same as for Gauss's law: argue from symmetry which component of exists and on what it depends, choose a path along which it is constant (or zero), then evaluate both sides.
Thick round wire, radius , uniform current : by symmetry . A circle of radius gives , with inside, outside:
Coaxial cable, current in the inner conductor and in the shield (inner radius , outer ): the same two results up to ; inside the shield the enclosed current falls to ; outside, the net enclosed current is zero, so . A coax used properly has no external magnetic field, which is why it neither radiates nor picks up interference as easily as two loose wires.
Long solenoid, turns per metre: a rectangular path with one side inside along the axis and one side far outside gives , so inside, uniform, and about zero outside. Toroid of turns: a circle of radius inside the core gives in the core and zero outside. Infinite current sheet with surface current : , where points from the sheet towards the field point; the field is uniform on each side.
Worked example: inside a coaxial cable
Given: a coax with inner radius , shield from to , carrying DC (out on the inner, back on the shield), polyethylene dielectric ().
Find: and at , at the inner surface, at , and outside.
Solve:
Check: the field peaks at the surface of the inner conductor, rising linearly inside and falling as outside; both formulas give at , as they must. The fields are tiny (under ) even at ; the energy they store is what gives the cable its inductance (Inductance of Common Geometries and Magnetic Energy).
In Python: coax profile, curl and a real solenoid
The code prints the coax profile, uses SymPy to take the curl inside the conductor (in cylindrical coordinates ) and recover the current density, then tests "" against a Biot–Savart sum over a real helix of 200 turns, long and in radius.
import numpy as np
import sympy as sp
MU0 = 4e-7 * np.pi
a, b, c, I = 0.45e-3, 1.47e-3, 1.65e-3, 2.0 # coax radii (m) and current (A)
def H_coax(r):
if r < a: return I * r / (2 * np.pi * a * a)
if r < b: return I / (2 * np.pi * r)
if r < c: return I / (2 * np.pi * r) * (c * c - r * r) / (c * c - b * b)
return 0.0
for r_mm in (0.3, 0.45, 1.0, 1.47, 1.56, 2.0):
print(f"rho = {r_mm:4.2f} mm: H = {H_coax(r_mm*1e-3):7.1f} A/m")
rho, Is, aa = sp.symbols("rho I a", positive=True)
H_phi = Is * rho / (2 * sp.pi * aa**2)
print("curl H inside: J_z =", sp.simplify(sp.diff(rho * H_phi, rho) / rho))
N, L, R, Isol = 200, 0.10, 0.01, 0.5 # solenoid: turns, length, radius, current
t = np.linspace(0, 2 * np.pi * N, 40 * N + 1)
helix = np.column_stack([R * np.cos(t), R * np.sin(t), -L / 2 + L * t / t[-1]])
def Bz_at(z):
P = np.array([0.0, 0.0, z])
dl, Rv = np.diff(helix, axis=0), P - 0.5 * (helix[1:] + helix[:-1])
Rn = np.linalg.norm(Rv, axis=1)[:, None]
return float((MU0 * Isol / (4 * np.pi) * np.sum(np.cross(dl, Rv) / Rn**3, axis=0))[2])
n = N / L
for z in (0.0, 0.04, 0.05):
zp, zm = L / 2 - z, L / 2 + z
H_sheet = n * Isol / 2 * (zp / np.hypot(zp, R) + zm / np.hypot(zm, R))
print(f"z = {z*100:3.0f} cm: helix H = {Bz_at(z)/MU0:6.1f} A/m, "
f"sheet formula {H_sheet:6.1f} A/m, ideal nI = {n*Isol:6.1f} A/m")rho = 0.30 mm: H = 471.6 A/m
rho = 0.45 mm: H = 707.4 A/m
rho = 1.00 mm: H = 318.3 A/m
rho = 1.47 mm: H = 216.5 A/m
rho = 1.56 mm: H = 105.0 A/m
rho = 2.00 mm: H = 0.0 A/m
curl H inside: J_z = I/(pi*a**2)
z = 0 cm: helix H = 982.7 A/m, sheet formula 980.6 A/m, ideal nI = 1000.0 A/m
z = 4 cm: helix H = 852.8 A/m, sheet formula 850.5 A/m, ideal nI = 1000.0 A/m
z = 5 cm: helix H = 498.6 A/m, sheet formula 497.5 A/m, ideal nI = 1000.0 A/m
The curl returns , the uniform current density we started from. The solenoid is 5 diameters long, and its centre is still 2 % below ; at the ends the field is half of the centre value, because each end sees only one half of an "infinite" solenoid. The "sheet formula" (finite solenoid, on-axis closed form) and the discrete helix agree to 0.2 %.
Guided lab: the solenoid's centre and end
Hand calculation. turns on at : , so ideally; finite-length correction: at the centre, at an end.
Simulation. The helix sum above; move the point off the axis to see how uniform the inside really is.
What you would measure. Wind the solenoid on a plastic tube with to enamelled wire, drive it from a bench supply in constant-current mode at (limit ), and slide a linear Hall sensor along the axis on a stick marked in centimetres. Subtract the zero-current reading. Expect about at the centre and about half at each end; the ratio is more reliable () than the absolute value ( to from the sensor's sensitivity tolerance and the winding's real turn density). Reverse the current: the reading changes sign but not size.
Hazards and safe setup. Low voltage, current-limited. Switch off from the supply, or fit a diode across the coil before breaking the current with a switch (the coil's stored energy otherwise sparks at the contact).
Pitfalls
- Using Ampère's law without symmetry. The law is always true, but it gives only when is constant along the path; for a short coil or a square loop use Biot–Savart.
- Counting the wrong current. is the current through the surface, with sign; a solenoid path that crosses turns encloses .
- Confusing and . comes from the free current, makes the force; in iron they differ by a factor of thousands.
- "Zero outside a solenoid." Only for an infinitely long one. A finite solenoid has a return field outside, weak but not zero (it is a magnetic dipole far away).
Practice
- A toroid of 500 turns with inner radius and outer radius carries . Find at the inner and outer radius.
- A wide flat conductor carries a surface current of . What is just above it, and what with a second sheet below it carrying (between and outside)?
- A copper wire of radius carries . Where inside the wire is half its surface value?
Answer
- : at , at .
- One sheet: on either side. Two opposite sheets: between them, outside (a parallel-plate transmission line).
- Inside , so at .
Test yourself
Ampère's law in point form is…
Outside an ideal coaxial cable carrying equal and opposite currents, is…
- zero
- uniform
Inside a uniform round wire, varies with radius as…
- constant
At the end of a long solenoid, on its axis, the field is about…
- the same as at the centre
- half the centre value
- zero
- twice the centre value
The same coil current flows in a toroid wound on air and one wound on ferrite with . In the core…
- and are both 2000 times larger in ferrite
- is the same, is 2000 times larger in ferrite
- is the same, is 2000 times smaller in ferrite
- both are the same