2D-Fluid-Sim
This is my attempt at a 2d Incompressible Navier-Stokes Numerical Solver in Python
The first 2d fluid simulation code is based on the Lecture notes ("12 Steps to Navier-Stokes") and Python code written by Professor Lorena Barba and her students. The second 2d fluid simulation code is based on the Chorin Projection Method and the following paper: https://developer.download.nvidia.com/books/HTML/gpugems/gpugems_ch38.html
These are the differential equations which are solved using the method of finite differences:
where:
is the density (held constant)
is the viscosity (held constant)
is the pressure (a function of x,y, and time)
is the x-component of the velocity (a function of x,y,and time)
is the y-component of the velocity (a function of x,y, and time)