Welcome to Navier-Stokes 2D Simulation, where we flex our brain cells and GPUs to simulate Navier-Stokes equations.
Powered by Rust 🦀 and Bevy 🚀, this project is your gateway to fluid dynamics with vibes.
- Steady flow.
- Incompressible flow.
- No gravity effects.
- Pressure gradient is exists.
- Boundary conditions are y=[0, b].
- u(y) = U at y=0; u(y) = 0 at y=b.
- Using metric units.
https://rayato159.github.io/navier-stokes-simulation/
We're talking 2D fluid sims that are smoother than your morning coffee pour.
- Solves Navier-Stokes equations (yes, the math that makes fluids flow 🧠💦).
- Uses Rust for max performance and Bevy for stunning visuals.
-
Clone the Repo 🖥️
git clone https://github.com/Rayato159/navier-stokes-simulation.git cd navier-stokes-simulation
-
Run the Simulation 🚀
cargo run
-
Key Controls 🎮
Space: Play/Pause the simulation.
- Real-time 2D fluid simulation: Smooth and satisfying, like butter on pancakes.
- Customizable parameters: Adjust dynamics viscosity, pressure rate, and more.
- Bevy-powered rendering: Leverages the ECS magic for clean visuals and top-tier performance.