Skip to content

boelukas/pbs-sandfluid

Repository files navigation

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

About

PIC & FLIP fluid simulation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages