stable-fluids-3d

A single-file implementation of 3D stable fluids.

000386

Running

Prerequisites:

pip3 install taichi

Running:

python3 stable_fluids_3d.py

Default settings:

  • grid resolution: 128*128*128.
  • particle number: 10 million.
  • jacobi iteration num: 100.

Performance

Profiled on NVIDIA RTX 3090:

#Particle 1 Million 5 Million
FPS 30 5

Video

Compressed version:

video_2_x4_600

High-quality version: YouTube.