Effect of heat transfer on periodic transonic flows