Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1000 Bytes

README.md

File metadata and controls

40 lines (26 loc) · 1000 Bytes

PIC & FLIP fluid simulation

This is the code of the final project for the course Physically-Based Simulation in Computer Graphics, ETHZ, HS2021. We use Taichi to implement a fluid solver as described in the paper: Zhu, Yongning and Bridson, Robert, Animating sand as a fluid. ACM Transactions on Graphics 2005, 24, pp. 965-972.

Cloning the repository

git clone --recursive https://github.com/boelukas/pbs-sandfluid.git
git submodule update --init --recursive

Setting up the environment

conda env create -f env.yaml
conda activate sandfluid

Running the code

python src/simulation.py

Controlling the GUI

Key Action
space start/pause simulation
r reset simulation

Results

pic_simulation.mp4
flip.simulation.mp4