The following simulation shows trajectory for a charged particle in electric and/or magnetic field.

$\vec{F}=q\vec{E}+q\vec{v}\times\vec{B}$

The magnetic field B is always in Z direction in the simulation, however, you can change Ex,Ey or Ez with a slider.
The initial condition is $\vec{B}=B_0 \hat{z}, E=0 , \vec{v}=v_0 \hat{y}$ , so the result is a circular motion.

If you add E field, then you will find $\vec{V_d}=\frac{\vec{E}\times\vec{B}}{|\vec{B}|^2}$ (E cross B drift).
The particle will drift along $\vec{V_d}$

/htdocs/ntnujava/ejsuser/2/users/ntnu/fkh/chargedparticleinEBfield_pkg/chargedparticleinEBfield.propertiesFull screen applet or Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop. This work is licensed under a Creative Commons Attribution 2.5 Taiwan License
Download EJS jar file(1534.8kB):double click downloaded file to run it. (107 times by 52 users) , Download EJS source (30 times by 22 users) View EJS source

You are welcomed to check out [url=http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=36]Charged particle motion in E/B Field[/url]