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

Related simulators

Continue with similar topics in this category — or all 65 in Electricity & Magnetism.

View category →
NewSchool

Particle in E and B Fields

Launch Simulator

Lorentz force: cyclotron motion, E×B drift, trajectories in sim units.

NewUniversity / research

Magnetic Mirror (Bottle)

Launch Simulator

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

NewUniversity / research

Mass Spectrometer (Sector)

Launch Simulator

Velocity selector v = E/B then magnetic sector: different m/q bend to different radii (2D schematic).

NewSchool

Cyclotron (Schematic)

Launch Simulator

B uniform, oscillating E in gap; spiral growth; ω_c = (q/m)B in sim units.

NewUniversity / research

Radiation Belts Drift Shells

Launch Simulator

Van Allen belts: gradient and curvature drift on dipole L-shells, mirror latitude, equatorial loss cone α_lc(L); electrons west, protons east.

NewSchool

Hall Effect

Launch Simulator

U_H = R_H I B / t; R_H sign for e⁻ vs holes; B, I, n, t.

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

B_z(x,y) with weak gradient; orbit from q(E+v×B) at local B — gyration + drift.

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

About this model

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

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.