Interactive Incompressible Fluids (Karlsson version)

An interactive demo of Navier-Stokes equations for incompressible fluids.
597 Downloads
Updated 28 Jan 2016

View License

This is based on and inspired from http://www.mathworks.com/matlabcentral/fileexchange/41081-interactive-incompressible-fluids
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
v1.01:
- GUI option: Renderer
v1.02:
- GUI option: Solver, "Simple" or "Alpha"

Cite As

Stefan Karlsson (2024). Interactive Incompressible Fluids (Karlsson version) (https://www.mathworks.com/matlabcentral/fileexchange/54495-interactive-incompressible-fluids-karlsson-version), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Fluid Dynamics in Help Center and MATLAB Answers
Acknowledgements

Inspired by: Interactive Incompressible Fluids

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.3.0.0

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

1.2.0.0

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

1.1.0.0

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

1.0.0.0