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.
Calculating the magnetic field
Lorentz law for calculating magnetic force
Finally sum all both forces
More information and deep understanding of maths: Full tutorial Electromagnetic1