CFluid

Terminal-based 2D fluid simulator

## Prerequisites - A very fast terminal emulator supporting [24bpp][4] colors (e.g., [Alacritty][1]). Normal ones like [macOS Terminal][2] and [GNOME Terminal][3] 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][5] to build the program. ## Usage ```shell # 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][7]. [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][8]. ## License This program is licensed under [GNU General Public License v3.0][6] or later. [1]: https://alacritty.org/ [2]: https://en.wikipedia.org/wiki/Terminal_(macOS) [3]: https://wiki.gnome.org/Apps/Terminal [4]: https://en.wikipedia.org/w/index.php?title=ANSI_escape_code&oldid=1132923476#24-bit [5]: https://rustup.rs/ [6]: https://www.gnu.org/licenses/gpl-3.0.en.html [7]: https://doi.org/10.1080/10867651.2001.10487540 [8]: https://doi.org/10.48550/arXiv.1108.5083