Marcos Ibáñez Matles
Back to work

Simulation · Public code / CUDA and OpenGL

Particle fluid simulation

A volume of fluid represented by particles that interact with their neighbors.

The work

The C++ project contains a 3D smoothed particle hydrodynamics simulation, CUDA computation, and OpenGL rendering. The simulation tracks particles under gravity and handles collisions with the boundaries of a container.

View repository on GitHub

Try the idea

Release a small block of particles in a clear tank. Step the model forward, tilt your view, and see how a change in viscosity affects the relative motion of nearby particles. The browser uses a smaller illustrative model.

Release a particle block