← Back to Portfolio

2D Grid-Based Fluid Simulator

Overview

Overview

(scroll until next arrow if needed)

This project was the final project for the class 6.837: Computer Graphics. It took a two person team 2.5 weeks to complete. Fluids can be quite difficult to procedurally animate, especially for grid-based designs, because they rely on an Eulerian rather than a Lagrangian model. Our goal for this project was to create a 2D grid-based fluid solver that would follow the Eulerian model to update the different values in its voxel grid, creating a stable, incompressible 2D fluid simulation. Our particular approach was based off of Jos Stam's "Real Time Fluid Dynamics for Games" (2003), creating a fluid motion model that simulated the dropping of a dye into a fluid under a variety of conditions.

Project Report

Demonstration

Demonstration

From left to right: general fluid motion and collision with objects, dam breaking, and wind vortex simulations