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 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.
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
stacks connected in Z with
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).
and
represent the electrical resistance of the electrolyte flowing through the channels and manifolds associated with cell
of stack
, while
and
represent the electrical resistance of the electrolyte flowing through the branches and trunks associated with stack
. The superscripts
and
indicate whether the pipe section is associated with the anode or the cathode and
and
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).
where
and
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.
and
corresponds to the internal electrical resistance and open circuit potential, respectively, of cell
of stack
.
3.2. Mathematical Model
In the mathematical modeling, all special cases have been considered except for the case of having
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
stacks with
cells in each is obtained with the expression in Equation (22).
For the case
, there will be
channel currents,
cell currents, and 4
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
. For the general case of having
stacks, each of the stacks contribute with
currents but due to the appearance of trunks and branches,
branch currents and
trunk currents must be taken into account. This results in a number of currents to be determined equal to
.
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).
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).
where
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.
3.2.2. Intermediate Cells of the Stack
Applying Kirchhoff’s laws for an intermediate cell
of a stack
gives the Equations (33)–(41).
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.
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.
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).
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).
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).
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
stacks and
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).
where
is a column vector with the values of the independent terms of the equations,
is a matrix with the coefficients of the equations, and
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].
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)).
where
is the electrolyte density,
,
and
are the length, diameter, and section of the pipe segment, respectively,
is the electrolyte flow that circulates through the pipe segment, and
is the Darcy friction factor.
The value of the friction factor
depends on several factors. Depending on whether the flow regime is laminar, critical, or turbulent, the expressions for the calculation of
changes. To know the flow regime, the Reynolds number value is calculated (Equation (74)).
where
represents electrolyte viscosity. There are variations in the limits of the
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).
In laminar regime (
),
has been calculated by Equation (76).
Depending on the shape of the pipe section, the value of
changes. In the case of circular section pipes,
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
[
38]. Equation (77) shows the mathematical expression of the calculation of the friction factor according to Churchill.
where
and
are calculated as in Equation (78).
In the case of rectangular section pipes, the hydraulic diameter of the pipe will be calculated according to Equation (79).
where
is the width of the pipe and
is the height of the pipe. For this type of piping, the calculation of the
coefficient will be considered as in [
15], applying Equation (80).
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.
where
,
and
are the length, diameter, and cross section of the bend of the pipe segment, respectively, and
and
are the curvature and downstream tangent coefficient, respectively. The calculation of the bend length is achieved by Equation (82).
where
and
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].
where
is denoted as the bend coefficient and is the sum of
and
. 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).
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 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.
The same considerations on the section of the bends have been upheld to the sections and 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)).
where
,
and
are the permeability, length, and cross section area of the porous electrode, respectively, and
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).
where
is the gravity value and
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.
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.
where
is the number of stacks in the battery and
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).
where
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
columns and
rows, where
is the number of possible values that the variable can take and
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: | : actual local optimum particle actual global optimum particle, possible values of discrete variables, probability vectors of the variables associated with the particle probability change factor associated to particle exploration factor,: exploitation factor. |
2: | updated probability vectors of the variables for the particle. |
3: | Procedure: UpdateParticle |
4: | do |
5: | do |
6: | |
7: | |
8: | |
9: | end |
10: | Assign the value of according to the probability distribution of and |
| a random value between 0 and 1 |
11: | end |
The probability matrices are initialized before starting the iterations according to Equation (98).
where
is the possible number of values that the variable
can take. Algorithm 2 shows the structure of the PSO optimization.
Algorithm 2. PSO optimization method (initialization excluded). |
1: | initial local optimum particles, initial global optimum particles, possible values of discrete variables, initialized probability matrices of the variables,probability change factor vector, : exploitation factor. |
2: | : cost of the global optimum particle. |
3: | Procedure: Optimization |
4: | for each iteration do |
5: | do |
6: | |
7: | then |
8: | |
9: | then |
10: | |
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.
where
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: | 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 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.
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.