TExcelTAD
Home › Electromagnetic Theory: Maxwell's Equations to Waves › Ampère's Circuital Law: H and B

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

∮CH⋅dl=Ienc=∫SJ⋅dS⟺∇×H=J\oint_C \mathbf{H} \cdot d\mathbf{l} = I_\text{enc} = \int_S \mathbf{J} \cdot d\mathbf{S} \qquad\Longleftrightarrow\qquad \nabla \times \mathbf{H} = \mathbf{J}

The circulation of H\mathbf{H} around any closed path CC equals the current through any surface SS bounded by CC, counted positive by the right-hand rule (fingers along CC, thumb through SS). Stokes' theorem (Stokes' Theorem) turns it into the point form: the curl of H\mathbf{H} is the local current density. Where there is no current, H\mathbf{H} 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

H\mathbf{H} (A/m), the magnetic field intensity, is the field that free currents produce; Ampère's law counts only those currents. B\mathbf{B} (T = Wb/m2^2), the magnetic flux density, is the field that exerts forces (F=qv×B\mathbf{F} = q\mathbf{v} \times \mathbf{B}) and whose flux induces voltages. In a linear material

B=μH=μrμ0H,μ0=4π×10−7 H/m\mathbf{B} = \mu\mathbf{H} = \mu_r\mu_0\mathbf{H}, \qquad \mu_0 = 4\pi \times 10^{-7}\ \text{H/m}

The material's own atomic currents (magnetisation) are hidden inside μr\mu_r (Magnetic Materials, Permeability and Hysteresis). For a symmetric problem this split is useful: the same coil current gives the same H\mathbf{H} whether the toroid is wound on air or on ferrite, while B\mathbf{B} is μr\mu_r times larger in the ferrite. Since 2019 μ0\mu_0 is a measured constant, but it equals 4π×10−7 H/m4\pi \times 10^{-7}\ \text{H/m} to better than one part in 10910^9, which is how this course uses it.

Applying the law

abc H Amperian circles (dashed) rho < a: H = I rho / (2 pi a^2) a < rho < b: H = I / (2 pi rho) b < rho < c: falls to 0 rho > c: H = 0 (I - I = 0) inner: I out of page (dot) shield: I back into page

The recipe is the same as for Gauss's law: argue from symmetry which component of H\mathbf{H} exists and on what it depends, choose a path along which it is constant (or zero), then evaluate both sides.

Thick round wire, radius aa, uniform current II: by symmetry H=Hϕ(ρ)ϕ^\mathbf{H} = H_\phi(\rho)\hat{\boldsymbol{\phi}}. A circle of radius ρ\rho gives 2πρHϕ=Ienc2\pi\rho H_\phi = I_\text{enc}, with Ienc=Iρ2/a2I_\text{enc} = I\rho^2/a^2 inside, II outside:

Hϕ=Iρ2πa2 (ρ<a),Hϕ=I2πρ (ρ>a)H_\phi = \frac{I\rho}{2\pi a^2}\ (\rho < a), \qquad H_\phi = \frac{I}{2\pi\rho}\ (\rho > a)

Coaxial cable, current II in the inner conductor and −I-I in the shield (inner radius bb, outer cc): the same two results up to bb; inside the shield the enclosed current falls to I(c2−ρ2)/(c2−b2)I(c^2 - \rho^2)/(c^2 - b^2); outside, the net enclosed current is zero, so H=0H = 0. 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, n=N/Ln = N/L turns per metre: a rectangular path with one side inside along the axis and one side far outside gives Hℓ=nℓIH\ell = n\ell I, so H=nIH = nI inside, uniform, and about zero outside. Toroid of NN turns: a circle of radius ρ\rho inside the core gives H=NI/(2πρ)H = NI/(2\pi\rho) in the core and zero outside. Infinite current sheet with surface current K\mathbf{K}: H=12K×n^\mathbf{H} = \frac{1}{2}\mathbf{K} \times \hat{\mathbf{n}}, where n^\hat{\mathbf{n}} 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 a=0.45 mma = 0.45\ \text{mm}, shield from b=1.47 mmb = 1.47\ \text{mm} to c=1.65 mmc = 1.65\ \text{mm}, carrying I=2 AI = 2\ \text{A} DC (out on the inner, back on the shield), polyethylene dielectric (μr=1\mu_r = 1).

Find: HH and BB at ρ=0.3 mm\rho = 0.3\ \text{mm}, at the inner surface, at 1 mm1\ \text{mm}, and outside.

Solve:

H(0.3 mm)=2 A⋅0.3×10−3 m2π(0.45×10−3 m)2=471.6 A/mH(a)=2 A2π⋅0.45×10−3 m=707.4 A/m,B(a)=μ0H=0.889 mTH(1 mm)=2 A2π⋅10−3 m=318.3 A/m,B=0.400 mTH(ρ>c)=0\begin{aligned} H(0.3\ \text{mm}) &= \frac{2\ \text{A} \cdot 0.3 \times 10^{-3}\ \text{m}}{2\pi (0.45 \times 10^{-3}\ \text{m})^2} = 471.6\ \text{A/m} \\ H(a) &= \frac{2\ \text{A}}{2\pi \cdot 0.45 \times 10^{-3}\ \text{m}} = 707.4\ \text{A/m}, \qquad B(a) = \mu_0 H = 0.889\ \text{mT} \\ H(1\ \text{mm}) &= \frac{2\ \text{A}}{2\pi \cdot 10^{-3}\ \text{m}} = 318.3\ \text{A/m}, \qquad B = 0.400\ \text{mT} \\ H(\rho > c) &= 0 \end{aligned}

Check: the field peaks at the surface of the inner conductor, rising linearly inside and falling as 1/ρ1/\rho outside; both formulas give 707.4 A/m707.4\ \text{A/m} at ρ=a\rho = a, as they must. The fields are tiny (under 1 mT1\ \text{mT}) even at 2 A2\ \text{A}; 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 (∇×H)z=1ρ∂(ρHϕ)∂ρ(\nabla \times \mathbf{H})_z = \frac{1}{\rho}\frac{\partial(\rho H_\phi)}{\partial\rho}) and recover the current density, then tests "H=nIH = nI" against a Biot–Savart sum over a real helix of 200 turns, 10 cm10\ \text{cm} long and 1 cm1\ \text{cm} in radius.

python · try it yourself
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 Jz=I/(πa2)J_z = I/(\pi a^2), the uniform current density we started from. The solenoid is 5 diameters long, and its centre is still 2 % below nInI; 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. 200200 turns on 10 cm10\ \text{cm} at 0.5 A0.5\ \text{A}: nI=1000 A/mnI = 1000\ \text{A/m}, so B=μ0nI=1.257 mTB = \mu_0 nI = 1.257\ \text{mT} ideally; finite-length correction: 1.232 mT1.232\ \text{mT} at the centre, 0.625 mT0.625\ \text{mT} 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 2 cm2\ \text{cm} plastic tube with 0.40.4 to 0.5 mm0.5\ \text{mm} enamelled wire, drive it from a bench supply in constant-current mode at 0.5 A0.5\ \text{A} (limit 5 V5\ \text{V}), and slide a linear Hall sensor along the axis on a stick marked in centimetres. Subtract the zero-current reading. Expect about 1.2 mT1.2\ \text{mT} at the centre and about half at each end; the ratio is more reliable (±3 %\pm 3\ \%) than the absolute value (±5\pm 5 to 10 %10\ \% 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 HH only when HH is constant along the path; for a short coil or a square loop use Biot–Savart.
  • Counting the wrong current. IencI_\text{enc} is the current through the surface, with sign; a solenoid path that crosses NN turns encloses NINI.
  • Confusing H\mathbf{H} and B\mathbf{B}. H\mathbf{H} comes from the free current, B=μH\mathbf{B} = \mu\mathbf{H} 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

  1. A toroid of 500 turns with inner radius 2 cm2\ \text{cm} and outer radius 3 cm3\ \text{cm} carries 0.2 A0.2\ \text{A}. Find HH at the inner and outer radius.
  2. A wide flat conductor carries a surface current of 100 A/m100\ \text{A/m}. What is HH just above it, and what with a second sheet below it carrying −100 A/m-100\ \text{A/m} (between and outside)?
  3. A copper wire of radius 1 mm1\ \text{mm} carries 10 A10\ \text{A}. Where inside the wire is HH half its surface value?
Answer
  1. H=NI/(2πρ)H = NI/(2\pi\rho): 100/(2π⋅0.02)=795.8 A/m100/(2\pi \cdot 0.02) = 795.8\ \text{A/m} at 2 cm2\ \text{cm}, 530.5 A/m530.5\ \text{A/m} at 3 cm3\ \text{cm}.
  2. One sheet: K/2=50 A/mK/2 = 50\ \text{A/m} on either side. Two opposite sheets: 100 A/m100\ \text{A/m} between them, 00 outside (a parallel-plate transmission line).
  3. Inside H∝ρH \propto \rho, so at ρ=0.5 mm\rho = 0.5\ \text{mm}.

Test yourself

Ampère's law in point form is…

  1. ∇⋅H=J\nabla \cdot \mathbf{H} = \mathbf{J}
  2. ∇×H=J\nabla \times \mathbf{H} = \mathbf{J}
  3. ∇×B=0\nabla \times \mathbf{B} = 0
  4. ∇⋅B=ρv\nabla \cdot \mathbf{B} = \rho_v

Outside an ideal coaxial cable carrying equal and opposite currents, HH is…

  1. I/(2πρ)I/(2\pi\rho)
  2. I/(πρ)I/(\pi\rho)
  3. zero
  4. uniform

Inside a uniform round wire, HH varies with radius as…

  1. 1/ρ1/\rho
  2. ρ\rho
  3. ρ2\rho^2
  4. constant

At the end of a long solenoid, on its axis, the field is about…

  1. the same as at the centre
  2. half the centre value
  3. zero
  4. twice the centre value

The same coil current flows in a toroid wound on air and one wound on ferrite with μr=2000\mu_r = 2000. In the core…

  1. HH and BB are both 2000 times larger in ferrite
  2. HH is the same, BB is 2000 times larger in ferrite
  3. BB is the same, HH is 2000 times smaller in ferrite
  4. both are the same