Corrosion prevention measures for shell and tube heat exchanger