| Crates.io | bevy-sph |
| lib.rs | bevy-sph |
| version | 0.1.0 |
| created_at | 2025-02-01 23:07:17.781214+00 |
| updated_at | 2025-02-01 23:07:17.781214+00 |
| description | A Smoothed Particle Hydrodynamics (SPH) simulation using Bevy |
| homepage | |
| repository | https://github.com/AOS55/bevy-sph |
| max_upload_size | |
| id | 1539066 |
| size | 6,590,899 |
A Smoothed Particle Hydrodynamics (SPH) fluid simulation implemented in Rust using the Bevy game engine. The simulation includes airfoil aerodynamics and real-time visualization capabilities. I built this to test Bevy's parallel processing capabilities.

Clone the repository and build with Cargo:
git clone https://github.com/AOS55/bevy-sph
cd bevy-sph
cargo build --release
The project includes two example simulations:
cargo run --example 1-ball_physics
cargo run --example 2-SPH_Airfoil
The simulation parameters can be customized in lib.rs. Key parameters include:
MIT OR Apache-2.0
The simulation uses spatial partitioning and parallel processing for optimal performance. For best results, run in release mode:
cargo run --release --example 2-SPH_Airfoil