The Physics of the Universe
Home › Simulations › Magnetic Field & Lorentz Force Simulator (Boris Pusher)

Magnetic Field & Lorentz Force Simulator (Boris Pusher)

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.

Presets:
Switch between Pure Cyclotron Circle, E×B Velocity Selector (straight horizontal beam when v₀ = E_y/B_z!), and Troubled Cycloid Drift.

Key Equations & Physics Model

Full Lorentz Force Law: F = q (E + v × B)
Cyclotron Radius (E = 0): r = m v / (|q| B), ω_c = |q| B / m
Crossed-Field Velocity Selector & Drift: v_straight = E_y / B_z (exact 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.

How the Physics Works

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!

Charged Particle Trajectories in Fields

Field ConditionPath ShapeEnergy Conserved?Application
B ≠ 0, E = 0Exact uniform circleYes (|v| exact constant)Cyclotrons & MRI beams
m₁ vs m₂ in B (mass spec)Larger m → wider rYesMass spectrometry isotope separation
v₀ = E_y / B_z (crossed)Straight undeflected lineYes (F_net = 0)Wien velocity filter
v₀ ≠ E_y / B_z (crossed)Cycloid / trochoid driftPeriodic kinetic oscillationHall thrusters & magnetrons

Why do crossed E and B fields steer and filter particles?

A 40-second animation: pure-B circular orbits with constant |v|, cyclotron radius r = mv/|q|B, and E×B velocity selectors.

Experiments to Try

Confirm Exact |v| Conservation

Run Pure Cyclotron Circle (E = 0) and inspect the HUD: Speed |v| remains locked at 4.0000 m/s forever under the Boris pusher.

Thread a Wien Velocity Selector

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.

Separate Heavy Isotopes

Compare Pure Cyclotron Circle against Heavy Isotope (4× Mass) to watch radius expand directly with particle mass.

Frequently Asked Questions

Why do we use a Boris pusher instead of RK4 for magnetic fields?

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.

What flips if particle charge q switches from +1 to −1?

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.

Related Topics & Tools