Active chimney effect using heated porous layers: optimum heat transfer