Charged Particle Motion Simulator — Theory
This tool models a charged particle moving under an electric field.
The physics starts with the electric force and Newton’s second law.
1) Force and acceleration
If the field is uniform (constant \(E_x,E_y\)), then \(\mathbf{a}\) is constant.
The motion is constant-acceleration kinematics in 2D.
2) Uniform field: analytic motion (parabolic paths)
If \(E_x=0\) and you launch horizontally (\(v_{y0}=0\)), then \(x\) increases linearly while \(y\) changes quadratically,
producing a parabola (just like projectile motion, except the “acceleration” comes from \(q\mathbf{E}/m\)).
3) Known varying fields: numerical integration
When \(\mathbf{E}\) depends on position and/or time, the acceleration changes along the path:
\(\mathbf{a}(t)=\frac{q}{m}\mathbf{E}(x(t),y(t),t)\).
In that case we approximate the motion with small time steps \(\Delta t\).
The simulator uses a semi-implicit Euler update (also called symplectic Euler in many contexts).
If the field varies rapidly or the acceleration is huge (e.g., electrons), you typically need a smaller \(\Delta t\).
4) Units and interpretation
- \(q\) is in coulombs (C), \(m\) in kilograms (kg).
- \(\mathbf{E}\) is in newtons per coulomb (N/C).
- \(\mathbf{a}\) is in m/s² and follows \(\mathbf{a}=(q/m)\mathbf{E}\).
- If \(q<0\), the acceleration points opposite \(\mathbf{E}\).
5) Practical tips
- If the path “explodes” or becomes jagged, reduce \(\Delta t\) or reduce field magnitude.
- For a clean parabola in uniform field, use constant \(E_y\), \(E_x=0\), and a horizontal \(v_0\).
- In expression mode, keep your formulas smooth (avoid discontinuities) or use a very small \(\Delta t\).