Screen Saver Programming - Fluids

Tala Huhe (thuhe)

The goal of this project was to use GPU image manipulation in a novel way, in order to simulate moving fluids. This project builds on top of the previous project, an n-body simulation.

Initialization

The two gases are initialized on opposing corners of a box.

Simulation

The forces are calculated using the SPH equations given in the in-class handouts and in this paper. For numerical stability, Verlet integration is used. The simulation shows a lighter blue gas moving to be on top of a heavier red one.

Controls

Here are the controls for the demo: