Yes, surface roughness can affect the corrosion of magnesium alloy. A rougher surface can create more sites for corrosion to occur, leading to faster and more severe corrosion. This is because the surface area of a rougher surface is higher than a smoother surface, providing more places for the corrosive environment to attack the material.
Additionally, a rough surface can trap contaminants or moisture, which can accelerate corrosion. For example, in a humid environment, a rough surface can hold more moisture than a smooth surface, increasing the likelihood of corrosion.
In contrast, a smoother surface can provide better protection against corrosion because it has fewer sites for the corrosive environment to attack. Additionally, a smooth surface can be easier to clean, removing any contaminants that could accelerate corrosion.
Therefore, surface finish and roughness are important factors to consider when designing magnesium alloy components that are exposed to corrosive environments. Proper surface preparation and finishing techniques can help minimize corrosion and increase the durability and reliability of the component.
"The rate at which corrosion occurs and oxide layers are formed is proportional to the sample's average roughness (Ra)." For more information, please see the following article.
Article Effect of Surface Roughness on Pitting Corrosion of AZ31 Mg Alloy