Skip to content

Implementation of the 12 steps approach to the Navier-Stokes equations, essential for simulating fluid dynamics.

License

Notifications You must be signed in to change notification settings

emhayki/CFD-Fundamental

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JOSE Article

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.

Contents

  • Steps 1 to 4 in 1D
  1. Linear Convection
  2. Nonlinear Convection
  3. Diffusion
  4. Burgers' Equation
  • Steps 5 to 10 in 2D
  1. Linear Convection
  2. Nonlinear Convection
  3. Diffusion
  4. Burgers' Equation
  5. Laplace Equation
  6. Poisson Equation
  • Steps 11 to 12 - Navier-Stokes Equation in 2D
  1. Cavity Flow
  2. Channel Flow

C++ and matplotlibcpp.h

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.