Digital simulation in electrochemistry