2D simulation of an incompressible and inviscid fluid, based on the Fluid Implicit Particle (FLIP) method1. The code implements an Eulerian approach over a Marker-and-Cell (MAC) grid to solve the incompressible Navier-Stokes equations:
To solve these equations, the code uses an Eulerian approach over a 2D MAC (Marker and Cell) grid. The intermediate values of the physical magnitudes are obtained by either bilinear or Catmull-Rom interpolation.
In order to keep track of the air-liquid surface, the code implements a level set representation of the interface. The interface is implicitly described by means of a function
qmake, libQt
$ qmake .
$ make
[1] R. Bridson, Fluid Simulation for Computer Graphics, A.K.Peters (2008).