A single-file implementation of 3D stable fluids.
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.
Profiled on NVIDIA RTX 3090:
#Particle | 1 Million | 5 Million |
---|---|---|
FPS | 30 | 5 |
Compressed version:
High-quality version: YouTube.