Multigrid fluid solver in OpenGL compute shaders @technolope
Multigrid fluid solver in OpenGL compute shaders  @technolope
Uploaded June 2018 | Updated November 2026, 3 hours ago
This is a short clip from a fluid simulation running at 8K internally, displayed on a 6-element, 6K screen.

More details: this is a 2D semi-Lagrangian fluid solver in vorticity-streamfunction variables written in OpenGL compute shaders and running at about 10 fps on a dual-GPU machine. The internal solution resolution is 8192x8192, and the vorticity-velocity inversion is done using a multigrid method written entirely in compute shaders (no CUDA, no OpenCL). The advection uses a semi-Lagrangian method that is 2nd order in time and 4th order in space. There is no applied diffusion and limited numerical diffusion. On the left is a convected color scalar field, on the right is the vorticity field. Each field is reduced about 3.5:1 to fit on this 5760x2400 pixel screen.

You can try this out on any computer that's not made by Apple by downloading opengl-with-luajit from bitbucket.org/jimbo00000/opengl-with-luajit/src/master
Multigrid fluid solver in OpenGL compute shadersvblog 2008-08-08Swarm, a real-time interactive workOdd fluid instability in buoyant simulationThis how we roll in Boston. SCULFrame of ReferenceMedium Cubic Dendrite - A Diffusion-Limited Aggregation 3D PrintRota 9_5bBRAID (Excerpt, Vermeer)Stain 125-1Laminar vortex ring impacts density discontinuityGlacier Peak - One Day
technolope |

Multigrid fluid solver in OpenGL compute shaders

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER