cfluid

Crates.iocfluid
lib.rscfluid
version0.1.0
sourcesrc
created_at2023-02-01 11:24:07.485685
updated_at2023-02-01 11:24:07.485685
descriptionTerminal-based 2D fluid simulator
homepage
repositoryhttps://codeberg.org/yvt/cfluid
max_upload_size
id773505
size112,640
yvt (yvt)

documentation

README

CFluid

Terminal-based 2D fluid simulator

Prerequisites

  • A very fast terminal emulator supporting 24bpp colors (e.g., Alacritty). Normal ones like macOS Terminal and GNOME Terminal will not cut it.

  • A fast, unmetered network connection to the host machine if you want to run it remotely over SSH (not recommended due to excessive network traffic generated).

  • rustup to build the program.

Usage

# Monotone particles (use mouse to disturb)
cfluid

# Monotone particles on very thick fluid
cfluid -v 1e5

# Particles with trails colored by velocity
cfluid --heatmap velocity --trails

# Cool screensaver
cfluid --heatmap velocity --trails -s

Bibliography

[Stam01] Stam, Jos. (2001). "A Simple Fluid Solver based on the FFT." Journal of Graphics Tools. 6. 10.1080/10867651.2001.10487540.

[Green11] Green, D.A. (2011). "A colour scheme for the display of astronomical intensity images." Bulletin of the Astronomical Society of India, vol.39, pp.289--295. 10.48550/arXiv.1108.5083.

License

This program is licensed under GNU General Public License v3.0 or later.

Commit count: 0

cargo fmt