Skip to content

Beniam-Kumela/fluid-sim-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Real-Time Fluid Dynamics Renderer in Python

This repository contains a Python implementation of modelling real-time fluid dynamics based on the following paper.

Installation

Windows

To install, press the green "Code" button, download, and extract the zip. Then, navigate to the "dist" folder and run the main.exe file.

MacOS, Linux

The pre-compiled main.exe file will not work for these systems. If python is installed on the system with a run-time environment, navigate to the "src" folder and run the main.py file.

Examples

The simulation accurately predicts real world phenomena such as the Kármán vortex street,

This work Experimental
vortex street experimental

why aerodynamic airfoils generate lift for aircraft and birds,

This work Experimental
image Untitled

and the transition from laminar to turbulent one might find from burning incense (actually the motivation for this project).

This work Experimental
smoke incense

Future

I would like to port this code to C++ using OpenGL or SFML to get higher performance, explore different CFD schemes (LBM, DNS, and RANS), and add more user customization (colors, solution stepping, drawing boundaries, density sources).