An open API service indexing awesome lists of open source software.

https://github.com/edithvillegas/potential-flow

Basic calculator of potential flow of a fluid in 2D
https://github.com/edithvillegas/potential-flow

potential-flow

Last synced: 6 months ago
JSON representation

Basic calculator of potential flow of a fluid in 2D

Awesome Lists containing this project

README

        

# Potential-flow
Calculates potential flow in 2D, using the finite differences method to solve the potential flow equation.
Takes as input a matrix of integers (from 0 to 3), where 0 is an obstacle, 1 a cell with fluid, and 2 and 3 represent where the fluid enters and exits.

An example program using a small image as input can be found here: [Main Code](pic_obstacles.py)

Details on input/output and internal workings of each function can be found on the report: [Technical Report.pdf](Technical%20Report.pdf)

![Planar flow with a Smile Obstacle](smile_current.png)

Project assignment, Computational Physics Master, Université de Franche-Comté (October 2018)