This a coursework in 2021 when I was an undergraduate student at Shanghai Jiao Tong University. It implements two 2D finite difference solutions of (i) steady incompressible flow around a circular cylinder (Laplace equation) and (ii) a water tank above a moving plate (Stokes flow using stream function and vorticity equation).
The Laplace equation
is solved using finite difference method (rectangular mesh).
(Left bottom: Change of
The Stokes flow satisfies
The vorticity
(Left: Vorticity and change of vorticity in each iteration. Mid: Stream function, velocity vector, and change of stream function in each iteration. Right top: u. Right bottom: v)