loading...
Where the particles hit the atmosphere: counts per degree of latitude (dashed lines: the L-shell footprints at the edges of the population)
Tracked particle: latitude against time (bounce motion between the mirror points)
Tracked particle: first adiabatic invariant mu = v_perp^2 / B, relative to its starting value (flat = conserved)
running...
How to use
The left panel is a side view of the dipole magnetic field of a planet with field lines for L = 2 to 7; the right panel looks down on the north pole. The white dot with the yellow trail is the tracked particle (set its L-shell, pitch angle, charge and gyroradius). Cyan dots are a population of electrons (orange: protons) that are scattered a little in pitch angle at each equator crossing; the ones that scatter into the loss cone hit the atmosphere and make green aurora footprints, which gather in an oval. Try the presets, then change the scattering or the L range. Space pauses, R resets.
The science
The field. A planet's magnetic field is close to a dipole. In units where the planet radius is 1 and the equatorial field at distance r is 1 / r^3,
B(r) = ( z_hat - 3 (z_hat . r_hat) r_hat ) / r^3, |B| = sqrt(1 + 3 sin^2 lambda) / r^3
Field lines are curves r = L cos^2 lambda (lambda = latitude). The label L is the distance in planet radii at which the line crosses the equator; the line meets the planet surface at latitude acos(1 / sqrt(L)), which is about 60 degrees for L = 4 and 66 degrees for L = 6: the auroral oval is the footprint of the outer L-shells.
Particle motion. The page integrates the Lorentz force with the Boris pusher (a half step of drift, a rotation by the magnetic field, a half step of drift). A magnetic force does no work, so the speed is conserved exactly. The motion is a fast gyration around a field line, a slower bounce between two mirror points and a very slow drift around the planet. The gyroradius is r_g = m v_perp / (q B); real auroral electrons gyrate over tens of metres, far too small to see, so the page lets you set the gyroradius at L = 4 (epsilon) to a visible 0.005 to 0.05 planet radii. The physics (mirror points, loss cone) does not depend on that number as long as it is small.
First adiabatic invariant and mirroring. While the field changes slowly compared with the gyration, mu = v_perp^2 / B is conserved. A particle moving toward stronger field (toward the poles) turns more of its speed into v_perp until it stops moving along the field line (v_parallel = 0) at the mirror point where
B_m = B_eq / sin^2 alpha_eq
with alpha_eq the pitch angle at the equator. The bounce period follows from T = 4 Int ds / v_parallel along the field line; the page evaluates the exact integral and compares it with the simulation.
Loss cone and aurora. If the mirror point would lie below the atmosphere (taken at r = 1) the particle is lost. This happens for pitch angles smaller than
sin^2 alpha_lc = B_eq / B(atmosphere) = 1 / ( L^3 sqrt(4 - 3 / L) )
(about 5 degrees at L = 4, 16 degrees at L = 2). Particles in the loss cone hit the atmosphere and make light; the particles outside it are trapped, so the loss cone empties after one bounce and the aurora needs a continuous supply. In the real magnetosphere waves scatter the pitch angle (and the solar wind accelerates the electrons); the page models the scattering as a random change of the pitch angle at each equator crossing. The aurora in the pictures appears where the L-shells meet the atmosphere: an oval around the magnetic pole.
Honest simplifications. (1) Pure dipole, no solar wind compression, no ring current, no electric field, no acceleration: particles do not gain energy. (2) The gyroradius is exaggerated; the atmosphere is a hard wall at r = 1 and the emitted light is only a marker at the hit point. (3) Scattering is a simple random walk in pitch angle. (4) Hits in both hemispheres are counted; the polar view normally shows only the north. (5) Time is in units of planet radius / particle speed; the bounce takes seconds for real electrons.
Checks run in the page. Speed conservation; constancy of mu over about 40 bounces; the mirror-point field against B_eq / sin^2 alpha; the bounce period against the exact integral; the gyro-period against 2 pi epsilon; the loss-cone angle found by bisection against the formula for L = 2 and 3; and the latitude where a particle sent along the L = 5 field line hits the atmosphere against acos(1 / sqrt(L)).