When you talk about pipe, you can simulate magnetic flux leakage, however, I think it is difficult to impart a corrosion defect in the simulation software. One thing you can do is that you can vary the wall thickness of the pipe due to corrosion and simulated the same