Luke Carlson edited Method.tex  about 11 years ago

Commit id: 0153ef536dee09233a96db34a38e01a939201581

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 initiation, which is equivalent to \Delta time,  but I knew that aspects of the code were executed every frame. The project ran at a rate fixed number  of60  frames per second (60)  so I designed this formula to figured out the change in time: $total_time $total\ time  (seconds) = \frac{total\ frames}{frames_per_second}$ . frames}{frames\ per\ second}$.  I inserted the that  data into this formula $F = \frac{2m * \displaystyle\sum\limits_{0}^n v}{\Delta t}$ (see Introduction). Introduction) and obtained the total force on the wall. To obtain the pressure, I just divided the answer by the area of the wall.