It β delay fps
Fluid dynamics. Cold and heavy fluid is blue and hot fluid is red. This script makes 2 It iterations every time step to calculate pressure.

Karl Fredrickson made the script more accurate. He wrote:
"I was also interested in your fluid simulations and tried to fix the asymmetry in the fluid droplet and hot/cold fluid demos on your site. I ran into similar problems when I was writing a WebGL fluid demo, and found that it can be improved by using symmetric linear interpolation when you sample from a texture, especially in the advection step. This does seem to improve the symmetry (see attached files, where the "getSampleSymmetric" function is used in advection). The other shaders were also changed slightly to make all the math symmetric. They still do become asymmetric eventually... I'm not sure why that happens - maybe asymmetric rounding in floating point math?"


Simulations on GPU
updated 26 Nov 2016