This project aims to implement a simple 2D simulation of a fluid that is easy to run on any PC and that runs in real-time
To get a local copy up and running follow these simple steps.
Follow the steps in this link here to instal SMFL.
-
Clone the repo
git clone https://github.com/PotatoAim101/fluid_simulation.git
-
Make the executable
make
-
Run the script
./simulation
- Press left mouse button to add walls
- Press right mouse button to add fluid density
- Press P + right to add positive pressure
- Press N + right to add negative pressure
- Press S + right to add speed
- Press T + right to ass temperature
- Press D to visualize speed
- Press C to visualize pressure and C + right to add bigger pressure