This article deals with an electrical model of lithium-ion battery, based on a 1D analog representation of mass and charge transport phenomena. By using an electrical analogy to describe migration and diffusion of species and charges in electrodes and electrolyte, the model can be directly implemented in standard simulation software used in electrical engineering (such as Saber, in our case), so that it can be easily employed for the simulation of electrical systems involving lithium-ion batteries. The paper explains how the analog model is obtained from mass and charge transport equations, then it presents a comparison with results obtained by means of a finite element method. At last, some electrical power systems are simulated in order to show advantages of our modeling method.