Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/baderouaich/fluid-simulation
- Owner: baderouaich
- Created: 2020-07-08T22:50:50.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-08-28T11:29:28.000Z (3 months ago)
- Last Synced: 2024-10-12T04:06:16.186Z (about 1 month ago)
- Topics: 2d, cplusplus, cpp, fluid, fluid-simulation, fluid-solver, lattice-boltzmann, olcpixelgameengine, pge, pixel-game-engine, pixelgameengine, recreational-programming, simulation, simulations
- Language: C++
- Homepage:
- Size: 108 MB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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