Resumen
This paper presents an extensive study on the electrochemical, shunt currents, and hydraulic modeling of a vanadium redox flow battery of m stacks and 𝑛 cells per stack. The shunt currents model of the battery has been developed through the use of Kirchoff’s laws, taking into account the different design cases that can occur and enumerating the equations of nodes and meshes specifying them so that the software implementation can be performed in a direct way. The hydraulic model has been developed by numerical methods. These models are put to work simultaneously in order to simulate the behavior of a VRFB battery during charging and discharging, obtaining the pressure losses and shunt currents that occur in the battery. Using these models, and by using a PSO-type optimization algorithm, specifically designed for discrete variables, the battery design is optimized in order to minimize the round-trip efficiency losses due to pressure losses and shunt currents. In the optimization of the battery design, value is given to the number of stacks in which the total number of cells in the battery is distributed and the dimensions of the piping relative to both the stacks and the cells.