File Exchange

image thumbnail

Interactive Incompressible Fluids (Karlsson version)

version (14.1 KB) by Stefan Karlsson
An interactive demo of Navier-Stokes equations for incompressible fluids.

1 Download

Updated 28 Jan 2016

View License

This is based on and inspired from
following changes are implemented:
- Removes the parallell computing toolbox dependencies.
- implements a different GUI, where number of particles are controlled instead of resolution of underlying flow
- Optimized a great many functions for effeciency (so it can run smoothly, even without the parallel toolbox/GPU)
- Removed many bugs
- slightly different mouse-drag interface to particles
- GUI option: Renderer
- GUI option: Solver, "Simple" or "Alpha"

Cite As

Stefan Karlsson (2020). Interactive Incompressible Fluids (Karlsson version) (, MATLAB Central File Exchange. Retrieved .


Added comments to the solver code. No change in code.

Added control of grid-size to Gui
Changed the solver code for better readability, added more comments

Added another solver, which should be more accurate. Choose it in the GUI.

hotfix, uploaded wrong file

added control of the figurer renderer to the GUI (choose opengl or zbuffer). This can make a big difference from system to system.

improved the remarks in the code.

improved the display and calculation of CPU miliseconds and FPS

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

Inspired by: Interactive Incompressible Fluids