Crates.io | spherro |
lib.rs | spherro |
version | 0.2.1 |
source | src |
created_at | 2019-07-01 14:31:41.122236 |
updated_at | 2019-07-24 17:48:46.956204 |
description | A SPH fluid simulator |
homepage | |
repository | https://github.com/medakk/spherro |
max_upload_size | |
id | 145176 |
size | 414,531 |
A smoothed particle hydrodynamics fluid simulator. Built with rust, and compiled to wasm. Check out the demo here.
All instructions have been tested on Ubuntu 18.04, with the versions:
git clone https://github.com/medakk/spherro
wasm-pack build
www
folder, run:npm install
npm run start
This will start a server(defaults to http://localhost:8080) serving spherro.
Running cargo run --bin spherro-bin --release
starts a kiss3d-based viewer that can be used to debug the simulator without going through the browser.
Running cargo bench
starts a headless dambreak simulation with a fixed time step. This can be used to test performance changes.