This project is a computational fluid dynamics (CFD) solver written in Rust and post-processed with matplotlib, using the SIMPLE algorithm with a collocated grid to integrate the 2D incompressible unsteady Navier-Stokes equations. This project is based on the lectures by Dr. Sandip Mazumder. It can solve four cases: the lid-driven cavity flow, the pipe flow with a velocity inlet/gauge pressure outlet, the backward facing step flow and a square cylinder.
To run this project, you need to have Rust, Python 3 and matplotlib installed on your system. To run the solver for a specific case, use the following command:
cargo run --release -- -c <case>
where <case>
can be one of lid_driven_cavity
, pipe_flow
, backward_facing_step
, backward_facing_step
. The solver uses a uniform mesh of size --help
or -h
flag.