This repository presents an implementation of Prof. Lorena A. Barba's "12 Steps to Navier-Stokes" tutorial, featuring a methodical approach to understanding and solving the Navier-Stokes equations for fluid flow simulation. Within this repository, you'll find MATLAB, Python, and C++ code for each of the 12 steps, accompanied by in-depth explanations and references.
- Steps 1 to 4 in 1D
- Linear Convection
- Nonlinear Convection
- Diffusion
- Burgers' Equation
- Steps 5 to 10 in 2D
- Linear Convection
- Nonlinear Convection
- Diffusion
- Burgers' Equation
- Laplace Equation
- Poisson Equation
- Steps 11 to 12 - Navier-Stokes Equation in 2D
- Cavity Flow
- Channel Flow
The C++ code incorporates matplotlibcpp.h
, a library offering Matplotlib-like plotting functionality. Simply include this header in your project and ensure Python with Matplotlib is installed.