commit fac58dacb92ccb875e85cbad0b8b48947c138e69 Author: Thomas Georgiou Date: Thu Oct 22 14:25:43 2009 -0400 Add mass calculations for testing. Currently, mass is increasing for some reason, which I need to fix. commit de64aabb67b2dd3cd41a7bb824ce88703d2ad8dd Author: Thomas Georgiou Date: Tue Oct 20 15:02:03 2009 -0400 Tell gcc to use -O2 to optimize my program. commit fd6cc5d989da8d660f6be68efc516d373a7072c8 Author: Thomas Georgiou Date: Tue Oct 20 14:54:21 2009 -0400 Add the debug flag so that I can do debugging and profiling. commit 52919db1faf991c5d9c29286870209be4873a553 Author: Thomas Georgiou Date: Tue Oct 20 14:51:59 2009 -0400 In OpenGL, the center of the pixel is 10.5 instead of 10. When drawing points using integer coordinates such as at 10, it is undefined which pixel should be filled, resulting in unfilled lines across the screen. To fix this, I shifted the entire image over 0.375 in both the x and y directions. commit a39f07533420d30ad0d0bbb60b72d1f187d4b68a Author: Thomas Georgiou Date: Sun Oct 18 11:46:26 2009 -0400 Perform some code cleanups since stationary particles are already included in the normal stream step. commit 870a258b9a1475e612758c7bce0f3787af85d403 Author: Thomas Georgiou Date: Sun Oct 18 11:25:05 2009 -0400 Add the ability to add more fluid with the mouse. Currently, fluid added with the mouse has no velocity associated with it initially. I need to figure out how to find the velocity of the mouse pointer in order to impart velocity on the added fluid. commit 907c07078050aa80b025dde7fa2a634728cbf08f Author: Thomas Georgiou Date: Sun Oct 18 11:15:33 2009 -0400 Add OpenGL visualization. It makes a 2D opengl window showing the fluid density at each point. I still need to add using the mouse to add more fluid. commit 077d9ac985b987698320c6b755c8b1f9ce6de8c9 Author: Thomas Georgiou Date: Sat Oct 17 23:52:44 2009 -0400 Remove array of direction magnitudes. There is no need for them currently. commit b64335a1c955f5b2cd19acf1af9065b14e83d7d3 Author: Thomas Georgiou Date: Sat Oct 17 23:37:07 2009 -0400 Collision code works now. Turns out that for some reason, I was getting negative equilibrium distribution values in certain cases, causing the pgm file reader to fail, breaking the output images. Fixed this temporarily by clamping all equilibirum distribution values to 0 at the low end. commit 878808e534a53170cc3c22528c6d8c21a0d42924 Author: Thomas Georgiou Date: Sat Oct 17 23:18:34 2009 -0400 Initial version of the collision step code. However, it fails massively. I also still need to figure out where the equilibrium distribution used comes from. commit 18ed5c78c1a14ff17b5a0e54eac083548e70d086 Author: Thomas Georgiou Date: Sat Oct 17 23:01:31 2009 -0400 Create first version of 2d simulation program. Currently, only streaming is implemented, which means there are no collisions. Images are outputed as pgm files showing the distribution of the fluid. It is a two dimensional space with 9 velocities possible for every particle.