Skip to content

A fluid simulation made using SFML and C++.

License

Notifications You must be signed in to change notification settings

ypatel2022/sfml-fluid-simulation

Repository files navigation

SFML Fluid Simulation

Inspiration

This project is based on Mike Ash's implementation of the fluid simulation which was based on Jos Stam's paper on Real-Time Fluid Dynamics for Games. You can find his original implementation here.

How to run

You can download from the releases page to run the program as a .exe, or you can build the project yourself.

Building

Download the repository and open the sfml-fluid-simulation.sln file in Visual Studio 2019/2022.

Setup SFML with your Visual Studio solution.

Then build and run the project.

Controls

To cycle between the different rendering modes, press the Spacebar key.

To exit the program, press the Escape key.

Configuration

To change the simulation settings, open the Constants.h file and change the values of the constants.