myscience / py-fluid

Just another Fluid Simulation, this time with Art!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple Fluid Simulation in Python

Van_Gogh

A minimal python implementation of a PIC|FLIP particle-grid fluid solver. Heavily based on Robert Bridson's book Fluid Simulation for Computer Graphics.

How to run this code

This code is based on the following libraries:

numpy.py      # Data manipulation
scipy.sparse  # Solving the pressure system via sparse matrices
PIL.Image     # Visualization of the fluid

To run this code simply run the Jupyter notebook Fluid Simulation.ipynb.

WARNING: As it stands right now this code is highly non-optimized and takes a comically long time to complete even a modest 2D simulation. Further optimizations are planned as future work.

About

Just another Fluid Simulation, this time with Art!


Languages

Language:Python 100.0%