h o m ep r o j e c ta p p l e t sa d v i s o ra b o u t   u s
curve.gif
applets
Bouncing Balls

Programmer:   Vitaly Bokser , Zhi Huang
Applet:   Bouncing Ball Applet
Documentation:   Boucing Ball Docs
Source Code:   Bouncing Ball Code

Vitaly's comments:
There are were two main classes created one class called "Ball" contains all the information of each individual molecule (its mass, its position, velocity). A second class creates twenty instances of the class ball and initiates them into random positions and lets them interact like ideal molecules would in a closed container (the piston). This interaction is determined by the masses of the molecules, by the volume in the piston, and the temperature of the system.

Zhi's comments:
The applet simulates the moving particles inside the closed piston. The velocity of the particle will be changed according to the change of the temperature inside the piston. It will be changed according to the collision between the particles also. In addition to this, the velocity and the color of the particle will be initialized according to the elements choosen by the users.

<< Back to applet index


home | project | applets | advisor | about us
footer.gif