Skip to content

This repository contains source code for the term project of Advanced CFD class in Spring 2022 (Instructor: Prof. Danesh Tafti).

License

Notifications You must be signed in to change notification settings

nilot-pal/Lid-driven-cavity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lid-driven cavity problem

Description

Consider a fluid inside a square cavity of dimension L bounded by four walls. All the walls except the top wall are fixed in space and time. The top wall is given a constant velocity 𝑢𝑇in the u direction, and we want to see the development of the u and v velocity profiles of the fluid in the whole domain, as it reaches steady state. lid_driven_cavity

Problem statement

The entire problem statement can be found here.

Governing equations

The incompressible NS equations in primitive variables are given by the equation: image

If we apply 2nd order central difference scheme for space discretization and 2nd order Adams Bashforth for time discretization, the above equation can be represented as: image

Solution method

The fractional step, or time-splitting, method solves the unsteady Navier-Stokes equations in a segregated manner. At each time step, an incomplete form of momentum equations is integrated to obtain an approximate velocity field, which is, in general, not divergence-free, then the velocity field is projected into the divergence-free field without changing vorticity. This projection step is achieved by solving the Poisson equation for pressure.

Results

Benchmarking is done against Ghia and Ghia. The project technical report can be found here.

1. u velocity along vertical line through geometric centre of cavity

image

2. v velocity along horizontal line through geometric centre of cavity

image

About

This repository contains source code for the term project of Advanced CFD class in Spring 2022 (Instructor: Prof. Danesh Tafti).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages