GithubHelp home page GithubHelp logo

nilot-pal / lid-driven-cavity Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 2.55 MB

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

License: MIT License

MATLAB 100.00%
cfd matlab matplotlib numerical-integration simple-algorithm staggered-grid

lid-driven-cavity's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.