File Exchange

image thumbnail

Interactive Incompressible Fluids

version (881 KB) by Daniel Armyr
A GPU-enabled interactive demo of Navier-Stokes equations for incompressible fluids.


Updated 01 Sep 2016

View Version History

View License

An interactive GUI showing particles flowing in a liquid field described by Navier-Stokes equations for incompressible fluids. Click and drag with the mouse to add forces to the liquid. Uses Jos Stam's unconditionally stable FFT-based algorithm implemented in MATLAB Code for real-time performance.

Cite As

Daniel Armyr (2021). Interactive Incompressible Fluids (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (9)

peng wu

There are two CPU labels in the Performance Group on program GUI, and the second should be modified to GPU.

sumit malik

Stefan Karlsson


I uploaded a version that does not require the parallel computing toolbox, and that has adressed some bugs and more optimized for performance.

The bugs are computational, in the sense that there are inaccuracies that shouldnt be here. Most noticeably there are boundary effects, and interpolation errors.

May I say again what a nice submission this is!
Cheers, Stefan

Stefan Karlsson

instructive, efficent and fun


Daniel Armyr

Or? It is listed under "Required Products" now at least.


You forgot to mention that the parallel computing toolbox is needed.

Paul Kassebaum

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!