Discrete solution of the electrokinetic equations.