An extensible framework for Fluid Simulation
mantaflow is an open-source framework targeted at fluid simulation research in Computer Graphics.
Its parallelized C++ solver core, python scene definition interface and plugin system allow for quickly prototyping and testing new algorithms. Download the latest version here.
Version 0.10 introduces:
- The online discussion forum is finally back...
- a new, very fast multigrid-preconditioned solver (thanks to Florian)
- flow guiding with convex optimization (thanks to Tiffany and Marie-Lena)
- support for 4d grids and vectors
- long long int type, for huge grids and particle systems
- additional display modes (projection, shaded projection)
- this release includes algorithms from two recent papers: an appraoch for narrow band FLIP simulations, and for surface turbulence (Ferstl et. al Eurographics 2016, and Mercier et al. SIGGRAPH Asia 2015)
- there's new cmake switch to compile without python (NOPYTHON), this makes it easier to include mantaflow as a library
- various cleanup fixes, e.g., a mantaMsg function was added for output under windows (use it instead of "print" in the python scenes)
The full release notes are here.
Here's a preview of a guided tornado simulation created with mantaflow.
The framework can be used with or without GUI on Linux, MacOS and Windows. Here is an incomplete list of features implemented so far:
- Eulerian simulation using MAC Grids, PCG pressure solver and MacCormack advection
- Flexible particle systems
- FLIP simulations for liquids
- Surface mesh tracking
- Free surface simulations with levelsets, fast marching
- Wavelet and surface turbulence
- K-epsilon turbulence modeling and synthesis
- Maya and Blender export for rendering
- Interpolations of Smoke and Liquid Simulation, Transactions on Graphics 2016
- Narrow-band FLIP, Eurographics 2016
- Surface Turbulence for Particle-Based Liquid Simulations, SIGGRAPH Asia 2015
- Connecting Forward and Inverse Problems in Fluids, SIGGRAPH 2014
- Liquid Surface Tracking with Error Compensation, SIGGRAPH 2013
- Turbulent fluids: Course, SIGGRAPH 2013
- Lagrangian Vortex Sheets for Fluid Animation, SIGGRAPH 2012
- Physics-Inspired Topology Changes for Thin Fluid Features, SIGGRAPH 2010
- A Multiscale Approach to Mesh-based Surface Tension flows, SIGGRAPH 2010
- Synthetic Turbulence using Artificial Boundary Layers, SIGGRAPH Asia 2009
We hope you find it useful for your research, too. If you decide to use it, let us know your story at
Last update: May 2016