Theoretical and numerical study of enhanced heat transfer in partitioned thermal convection