Launch positive or negative charged particles into crossed E and B fields integrated with a symplectic Boris pusher—preserving |v| identically in pure magnetic fields and reproducing exact cyclotron circles and E×B drift.
Standard Runge-Kutta integrators spuriously add kinetic energy in pure magnetic fields; this lab uses the Boris particle pusher so |v| stays exact to floating-point precision.
Because magnetic force q(v × B) always pushes strictly perpendicular to instantaneous velocity v, a pure magnetic field never does mechanical work and can never speed up or slow down a particle—it only bends paths into circles of Larmor radius r = mv/(|q|B).
Adding a crossed electric field Ey accelerates or slows the particle whenever v != Ey/Bz, tracing scalloped E×B trochoids—unless launch speed hits the exact Wien velocity selector balance v₀ = E/B where electric push cancels magnetic bending cleanly!
| Field Condition | Path Shape | Energy Conserved? | Application |
|---|---|---|---|
| B ≠ 0, E = 0 | Exact uniform circle | Yes (|v| exact constant) | Cyclotrons & MRI beams |
| m₁ vs m₂ in B (mass spec) | Larger m → wider r | Yes | Mass spectrometry isotope separation |
| v₀ = E_y / B_z (crossed) | Straight undeflected line | Yes (F_net = 0) | Wien velocity filter |
| v₀ ≠ E_y / B_z (crossed) | Cycloid / trochoid drift | Periodic kinetic oscillation | Hall thrusters & magnetrons |
A 40-second animation: pure-B circular orbits with constant |v|, cyclotron radius r = mv/|q|B, and E×B velocity selectors.
Run Pure Cyclotron Circle (E = 0) and inspect the HUD: Speed |v| remains locked at 4.0000 m/s forever under the Boris pusher.
Select Velocity Selector (Balanced) where E_y = 6.0 and B_z = 1.5 gives E/B = 4.0 m/s—matching v₀ so the beam flies razor straight.
Compare Pure Cyclotron Circle against Heavy Isotope (4× Mass) to watch radius expand directly with particle mass.
RK4 slowly leaks energy along long helical or circular paths; the Boris scheme splits electric half-kicks around a pure orthogonal rotation matrix that conserves |v| exactly.
An electron (q < 0) curves in the opposite sense around B_z, while still keeping the exact same E×B drift direction when E and B are perpendicular.