The potential of magnesium alloy is much more negative than that of carbon steel. In cooling water, it preferentially dissolves and releases electrons, polarizing carbon steel components such as the condenser water chamber and tube sheet to the protection potential, thereby inhibiting electrochemical corrosion.