The simulation was written in the
C++ programming langauge,
and using the OpenGL
graphic library to render the graphics to the screen, along with the
GLUT
utility toolkit.
The simulation defines a Class
which contains all the information about the particle that is currently in the system,
including constant ones, like its mass, and changing ones, like position, velocity and spin.
The system consist of a stationary magnetic field, which is defined for each point in space,
and 2 equi-y planes that defines the part of the space where the field actually exists.
Each cycle of the simulation starts with setting the position of the particle to the edge
of the particle "gun", adding it some user-controled uncertainty, setting it's velocity directly
towards the screen, and setting its magnetic-moment or spin-state to a random value, depending on
the physical mode adjusted by the keyboard (see manual section).
then at each step the time is progressed by a constant interval which was set to 10^-5 seconds,
the position is changed according to the velocity, the velocity according to the body-force, and
if in semi-classical physical mode, the spin is measured along the axis tangent to the field in
the current particle position.
The particle is modeled as solid sphere with an arrow directed in it's magnetic moment direction.
It is way out of scale, and does not represent visually the true particle, if such a thing even exists,
but rather supplies all the relevant information about the particle elegantly.
Feel free to nevigate between the different sections of the website
through the menu in the left side of the screen.
If you don't see it, please start again at the Project Index Page