Constructal design of T-shaped cavity cooled by convection