Simulate, visualize and prove the ideal gas equations
- N: number of particles in the container
- T: average KE
- dt: time step
- dx, dy, dz: space step
- xCoord, yCoord, zCoord: x-,y-,z-coordinates; randomly assigned during initialization
- v: initial speed, magnitude of the direction vector in space when combined with the normalised unit vector based on i, j, k
- r: radius of each particle during visualisation
- i, j, k: i-, j-, k- components of the direction vector of the particles, randomly assigned based on v
- propagate: update the position vector based on the speed
- collide: corresponding i-/j-/k-component changes sign
Rectangular prism is used, but the container could also be any other shape e.g. cylindrical (TODO)
- h: height of the prism (direction: upwards)
- w: width of the prism (direction: out of screen)
- l: length of the prism (direction: right)
- xCoord, yCoord, zCoord
- i, j, k: i-,j-,k-components of the direction vector of the camera, corresponding to the x-,y-,z-directions
- frameW: width of the window
- frameH: height of the window
- zoom in/out (TODO)
- rendContainer: render coordinates of container, which stays constant for now
- rendParticles: render coordinates of particle, which is changing
- plot graph