The effect of a barrier on laminar convection in a box with differentially heated endwalls