Electromagnetic 3D Simulator
This simulation have a magnetic field that is created by two electric flows with different intensities. Electrons and protons will interact with this field representing helicoidal trayectories. Also the electrons and protons will interact with each other because of the Coloumb’s law.
Coloumbs Law:
\[\vec{F_e}=K\frac{q_1q_2}{r^2}\vec{u_r} \]
Calculating the magnetic field
\[\vec{B}=\frac{\nu_0I}{2\pi r} \vec{u_l} \times\vec{u_r}\]
Lorentz law for calculating magnetic force
\[\vec{F_m}=q(\vec{v}\times\vec{B})\]
Finally sum all both forces
\[\vec{F}=\vec{F_e}+\vec{F_m}\]
Demo video:
More information and deep understanding of maths: Full tutorial Electromagnetic