CFD Python: 12 Steps to Navier-StokesNew
My rating
Why start here
Before physics-ML, you need to feel how a CFD solver is built. "12 Steps to Navier-Stokes" (Barba & Forsyth, Computing in Science & Engineering 2018) walks from linear convection to the 2-D cavity flow in twelve incremental notebooks - each step adds exactly one numerical idea.
The twelve steps
- Linear convection (first-order upwind)
- Nonlinear convection
- Diffusion
- Burgers equation
- Linear second-order wave (leapfrog)
- Nonlinear 2-D convection
- 2-D diffusion
- Burgers 2-D
- Laplace equation (iterative relaxation)
- 2-D Poisson (pressure-Poisson preview)
- Cavity flow with explicit time stepping
- Channel flow with implicit treatment
How to use it
- Run each notebook top to bottom; then delete outputs and retype the key lines
- Experiment: change CFL, grid spacing, initial condition; watch stability break
- Afterwards, discretization and stability feel concrete - which makes PINN residuals and differentiable solvers much easier to read
Pair with
- The accompanying AeroPython / CFD Python lessons
- A finite-volume text (e.g. LeVeque) for the conservative-form perspective
Tags: