Luke Carlson edited Method.tex  about 11 years ago

Commit id: 4fd924c56cac1d89c2af552ae0e4c221c1cc184a

deletions | additions      

       

\section{Method}  I began constructing my simulation with '3D Balls Bouncing', a project from Open Processing, as a base. Starting off with a system that could already handle 3D collisions of small objects inside a container was necessary [see Failed Methods]. From there, I created small spheres with the properties of an ideal gas. Their speed was roughly determined on a Maxwell-Boltzman distribution and assuming that the most probable speed ($V_{p}$) would occur the most often (calculated using the formula $V_{p} = \sqrt{\frac{2kT}{m}}$. Next, I focused on one wall in the container and tracked each time a particle collided with the area. I could then compute the change in momentum over the area since I had the masses and velocities of the particles. The simulation did not keep track of total time since initiation but I knew that aspects of the code were executed every frame. The project ran at a rate of 60 frames per second so I designed this formula to figured out the change in time: $total-time $total_time  (seconds) = \frac{total-frames}{frames-per-second}$ \frac{total_frames}{frames_per_second}$  . I inserted the data into this formula $F = \frac{2m * \displaystyle\sum\limits_{0}^n v}{\Delta t}$ (see Introduction).