Crates.io | bevy-sph |
lib.rs | bevy-sph |
version | |
source | src |
created_at | 2025-02-01 23:07:17.781214 |
updated_at | 2025-02-01 23:07:17.781214 |
description | A Smoothed Particle Hydrodynamics (SPH) simulation using Bevy |
homepage | |
repository | https://github.com/AOS55/bevy-sph |
max_upload_size | |
id | 1539066 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
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