Skip to content

Latest commit

 

History

History
22 lines (11 loc) · 1.32 KB

README.md

File metadata and controls

22 lines (11 loc) · 1.32 KB

SIMPLE algorithm based CFD unsteady solver in Rust

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.

Usage

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 $n_x \times n_y$, which can be specified by the user. To get information about what variables you can change in the solver, you can use the --help or -h flag.

Results

out_cavity.mp4
out_square.mp4