2D Lid driven Cavity Flow

Simulation of the 2D lid driven Cavity Flow of a Newtonian Fluid (laminar flow) using FD.
6K Downloads
Updated 10 Sep 2012

View License

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 (2024). 2D Lid driven Cavity Flow (https://www.mathworks.com/matlabcentral/fileexchange/38089-2d-lid-driven-cavity-flow), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010a
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