As my final project for CMPS 161, I implemented a real time CFD system using the technique described in Jos Stam’s paper, "Real-Time Fluid Dynamics for Games". I modified their original code to take temperature and gravity such that hot air will rise and cool air will fall as expected in real life.
The controls are as follows:The box/wedge can be moved with any mouse button. It can also be reshaped by clicking and dragging on any corner.
Here is a short movie of the program in action:
Screen Shots.
Created with LWJGL.