2D Lid driven Cavity Flow

Simulation of the 2D lid driven Cavity Flow of a Newtonian Fluid (laminar flow) using FD.

You are now following this Submission

Cavity flow is simulated using the pressure correction method on a staggered grid using explicit differencing for the hyperbolic terms (CD, MacCormack and Richtmyer method) while both explicit and implicit methods are considered for the diffusive (parabolic) terms. For the implicit steps, preconditioned matrices are used using LU decomposition. The Pressure Poisson equation is also solved implicitly. Neumann boundary conditions are used for pressure and Dirichlet conditions for the velocity field

Cite As

Suraj Shankar (2026). 2D Lid driven Cavity Flow (https://www.mathworks.com/matlabcentral/fileexchange/38089-2d-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