The Fluid Microsolver is an Eulerian fluid solver that advects point attributes on a mesh. It is loosely based on Jos Stam’s “Stable Fluids” paper.

The novelty of this implementation is that it works on any kind of connected topology, not only on grids (although a certain regularity is expected for predictable results).

This is extremely useful in any situation where you need to simulate moving fluid on an existing mesh, without having to deal with UVs or transferring attributes to volumes, such as when dealing with COPs. This also allows you to naturally advect existing attributes.

Fluid_04.mp4

The solver takes any mesh with a density scalar point attribute, and then advects that attribute based on the specified forces. By default only gravity is enabled.

image.png

Optionally, you can input additional live sources, colliders, and forces.

The microsolver only computes one simulation step, so it needs to be used inside a solver to create a simulation. Eventually I will also create a wrapper for this.

Source

Collision

Advection

Force

Solver