Lid driven cavity flow

Top lid moves horizontally with uniform velocity and the motion of flow in the cavity is studied.

You are now following this Submission

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 (2026). Lid driven cavity flow (https://in.mathworks.com/matlabcentral/fileexchange/57064-lid-driven-cavity-flow), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Fluid Dynamics in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0