Next Article in Journal
Review of Lithium-Ion Battery Internal Changes Due to Mechanical Loading
Previous Article in Journal
Role of Graphene Oxide and Reduced Graphene Oxide in Electric Double-Layer Capacitors: A Systematic Review
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Optimization of the Shunt Currents and Pressure Losses of a VRFB by Applying a Discrete PSO Algorithm

by
Decebal Aitor Ispas-Gil
1,
Ekaitz Zulueta
1,*,
Javier Olarte
2,
Asier Zulueta
3 and
Unai Fernandez-Gamiz
3
1
System Engineering and Automation Control Department, University of the Basque Country UPV/EHU, Nieves Cano, 12, 01006 Vitoria-Gasteiz, Spain
2
Centre for Cooperative Research on Alternative Energies (CIC EnergiGUNE), Basque Research and Technology Alliance (BRTA), Alava Technology Park, Albert Einstein 48, 01510 Vitoria-Gasteiz, Spain
3
Nuclear Engineering and Fluid Mechanics Department, University of the Basque Country UPV/EHU, Nieves Cano, 12, 01006 Vitoria-Gasteiz, Spain
*
Author to whom correspondence should be addressed.
Batteries 2024, 10(7), 257; https://doi.org/10.3390/batteries10070257
Submission received: 31 May 2024 / Revised: 28 June 2024 / Accepted: 17 July 2024 / Published: 19 July 2024
(This article belongs to the Section Battery Modelling, Simulation, Management and Application)

Abstract

:
This paper presents an extensive study on the electrochemical, shunt currents, and hydraulic modeling of a vanadium redox flow battery of m stacks and n 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.

1. Introduction

The commitment to the use of renewable energies as an alternative to fossil fuels began decades ago, motivated among other factors by the growing concern about the depletion of fossil fuels, the environmental impact of their use, and by strategic political interests [1]. Since then, energy from renewable sources has been increasing year after year [2], with most developed countries planning to continue this trend in the long term.
Most types of renewable energy sources, such as solar and wind, are intermittent and variable in their energy generation, and therefore, by themselves, cannot respond to a constant energy demand. To solve this problem, energy storage systems are necessary, which make it possible to supply energy when renewable sources are not able to generate it. In addition, the inclusion of energy storage systems in the grid is beneficial for balancing energy demand and optimizing the cost of energy [3].
There are many types of energy storage systems, such as compressed air systems, which work by storing air in a subway cavern and then when necessary release it to a turbine to produce electricity, kinematic energy systems, in which a rotor rotates at high speeds and energy is extracted by decreasing the rotor speed and stored by increasing it, and energy pumping systems, in which the potential of water is used to store or discharge energy [4].
Currently, the most widely used storage systems are batteries, which store energy electrochemically. Among the batteries, lithium-ion batteries are the most widely used to date; due to their high energy density combined with their high specific energy they have made it possible to design storage systems of this type in small sizes for both industrial and personal use, being used for applications as diverse as mobile devices and electric cars.
In recent times, there is a growing interest in the use of vanadium redox flow batteries (VRFBs) for grid energy storage due to their characteristics compared to other types of batteries such as Li-ion batteries. The main advantages attributed to this type of batteries are their long life, which is theoretically infinite, and the scalability and flexibility inherent to the modularity present in systems of this type of batteries, which means that it can be adapted to different operating conditions and low response time and low self-discharge [5,6]. The biggest disadvantages of VRFBs are the low energy density and the lower efficiency they have compared to other types of batteries [3,5,7].
Because of this, there are numerous studies focused on the study of the efficiency of VRFBs. In [8], an analysis of the energy efficiency of kilowatt class batteries and a method for estimating the key parameters of VRFBs from an efficiency perspective are shown. An electrochemical model of the cells is shown, but any type of numerical modeling is omitted, since the developed method aims to be able to dispense with numerical modeling, due to the complexity of the development of this type of model.
In [9], the effects of operating temperature on the Coulombic efficiency of VRFBs are studied. By performing tests on VRFB test equipment, the authors came to the conclusion that a higher operating temperature implies losses in Coulombic efficiency and the need for thermal management is emphasized to obtain the greatest possible efficiency. In [10], a thermal hydraulic model is developed with the objective of studying the influence that the electrolyte flow rate and temperature have on the efficiency of the VRFB. More studies have been carried out that converge with the main line of optimizing efficiency based on flow [11,12,13].
Another factor that negatively affects the Coulombic efficiency of the battery are the shunt currents. These currents are those that circulate through the pipes of the hydraulic system of the battery, causing less current to circulate through the battery cells than it should. These currents have been studied in papers such as [14,15,16,17] and others, where tools are used or reduced numerical models are shown for the simulation of shunt currents.
In [15], a study on the optimization of the efficiency of the battery taking into account the efficiency losses due to shunt currents and due to pressure losses is carried out. The article models the primary and secondary pressure losses in the hydraulic system piping as well as the pressure losses due to the electrodes and the gravitational pressure losses. A scheme for the shunt currents model is shown, although the model for the calculation of the shunt currents is not developed. Finally, a set of possible battery designs are listed, which differ in the number of stacks in which the cells are distributed and the sizes of the channels and branches, and they are compared with each other in terms of efficiency losses.
In [14,15], a study is performed but only taking into account the shunt currents when comparing the efficiencies between different VRFB designs. The shunt currents model is detailed for batteries with several U-connected stacks of cells. This model is obtained by applying Kirchoff’s laws, and to formulate the equations simplifications are made considering that the current flowing through the channels of the same sign of a cell is the same. This simplification also applies to the branches of the same sign relative to a stack. The data are validated against experimental data and a sensitivity study is performed on the voltage variation as the cell resistance varies.
In [17], a study of shunt currents is conducted for a case of a single-stack battery with 10 cells. The calculation of the currents is made by means of a model developed with Kirchoff’s laws, in which it is considered that the currents that circulate through the two positive or negative channels of the cells are the same, making the pertinent simplifications derived from this consideration. This model is verified against a VRFB stack of which details are given on the materials used for its fabrication, showing that the results of the shunt currents obtained with the model are close to the experimental ones. In this article, a sensitivity analysis is also performed, showing results of increases and decreases of shunt currents for changes in model parameters such as equivalent pipe resistances, cell resistances, and total current imposed on the battery. The study of shunt currents is a current topic, as shown in articles such as [18,19].
In general, it can be concluded that much of the efficiency is determined by the battery design, which affects shunt currents and pressure losses. Taking this into account, this article presents the electrochemical, electrical, and hydraulic models of the vanadium battery. In the electrochemical model, the dynamics of the tanks and cells have been modeled, since, based on these concentrations, the E o C and electrolyte conductivity values are obtained, which will serve as input for the battery shunt currents model.
The shunt currents model has been developed using Kirchoff’s laws. There are quite a few articles in which models of this type are presented, but usually there is a tendency to simplify it due to the number of cases to be taken into account and different equations to obtain. In this article, all possible cases of multi-stack battery design have been developed, excluding only the case of a battery with a single stack and a single cell. All the Kirchoff equations that occur in the electrical circuits equivalent to the VRFB have been presented, dividing them into different blocks and indexing the algebraic components in such a way as to facilitate the implementation of the model.
For the hydraulic model, the primary and secondary losses that occur in the pipes of the hydraulic system, those that occur due to the electrodes and the gravitational pressure losses, have been taken into account. For this model, the pressure losses that occur in the trunks and manifolds have been taken into account, although they are usually neglected because due to the diameter of these pipes, the losses that occur are very low. This model has been carried out using numerical methods and assuming that the same flow of electrolyte passes through each cell.
These models are put to work together, so that, through a metaheuristic optimization technique derived from the PSO, designed specifically for this work, an optimization of the design parameters is carried out in order to minimize the round-trip efficiency losses caused by pressure losses and shunt currents. In this way, what is sought in this work is the automation of the optimization of the design of this type of batteries. Basically, the research has been developed as shown in Figure 1.

2. Electrochemical Model of the Cells and Tanks

In the development of the electrochemical and tank models, the following considerations were taken into account:
  • The effect of diffusion of vanadium ions through the membrane has not been considered for the model;
  • In addition, no other side reactions have been considered;
  • Positive sign of the current means discharge, negative sign means charge;
  • The temperature remains constant throughout the simulation;
  • Both activation and concentration over-potential have been neglected;
  • Concentration of hydrogen ions of the cells remains constant;
  • All cells receive the same flow rate;
  • All cells have the same values of vanadium species concentrations.
The equations described in this section define the dynamical battery behavior. Equations (1)–(6) define the vanadium species concentrations differential equations in the cells and main vanadium chemical reactions. Equations (7)–(14) show the electrical aspects of the cells. Equations (15)–(18) define the vanadium species concentrations differential equations in the tanks. Equations (19) and (20) are the discrete version of the differential equations.
Table 1 shows the nomenclature related to the electrochemical model of the cells and tanks.
It should be noted that the electrochemical model works with the flow rate in L / s while the hydraulic model works in m 3 / s .

2.1. Cell Electrochemical Model

Equations (1) and (2) show the redox reactions that take place inside a VRFB cell and perform the energy transformation [20,21].
At the positive electrode of the cell:
V O 2 + + H 2 O V O 2 + + 2 H + + e ,    E 0 + = 1.00   V
At the negative electrode of the cell:
V 3 + + e V 2 + ,    E 0 = 0.255   V
In the case of considering the diffusion of vanadium ions through the cell membranes, other equations related to the side reactions that occur would also have to be taken into account, as described in [22,23]. Taking into account these side reactions would influence the expressions of the mass balance equations of the cells as shown in [20]. For this work, the mass balance equations considered for the VRFB cells are (3)–(6) [22,24].
V c e l l 2 d C 2 , c e l l t d t = Q m n C 2 , t a n k t C 2 , c e l l t I T z F
V c e l l 2 d C 3 , c e l l t d t = Q m n C 3 , t a n k t C 3 , c e l l t + I T z F
V c e l l 2 d C 4 , c e l l t d t = Q m n C 4 , t a n k t C 4 , c e l l t + I T z F
V c e l l 2 d C 5 , c e l l t d t = Q m n C 5 , t a n k t C 5 , c e l l t I T z F
where V c e l l is the cell volume, Q is the total electrolyte flow rate for the VRFB, m and n are the number of stacks in the VRFB and the number of cell per stack, C i , c e l l is the molar concentration of the vanadium species i for the cells, C i , t a n k is the molar concentration of the vanadium species i for positive or negative tank, I T is the current of the battery, z is the number of electrons transferred in the reaction, being z = 1 in these cases, and F = 96,485 is the Faraday constant.
The cell voltage can be calculated as shown in Equation (7) [20,25,26].
E c e l l = E o C + I c e l l R c e l l + η a c t + η a c t + η c o n + η c o n
where E o C is the open-circuit voltage of the cell, I c e l l is the current flowing through the cell, R c e l l is the ohmic resistance of the cell, η a c t + ,     η a c t are the cathodic and anodic activation over-potentials, and η c o n + ,   η c o n are the cathodic and anodic concentration over-potentials. Since activation and concentration over-potentials have not been taken into account for this work, Equation (7) can be simplified to Equation (8).
E c e l l = E o C + I c e l l R c e l l
The resistance of the electrodes, membrane, bipolar plates, and other cell elements contribute to the cell resistance. Typically, it is a known value. The E o C can be calculated using Equation (9).
E o C = E 0 + E 0 + R T F ln C 2 , c e l l C 5 , c e l l C 3 , c e l l C 4 , c e l l + R T F ln C H + , c e l l 2
where C H + , c e l l is the concentration of hydrogen ions in the cells, R = 8.314 is the ideal gas constant, and T is the temperature. Because the concentration of C H + , c e l l is assumed to remain constant, in [20] Equation (9) is reduced to Equation (10).
E o C = E 0 + R T F ln C 2 , c e l l C 5 , c e l l C 3 , c e l l C 4 , c e l l
where E 0 is the formal standard potential of the cells.
The calculation of the SOC of the cells can be performed using the expressions of Equations (11) and (12).
S o C c e l l = C 2 , c e l l C 2 , c e l l + C 3 , c e l l
S o C c e l l + = C 5 , c e l l C 4 , c e l l + C 5 , c e l l
The SOC influences the conductivity of the electrolyte and the electrolyte conductivity is further used in the shunt currents model for the calculation of the equivalent pipe resistivity (see Equation (21)). To calculate the conductivity of the catholyte and anolyte electrolyte, Equations (13) and (14) are used [16,27].
σ + = S o C c e l l + σ V + 1 S o C c e l l + σ I V
σ = S o C c e l l σ I I + 1 S o C c e l l σ I I I
where σ I I ,   σ I I I ,     σ I V , and σ V are the standard conductivities of the vanadium species.

2.2. Tank Electrochemical Model

Equations (15)–(18) are those related to the mass balance of the electrolyte tanks of the battery [20].
V t a n k d C 2 , t a n k t d t = Q C 2 , c e l l t C 2 , t a n k t
V t a n k d C 3 , t a n k t d t = Q C 3 , c e l l t C 3 , t a n k t
V t a n k + d C 4 , t a n k t d t = Q C 4 , c e l l t C 4 , t a n k t
V t a n k + d C 5 , t a n k t d t = Q C 5 , c e l l t C 5 , t a n k t
where V t a n k and V t a n k + are the volume of the anodic and cathodic tanks.

2.3. Implementation of the Electrochemical Model

The implementation of this part of the work has been carried out by converting the differential equations to difference equations. Thus, for the tanks, instead of working with Equations (15)–(18), the difference equation defined in Equation (19) is used.
C i , t a n k t = Q V t a n k Δ t C i , c e l l t + C i , t a n k t 1 1 + Q V t a n k Δ t
referring i to the vanadium species, Δ t to the simulation step, and particularizing V T a n k to the positive and negative tank values as appropriate. The same has been performed with Equations (3)–(6), resulting in Equation (20).
C i , c e l l t = Q / m n V c e l l / 2 Δ t C i , t a n k t + C i , c e l l t 1 ± 1 V c e l l / 2 1 z F I T 1 + Q / m n V c e l l / 2 Δ t
For t = 0 it is necessary to set some initial values for C i , t a n k t 1 and C i , c e l l t 1 which will be denoted as C i , t a n k i n i and C i , c e l l i n i .

3. Shunt Currents Model

Shunt currents appear in an RFB because the electrolyte flowing through the hydraulic system and connecting the different cells and stacks is electrically conductive. In general, for RFBs, the existence of shunt currents leads to two main problems. On the one hand, as part of the current is lost in the hydraulic system bypasses, the current reaching the cells is less than it should be, causing power losses and consequently lowering the efficiency of the system. On the other hand, the shunt currents, which circulate through the electrolyte, produce the discharge of reactants, which can cause corrosion reactions in the different elements of the battery, such as electrodes and pipes [28,29].
The VRFBs, by using graphite electrodes, avoid the problem of electrode corrosion. The latter, together with the use of non-metallic pipes, would eliminate the problem of corrosion in the battery [30]. However, the problem of efficiency drop is still present in this type of batteries, so shunt currents are an issue to be taken into account when designing the battery.
NASA researchers were the first to present an equivalent electrical model for modeling shunt currents in an RFB battery [31]. The equivalent electrical circuit presented by the NASA researchers has been widely used to model the phenomenon of shunt currents, as can be seen in works such as [30,32,33,34]. This equivalent model has been modified for the inclusion of several cell stacks in works such as [14,15] in which the shunt currents in Z-connected stacks and U-connected stacks are studied, respectively.
In this article, the model presented in [31] has been used as a basis for the design of an electrical circuit that generically models the shunt currents of a battery composed of m stacks connected in Z with n cells in each one. For this purpose, the methodology of [33] of applying Kirchhoff’s laws of voltage and current for the formulation of the circuit equations and the applying of linear algebra for the analytical solution has been followed. The shunt model has been formulated to allow its integration with other electrochemical models, in which, for example, a different flow rate is considered for each of the cells.
Table 2 shows the nomenclature used for the shunt currents model.

3.1. Equivalent Electrical Model

Figure 2 shows an example of an equivalent electrical circuit modeling the shunt currents of single-stack cells according to [31].
This circuit has been extended in the same way as seen in [15] to obtain an equivalent electrical circuit that models the shunt currents of a battery composed of several stacks of cells (Figure 3).
R C h i j and R M n i j represent the electrical resistance of the electrolyte flowing through the channels and manifolds associated with cell j of stack i , while R B r i and R T r i represent the electrical resistance of the electrolyte flowing through the branches and trunks associated with stack i . The superscripts A and C indicate whether the pipe section is associated with the anode or the cathode and 1 and 2 indicate whether the pipe is an outlet or inlet pipe. The manifolds and trunks have been numbered according to their physical position and not their order of appearance. These resistances are calculated according with the expression in Equation (21).
R = L p i σ   ±   A p i
where L p i and A p i are the length and cross section of the pipe and σ is the conductivity of the electrolyte. In the above equation, the conductivity of the anolyte or catholyte electrolyte has to be considered depending on which of the two circuits the pipe belongs to. R C e l l i j and E o C i j corresponds to the internal electrical resistance and open circuit potential, respectively, of cell j of stack i .

3.2. Mathematical Model

In the mathematical modeling, all special cases have been considered except for the case of having m stacks with one cell in each. Some authors make the simplification of considering the current of the inlet and outlet channels [33] and the inlet and outlet branches [14] as equal because the paths are symmetrical in their works. Although these simplifications reduce the effort required for the formulation and implementation of the model, it has been decided not to consider them when formulating the equations. Thus, this model is applicable when the input and output paths are not electrically symmetrical.
The goal of the model is to solve the equivalent electrical circuit by obtaining the currents through each element of the circuit. The number of currents to be determined in an equivalent circuit with m stacks with n cells in each is obtained with the expression in Equation (22).
I = m 9 n + 4 4 m > 1 9 n 4 m = 1
For the case m = 1 , there will be 4 n channel currents, n cell currents, and 4 ( n 1 ) manifold currents. Since there is only one stack, the complete equivalent circuit would be as shown in Figure 2 and there would be no branch and trunk currents due to the non-existence of these. Therefore, the number of currents to be determined is 9 n 4 . For the general case of having m stacks, each of the stacks contribute with 9 n 4 currents but due to the appearance of trunks and branches, 4 m branch currents and 4 ( m 1 ) trunk currents must be taken into account. This results in a number of currents to be determined equal to m 9 n + 4 4 .
To obtain all currents in the circuit an equal number of equations are needed. These equations are obtained by applying Kirchhoff’s laws to all the nodes and meshes of the circuit. The following cases have been distinguished in the formulation of the equations:
  • First cell of the stack and first cell of the circuit;
  • Intermediate cells of the stack;
  • Last cell of the stack and last cell of the circuit;
  • Battery with only a stack;
  • First stack of the circuit;
  • Intermediate stacks;
  • Last stack of the circuit.

3.2.1. First Cell of the Stack and First Cell of the Circuit

Applying Kirchhoff’s laws to the nodes and meshes of the first cell of a stack gives the Equations (23)–(29).
0 = I C e l l i 1 , n I C h i 1 , n C , 1 I C h i 1 , n C , 2 I C e l l i , 1 I C h i , 1 A , 1 I C h i , 1 A , 2
0 = I C h i , 1 A , 1 I M n i , 1 A , 1
0 = I C h i , 1 A , 2 I M n i , 1 A , 2 I B r i A , 2
0 = I C h i , 1 C , 1 I M n i , 2 C , 1 I B r i C , 1
0 = I C h i , 1 C , 2 I M n i , 2 C , 2
E o C i , 1 = I C e l l i , 1 R C e l l i , 1 I C h i , 1 A , 1 R C h i , 1 A , 1 I M n i , 1 A , 1 R M n i , 1 A , 1 + I C h i , 2 A , 1 R C h i , 2 A , 1
E o C i , 1 = I C e l l i , 1 R C e l l i , 1 I C h i , 1 A , 2 R C h i , 1 A , 2 I M n i , 1 A , 2 R M n i , 1 A , 2 + I C h i , 2 A , 2 R C h i , 2 A , 2
The first cell of the circuit is also the first cell of its stack, thus resulting in a particular case of the previous case. Equations (24)–(29) are applicable for this case, while Equation (23) is replaced by Equation (30).
I T = I C e l l 1,1 + I C h 1,1 A , 1 + I C h 1,1 A , 2
where I T is the current imposed in the charge or discharge of the battery. In case the battery has only one stack, since the branch and trunk disappear, Equations (25) and (26) must be modified to Equations (31) and (32). This only applies to the first cell of the circuit.
0 = I C h i , 1 A , 2 I M n i , 1 A , 2
0 = I C h i , 1 C , 1 I M n i , 2 C , 1

3.2.2. Intermediate Cells of the Stack

Applying Kirchhoff’s laws for an intermediate cell j of a stack i gives the Equations (33)–(41).
0 = I C e l l i , j 1 I C h i , j 1 C , 1 I C h i , j 1 C , 2 I C e l l i , j I C h i , j A , 1 I C h i , j A , 2
0 = I M n i , j 1 A , 1 + I C h i , j A , 1 I M n i , j A , 1
0 = I M n i , j A , 2 + I C h i , j A , 2 I M n i , j A , 2
0 = I C h i , j C , 1 + I M n i , j C , 1 I M n i , j + 1 C , 1
0 = I C h i , j C , 2 + I M n i , j C , 2 I M n i , j + 1 C , 2
E o C i , j = I C e l l i , j R C e l l i , j I C h i , j A , 1 R C h i , j A , 1 I M n i , j A , 1 R M n i , j A , 1 + I C h i , j + 1 A , 1 R C h i , j + 1 A , 1
E o C i , j = I C e l l i , j R C e l l i , j I C h i , j A , 2 R C h i , j A , 2 I M n i , j A , 2 R M n i , j A , 2 + I C h i , j + 1 A , 2 R C h i , j + 1 A , 2
E o C i , j = I C e l l i , j R C e l l i , j I C h i , j 1 C , 1 R C h i , j 1 C , 1 + I C h i , j C , 1 R C h i , j C , 1 I M n i , j C , 1 R M n i , j C , 1
E o C i , j = I C e l l i , j R C e l l i , j I C h i , j 1 C , 2 R C h i , j 1 C , 2 + I C h i , j C , 2 R C h i , j C , 2 I M n i , j C , 2 R M n i , j C , 2
The equations in this case are not affected by whether there is one stack or several, since the stacks are electrically connected through the first and last stack cells.

3.2.3. Last Cell of the Stack and Last Cell of the Circuit

Starting with the most general case, Equations (42)–(48) are those obtained by applying Kirchhoff’s laws to the nodes and meshes of the last cell of stacks.
0 = I C e l l i , n 1 I C h i , n 1 C , 1 I C h i , n 1 C , 2 I C e l l i , n I C h i , n A , 1 I C h i , n A , 2
0 = I M n i , n 1 A , 1 I C h i , n A , 1 + I B r i A , 1
0 = I C h i , n A , 2 + I M n i , n 1 A , 2
0 = I C h i , n C , 1 + I M n i , n C , 1
0 = I C h i , n C , 2 I M n i , n C , 2 + I B r i C , 2
E o C i , n = I C h i , n 1 C , 1 R C h i , n 1 C , 1 + I C e l l i , n R C e l l i , n + I C h i , n C , 1 R C h i , n C , 1 I M n i , n C , 1 R C h i , n C , 1
E o C i , n = I C h i , n 1 C , 2 R C h i , n 1 C , 2 + I C e l l i , n R C e l l i , n + I C h i , n C , 2 R C h i , n C , 2 I M n i , n C , 2 R C h i , n C , 2
The equations of the last cell of the circuit are the same as the previous ones, only having to consider the substitution of Equations (43) and (46) by Equations (49) and (50) in case there is only one stack.
0 = I M n i , n 1 A , 1 I C h i , n A , 1
0 = I C h i , n C , 2 I M n i , n C , 2

3.2.4. Battery with Only a Stack

In the case that the battery has only one stack, the considerations mentioned in previous sections must be taken into account. Apart from this, it is not necessary to add any additional equation related to the stack; therefore, Section 3.2.5, Section 3.2.6 and Section 3.2.7 need not be taken into account.

3.2.5. First Stack of the Circuit

The equations obtained for the first stack of the circuit are Equations (51)–(56).
0 = I B r 1 A , 1 I T r 2 A , 1
0 = I B r 1 A , 2 I T r 1 A , 2
0 = I B r 1 C , 1 I T r 1 C , 1
0 = I B r 1 C , 2 I T r 2 C , 2
E o C 1 , n = I C e l l 1 , n R C e l l 1 , n I C h 1 , n A , 2 R C h 1 , n A , 2 I B r 1 A , 2 R B r 1 A , 2 I T r 1 A , 2 R T r 1 A , 2 +   I C h 2,1 A , 2 R C h 2,1 A , 2 + I B r 2 A , 2 R B r 2 A , 2 + k = 1 n 1 ( I M n 1 , k A , 2 R M n 1 , k A , 2 )
E o C 2,1 = I C h 1 ,   n C , 1 R C h 1 , n C , 1 I B r 1 C , 1 R B r 1 C , 1 I T r 1 C , 1 R T r 1 C , 1 + I C e l l 2,1 R C e l l 2,1 +   I C h 2,1 C , 1 R C h 2,1 C , 1 + I B r 2 C , 1 R B r 2 C , 1 + k = 2 n ( I M n 1 , k C , 1 R M n 1 , k C , 1 )
Figure 4 shows the meshes and their current directions in Equations (55) and (56) taken for the first stack.

3.2.6. Intermediate Stacks

The equations obtained for any intermediate stacks of the circuit are Equations (57)–(64).
0 = I B r i A , 1 + I T r i A , 1 I T r i + 1 A , 1
0 = I T r i 1 A , 2 + I B r i A , 2 I T r i A , 2
0 = I T r i 1 C , 1 + I B r i C , 1 I T r i C , 1
0 = I B r i C , 2 + I T r i C , 2 I T r i + 1 C , 2
E o C i 1 , n = I C e l l i 1 , n R C e l l i 1 , n I C h i 1 , n A , 1 R C h i 1 , n A , 1 I B r i 1 A , 1 R B r i 1 A , 1 + I C h i , 1 A , 1 R C h i , 1 A , 1 + I B r i A , 1 R B r i A , 1 I T r i A , 1 R T r i A , 1 + k = 1 n 1 ( I M n i , k A , 1 R M n i , k A , 1 )
E o C i , n = I C e l l i , n R C e l l i , n I C h i , n A , 2 R C h i , n A , 2 I B r i A , 2 R B r i A , 2 I T r i A , 2 R T r i A , 2 + I C h i + 1,1 A , 2 R C h i + 1,1 A , 2 + I B r i + 1 A , 2 R B r i + 1 A , 2 + k = 1 n 1 ( I M n i , k A , 2 R M n i , k A , 2 )
E o C i + 1,1 = I C h i , n C , 1 R C h i , n C , 1 I B r i C , 1 R B r i C , 1 I T r i C , 1 R T r i C , 1 + I C e l l i + 1,1 R C e l l i + 1,1 + I C h i + 1,1 C , 1 R C h i + 1,1 C , 1 + I B r i + 1 C , 1 R B r i + 1 C , 1 + k = 2 n ( I M n i , k C , 1 R M n i , k C , 1 )
E o C i , 1 = I C h i 1 , n C , 2 R C h i 1 , n C , 2 I B r i 1 C , 2 R B r i 1 C , 2 I T r i C , 2 R T r i C , 2 + I C e l l i , 1 R C e l l i , 1 + I C h i , 1 C , 2 R C h i , 1 C , 2 + I B r i C , 2 R B r i C , 2 + k = 2 n ( I M n i , k C , 2 R M n i , k C , 2 )
As shown in Figure 5 for the intermediate stacks, four meshes have been considered instead of the two considered for the first and last stack. This fact is consistent with the number of equations obtained for this case.

3.2.7. Last Stack of the Circuit

The equations obtained for the last stack of the circuit are Equations (65)–(70).
0 = I B r m A , 1 + I T r m A , 1
0 = I B r m A , 2 + I T r m 1 A , 2
0 = I B r m C , 1 + I T r m 1 C , 1
0 = I B r m C , 2 + I T r m C , 2
E o C m 1 , n = I C e l l m 1 , n R C e l l m 1 , n I C h m 1 , n A , 1 R C h m 1 , n A , 1 I B r m 1 A , 1 R B r m 1 A , 1 + I C h m , 1 A , 1 R C h m , 1 A , 1 + I B r m A , 1 R B r m A , 1 I T r m A , 1 R B r m A , 1 + k = 1 n 1 ( I M n m , k A , 1 R M n m , k A , 1 )
E o C m , 1 = I C h m 1 , n C , 2 R C h m 1 , n C , 2 I B r m 1 C , 2 R B r m 1 C , 2 I T r m C , 2 R T r m C , 2 + I C e l l m , 1 R C e l l m , 1 + I C h m , 1 C , 2 R C h m , 1 C , 2 + I B r m C , 2 R B r m C , 2 + k = 2 n ( I M n m , k C , 2 R M n m , k C , 2 )
Figure 6 shows the meshes and their current directions in Equations (69) and (70) taken for the last stack.

3.3. Solve Methodology

To solve the system of equations generated for a battery of m stacks and n cells for each one, the method proposed in [33] has been followed. Since the equations are algebraic and linear, the value of the currents can be obtained as shown in Equation (71).
A = B I B 1 A = I
where A is a column vector with the values of the independent terms of the equations, B is a matrix with the coefficients of the equations, and I is the column vector of the currents. By obtaining the vector of currents, all the currents flowing through each pipe and cell are obtained. The shunt currents are those currents that do not pass through the cells of the battery, being that they can be calculated with the Equation (72) [15].
I S h u n t i , j = I C e l l i , j I T

4. Hydraulic Model

For the calculation of pressure losses in the hydraulic system, a numerical model has been developed subject to the following considerations:
  • The same electrolyte flow rate is distributed throughout the battery stacks;
  • It is also considered that the same flow of electrolyte is distributed to each of the cells of the stacks of the battery;
  • The characteristics of dynamic viscosity and density of the electrolytes have been considered constant and equal for both;
  • In the calculation of secondary pressure losses, bends and T-joints have been considered.
Usually, the segments of the trunks and manifolds of the battery are not considered for the calculation of pressure losses [15,21]. This is due to the fact that typically the section of these pipes is large compared to the section of the branches and channels, and, therefore, the pressure losses that occur when the flow of electrolyte passes through the trunks and manifolds is negligible compared to that which occurs in the branches and channels. However, for this study this simplification has not been taken into account.
Primary and secondary pressure losses have been considered when calculating the contribution of the hydraulic system piping to the total pressure loss. Primary pressure losses are those caused by the internal friction of the liquid itself and by friction with the pipe walls. Secondary pressure losses are those that are produced by singular elements of the pipes, such as bends, T-joints, and valves.
Table 3 shows the information of the parameters related to the hydraulic model.

4.1. Primary Pressure Losses in Pipes

To calculate primary pressure losses, the Darcy–Weisbach equation is typically applied (Equation (73)).
P p i = f 2 L p i ρ e D p i A p i 2 Q p i 2
where ρ e is the electrolyte density, L p i , D p i , and A p i are the length, diameter, and section of the pipe segment, respectively, Q p i is the electrolyte flow that circulates through the pipe segment, and f is the Darcy friction factor.
The value of the friction factor f depends on several factors. Depending on whether the flow regime is laminar, critical, or turbulent, the expressions for the calculation of f changes. To know the flow regime, the Reynolds number value is calculated (Equation (74)).
R e = ρ e D p i μ e A p i Q p i
where μ e represents electrolyte viscosity. There are variations in the limits of the R e values that the authors consider to make the transition from one regime to another. In this paper, we have considered the cases as described in Equation (75).
F l o w   r e g i m e n = L a m i n a r R e < 2000 C r i t i c a l 2000 R e < 4000 T u r b u l e n t 4000 R e
In laminar regime ( R e < 2000 ), f has been calculated by Equation (76).
f = C D a r c y R e
Depending on the shape of the pipe section, the value of C D a r c y changes. In the case of circular section pipes, C D a r c y takes the value of 64. For the calculation of the friction factor in transition and turbulent regimes, there are many applicable equations (for example [35,36,37]). In this article, the Churchill equation for transitional and turbulent regimes has been taken into account because of its applicability for any value of R e [38]. Equation (77) shows the mathematical expression of the calculation of the friction factor according to Churchill.
f = 8 8 R e 12 + 1 α 1 + α 2 1.5 1 12
where α 1 and α 2 are calculated as in Equation (78).
α 1 = 2.457 ln 1 7 R e 0.9 + 0.27 e p i D p i 16 ;   α 2 = 37530 R e 16
In the case of rectangular section pipes, the hydraulic diameter of the pipe will be calculated according to Equation (79).
D p i = 2 W p i H p i W p i + H p i
where W p i is the width of the pipe and H p i is the height of the pipe. For this type of piping, the calculation of the C D a r c y coefficient will be considered as in [15], applying Equation (80).
C D a r c y = 55.5 + 40.9 · 0.03 H p i / W p i

4.2. Secondary Pressure Losses Due to Bends

In the case of bends, the pressure losses are calculated as the sum of the pressure losses in a straight pipe of the same radius as the bend radius plus those produced by the bend curvature plus the losses in the downstream tangent [39,40]. That said, Equation (81) shows the complete mathematical expression for the calculation of pressure losses in a bend.
P b = f 2 L b ρ e D b A b 2 Q p i 2 + K c 2 ρ e Q p i 2 A b 2 + K t 2 ρ e Q p i 2 A b 2
where L b , D b , and A b are the length, diameter, and cross section of the bend of the pipe segment, respectively, and K c and K t are the curvature and downstream tangent coefficient, respectively. The calculation of the bend length is achieved by Equation (82).
L b = π θ b 180 R b
where θ b and R b are the angle and radius of the bend, respectively. The radius of the bends is measured as shown in Figure 7.
Equation (81) is commonly rewritten as the expression shown in [41].
P b = f 2 L b ρ e D b A b 2 Q p i 2 + K b 2 ρ e Q p i 2 A b 2
where K b is denoted as the bend coefficient and is the sum of K c and K t . In the literature, sometimes losses due to bend length are considered separately as additional straight pipe losses and consequently calculating the secondary losses caused by the existence of bends with the expression in Equation (84).
P b = K b 2 ρ e Q p i 2 A b 2
In this case, losses due to bend length are still taken into account, but as primary losses. In this work, the pressure losses in the bends are going to be calculated according to the expression in Equation (84).
The section A b of the bend will be considered to be that of the pipe segment previous to it.

4.3. Secondary Pressure Losses Due to T-Junction

There are many factors that affect localized pressure losses in T-junctions. These include the diameters and lengths of the individual T-junction branches, whether the flow diverges or converges across the T-junction, and others. To simplify this calculation, the length of the T-junction terminals has been considered, as part of the length of the pipe segments also has not been considered for whether the flows converge or diverge. In this way, Equations (85) and (86) has been considered for the calculation of pressure losses.
P t j d i r e c t = K t j d i r e c t 2 ρ e Q t j d i r e c t 2 A t j d i r e c t 2
P t j b r a n c h = K t j b r a n c h 2 ρ e Q t j b r a n c h 2 A t j b r a n c h 2
The same considerations on the section of the bends have been upheld to the sections A t j d i r e c t and A t j b r a n c h of the T-junctions.

4.4. Pressure Losses in Electrodes

Other important elements to take into account when calculating the overall pressure loss in the system are the porous graphite electrodes located in each half-cell of the battery. These pressure losses are not negligible and have been studied in studies such as [13,42]. Pressure losses caused by the porous electrodes can be calculated using Darcy’s law (Equation (87)).
P p e = μ e L p e k p e Q p e A p e
where k p e , L p e , and A p e are the permeability, length, and cross section area of the porous electrode, respectively, and Q p e is the electrolyte flow through the electrode, which is the same as the flow through cell channels.

4.5. Pressure Losses Due to Gravity

These pressure losses exist due to the height difference between the outlet trunk pipe segment and the electrolyte surface of the tanks. The greater the height difference, the greater the pressure losses. The calculation of the pressure losses due to gravity is performed by the expression in Equation (88).
P g = ρ e g h
where g is the gravity value and h is the difference in height between the outlet trunk and the electrolyte surface of the tank.

4.6. Calculation Method

For the calculation of the total pressure drop of the battery, the following must be taken into consideration. Naturally, the pressure drop in the parallel branches of the hydraulic circuit should be equal, distributing the total flow in each branch according to the hydraulic resistance of each one. In this work, as a simplification, it has been considered that the same flow rate circulates in each of the cells of the battery. This in turn implies that the same flow rate circulates in each stack.
This simplification means that the parallel pressure losses will not be equal. Therefore, it has been decided to calculate an upper limit for the pressure loss of the hydraulic system, which is higher than what the total pressure loss of the circuit would be if the flow rates of the cells were not imposed. Figure 8 and Figure 9 show the path taken for the calculation of the upper dimension equivalent to the pressure losses in an example case.
The total pressure loss is calculated as the sum of the pressure losses in the elements through which the red arrow passes plus the losses due to gravity.

5. Simulation of the Models

5.1. Model Linkage and Calculation of Efficiencies

The implementation of the models has been carried out in MATLAB. Each model has been implemented individually, in order to be able to reuse them in subsequent work and to be able to compare the results obtained in each one with the literature. Once the verifications were performed, we proceeded to the union of the models by means of code that makes the calls for the execution of these.
In this work, the execution of an entire simulation consists of setting a Δ t and performing the complete charging and discharging of the battery according to the imposed design parameters. At each simulation instant, all three models are run. The final time at the end of the simulation is not defined in advance but is determined by the duration of the charging and discharging, being that this duration depends on parameters such as the imposed current and others.
Part of the inputs to the hydraulic and shunt currents models are determined by the electrochemical and tank models. In the shunt currents model, the E o C and electrical resistances (Equation (21)) are determined by the electrochemical model (Equations (10), (13) and (14)). The flow rate of the cells at each instant of the simulation is determined by Equation (89) [10,20].
Q c e l l t = Q f I T t z F C r t
This equation is derived from Faraday’s law of electrolysis. Q f is a ratio that relates the actual flow rate to the theoretical flow rate calculated by Faraday’s law and C r is the reactant concentration in the semi-cells for the chemical reactions of charge and discharge. To determine the total flow rate from the tanks, we have to apply Equation (90).
Q t a n k t = m n Q c e l l t
From these flow values obtained, the flow rates that circulate through each trunk and manifold segment are determined, taking into account that each cell receives the same flow rate and that each stack receives the same flow rate. The flow rate of the channels is the same as that of the cells and the flow rate of the branches is equal to the flow rate coming from the tank divided by the number of stacks.
The objective of the work is to optimize the battery design by maximizing efficiency. For this purpose, a round-trip efficiency loss calculation has been performed for the shunt and hydraulic models. For the hydraulic model, the expression in Equation (91), which determines the round-trip pumping losses, has been used [15].
ε p u m p s t = 4 Q t a n k t P T o t a l t η p u m p s i n o m E n o m L p e W p e m n
where i n o m is the nominal current density of the battery, E n o m is the nominal voltage of the battery cells, L p e and W p e are the length and width of the electrodes, respectively, and m and n are the number of stacks and cells per stack, respectively. η p u m p s is the pumping efficiency, taken as a constant value. At the end of the simulation, an average of ε p u m p s is made, summing the ε p u m p s of all the instants and dividing it by the total number of instants of the simulation.
For the calculation of the round-trip efficiency loss due to shunt currents, Equation (92) has been applied [15].
ε s h u n t = 1 i m j n I C e l l i , j c h a r g e i m j n I C e l l i , j d i s c h a r g e
That is, 1 minus the sum of the cell currents in the load divided by the cell currents in the discharge. Note that this equation should be applied for loading and unloading to a specific SOC.
Because the simulation consists of a charge from SOC 0 to SOC 100 and a discharge from SOC 100 to SOC 0, Equation (92) has not been applied directly. The sums of the charge and discharge currents were averaged for the time periods with SOC between 0 and 10, 10 and 20, 20 and 30, and continuing in intervals of 10 up to 90 and 100 following the Equations (93) and (94).
i m j n I C e l l i , j c h a r g e ( S O C 1 , S O C 2 ) = i m j n I C e l l i , j c h a r g e t s 1 + i m j n I C e l l i , j c h a r g e t s l l
i m j n I C e l l i , j d i s c h a r g e S O C 1 , S O C 2 = i m j n I C e l l i , j d i s c h a r g e t s 1 + i m j n I C e l l i , j d i s c h a r g e t s l l
where l represents the total number of instants with an SOC between S O C 1 and S O C 2 . Finally, the average round-trip efficiency losses due to shunt currents are calculated with Equation (95).
ε s h u n t = 1 i m j n I C e l l i , j c h a r g e ( 0 , 10 ) i m j n I C e l l i , j d i s c h a r g e ( 0 , 10 ) + + 1 i m j n I C e l l i , j c h a r g e ( 90 , 100 ) i m j n I C e l l i , j d i s c h a r g e ( 90 , 100 ) 10

5.2. Example of Results Obtained in a Simulation

In this part, we will show the results obtained in a simulation with parameters taken from the literature. The parameters are a mix between the case G of the article [15] and the article [20] with some of our own parameters (Table 4, Table 5, Table 6, Table 7, Table 8, Table 9, Table 10, Table 11 and Table 12).
This has been performed in order to compare the results obtained in the simulation with the results obtained in other articles.
Figure 10 and Figure 11 show the concentrations of vanadium species in the tanks and cells, respectively. Figure 12 shows plots of the flow rate and EOC of the cells during the simulation as well as the maximum, average, and minimum shunt currents of the cells according to Equation (72). Figure 13 shows the distribution of average pressure losses relative to the simulation.
Table 13 shows the distribution of the average pressure losses differentiating the different causes.
It can be observed that the pressure losses in trunks and manifolds are negligible compared to those of the branches and channels. This is due to the diameters of these pipes. Table 14 shows averages of the round-trip efficiency losses in shunt and pressure from the simulation.
The concentrations c 2 and c 3 correspond to the concentrations of the electrolyte coming from the negative tank, while the c 3 and c 4 are those of the electrolyte from the positive tank. This can be extrapolated to the concentrations of the battery cells.
Figure 11 shows the concentrations of the different species for the battery cells during charging and discharging. It must be taken into account that for this work it has been considered that the same flow reaches the cells and that the concentration of the species is the same for all of them. If these considerations were not made, the vanadium concentrations of the cells would be different.
The simulation begins by charging the battery and after charging to 100%, the discharge process begins, which ends when the battery has been completely discharged. As can be seen in Figure 10 and Figure 11, the charging and discharging processes for the parameters with which we are working last approximately two hours.
In Figure 12a it can be seen how the flow rate of the cells increases exponentially as the loading and unloading takes place. This is due to how the flow calculation is achieved in Equation (82). The smaller the amount of reactant, the greater the flow rate must be. Figure 12c,d show the shunt currents associating them with the battery cells. It must be taken into account that the shunt currents do not circulate through the cells, but they can be associated with them using Equation (72). The shunt currents are greater in the cells positioned in the center of the stacks, and at the stack level, it is in the group of cells in the central stacks where the higher shunt currents occur. This coincides with what is reported in most articles in which shunt currents are studied.
Figure 13 shows the data shown in Table 13 in group and percentage terms. Although the contribution of the primary pressure losses of the pipes makes up more than half of the total pressure losses, the losses caused by the electrodes and by the difference in height between the surface of the electrolyte in the tank with the outlet trunks should not be disregarded.

6. Optimization Method

The PSO has been used to optimize the parameters. The PSO (particle swarm algorithm) is a metaheuristic optimization algorithm inspired by nature. Metaheuristic optimization algorithms are used for complex optimization problems, which typically have very large solution search spaces.
These algorithms are designed to obtain good solutions while keeping the execution time for solving the problem viable. Metaheuristic algorithms allow to solve problems that currently cannot be solved otherwise due to the computational costs, but on the other hand, it is not possible to ensure that the solution obtained is really the best solution to the problem. The search space is determined by the number of variables to be assigned a value and by the values they can take. The addition of restrictions to the optimization problem causes the possible values of the variables to be limited and, therefore, the search space is reduced.
Specifically, the PSO is an iterative algorithm that works with a population to which each individual is called a particle. Each particle is a candidate solution of the problem, understanding candidate solution as any feasible solution and being that such solution is a composition of a concrete and possible value of each of the variables to be determined. In each iteration of the algorithm the update of the particles is performed, changing the value of the components of these according to specific rules as well as the evaluation of the suitability of each of the updated particles to the problem.
The particles are evaluated through a mathematical function called the cost function (usually also called the fitness function) that has to be defined specific to the problem to be solved. This value is usually called the cost of the particle. It is an algorithm with memory, since during the given iterations for solving the problem, information is stored, such as what is the global optimal particle and its cost and the local optimal particles and their values. The information that is stored may vary depending on the version of the PSO and does not have to be limited exclusively to what has been mentioned.
The particle with the best cost is called the global optimal particle until the new update of the particles, where it can be maintained or replaced if in that update a particle with a better cost is obtained. The local optimal particles follow the same logic but are associated with a specific particle index, and the particles with the best cost are stored, taking into account the particles that have been generated in that index. These local optimum particles and the global optimum particle are used for the update of the particle population. Figure 14 shows the data structures that would be stored to solve a five-variable PSO problem with a population of 100 particles.
At the end of the algorithm execution, the global optimal particle is the one to be considered as the optimal solution of the problem. In this work, the variables that have been taken into account for the formulation of the optimization problem are the diameters of the trunks, branches, and manifolds, the lengths of the channels and branches, the height and width of the channels, and the number of stacks in which the total number of cells of the battery will be distributed. For the number of stacks, the restriction shown in Equation (96) must be satisfied.
m | n t o t
where m is the number of stacks in the battery and n t o t is the total number of cells in the battery. Therefore, the character of the number of stacks variable is discrete. It is not necessary for the PSO to take into account the number of cells per stack as an independent variable, since by defining a total number of cells in the battery, the number of cells per stack is obtained from Equation (97).
n t o t m = n
where n is the number of cells per stack. The diameters of the trunks, branches, and manifolds, the height, length, and width of the channels, and the length of the branches have been considered as discrete variables for this work. Since the original implementation of the PSO (see [43]) is designed for continuous variables, it has been necessary to adapt the PSO to work with discrete variables. The designed algorithm is based in part on the one shown in [44], where an implementation of a PSO algorithm that works with continuous and discrete variables simultaneously is shown.
Based on the idea of [44], the version of the designed discrete PSO replaces the concept of velocities from the original PSO with that of the probability of a variable taking one of its possible values. Each discrete variable has an associated probability matrix of l columns and o rows, where l is the number of possible values that the variable can take and o is the total number of particles with which we are working. Each row represents the probability that the variable has of taking each of its values, associated with a particular particle. For all variables, these matrices will have the same number of rows. However, as each variable has its own set of possible values, the number of columns does not have to be the same. Algorithm 1 shows the process of updating a particle and its associated probabilities for a variable.
Algorithm 1. Discrete variable particle updating method.
1: Input :   X i :   actual   particle   i ,   X l o c a l , i : actual local optimum particle i ,   X g l o b a l : actual global optimum particle,   v : possible values of discrete variables, v p r o b , i : probability vectors of the variables associated with the particle X i ,   α i : probability change factor associated to particle X i ,   γ 1 : exploration factor,   γ 2 : exploitation factor.
2: Output :   X i :   updated   particle   i ,   v p r o b , i : updated probability vectors of the variables for the particle   X i .
3:Procedure: UpdateParticle
4: for   each   variable   V j ,   j = 1   to   n v a r  do
5:   for   each   possible   value   v j h ,   h = 1   to   l j  do
6:   B 1 = X l o c a l , i j = = v j h
7:   B 2 = X g l o b a l j = = v j h
8:   v p r o b , i j , h = α i v p r o b , i j , h + 1 α i γ 1 B 1 + γ 2 B 2 / γ 1 + γ 2
9:end
10: Assign the value of X i j   according to the probability distribution of   v p r o b , i j and
 a random value between 0 and 1
11:end
The probability matrices are initialized before starting the iterations according to Equation (98).
v p r o b j = 1 l j
where l j is the possible number of values that the variable j can take. Algorithm 2 shows the structure of the PSO optimization.
Algorithm 2. PSO optimization method (initialization excluded).
1: Input :   X :   initialized   particles ,   X l o c a l : initial local optimum particles, X g l o b a l :   initial global optimum particles, v :   possible values of discrete variables, v p r o b :   initialized probability matrices of the variables,   α :   probability change factor vector, γ 1 :   exploration   factor ,   γ 2 : exploitation factor.
2: Output :   X g l o b a l :   global   optimum   particle ,   C o s t g l o b a l : cost of the global optimum particle.
3:Procedure: Optimization
4:for each iteration do
5:   for   each   particle   i   to   n p a r  do
6:   X i , v p r o b , i   = U p d a t e P a r t i c l e X i , X l o c a l , i , X g l o b a l , v , v p r o b , i , α i , γ 1 , γ 2
7:     if   C o s t F n X i < C o s t F n X l o c a l , i  then
8:    X l o c a l , i = X i
9:      if   C o s t F n X i   <   C o s t F n X g l o b a l  then
10:     X g l o b a l = X i
11:   end
12:  end
13:end
As shown in Equation (99), the cost function used for the optimization problem is the sum of the round-trip losses.
C o s t = ε p u m p s + ε s h u n t
where ε p u m p s corresponds to the average obtained during the entire simulation. It must be taken into account that for each particle and in each iteration of the algorithm a complete simulation has to be performed. Although the shunt currents model solves quickly, during a complete simulation it is run thousands of times. For this reason, it has been decided to run the optimization model in SOC sections, instead of in each simulation step, in order to significantly reduce the time spent on each particle. Algorithm 3 shows how the cost function designed for this problem works.
Algorithm 3. Cost evaluation method.
1: Input :   X i is a vector with nine components. The components of this vector are the following ones: trunk diameter, branch diameter, manifold diameter, channel height, channel width, channel length, branch length. All this data define a solution for our optimization.
2:Output: the cost of the particle solution.
3:Procedure: Simulation and Evaluation
4:Simulation of the models defined in Section 2, Section 3 and Section 4 and their linkage (Section 5)
5:Evaluation using the Equation (99)
In this case, it has been decided to perform at least one run at each 2% SOC interval. It has been verified that by doing so, the average of ε s h u n t does not change much with respect to a simulation in which the shunt currents model is run at each simulation step.

7. Optimization Results and Conclusions

In this section, the results related to the optimization of the design parameters of the pipes and distribution of cells in stacks will be presented. Table 15 shows the parameters relative to the PSO as well as the ranges of possible values that each of the variables of the problem can take.
For the rest of the battery parameters, we have considered those shown in Section 5. The lengths of the trunks are determined by Equation (100), and the lengths of the manifolds have been restricted so that the sum does not exceed the sum of the lengths of the trunks.
L t r = 1.8 m
Figure 15 shows the evolution of the cost of the global optimal particle during the iterations of the algorithm.
Note that the global optimum particle is the best particle that has been obtained up to the time at which each iteration is performed. This means that in the iterations in which the cost does not change, after updating the population of particles and evaluating the cost of each one, no particle has been found that improves what has been obtained up to that moment. From iteration 16 onwards, there is no improvement on what has been obtained so far. Although this may seem a failure of the algorithm, it is something quite typical and may be determined by the parameters of the exploitation and exploration factors, by the probability change factor, by the number of particles that compose the population, and by the random initialization of the population.
However, it must be taken into account that initially, in the random initialization of the particle population itself, a particle has been obtained whose value of the variables substantially improves the efficiency obtained from the example of Section 5, from having a total of RTE losses of 2.3759% to 1.7608%—this is already very important to take into account. Table 16 shows the evolution of the RTE losses during the algorithm iterations, broken down into shunt and pressure losses.
Analyzing the results of the table up to iteration 16 (being that after that iteration there are no changes), some interesting things can be observed. During the iterations of the algorithm, many tradeoffs occur, improving one of the RTEs and worsening the other (Figure 16 is provided to clearly see this fact). However, it is believed that this is not due to anything special, and that it happens simply due to the dynamics of the algorithm; moreover, it is likely that in other executions of the algorithm, depending on the random initialization of the particles, this particularity may not appear.
Table 17 shows the global optimum result that has been given in this execution of the PSO.
Although, as has been commented several times, different executions of the algorithm can give different solutions, and the solution obtained for the article is not guaranteed to be the best obtainable, we have seen an improvement with respect to other articles in which we start from preestablished designs and compare their efficiency.

Author Contributions

Conceptualization, D.A.I.-G. and U.F.-G.; methodology, J.O. and A.Z.; software, E.Z. and U.F.-G.; validation, D.A.I.-G. and A.Z.; formal analysis, D.A.I.-G., J.O. and U.F.-G.; investigation, E.Z., J.O., and U.F.-G.; resources, E.Z. and A.Z.; data curation, E.Z.; writing—review and editing, D.A.I.-G. and U.F.-G.; visualization, J.O.; supervision, E.Z.; project administration, E.Z.; funding acquisition, E.Z. and U.F.-G. All authors have read and agreed to the published version of the manuscript.

Funding

This work has been partially supported by the Government of the Basque Country, program: Elkartek CICe2022; grant no.: KK-2022/00043. E. Z. and U.F.-G. were supported by the Mobility Lab Foundation, a governmental organization of the Provincial Council of Araba and the local council of Vitoria-Gasteiz.

Data Availability Statement

All data generated in the current study are available upon reasonable request to the corresponding authors.

Acknowledgments

The authors are grateful for the support provided by SGIker of UPV/EHU. This research was developed under the frame of the Joint Research Laboratory on Offshore Renewable Energy (JRL-ORE).

Conflicts of Interest

Javier Olarte is employed by the Centre for Cooperative Research on Alternative Energies (CIC EnergiGUNE). The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as potential conflicts of interest.

References

  1. Ajanovic, A. Biofuels versus Food Production: Does Biofuels Production Increase Food Prices? Energy 2011, 36, 2070–2076. [Google Scholar] [CrossRef]
  2. Ritchie, H.; Roser, M.; Rosado, P. Renewable Energy. Our World Data 2024. Available online: https://ourworldindata.org/renewable-energy (accessed on 16 May 2024).
  3. Aluko, A.; Knight, A. A Review on Vanadium Redox Flow Battery Storage Systems for Large-Scale Power Systems Application. IEEE Access 2023, 11, 13773–13793. [Google Scholar] [CrossRef]
  4. Koohi-Fayegh, S.; Rosen, M.A. A Review of Energy Storage Types, Applications and Recent Developments. J. Energy Storage 2020, 27, 101047. [Google Scholar] [CrossRef]
  5. Clemente, A.; Costa-Castelló, R. Redox Flow Batteries: A Literature Review Oriented to Automatic Control. Energies 2020, 13, 4514. [Google Scholar] [CrossRef]
  6. Guarnieri, M.; Mattavelli, P.; Petrone, G.; Spagnuolo, G. Vanadium Redox Flow Batteries: Potentials and Challenges of an Emerging Storage Technology. IEEE Ind. Electron. Mag. 2016, 10, 20–31. [Google Scholar] [CrossRef]
  7. Weber, S.; Peters, J.F.; Baumann, M.; Weil, M. Life Cycle Assessment of a Vanadium Redox Flow Battery. Environ. Sci. Technol. 2018, 52, 10864–10873. [Google Scholar] [CrossRef] [PubMed]
  8. Pugach, M.; Vyshinsky, V.; Bischi, A. Energy Efficiency Analysis for a Kilo-Watt Class Vanadium Redox Flow Battery System. Appl. Energy 2019, 253, 113533. [Google Scholar] [CrossRef]
  9. Zhang, C.; Zhao, T.S.; Xu, Q.; An, L.; Zhao, G. Effects of Operating Temperature on the Performance of Vanadium Redox Flow Batteries. Appl. Energy 2015, 155, 349–353. [Google Scholar] [CrossRef]
  10. Xiong, B.; Zhao, J.; Tseng, K.J.; Skyllas-Kazacos, M.; Lim, T.M.; Zhang, Y. Thermal Hydraulic Behavior and Efficiency Analysis of an All-Vanadium Redox Flow Battery. J. Power Sources 2013, 242, 314–324. [Google Scholar] [CrossRef]
  11. Kumar, S.; Jayanti, S. Effect of Flow Field on the Performance of an All-Vanadium Redox Flow Battery. J. Power Sources 2016, 307, 782–787. [Google Scholar] [CrossRef]
  12. Xu, Q.; Zhao, T.S.; Leung, P.K. Numerical Investigations of Flow Field Designs for Vanadium Redox Flow Batteries. Appl. Energy 2013, 105, 47–56. [Google Scholar] [CrossRef]
  13. Tang, A.; Bao, J.; Skyllas-Kazacos, M. Studies on Pressure Losses and Flow Rate Optimization in Vanadium Redox Flow Battery. J. Power Sources 2014, 248, 154–162. [Google Scholar] [CrossRef]
  14. Chou, H.-W.; Chang, F.-Z.; Wei, H.-J.; Singh, B.; Arpornwichanop, A.; Jienkulsawad, P.; Chou, Y.-S.; Chen, Y.-S. Locating Shunt Currents in a Multistack System of All-Vanadium Redox Flow Batteries. ACS Sustain. Chem. Eng. 2021, 9, 4648–4659. [Google Scholar] [CrossRef]
  15. Ye, Q.; Hu, J.; Cheng, P.; Ma, Z. Design Trade-Offs among Shunt Current, Pumping Loss and Compactness in the Piping System of a Multi-Stack Vanadium Flow Battery. J. Power Sources 2015, 296, 352–364. [Google Scholar] [CrossRef]
  16. Wandschneider, F.T.; Röhm, S.; Fischer, P.; Pinkwart, K.; Tübke, J.; Nirschl, H. A Multi-Stack Simulation of Shunt Currents in Vanadium Redox Flow Batteries. J. Power Sources 2014, 261, 64–74. [Google Scholar] [CrossRef]
  17. Glazkov, A.; Pichugov, R.; Loktionov, P.; Konev, D.; Tolstel, D.; Petrov, M.; Antipov, A.; Vorotyntsev, M.A. Current Distribution in the Discharge Unit of a 10-Cell Vanadium Redox Flow Battery: Comparison of the Computational Model with Experiment. Membranes 2022, 12, 1167. [Google Scholar] [CrossRef]
  18. Delgado, N.; Monteiro, A.; Cruz, J.; Bentien, A.; Mendes, A. Shunt Currents in Vanadium Redox Flow Batteries—A Parametric and Optimization Study. Electrochim. Acta 2021, 403, 139667. [Google Scholar] [CrossRef]
  19. Zhao, X.; Kim, Y.-B.; Jung, S. Shunt Current Analysis of Vanadium Redox Flow Battery System with Multi-Stack Connections. J. Energy Storage 2023, 73, 109233. [Google Scholar] [CrossRef]
  20. Li, Y.; Skyllas-Kazacos, M.; Bao, J. A Dynamic Plug Flow Reactor Model for a Vanadium Redox Flow Battery Cell. J. Power Sources 2016, 311, 57–67. [Google Scholar] [CrossRef]
  21. König, S.; Suriyah, M.R.; Leibfried, T. Model Based Examination on Influence of Stack Series Connection and Pipe Diameters on Efficiency of Vanadium Redox Flow Batteries under Consideration of Shunt Currents. J. Power Sources 2015, 281, 272–284. [Google Scholar] [CrossRef]
  22. Trovò, A.; Di Noto, V.; Epoupa Mengou, J.; Gamabaro, C.; Guarnieri, M. Fast Response of kW-Class Vanadium Redox Flow Batteries. IEEE Trans. Sustain. Energy 2021, 12, 2413–2422. [Google Scholar] [CrossRef]
  23. Puleston, T.; Clemente, A.; Costa-Castelló, R.; Serra, M. Modelling and Estimation of Vanadium Redox Flow Batteries: A Review. Batteries 2022, 8, 121. [Google Scholar] [CrossRef]
  24. Khaki, B.; Das, P. An Equivalent Circuit Model for Vanadium Redox Batteries via Hybrid Extended Kalman Filter and Particle Filter Methods. J. Energy Storage 2021, 39, 102587. [Google Scholar] [CrossRef]
  25. Murthy, S.K.; Sharma, A.K.; Choo, C.; Birgersson, E. Analysis of Concentration Overpotential in an All-Vanadium Redox Flow Battery. J. Electrochem. Soc. 2018, 165, A1746. [Google Scholar] [CrossRef]
  26. Kurilovich, A.A.; Trovò, A.; Pugach, M.; Stevenson, K.J.; Guarnieri, M. Prospect of Modeling Industrial Scale Flow Batteries—From Experimental Data to Accurate Overpotential Identification. Renew. Sustain. Energy Rev. 2022, 167, 112559. [Google Scholar] [CrossRef]
  27. Trovò, A.; Picano, F.; Guarnieri, M. Comparison of Energy Losses in a 9 kW Vanadium Redox Flow Battery. J. Power Sources 2019, 440, 227144. [Google Scholar] [CrossRef]
  28. Kaminski, E.A.; Savinell, R.F. A Technique for Calculating Shunt Leakage and Cell Currents in Bipolar Stacks Having Divided or Undivided Cells. J. Electrochem. Soc. 1983, 130, 1103. [Google Scholar] [CrossRef]
  29. Darling, R.M.; Shiau, H.-S.; Weber, A.Z.; Perry, M.L. The Relationship between Shunt Currents and Edge Corrosion in Flow Batteries. J. Electrochem. Soc. 2017, 164, E3081. [Google Scholar] [CrossRef]
  30. Tang, A.; McCann, J.; Bao, J.; Skyllas-Kazacos, M. Investigation of the Effect of Shunt Current on Battery Efficiency and Stack Temperature in Vanadium Redox Flow Battery. J. Power Sources 2013, 242, 349–356. [Google Scholar] [CrossRef]
  31. Prokopius, P.R. Model for Calculating Electrolytic Shunt Path Losses in Large Electrochemical Energy Conversion Systems; NASA: Washington, DC, USA, 1976.
  32. Trovò, A.; Picano, F.; Guarnieri, M. Maximizing Vanadium Redox Flow Battery Efficiency: Strategies of Flow Rate Control. In Proceedings of the 2019 IEEE 28th International Symposium on Industrial Electronics (ISIE), Vancouver, BC, Canada, 12–14 June 2019; pp. 1977–1982. [Google Scholar]
  33. Chen, Y.-S.; Ho, S.-Y.; Chou, H.-W.; Wei, H.-J. Modeling the Effect of Shunt Current on the Charge Transfer Efficiency of an All-Vanadium Redox Flow Battery. J. Power Sources 2018, 390, 168–175. [Google Scholar] [CrossRef]
  34. Burney, H.S.; White, R.E. Predicting Shunt Currents in Stacks of Bipolar Plate Cells with Conducting Manifolds. J. Electrochem. Soc. 1988, 135, 1609. [Google Scholar] [CrossRef]
  35. Swamee, P.K.; Jain, A.K. Explicit Equations for Pipe-Flow Problems. J. Hydraul. Div. 1976, 102, 657–664. [Google Scholar] [CrossRef]
  36. Romeo, E.; Royo, C.; Monzón, A. Improved Explicit Equations for Estimation of the Friction Factor in Rough and Smooth Pipes. Chem. Eng. J. 2002, 86, 369–374. [Google Scholar] [CrossRef]
  37. Sonnad, J.R.; Goudar, C.T. Turbulent Flow Friction Factor Calculation Using a Mathematically Exact Alternative to the Colebrook–White Equation. J. Hydraul. Eng. 2006, 132, 863–867. [Google Scholar] [CrossRef]
  38. Churchill, S.W. Friction Factor Equation Spans All Fluid Flow Regimes. Chem. Eng. 1977, 84, 91–92. [Google Scholar]
  39. Co, C. Flow of Fluids Through Valves, Fittings, and Pipe; Crane Company: Stamford, CT, USA, 1988. [Google Scholar]
  40. Hilding, K. Pressure Losses for Fluid Flow in 90° Pipe Bends. J. Res. Natl. Bur. Stand. 1938, 21, 1–18. [Google Scholar]
  41. Jayanti, S. Bends, Flow and Pressure Drop in. In Thermopedia; Begel House Inc.: Danbury, CT, USA, 2011; ISBN 978-1-56700-456-4. [Google Scholar]
  42. Kumar, S.; Jayanti, S. Effect of Electrode Intrusion on Pressure Drop and Electrochemical Performance of an All-Vanadium Redox Flow Battery. J. Power Sources 2017, 360, 548–558. [Google Scholar] [CrossRef]
  43. Kennedy, J.; Eberhart, R. Particle Swarm Optimization. In Proceedings of the 1995 IEEE International Conference on Neural Networks Proceedings, Perth, WA, Australia, 27 November–1 December 1995; Volume 1–6, pp. 1942–1948. [Google Scholar] [CrossRef]
  44. Wang, F.; Zhang, H.; Zhou, A. A Particle Swarm Optimization Algorithm for Mixed-Variable Optimization Problems. Swarm Evol. Comput. 2021, 60, 100808. [Google Scholar] [CrossRef]
Figure 1. Research process image.
Figure 1. Research process image.
Batteries 10 00257 g001
Figure 2. Electrical circuit equivalent to a five-cell stack. The numbers indicate the connection points of the stack with another stack.
Figure 2. Electrical circuit equivalent to a five-cell stack. The numbers indicate the connection points of the stack with another stack.
Batteries 10 00257 g002
Figure 3. Electrical circuit equivalent to a battery with three stacks of cells.
Figure 3. Electrical circuit equivalent to a battery with three stacks of cells.
Batteries 10 00257 g003
Figure 4. Meshes and current directions taken for the first stack. The figure shows a battery with only two stacks, but it is generalizable to m stacks.
Figure 4. Meshes and current directions taken for the first stack. The figure shows a battery with only two stacks, but it is generalizable to m stacks.
Batteries 10 00257 g004
Figure 5. Meshes and current directions taken for the middle stacks. The figure shows a battery with only three stacks, but it is generalizable to m stacks.
Figure 5. Meshes and current directions taken for the middle stacks. The figure shows a battery with only three stacks, but it is generalizable to m stacks.
Batteries 10 00257 g005
Figure 6. Meshes and current directions taken for the last stack. The figure shows a battery with only two stacks, but it is generalizable to m stacks.
Figure 6. Meshes and current directions taken for the last stack. The figure shows a battery with only two stacks, but it is generalizable to m stacks.
Batteries 10 00257 g006
Figure 7. Measurement of the radius of the bends.
Figure 7. Measurement of the radius of the bends.
Batteries 10 00257 g007
Figure 8. Path taken for the calculation of pressure losses between stacks.
Figure 8. Path taken for the calculation of pressure losses between stacks.
Batteries 10 00257 g008
Figure 9. Path taken for pressure calculation between cells.
Figure 9. Path taken for pressure calculation between cells.
Batteries 10 00257 g009
Figure 10. (a) Concentration of V 2 + in the tanks; (b) concentration of V 3 + in the tanks; (c) concentration of V O 2 + in the tanks; (d) concentration of V O 2 + in the tanks.
Figure 10. (a) Concentration of V 2 + in the tanks; (b) concentration of V 3 + in the tanks; (c) concentration of V O 2 + in the tanks; (d) concentration of V O 2 + in the tanks.
Batteries 10 00257 g010
Figure 11. (a) Concentration of V 2 + in the cells; (b) concentration of V 3 + in the cells; (c) concentration of V O 2 + in the cells; (d) concentration of V O 2 + in the cells.
Figure 11. (a) Concentration of V 2 + in the cells; (b) concentration of V 3 + in the cells; (c) concentration of V O 2 + in the cells; (d) concentration of V O 2 + in the cells.
Batteries 10 00257 g011aBatteries 10 00257 g011b
Figure 12. (a) Electrolyte flow rate of the cells during the simulation. The flow rate was calculated with Equation (89); (b) the open circuit voltage of the cells during the simulation; (c) maximum, average, and minimum shunt currents during the simulation of the charge; (d) maximum, average, and minimum shunt currents during the simulation of the discharge. (Blue for maximum currents, red for average currents, and yellow for minimum currents).
Figure 12. (a) Electrolyte flow rate of the cells during the simulation. The flow rate was calculated with Equation (89); (b) the open circuit voltage of the cells during the simulation; (c) maximum, average, and minimum shunt currents during the simulation of the charge; (d) maximum, average, and minimum shunt currents during the simulation of the discharge. (Blue for maximum currents, red for average currents, and yellow for minimum currents).
Batteries 10 00257 g012
Figure 13. Distribution of the average pressure losses relative to the entire simulation.
Figure 13. Distribution of the average pressure losses relative to the entire simulation.
Batteries 10 00257 g013
Figure 14. Diagram of the data structures for the application of the PSO for the solution of a generic 5-variable problem.
Figure 14. Diagram of the data structures for the application of the PSO for the solution of a generic 5-variable problem.
Batteries 10 00257 g014
Figure 15. Cost of global optimum particle during the PSO execution.
Figure 15. Cost of global optimum particle during the PSO execution.
Batteries 10 00257 g015
Figure 16. Global optimum pressure and shunt RTE losses during the iterations of the PSO algorithm (until iteration 20, since from iteration 16 to 50 there is no improvement in the global optimum).
Figure 16. Global optimum pressure and shunt RTE losses during the iterations of the PSO algorithm (until iteration 20, since from iteration 16 to 50 there is no improvement in the global optimum).
Batteries 10 00257 g016
Table 1. Information about the nomenclature related to the electrochemical model.
Table 1. Information about the nomenclature related to the electrochemical model.
ParameterDescriptionUnits
C i , c e l l ,   C i , t a n k Concentration of vanadium species for the cells and tanks m o l / L
C i , c e l l i n i , C i , t a n k i n i Initial concentration of vanadium species for the cells and tanks m o l / L
E c e l l Cell voltage V
E o C Cell open circuit potential V
E 0 + , E 0 Standard potentials for positive and negative electrodes V
E 0 Formal standard potential V
F Faradays number C / m o l
I T Current imposed on the battery A
I c e l l Cell current A
m Number of stacks-
n Number of cells per stack-
R Ideal gas constant J / m o l · K
R c e l l Cell resistance O h m
T Temperature K
Δ t Simulation time step s
S o C c e l l , S o C c e l l + State of charge of positive and negative electrolyte in each cell (over 1)-
V c e l l , V t a n k Cell and tank volume L
Q Total electrolyte flow rate L / s
z Number of electrons transferred in the reaction-
η a c t + , η a c t Activation overpotentials V
η c o n + , η c o n Concentration overpotentials V
σ + , σ Conductivity of the positive and negative electrolyte S / m
σ I I , σ I I I , σ I V , σ V Standard conductivity of the vanadium species S / m
Table 2. Information about the nomenclature related to the shunt model.
Table 2. Information about the nomenclature related to the shunt model.
ParameterDescriptionUnits
A p i Cross section of the pipe m 2
E o C Cell open circuit potential V
I B r A , I B r C Current through anodic and cathodic branch A
I C h A , I C h C Current through anodic and cathodic channel A
I M n A , I M n C Current through anodic and cathodic manifold A
I T r A , I T r C Current through anodic and cathodic trunk A
I C e l l Current through cell A
I T Current imposed on the battery A
L p i Length of the pipe m
m Number of stacks-
n Number of cells per stack-
R B r A , R B r C Anodic and cathodic branch resistance O h m
R C h A , R C h C Anodic and cathodic channel resistance O h m
R M n A , R M n C Anodic and cathodic manifold resistance O h m
R T r A , R T r C Anodic and cathodic trunk resistance O h m
σ + , σ Conductivity of the positive and negative electrolyte S / m
Table 3. Information about the nomenclature related to the hydraulic model.
Table 3. Information about the nomenclature related to the hydraulic model.
ParameterDescriptionUnits
A p i ,   A b , A t j , A p e Cross section of pipe, bend, T-junction, and electrode m 2
C D a r c y Coefficient of Darcy’s friction factor-
D p i , D b Diameter of pipe and bend m
e p i Roughness of the pipe m
f Darcy’s friction factor-
g Gravity m / s 2
h Height between outlet trunk and electrolyte surface m
H p i Height of rectangular section pipes m
K c , K t Bends curvature and tangent resistance coefficient-
K b , K t j Resistance coefficient of the bend and T-junction-
k p e Permeability of the electrode m 2
L p i , L b , L p e Length of the pipe, bend, and electrode m
m Number of stacks-
n Number of cells per stack-
P p i , P b , P t j , P p e Pressure losses in pipe, bend, T-junction, and electrode P a
P g Pressure loss due to gravity P a
R e Reynolds number-
R b Bend radius m
Q p i , Q t j , Q p e Flow through pipe, T-junction, and electrode m 3 / s
θ b Bend angle d e g r e e s
μ e Electrolyte dynamic viscosity P a · s
ρ e Electrolyte density k g / m 3
W p i Width of rectangular section pipes m
Table 4. Cell parameters values used in the example simulation.
Table 4. Cell parameters values used in the example simulation.
ParameterValueReference
Cell parameters
Resistance   ( R c e l l ) 1.33 · 10 3   Ω [15]
Volume   ( V c e l l ) 0.4968   L [27]
Formal   standard   potential   ( E 0 ) 1.4   V [20]
Nominal   voltage   ( E n o m ) 1.4   V [15]
Nominal   current   density   ( i n o m ) 60 · 10 3 · 10 4   A / m 2 [15]
Table 5. Electrolyte parameters values used in the example simulation.
Table 5. Electrolyte parameters values used in the example simulation.
ParameterValueReference
Electrolyte parameters
Density   ( ρ e ) 4.93 · 10 3   k g / m 3 [15]
Dynamic   viscosity   ( μ e ) 1350   P a · s [15]
Table 6. Electrode parameters values used in the example simulation.
Table 6. Electrode parameters values used in the example simulation.
ParameterValueReference
Electrode parameters
Cross   section   area   ( W p e H p e ) 0.15   m 2 [15]
Height   ( H p e ) 0.003   m [15]
Length   ( L p e ) 0.6   m -
Width   ( W p e ) 0.5   m [15]
Permeability   ( k p e ) 6 · 10 10   m 2 [15]
Table 7. Pipe parameters values used in the example simulation.
Table 7. Pipe parameters values used in the example simulation.
ParameterValueReference
Pipes Parameters
Trunk   segment   dimensions   ( L t r , D t r ) 0.45   m ,   0.075   m -
Branch   segment   dimensions   ( L b r , D b r ) 3   m ,   0.015   m [15]
Manifold   segment   dimensions   ( L m n , D m n ) 0.007   m ,   0.04   m [15]
Channel   segment   dimensions   ( L c h , H c h , W c h ) 1   m ,   0.002   m ,   0.006   m [15]
Bend   hydraulic   coefficient   ( K b ) 0.2 -
T-junction direct hydraulic coefficient   ( K t j d i r e c t ) 0.2 -
T-junction branch hydraulic coefficient ( K t j b r a n c h ) 0.9 -
Roughtness   of   the   pipes   ( e p i ) 0.0015 · 10 3   m [15]
Darcy   coefficient   for   circular   pipes   ( C D a r c y ) 64 [15]
Height   between   tank   and   outlet   trunk   ( h ) 0.8   m [15]
Table 8. Tank parameters values used in the example simulation.
Table 8. Tank parameters values used in the example simulation.
ParameterValueReference
Tank parameters
Positive   tank   volume   ( V t a n k + ) 500   L -
Negative   tank   volume   ( V t a n k ) 500   L -
Table 9. Vanadium species parameters values used in the example simulation.
Table 9. Vanadium species parameters values used in the example simulation.
ParameterValueReference
Vanadium species parameters
Standard   conductivity   of   V 2 +   ( σ I I ) 27.5   S / m [27]
Standard   conductivity   of   V 3 +   ( σ I I I ) 17.5   S / m [27]
Standard   conductivity   of   V O 2 +   ( σ I V ) 27.5   S / m [27]
Standard   conductivity   of   V O 2 +   ( σ V ) 41.3   S / m [27]
Total   concentration   of   species   ( C 2 + C 3 ) 1.6   m o l / L -
Total   concentration   of   species   ( C 4 + C 5 ) 1.6   m o l / L -
Table 10. Battery parameters values used in the example simulation.
Table 10. Battery parameters values used in the example simulation.
ParameterValueReference
Battery parameters
Number   of   stacks   ( m ) 4 [15]
Number   of   cells   per   stack   ( n ) 30 [15]
Table 11. Constant parameters values used in the simulation.
Table 11. Constant parameters values used in the simulation.
ParameterValueReference
Constants parameters
Electrons   transferred   in   chemical   reactions   ( z ) 1 -
Faraday s   constant   ( F ) 96,485   C / m o l -
Gravity   ( g ) 9.8   m / s 2 -
Temperature   ( T ) 298   K -
Pump   efficiency   ( η p u m p s ) 0.8 [15]
Flow   ratio   ( Q f ) 1 [20]
Table 12. Simulation parameters values used in the simulation.
Table 12. Simulation parameters values used in the simulation.
ParameterValueReference
Simulation parameters
Charge   current   ( I T ) 90   A [15]
Discharge   current   ( I T ) 90   A [15]
Simulation   step   ( Δ t ) 5   s -
Initial   V 2 +   concentration   in   the   tank   ( C 2 , t a n k i n i ) 0   m o l / L -
Initial   V 3 +   concentration   in   the   tank   ( C 3 , t a n k i n i ) 1.6   m o l / L -
Initial   V O 2 +   concentration   in   the   tank   ( C 4 , t a n k i n i ) 1.6   m o l / L -
Initial   V O 2 +   concentration   in   the   tank   ( C 5 , t a n k i n i ) 0   m o l / L -
Initial   V 2 +   concentration   in   the   cells   ( C 2 , c e l l i n i ) 0   m o l / L -
Initial   V 3 +   concentration   in   the   cells   ( C 3 , c e l l i n i ) 1.6   m o l / L -
Initial   V O 2 +   concentration   in   the   cells   ( C 4 , c e l l i n i ) 1.6   m o l / L -
Initial   V O 2 +   concentration   in   the   cells   ( C 5 , c e l l i n i ) 0   m o l / L -
Table 13. Distribution of the average pressure losses by cause. Note that the data are only for the hydraulic circuit connecting one of the tanks.
Table 13. Distribution of the average pressure losses by cause. Note that the data are only for the hydraulic circuit connecting one of the tanks.
PipesDerivationsElectrodeGravity
TrunksBranchesManifoldsChannels---
Losses (Pa)20.2312,282.621.6214,062.63751.3514,198.7510,584
Table 14. Average round-trip efficiency losses in the simulation.
Table 14. Average round-trip efficiency losses in the simulation.
ShuntPressure
RTE losses (%)0.98231.3936
Table 15. Parameters of the PSO and ranges considered for the variables.
Table 15. Parameters of the PSO and ranges considered for the variables.
ParameterValue
PSO parameters
Number   of   particles   ( n p a r ) 100
Number of iterations50
Probability   change   factor   for   all   particles   ( α ) 0.65
Exploration   factor   ( γ 1 ) 1
Exploitation   factor   ( γ 2 ) 1
Ranges of discrete variables
Number of stacksDivisors of 120
Trunk diametersFrom 0.03 m to 0.75 m in intervals of 0.01 m
Branch diametersFrom 0.008 m to 0.04 m in intervals of 0.004 m
Branch lengthsFrom 3 m to 9 m in intervals of 0.1 m
Manifold diametersFrom 0.01 m to 0.04 m in intervals of 0.004 m
Channel lengthsFrom 0.15 m to 0.99 m in intervals of 0.02 m
Channel heightsFrom 0.0015 m to 0.0025 m in intervals of 0.0001 m
Channel widthsFrom 0.0015 m to 0.01 m in intervals of 0.002 m
Table 16. Evolution of RTE losses during algorithm iterations.
Table 16. Evolution of RTE losses during algorithm iterations.
Iteration
Number
Shunt
RTE Losses (%)
Pressure
RTE Losses (%)
Iteration
Number
Shunt
RTE Losses (%)
Pressure
RTE Losses (%)
10.97230.7885260.82750.7965
20.97930.7765270.82750.7965
30.79100.9121280.82750.7965
40.77860.8956290.82750.7965
50.78770.8835300.82750.7965
60.81260.8384310.82750.7965
70.81210.8388320.82750.7965
80.81240.8385330.82750.7965
90.83180.7954340.82750.7965
100.83160.7954350.82750.7965
110.83020.7955360.82750.7965
120.82770.7964370.82750.7965
130.82770.7964380.82750.7965
140.82770.7964390.82750.7965
150.82770.7964400.82750.7965
160.82750.7965410.82750.7965
170.82750.7965420.82750.7965
180.82750.7965430.82750.7965
190.82750.7965440.82750.7965
200.82750.7965450.82750.7965
210.82750.7965460.82750.7965
220.82750.7965470.82750.7965
230.82750.7965480.82750.7965
240.82750.7965490.82750.7965
250.82750.7965500.82750.7965
Table 17. Optimum solution of the optimization problem.
Table 17. Optimum solution of the optimization problem.
ParameterValue
Number of stacks 10
Number of cells per stack 12
Trunk diameter 0.09   m
Trunk length 0.18   m
Branch diameter 0.016   m
Branch length 9   m
Manifold diameter 0.034   m
Manifold length 0.0070   m
Channel length 0.97   m
Channel height 0.0025   m
Channel width 0.0095   m
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Ispas-Gil, D.A.; Zulueta, E.; Olarte, J.; Zulueta, A.; Fernandez-Gamiz, U. Optimization of the Shunt Currents and Pressure Losses of a VRFB by Applying a Discrete PSO Algorithm. Batteries 2024, 10, 257. https://doi.org/10.3390/batteries10070257

AMA Style

Ispas-Gil DA, Zulueta E, Olarte J, Zulueta A, Fernandez-Gamiz U. Optimization of the Shunt Currents and Pressure Losses of a VRFB by Applying a Discrete PSO Algorithm. Batteries. 2024; 10(7):257. https://doi.org/10.3390/batteries10070257

Chicago/Turabian Style

Ispas-Gil, Decebal Aitor, Ekaitz Zulueta, Javier Olarte, Asier Zulueta, and Unai Fernandez-Gamiz. 2024. "Optimization of the Shunt Currents and Pressure Losses of a VRFB by Applying a Discrete PSO Algorithm" Batteries 10, no. 7: 257. https://doi.org/10.3390/batteries10070257

APA Style

Ispas-Gil, D. A., Zulueta, E., Olarte, J., Zulueta, A., & Fernandez-Gamiz, U. (2024). Optimization of the Shunt Currents and Pressure Losses of a VRFB by Applying a Discrete PSO Algorithm. Batteries, 10(7), 257. https://doi.org/10.3390/batteries10070257

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop