A Novelty Energy Storage Algorithm for High Speed Trains: Economical and Energy Saving Evaluation


 Increasing the utilization rate of regenerative braking energy in rail systems is one of the ongoing applications increasing in significance in recent years. This study develops a novelty algorithm within the scope of this objective and provides the calculation of the regenerative braking energy recovery rate and then making a decision for storage or back to grid of this energy. Afterwards, the regenerative braking energy was calculated with the help of this algorithm for Eskisehir-Ankara and Ankara-Eskisehir trips in two different passengers (load) scenarios, using the YHT 65000 high-speed train, which was chosen as a case study. Then, with a decision maker added to this classical regenerative braking energy algorithm, it will be decided whether this energy will be stored or forward back into the grid for the purpose of providing non-harmonic energy to the grid.

through the separator between the anode and cathode. There are some general advantages and disadvantages: Advantages: • They have the highest energy densities in battery technology.
• They allow high current for high-power requirements.
• Memory effect is not a problem.
• They are in very small sizes. Disadvantages: • Li-ion batteries get overheat easily, this is a problem in high voltage applications.
• Li-ion batteries need additional equipment because of limiting voltage and internal pressures; this equipment increases weight and limits performance.
• The capacity can be lost or failed in several years.

Ultra-capacitors:
The ultra-capacitors, also known as super capacitors or double-layer capacitors.
They are different from regular capacitors because of very high capacitance.
Capacitors do not use electrochemical reactions however, they use static energy. Capacitor charge by applying a voltage differential on the positive and negative electrodes. Farad is a unit of capacitance named by the English physicist Michael Faraday (1791-1867). When applying one volt, one-farad stores one coulomb of electrical charge. Advantages: • They have almost unlimited cycle life.
• They have high power and low resistance thus enables high load currents.
• They charge in seconds do not subject to overcharge.
• They enable low-temperature charge and discharge. Disadvantages: • They have the low energy density • They cannot use the full energy spectrum because of linear discharge voltage • They have high self-discharge.
• They require series connections because of low cell voltage.
• They have a high cost per watt.
Determining of the regenerative braking energy is the essential point for energy storage systems in trains. However, this system has many different inputs as load, train movement resistance, speed, line conditions. The aim of this study was to see how much regenerative braking energy can be utilized according to different working conditions. The paper is planned as follows: The comparative advantages and disadvantages of storage types in rail systems, features of storage devices have been summarized in the Introduction section.
Applications in the world, the algorithm for this issue and information about the principle of storage energy in railways is given in the Recoverable Energy in Trains section, below. The regenerative energy of vehicles and their mathematical equations are given in the Methods section. The algorithm for calculation of regenerative braking energy is given and added a novelty decisionmaker section to the algorithm to decide of this energy to storage or forward back to the grid in Proposed Algorithm and Selection of Storage Type section. The outcomes of the two algorithms, both of the decrease in energy cost and the best option for storage selection, are handled in the Comparative Results section, and finally, the results are interpreted and suggestions are presented in the Conclusions section.

RECOVERABLE ENERGY IN TRAINS
There are many different ways to recover energy from trains. However, especially saving energy which gets from regenerative braking has two ways. One of them is reversible substations the other one is energy storage. High-speed trains are supplied with AC power. Then the use of regenerative braking is direct, being possible to send the power back to the electric grid. However, it is reported that most of the energy generated during braking is used by other trains on lines where trains are operated for 3 minutes or less [7]. In lines where trains are not operated frequently, most of the energy is burned in resistors. In this context, it is thought that significant energy savings can be achieved in terms of operating costs through energy storage technologies [8]. High-speed trains use AC power and send the power back to the electric grid. There are not any requirements and losses for additional pieces of equipment. However, using a reversible transformer does not seem logical as the next train will not arrive in 3 minutes.
There are two types of energy storage in railways. These are for High Speed and Conventional Train and Urban train. Studies in this field are given below separately.

High Speed and Conventional Trains
The International union of railways (UIC) [9] observed that 2.9% of the energy drawn from the pantograph will be lost if regenerative braking is stored on the high-speed train. A unique feature of each application is how it will be stored and used in high-speed trains or urban systems. Therefore, it is necessary to know the system and its use. This paper [10] has shown that the addition of energy recovering capability to high-speed railway lines can bring a significant amount of energy-saving when one stationary storage system is installed in correspondence of one Energy Storage System (ESS) located in correspondence of the entrance in a railway junction. In a realistic case study, involving a 728 kWh storage and only considering trains moving on the DC high-speed line, payback time is expected around five years, for a system that is expected to stay in service ten years. There are also algorithms that have been created for utilizing regenerative braking energy around the world. Researchers at Xi'an Jiaotong-Liverpool University's Suzhou campus developed an algorithm intended to optimize the storage and reuse of braking energy. The name of the algorithm is XJTLU [11]. In research paper [12], stationary and on-board batteries and super capacitors have been considered. The analysis has shown that braking energy recovery is able to provide significant energy and costs saving even in DC high-speed railway systems, opening new research opportunities for the future. The proposed simulation tool [13] completely developed in Matlab-Simulink is designed as a modular system that should be easily customized in order to fit different traction and braking system layouts.

Urban Trains
There have been important studies on energy storage in rail systems globally. The first is the MITRAC train. The MITRAC train is called an energy saver. MITRAC can minimize the environmental effect and reduce energy consumption costs, which are very important issues for public transport. The MITRAC Energy Saver is based on a series connection of high-performance EDLCs (Electric Double Layer Capacitors). A characteristic of EDLCs is that they can be quickly charged, (when the train is accelerating), and discharged, (when the train is decelerating). The single line schematic of the MITRAC energy saver is shown in Figure 3 [14,15]. In the braking phase, the train stores some of the regenerative energy, and in the acceleration phase, this energy is used in the power supply of the train as with all-electric vehicles. The aims of the MITRAC Energy Saver are energy savings, power supply optimization, reduced infrastructure investment, catenary-free operation, and performance-boosting [16].
The MITRAC Energy Saver was installed onboard as a prototype of a light rail vehicle (LRV) for public transport by the German operator Rhein-Neckar-Verkehr Gmbh in Mannheim, Germany from September 2003 to 2008 [14]. In the future, for metro systems, it is estimated that about 40% of braking energy can be saved and 21% of the total energy can be saved for acceleration [16]. Figure. 3 Schematic of MITRAC Energy Saver Modified from Steiner et al. [14,15] In Figure 3, a general schematic of Mitrac can be seen. In this figure, there is an EDLCs Container paralleled to network. In this way, the three-phase Induction motor's energy requirement can be met by both the EDLCs Container and/or network. Algorithms of this system make choices for how much energy will be recover from two different sources.
A second example is the STEEM project. The circuit layout of the onboard EDLC modules of the STEEM project is similar to the MITRAC Energy Saver shown in Figure 3. The objectives of this project were to enhance the energy efficiency of tramway systems and to support catenary-free vehicles [17]. This project is an example of wayside energy storage. Turkey also used a train energy storage and management system with a piece of software named TROBES developed by Aselsan However, this study is not directly related to battery chemicals.

METHODS
The technical information of high-speed train used in this study is given in Table 1: 1.) Cause-effect or forward-facing method. In this method, the power consumed by the vehicle is used as an input to determine the speed of the wheel.
2.) Effect-cause or backward-facing method. In this method, the speed profile and vehicle properties are used as inputs to determine the input power to the train. In this paper, the effectcause approach is used to model the electric rail vehicle. The modeling process is presented in Figure. 2. In this model, the speed of the train is taken as an input, and is calculated with the vehicle dynamic equations represented in (1): PT: Total power PR: Wheel force power caused by movement Wheel force is defined as the summation of all resistive forces against the motion of the train, which can be expressed as FRT. Wheel force occurs only if power is applied to the axle of that wheel. The power applied to the axle is called the traction motor power, which can be shown by equation (2).  (2): Where A, B and C are constants that depends of the type of railway.
This equation with the calculated coefficients A, B and C for YHT 65000 is as follows [29]: The following result was reached when curves, ramp, and acceleration resistances, together with vehicle mass were also included in the equation, giving the total resistance force: When braking the train, it releases energy as regenerative braking (ERG). This energy can be explained as Newton's 2 nd law, principle of motion: Regenerative braking energy is caused by acceleration; the algorithm is given below, figure 4 depend on this theory and Newton's 2 nd law.

Regenerative Braking Algorithm and Modelling
The conditions for storing regenerative braking energy are given in the algorithm below: In the algorithm described in Figure 4, the first question is whether the speed of V2 is greater than V1. It is not important the value of the speeds, there is an only comparison. This is actually questioning whether regenerative energy is available or not, in other words, is the train slowing down? If the train does not slow down, there is no energy input into the battery, it is not charged.
However, if the train is slowing, there is regenerative braking. If the regenerative braking energy value is greater than the energy required by the motor, the battery is charged, which is performed based on the charging efficiency of the battery after the motor's need has been met from the regenerative energy. Alternatively, the battery is discharged, so energy required by the motor is derived from regenerative energy and the discharged battery. Here it is assumed that the battery has sufficient capacity when it is being charged and discharged, because energy storage is carried out on the wayside, not on the vehicle. Thus, there is no possibility for the train to increase its weight. This algorithm continues until the end of journey time with each "t" time increasing by one.

PROPOSED ALGORITHM and SELECTION of STORAGE TYPE
There are two related studies in this section. The first is to find the effect of load parameter in regenerative braking energy with the aim of proposed algorithm in section 3; the second one is the evaluation of storage device selection according to this calculated energy amount using Net Present Value Analysis (NPVA).
Route information is used in this study in below:

Figure 5. Route Information of the Line used in this study [30]
The route given in Figure 5 presents the 245 km route travelled by the YHT 65000 train; which performs five departures and five return trips per day. As seen in the figure, there are four stations, namely Eskişehir, Polatlı, Eryaman and Ankara. Comparing this to other high-speed train examples in the world, four stops seem to be too many for this short distance. This route was chosen for the study as this line, where stopping is high, allows the utilization of regenerative braking energy.

Proposed Algorithm
The algorithm detailed in section 3 was run and two studies with different load scenarios were carried out. In both scenarios, the speeds of the trains were specified at 1-minute intervals, and this process continued until the end of the journey process, the 91st minute. The speeds were always the same in both scenarios.
It is possible to give the difference between the two scenarios as follows:

2. Storage Device Selection and Investment Accounts
When choosing the storage device, energy density (Wh / kg), and the charge / discharge cycle must  In order to store this power, one of the two storage devices given in Table 2 will be preferred. The The Li-ion is lower price than ultra-capacitors. This calculation declares the only device can be used is Li-ion for energy storage project of YHT 65000. However, the NPVA value is still negative.
There are two ways to make the investment profitable as we cannot change calendar life of li-ion.
One of them is to increase the number of trips and the other is to increase the unit electricity price in the country. Of course, the second situation is undesirable. Investment will be profit if the number of trips is at least 14. In this situation, the following algorithm can be used. In Figure 7, an innovative algorithm has been developed that brings storage constraints due to the cost of the storage device. Because of not to lose regenerative energy gain, it is given back to the grid. The blocks marked in red are new or relocated blocks, unlike Figure 4. Thus, there will be a limit to the storage and if this limit is exceeded, the energy will be returned to the grid by making it non-harmonic. When the energy is returned to the grid, it is important to make the energy nonharmonic since it has a harmonic structure that pollutes the grid. Thus, there will be a limit to the storage and when this limit value is reached, the energy will be returned to the grid by making it non-harmonic.

COMPARATIVE RESULTS
In this study, firstly a new algorithm was developed using acceleration resistance and Newton's 2 nd law for to calculate the regenerative energy value of the YHT 65000 high speed train. Than two studies were searched together with this algorithm. The first one was finding the load effect in recoverable regenerative energy value according to this algorithm. The second one was finding the investment cost of two different storage devices -Li-ion batteries and ultra-capacitors with aim of NPVA. Detailed results were shown below: Algorithm was built in that: firstly, a new mathematical equation was built for 65000 High Speed Train then the energy spent in resistors was found with the aim of this equation. An innovative algorithm was developed using calculated power requirement because of acceleration in resistors and 2 nd law of motion also was used.
This algorithm was run with two load scenarios. In the first scenario; the number of passengers started as 250 in the first station increased by 50 at the second station and increased by 50 at the third station, reaching 350 passengers. In the second scenario; the number of passengers remained unchanged, at 250 for the entire journey. In both scenarios, the speeds of the trains were specified at 1-minute intervals and this process continued until the end of the journey process, in the 91st min. The speed changes were always the same in both scenarios. With the help of the developed mathematical model and algorithm, the following results were achieved: • In the first scenario, the effect of cruise resistance on the total resistance was 72.24%, while in the second scenario this ratio was calculated as 69.29%.
• As a result of the proposed algorithm with 90% motor (in case of use as a generator) and 98% cable efficiency; it was found that 31.86% of the energy was consumed by the acceleration resistance in Scenario 1 and 30.57% in Scenario 2 could be recovered as regenerative energy.
This amount is compatible with the experimental results of the energy rate that can be obtained from the regenerative energy studies in the literature given above. This proved that the proposed algorithm works right and can be used in another regenerative energy recovering applications.
• Another noteworthy point is that it was revealed that more energy which was generated in low speed braking than in braking at high speeds. Likewise, required acceleration at low speeds also required more energy. This result showed that there was an excess of energy and a deficit when approaching and moving away from the stations. Therefore, placing the energy storage devices at stations appeared reasonable for this study. The features and results of the energy storage devices were given below according to NPVA: • The only Li-ion battery usage was more logical compared to ultra-capacitors. However, even when li-ion is used, at least 14 times per a day are required for the investment to make profit.
• However, storing the all-regenerative energy, forwarding back to the grid is better for economic reasons. With the help of the innovative algorithm, it can be determined how much energy will be stored and how much will be sent to the network in a harmonic-free way.

CONCLUSIONS
In this study, three different studies were achieved. The first one was to develop an algorithm for to find the regenerative braking value of the YHT 65000. The other one was to test the algorithm with two different load scenarios. The results showed that the values were very close to each other however, the first scenario utilized more regenerative energy with a difference of 1.29% than the second scenario. The rate of utilizing the regenerate energy was around 30% for both scenarios, in accordance with existing literature. In that way, it was verified the algorithm worked well and it was shown that the number of passengers was not a criterion that could significantly change this energy rate for high-speed trains.
From the results of the algorithm, wayside energy storage was chosen as the storage type, because it was seen that more energy was needed in low speed braking and accelerations just like times at arrives and departures to the station.
As the third, an investment cost calculation was made according to two different storage devices for this released energy. While making this calculation with using the different technologies, obtained them from NPVA. According to this calculation, it was observed that Li-ion storage gives better results than super-capacitor applications for the Eskişehir-Ankara and Ankara-Eskişehir journeys of the YHT 65000.
The most suitable storage types are changing according to different systems. For this system, it was seen that storage should be made as station type and that Li-ion should be selected as the storage device for YHT 65000's route. Another advantage of using Li-ion's space requirement would be less because of the high energy density. The developed algorithm and the NPVA can easily be used for calculating regenerative braking energy, finding logical cost analysis of energy storage, and for choosing storage devices for different trains in different scenarios.
Thanks to the innovative algorithm developed, it is possible to find out how much energy will be stored and how much will be returned to the network. These rates will depend entirely on the design. As a result; energy savings, less investment, and reduction of CO2 emission are achieved.
In future, this investment values can change with developing energy storage types and their features. However, until to that time Li-ion batteries will be the best choice for this application.

Availability of data and material: Not applicable
Funding: Not applicable