This page looks best with JavaScript enabled

Fluid Simulation 2D

 ·  ☕ 1 min read · 👀... views

A 2D fluid simulation using the hybrid grid/particle approach with APIC (Affine Particle-in-Cell) transfer.

Description

A 2D fluid simulation using the hybrid grid/particle approach with APIC (Affine Particle-in-Cell) transfer.

Download

Magnum example page with more description
Code (github) from Magnum repository
Windows binary

WebGL Demo

Thanks Vladimír Vondruš for building the awesome WebGL application. This is part of Magnum graphics engine showcase. Note that this WebGL demo requires WebAssembly-capable browser with WebGL enabled.

Usage:
* Mouse drag rotates the camera
* E emits more particles
* H shows/hides the overlaid menu
* R resets the simulation
* Space pauses/resumes the simulation

Initialization...

A screenshot of the program A screenshot of the program
A screenshot of the program A screenshot of the program
A screenshot of the program A screenshot of the program
A screenshot of the program A screenshot of the program

Share on

Nghia Truong
WRITTEN BY
Nghia Truong
(Trương Trọng Nghĩa)


What's on this Page