Skip to content

Latest commit

 

History

History
50 lines (38 loc) · 1.11 KB

File metadata and controls

50 lines (38 loc) · 1.11 KB

Fluid Simulation

About The Project

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

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

Follow the steps in this link here to instal SMFL.

Installation

  1. Clone the repo

    git clone https://github.com/PotatoAim101/fluid_simulation.git
  2. Make the executable

    make
  3. Run the script

    ./simulation

Usage

  • 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

Acknowledgements