Drag the probe to change radius and angle. Arrow keys: radius ±0.1 cm / angle ±5°.

Section view. Arrow directions follow the calculated sign; lengths do not encode field magnitude. The dashed circle marks the measurement geometry.

Two forms of the selected law

Record model state

No records yet.

Predict · test · explain

Try

Record r = a/2, a, 2a. Reverse current. How do B’s direction and the sign of ∮B·dl change?

Notes are saved in this browser. Records are ideal model calculations, not experimental data.

Physics of the model

Vacuum SI form: ρ and J are total charge and current densities. ∂V is a closed surface with outward normal. S is an open, stationary surface; C = ∂S is its closed boundary. n and positive circulation follow the right-hand rule. Time derivatives hold the surface fixed. Divergence measures local net source density; curl measures local circulation.

Ampère · steady current

∇×B=μ0J\nabla\times\mathbf B=\mu_0\mathbf J
∮CB⋅dℓ=μ0∬SJ⋅n dA=μ0Ienc\oint_C\mathbf B\cdot d\boldsymbol\ell=\mu_0\iint_S\mathbf J\cdot\mathbf n\,dA=\mu_0 I_{\rm enc}
Ienc=Imin⁡ ⁣(1,r2a2),Bϕ=μ0Ienc2πrI_{\rm enc}=I\min\!\left(1,\frac{r^2}{a^2}\right),\quad B_\phi=\frac{\mu_0 I_{\rm enc}}{2\pi r}

For an infinite wire with uniform current density, B depends on distance from the axis. Inside the wire, the path encloses only part of the current; outside, it encloses all of it. B grows as r inside and falls as 1/r outside.

Infinite straight cylindrical wire, uniform DC current density and vacuum permeability. End effects, material magnetization and skin effects are omitted. This form of Ampère’s law without displacement current applies to magnetostatics. The integration circle is not a physical wire.

Calculations for these geometries

Bϕ(r)={μ0Ir/(2πa2),0≤r≤a,μ0I/(2πr),r>a.B_\phi(r)=\begin{cases}\mu_0Ir/(2\pi a^2),&0\le r\le a,\\\mu_0I/(2\pi r),&r>a.\end{cases}

At r = 0, the charged sphere’s Eᵣ and the azimuthal fields vanish by symmetry. Constants are rounded for these calculations: ε₀ ≈ 8.8541878128 × 10⁻¹² F/m, μ₀ ≈ 1.25663706212 × 10⁻⁶ H/m.

Sources

Experiment purpose and introduction

Field · flux · circulation

Ampère’s law · field around a current

Place a circular integration path inside or outside a thick, long wire. Compare the local field with its circulation around the closed path.

Connect local fields to the whole

For an infinite wire with uniform current density, B depends on distance from the axis. Inside the wire, the path encloses only part of the current; outside, it encloses all of it. B grows as r inside and falls as 1/r outside.