Rayleigh Benard Convection
Natural convection due to thermal gradients are simulated in a 2D rectangular domain. The Navier-Stokes equations are solved by the pressure projection method on a staggered grid. The hyperbolic flux terms are discretized explicitly (CD, MacCormack and Richtmyer) while the diffusive terms are dealt with both explicitly and implicitly. The energy transport equation is explicitly discretized (CD) for the advective fluxes along with an option for implicit or explicit method for the conduction terms. The Pressure Poisson equation is solved implicitly. The top and bottom surfaces are isothermal while the sides are adiabatic. No-slip is enforced for velocity on all sides and homogenous boundary conditions are employed for pressure. Both velocity and temperature field are used for visualization purposes. For specific (critical) values of Pe,Gr and Re, Rayleigh Benard convective rolls are observed.
Cite As
Suraj Shankar (2024). Rayleigh Benard Convection (https://www.mathworks.com/matlabcentral/fileexchange/38093-rayleigh-benard-convection), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |