Simulating an electrochemical interface using charge dynamics