Codes

Codes#

Computational Fluid Dynamics

Solve the Navier-Stokes equations step-by-step

Gengchao Yang

Sun Yat-sen University

yanggch8@mail.sysu.edu.cn

This is a practical module that is used in our interactive Computational Fluid Dynamics (CFD) course.

  • The course assumes only basic programming knowledge (in any language) and some foundation in partial differential equations and fluid mechanics.

  • The course is taught entirely using Python. Life is short, you need Python! (Bruce Eckel)

Objective: This course will lead you through the first step of programming your own Navier–Stokes solver in Python from scratch.

Credit: This online interactive module is inspired by and modified from CFD Python: the 12 steps to Navier-Stokes equations. Different from the original repository that uses the finite different method (FDM), this series of codes solve the N-S equations using the finite volume method (FVM).

No programming, no understanding!