Thermal convection in a closed water body with compound cross section