Loading…

Lorentz Force Simulator

Physics Electricity and Magnetism • Magnetic Fields and Sources

View all topics

8. Lorentz Force Simulator

Simulates charged particle motion under the Lorentz force \( \mathbf{F}=q(\mathbf{E}+\mathbf{v}\times\mathbf{B}) \) in uniform/crossed fields. Produces circular / helical trajectories and key quantities like \( \omega_c=\dfrac{|q|B}{m} \).

Units: SI (m, s, C, kg, V/m, T). Inputs accept 1e-3, pi, sqrt(2), sin(), cos(), tan(), ln(), log(), abs(). Use * for multiplication.
Inputs
Uniform fields
Ex Ey Ez
Crossed fields: \(\mathbf{E}\perp\mathbf{B}\) gives \(\mathbf{E}\times\mathbf{B}\) drift.
Bx By Bz
Uniform \(\mathbf{B}\): \(v_\perp\) → circle; add \(v_\parallel\) → helix.
Initial conditions
x0 y0 z0
The 3D view is a projection; rotate yaw/pitch to see helix depth.
vx vy vz
Try \(v_\perp\neq 0\) and \(v_\parallel\neq 0\) with \(\mathbf{B}\parallel \hat{z}\) to see a helix.
Simulation + view
Smaller \(\Delta t\) improves accuracy (slower). Boris is stable for gyration.
Trajectory is computed once; animation plays through stored points.
Controls animation speed only (not physics).
Shows a moving window of the recent trajectory.
Yaw rotates around the vertical screen axis (visual only).
Pitch tilts up/down to reveal 3D depth.
Axes are in world coordinates (m). View auto-fits after Simulate.
Ready

Pan/zoom: drag to pan • wheel/trackpad/pinch to zoom • Reset view auto-fits the trajectory.
Play animates the particle along the trajectory (auto-fit makes microscopic gyration visible).

Steps

Enter values and click Simulate.

3D trajectory (projected)

Trajectory \(\mathbf{r}(t)\) with \(\mathbf{E},\mathbf{B}\) shown as arrows
What you’re seeing
  • Particle trajectory (recent segment = brighter)
  • Particle position
  • \(\mathbf{E}\) arrow (scaled for display)
  • \(\mathbf{B}\) arrow (scaled for display)

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.