Based on the Jos Stam paper https://www.researchgate.net/publication/2560062_Real-Time_Fluid_Dynamics_for_Games and the mike ash vulgarization https://mikeash.com/pyblog/fluid-simulation-for-dummies.html
pip install -r requirements.txt
python3 fluid_sim.py
to run matplotlib animationpython3 to_gif.py
to export as an animated GIF
- For pycharm users, enable
to disable the matplotlib view pycharm feature
import matplotlib matplotlib.use('Qt5Agg') # or 'TkAgg' or whatever works