We investigate the stability and dynamics of natural convection in two
dimensions, subject to inhomogeneous boundary conditions. In particular, we
consider a Rayleigh-B\`enard (RB) cell, where the horizontal top boundary
contains a periodic sequence of alternating thermal insulating and conducting
patches, and we study the effects of the heterogeneous pattern on the global
heat exchange, both at low and high Rayleigh numbers. At low Rayleigh numbers,
we determine numerically the transition from a regime characterized by the
presence of small convective cells localized at the inhomogeneous boundary to
the onset of bulk convective rolls spanning the entire domain. Such a
transition is also controlled analytically in the limit when the boundary
pattern length is small compared with the cell vertical size. At higher
Rayleigh number, we use numerical simulations based on a lattice Boltzmann
method to assess the impact of boundary inhomogeneities on the fully turbulent
regime up to Ra∼1010