Lid driven cavity flow

Top lid moves horizontally with uniform velocity and the motion of flow in the cavity is studied.
1.2K Downloads
Updated 11 May 2016

View License

Motion of fluid in a square cavity with three edges fixed and top edge (lid) moving uniformly in horizontal direction is simulated. Stream function vorticity formulation is used to model the problem. Finite difference method is used to discretize the governing partial differential equations.
User can input Reynolds number, edge length, number of spatial grid points, time step size and end time. The velocity of lid is 1 m/s which can also be modified using the script file under the section boundary conditions on top wall.

Cite As

Shubham Maurya (2024). Lid driven cavity flow (https://www.mathworks.com/matlabcentral/fileexchange/57064-lid-driven-cavity-flow), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Fluid Dynamics in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0