Alexis Mabanza @ alexvolkihar.ovh

Fluid

Ink in still water, carried by stable fluids

A tank of still water is simulated on a small grid. The hash places a few emitters that push the water and let ink into it: plumes rising from the floor, heavy drops that sink and curl into rings, jets fired at each other, a spoon stirred round the bowl or a scatter of short bursts. For a fixed number of steps the water carries itself and the ink along, stays incompressible, and is kept from settling too quickly by feeding its small eddies back in. The ink is then printed as a soft wash on paper or as smoke on a dark ground; it can also pool at its edges or settle into the grain. Press New seed for a fresh hash, then share the URL to show someone that exact piece.

All series
0x0407ce5d…4cad
Palette EmberFlow PlumesTurbulence CurlingInk Pooled
0x0503097e…d7ca
Palette MarbledFlow DropsTurbulence CalmInk Wash
0x18389d00…9f9f
Palette MarbledFlow StirTurbulence CurlingInk Wash
0x9d7e733c…b5cf
Palette SmokeFlow PlumesTurbulence CalmInk Wash
0x3847834d…a127
Palette SumiFlow PlumesTurbulence WildInk Pooled
0xf13a512f…c5e5
Palette SmokeFlow CollisionTurbulence CalmInk Granulated
0x1d5f1560…b98a
Palette SumiFlow DropsTurbulence CalmInk Wash
0x50f9cc91…ac4e
Palette IndigoFlow CollisionTurbulence CurlingInk Wash
0xf9f033da…0ae3
Palette LagoonFlow DropsTurbulence CurlingInk Wash
0x7d8fc386…6ddc
Palette IndigoFlow DropsTurbulence WildInk Wash
0x3ec6a934…501a
Palette LagoonFlow StirTurbulence WildInk Wash
0xa427bf27…d916
Palette SumiFlow CollisionTurbulence CalmInk Pooled

Traits

The weights were set before any drawing code was written. They were then checked against a census of 2,000 seeds.

TraitValues (weight)
PaletteSumi 22 · Indigo 16 · Marbled 18 · Smoke 16 · Ember 14 · Lagoon 14
FlowPlumes 24 · Drops 24 · Collision 18 · Stir 16 · Scatter 18
TurbulenceCalm 30 · Curling 45 · Wild 25
InkWash 45 · Pooled 35 · Granulated 20

Credits

  • Solver: Jos Stam, Stable Fluids (SIGGRAPH 1999) and Real-Time Fluid Dynamics for Games (GDC 2003): semi-Lagrangian advection, implicit viscous diffusion and pressure projection on a collocated grid with reflecting walls.
  • Pressure: the Poisson equation is relaxed with Jacobi iterations, warm-started from the previous step, as in Mark J. Harris, Fast Fluid Dynamics Simulation on the GPU (GPU Gems, 2004).
  • Eddies and buoyancy: vorticity confinement and density-driven buoyancy after Ronald Fedkiw, Jos Stam and Henrik Wann Jensen, Visual Simulation of Smoke (SIGGRAPH 2001).
  • Printing: inks mix by the Beer–Lambert law on paper and as emission on dark grounds; the dye grid is refined with a Catmull–Rom spline. The implementation is original, written from these descriptions.
  • Randomness: sfc32 by Chris Doty-Humphrey. The hash seeding, named sub-streams and verification follow Camille Roux’s genart skill (MIT).
  • The palettes are original. The code was written with an AI assistant. It draws everything itself: no AI-generated images.

Artworks © Alexvolkihar, licensed CC BY-NC-ND 4.0. Code under the repository licence (MIT).


>