NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/

Easy Java Simulations (2001- ) => Electromagnetism => Topic started by: Fu-Kwun Hwang on February 13, 2010, 04:48:01 pm



Title: Shape of charged beam due to deviation in angle/velocity
Post by: Fu-Kwun Hwang on February 13, 2010, 04:48:01 pm
A charge q with velocity v enter into a region with perpendular to magnetic field B, will move in a circular orbit.
The trajectory of the beam will spread out if the bean is deviated with a small angle $\theta$ (dca in the simulation)  or with small deviation in velocity (dv)

The angle $\theta$ = dca * (random() -0.5); // where random() give random number between 0-1
The velocity v=V+ dv* (random() -0.5);

The trjjectory for all different possible paths are shown in the following simulation.


Title: Re: Shape of charged beam due to deviation in angle/velocity
Post by: macfamous on February 26, 2010, 01:04:55 am
may we change for the point random .. it means become positive ..


Title: Re: Shape of charged beam due to deviation in angle/velocity
Post by: Fu-Kwun Hwang on February 26, 2010, 10:29:26 am
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.