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
∮CB⋅dℓ=μ0∬SJ⋅ndA=μ0Ienc
Ienc=Imin(1,a2r2),Bϕ=2πrμ0Ienc
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),μ0I/(2πr),0≤r≤a,r>a.
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.
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.