Modeling and simulation of electrochemical magneto hydro dynamics