A galvanic cell caused by a difference in metal ion concentration at two locations on the same metal surface.