The above simulation assume the beam enter into the magnetic field vertically (but there is a small angle deviation).
I think what you mean is that the beam might enter into the field with a angle.
The code has been updated, so that you can change the incident angle with slider c, or drag the red arrow to change it direction directly.

/htdocs/ntnujava/ejsuser/2/users/ntnu/fkh/chargeinBvdc_pkg/chargeinBvdc.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(1338.9kB):double click downloaded file to run it. (2 times by 2 users) , Download EJS source (1 times by 1 users) View EJS source