Laminar and turbulent natural convection in an enclosed cavity