Implementation of deterministic pitting corrosion model