Skip to content

CFD solver based on the unsteady SIMPLE algorithm using a collocated grid mesh, written in Rust

Notifications You must be signed in to change notification settings

miguelggcc/CFD-Unsteady-SIMPLE-Rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

CFD solver based on the unsteady SIMPLE algorithm using a collocated grid mesh, written in Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages