Constructal design of a cavity cooled by convection