Numerical study of thermal convection in shallow cavities with conducting boundaries