Heat transfer in a three-dimensional channel with baffles