Simulation of corrosion using molecular automation