Three-dimensional heat transfer analysis of arrays of heated square blocks