PhysSandbox
Classical MechanicsWaves & SoundElectricity & MagnetismOptics & LightGravity & OrbitsLabs
🌙Astronomy & The Sky🌡️Thermodynamics🌍Biophysics, Fluids & Geoscience📐Math Visualization🔧Engineering🧪Chemistry

More from Electricity & Magnetism

Other simulators in this category — or see all 56.

View category →
NewUniversity / research

Magnetic Mirror (Bottle)

Axial B(z) pinch; μ adiabatic invariant, v∥ from −μ ∂B/∂z — Van Allen / mirror sketch.

Launch Simulator
NewSchool

Dipole Radiation Pattern

Time-averaged power ∝ sin² θ in the plane containing the dipole axis (far-field cartoon).

Launch Simulator
NewSchool

Half-Wave Dipole Antenna Pattern

Far-field E-plane pattern of a thin λ/2 wire: power ∝ [cos(½π cos θ)/sin θ]², directivity D ≈ 1.64 (~2.15 dBi); optional sin² θ overlay vs a short dipole.

Launch Simulator
NewSchool

Rotating Dipole E-field

±q orbit in the plane: Coulomb superposition arrows — near-field sketch before full radiation.

Launch Simulator
NewSchool

Bode Diagram (RC low-pass)

|H| in dB and phase vs log f; f_c = 1/(2πRC) marked — first-order pole intuition.

Launch Simulator
NewUniversity / research

Nyquist Plot (linear systems)

Open-loop L(jω) in the complex plane vs frequency; critical point −1 and distance teaching aid.

Launch Simulator
PhysSandbox

Interactive physics, chemistry, and engineering simulators for students, teachers, and curious minds.

Physics

  • Classical Mechanics
  • Waves & Sound
  • Electricity & Magnetism

Science

  • Optics & Light
  • Gravity & Orbits
  • Astronomy & The Sky

More

  • Thermodynamics
  • Biophysics, Fluids & Geoscience
  • Math Visualization
  • Engineering
  • Chemistry

© 2026 PhysSandbox. Free interactive science simulators.

PrivacyTermsContact
Home/Electricity & Magnetism/Gradient-B Drift

Gradient-B Drift

Gradient-B drift visualizes the motion of a charged particle, like an electron or ion, in a non-uniform magnetic field. The core physics is governed by the Lorentz force law: F = q(E + v × B). In this simulation, the electric field E is zero, so the force is purely magnetic. The magnetic field B is oriented primarily in the +z direction (out of the screen) but has a weak, linear gradient in its magnitude across the x-y plane. A particle injected into this field initially undergoes simple gyration—circular motion around a local magnetic field line—with a cyclotron frequency ω_c = qB/m and gyroradius r_L = mv_⊥/|q|B. However, because the field strength B changes with position, the gyroradius is larger where B is weaker and smaller where B is stronger. Over each gyro-orbit, this slight difference creates a net displacement perpendicular to both the magnetic field and its gradient. The result is a slow, steady drift velocity, given by v_∇B = ± (m v_⊥² / (2q B³)) (B × ∇B), where the sign depends on the particle's charge. This simulator simplifies the complex 3D reality by using a 2D plane and a static, pre-defined magnetic field gradient. It neglects collisions, radiation, and relativistic effects to isolate the fundamental drift mechanism. By interacting with the simulation, students can visually connect the mathematical derivation of the drift velocity to the actual particle trajectory, observe how drift direction reverses with charge, and understand how this drift contributes to phenomena like the ring current in Earth's magnetosphere or confinement challenges in fusion plasmas.

Who it's for: Upper-level undergraduate physics or engineering students studying plasma physics, space physics, or electromagnetism, particularly those encountering particle motions in non-uniform magnetic fields.

Key terms

  • Lorentz Force
  • Gyroradius (Larmor Radius)
  • Cyclotron Frequency
  • Magnetic Gradient
  • Gradient-B Drift
  • Guiding Center Approximation
  • Plasma Confinement
  • Magnetosphere

Field

1.6
1.05
0.22
0.08
0
0

Uses q(E + v×B) with B_z depending on position — no separate drift formula; the stepwise orbit shows grad-B and E×B effects together.

Measured values

B at origin1.050

How it works

Why toroidal plasmas need careful shaping: a spatially varying |B| bends guiding-center orbits perpendicular to both B and ∇B.

Frequently asked questions

Why does the drift occur perpendicular to both the field and the gradient?
The drift arises from the imbalance in the Lorentz force over one gyro-orbit. Where the field is stronger, the gyroradius and instantaneous curvature of the path are smaller. This asymmetric bending, when integrated over a full cycle, results in a net force (analogous to a centrifugal force) pointing away from the high-field region. For a positively charged particle, the v×B force then converts this into a net drift velocity that is perpendicular to both the main B-field direction and the direction of the gradient, as dictated by the vector cross product in the drift formula.
Is this drift relevant in real-world applications?
Absolutely. Gradient-B drift is a fundamental mechanism in space and fusion plasma physics. In Earth's magnetosphere, it contributes to the formation of the Van Allen radiation belts and the ring current. In magnetic confinement fusion devices like tokamaks, this drift, if uncompensated, would cause charged particles to drift out of the confinement region and hit the walls. Understanding it is crucial for designing machines that can sustain a fusion reaction.
Why is the electric field set to zero in this simulator?
Setting E=0 allows the simulation to isolate and demonstrate the gradient-B drift mechanism specifically. In many real scenarios, both electric fields and magnetic field gradients are present, leading to combined drifts (e.g., E×B drift plus ∇B drift). By removing the electric field, we can clearly see the curved, drifting trajectory resulting purely from the magnetic non-uniformity, which is a key conceptual building block.
What is the 'guiding center' and how is it used here?
The guiding center is a theoretical point that represents the average position of a gyrating particle—the center of its circular Larmor motion. In this simulation, the particle's rapid gyration is resolved, but the analysis of the drift is often done using the guiding center approximation. This method separates the fast gyromotion from the slower drift by averaging over a gyroperiod, making it much easier to calculate and visualize the large-scale drift motion, which is the path the guiding center follows.