Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/baderouaich/fluid-simulation

Attempt to Simulate Fluid using Lattice Boltzmann Method with the Pixel Game Engine
https://github.com/baderouaich/fluid-simulation

2d cplusplus cpp fluid fluid-simulation fluid-solver lattice-boltzmann olcpixelgameengine pge pixel-game-engine pixelgameengine recreational-programming simulation simulations

Last synced: 15 days ago
JSON representation

Attempt to Simulate Fluid using Lattice Boltzmann Method with the Pixel Game Engine

Awesome Lists containing this project

README

        

# Fluid Simulation

Attempt to Simulate Fluid, using Lattice Boltzmann Method and the olc::PixelGameEngine.

## Overview
https://github.com/user-attachments/assets/8702a958-ca6d-4be8-b236-d518cc9f7d30

## Build & Run
```sh
git clone https://github.com/baderouaich/Fluid-Simulation
cd Fluid-Simulation
mkdir build && cd build
cmake .. -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Release
make -j8
./fluid_simulation
```
#### Controls
- **Mouse** movement to apply velocity
- **SPACE** key to change fluid color randomly
- **Arrow** Keys to apply fluid velocity
- **R** to reset the velocity to default
- **ESCAPE** key to exit the simulation

## Reference
https://mikeash.com/pyblog/fluid-simulation-for-dummies.html