scieee AI-readable full text Open interactive document viewer

Distributed multiport converters for renewable energy integration

Solagran Jufré, Marc

Abstract

Aquest treball de fi de màster investiga el paper dels convertidors multiport (MPCs) en la millora de la resiliència i l'eficiència de les xarxes de distribució. La recerca se centra en la reducció de l'energia no subministrada (ENS) i en com aquests poden facilitar la integració de recursos energètics distribuïts (DER) a la xarxa. Utilitzant com a banc de proves el sistema de 33 busos de l’IEEE 33 modificat, s’han realitzat simulacions per avaluar el rendiment dels MPCs sota diversos escenaris, incloent-hi fallades simples i dobles de línia i modes d'operació grid-forming i grid-following de les unitats de generació distribuïda (DG). Tot i que en el cas base el rendiment elèctric de la xarxa de distribució ja és acceptable, l'estudi revela que els MPCs milloren significativament el rendiment de la xarxa, especialment en la regulació de voltatge i la reducció de pèrdues. L'anàlisi de la viabilitat econòmica indica que els MPCs d’escala parcial proporcionen una solució més rendible per a la millora del rendiment de la xarxa respecte a aquells a escala total. A més, la recerca avalua el potencial d’ingressos de la participació de sistemes d'emmagatzematge d'energia amb bateria (BESS) en els mercats elèctrics, destacant els beneficis de la participació al mercat diari i el de serveis auxiliars. Els resultats donen suport a l'adopció dels MPCs com una estratègia viable per a modernitzar les xarxes de distribució per a acomodar la creixent integració dels DER i facilitar aconseguir els objectius de sostenibilitat en l’àmbit energètic.

Full text

Treball de Fi de Màster Màster Universitari en Sistemes i Accionaments Elèctrics Distributed Multiport Converters for Renewable Energy Integration REPORT Author: Marc Solagran Jufré Supervisor: Oriol Gomis Bellmunt Co-supervisor: Paula Muñoz Peña Call: July 2024 Escola Tècnica Superior d’Enginyeria Industrial de Barcelona Page 2 Report Distributed Multiport Converters for Renewable Energy Integration Page 3 Resum Aquest treball de fi de màster investiga el paper dels convertidors multiport (MPCs) en la millora de la resiliència i l'eficiència de les xarxes de distribució. La recerca se centra en la reducció de l'energia no subministrada (ENS) i en com aquests poden facilitar la integració de recursos energètics distribuïts (DER) a la xarxa. Utilitzant com a banc de proves el sistema de 33 busos de l’IEEE 33 modificat, s’han realitzat simulacions per avaluar el rendiment dels MPCs sota diversos escenaris, incloent-hi fallades simples i dobles de línia i modes d'operació grid-forming i grid-following de les unitats de generació distribuïda (DG). Tot i que en el cas base el rendiment elèctric de la xarxa de distribució ja és acceptable, l'estudi revela que els MPCs milloren significativament el rendiment de la xarxa, especialment en la regulació de voltatge i la reducció de pèrdues. L'anàlisi de la viabilitat econòmica indica que els MPCs d’escala parcial proporcionen una solució més rendible per a la millora del rendiment de la xarxa respecte a aquells a escala total. A més, la recerca avalua el potencial d’ingressos de la participació de sistemes d'emmagatzematge d'energia amb bateria (BESS) en els mercats elèctrics, destacant els beneficis de la participació al mercat diari i el de serveis auxiliars. Els resultats donen suport a l'adopció dels MPCs com una estratègia viable per a modernitzar les xarxes de distribució per a acomodar la creixent integració dels DER i facilitar aconseguir els objectius de sostenibilitat en l’àmbit energètic. Page 4 Report Resumen Este trabajo de fin de máster investiga el papel de los convertidores multipuerto (MPCs) en la mejora de la resiliencia y la eficiencia de las redes de distribución. La investigación se centra en la reducción de la energía no suministrada (ENS) y en cómo estos pueden facilitar la integración de recursos energéticos distribuidos (DER) en la red. Utilizando como banco de pruebas el sistema de 33 buses del IEEE 33 modificado, se han realizado simulaciones para evaluar el rendimiento de los MPCs bajo diversos escenarios, incluyendo fallas simples y dobles de línea y modos de operación grid-forming y gridfollowing de las unidades de generación distribuida (DG). Aunque en el caso base el rendimiento eléctrico de la red de distribución ya es aceptable, el estudio revela que los MPCs mejoran significativamente el rendimiento de la red, especialmente en la regulación de voltaje y la reducción de pérdidas. El análisis de la viabilidad económica indica que los MPCs de escala parcial proporcionan una solución más rentable para la mejora del rendimiento de la red en comparación con aquellos de escala total. Además, la investigación evalúa el potencial de ingresos de la participación de sistemas de almacenamiento de energía con batería (BESS) en los mercados eléctricos, destacando los beneficios de la participación en el mercado diario y en el de servicios auxiliares. Los resultados respaldan la adopción de los MPCs como una estrategia viable para modernizar las redes de distribución, acomodar la creciente integración de los DER y facilitar el logro de los objetivos de sostenibilidad en el ámbito energético. Distributed Multiport Converters for Renewable Energy Integration Page 5 Abstract This master's thesis investigates the role of multiport power converters (MPCs) in enhancing the resilience and efficiency of distribution grids. The research focuses on reducing energy not supplied (ENS) and facilitating the integration of distributed energy resources (DER). Utilizing a modified IEEE 33-bus test system, simulations were conducted to evaluate the performance of MPCs under various scenarios, including single- and double-line failures and grid-forming and grid-following operation modes of distributed generation (DG) units. Despite that in the base case the electrical performance of the distribution grid is already acceptable, the study reveals that MPCs significantly improve grid performance, particularly in voltage regulation and loss reduction. Economic feasibility analysis indicates that partial-scale MPCs provide a more cost-effective solution for grid performance enhancement. Additionally, the research assesses the potential revenue from battery energy storage systems (BESS) participation in electricity markets, highlighting the revenues from day-ahead markets and ancillary services markets. The findings support the adoption of MPCs as a viable strategy for modernizing distribution networks to accommodate increasing DER integration and achieve sustainable energy objectives. Page 6 Report Distributed Multiport Converters for Renewable Energy Integration Page 7 Contents RESUM ___________________________________________________________ 3 RESUMEN _________________________________________________________ 4 ABSTRACT________________________________________________________ 5 ABBREVIATIONS AND SYMBOLS ___________________________________ 9 LIST OF FIGURES _________________________________________________ 11 LIST OF TABLES __________________________________________________ 13 1. PREFACE ____________________________________________________ 15 2. INTRODUCTION ______________________________________________ 17 2.1. Motivation ..................................................................................................................... 17 2.2. Scope ............................................................................................................................ 17 2.3. Objectives .................................................................................................................... 18 3. THEORETICAL BACKGROUND ________________________________ 19 3.1. Mathematical optimization ........................................................................................ 19 3.2. Power electronics for DER integration and grid stability enhancement ......... 20 3.2.1. Comparison with switches ............................................................................................ 21 3.2.2. Multiport power converters .......................................................................................... 21 3.2.3. Voltage regulation .......................................................................................................... 22 3.3. BESS and grid support markets .............................................................................. 22 3.4. Electricity supply interruptions................................................................................. 27 4. METHODOLOGY _____________________________________________ 28 4.1. Tools and libraries ...................................................................................................... 28 4.2. Case study ................................................................................................................... 28 4.3. Code explanation ........................................................................................................ 32 4.3.1. Energetic optimization ................................................................................................... 32 4.3.2. BESS participation in electricity markets ................................................................... 35 4.3.3. Grid-based optimization ................................................................................................ 37 4.4. Data representation .................................................................................................... 38 5. RESULTS AND DISCUSSION __________________________________ 40 5.1. Expected results ......................................................................................................... 40 5.2. Single line failure ........................................................................................................ 41 5.2.1. Without closing any switches or installing MPC ....................................................... 41 Page 8 Report 5.2.2. Optimal MPC sizing ........................................................................................................ 42 5.2.3. Grid-following DG approach ......................................................................................... 44 5.3. Double line failure ....................................................................................................... 45 5.3.1. Without closing any switches or installing MPC ....................................................... 45 5.3.2. Optimal MPC sizing ........................................................................................................ 46 5.3.3. Grid-following approach ................................................................................................ 47 5.4. Failure duration and MPC sizing ............................................................................. 48 5.5. BESS revenue in markets ......................................................................................... 50 5.6. Electrical simulation ................................................................................................... 52 5.6.1. Potential for voltage regulation .................................................................................... 52 5.6.2. Potential for loss reduction ........................................................................................... 54 5.6.3. The impact of batteries .................................................................................................. 55 6. ECONOMIC ASSESSMENT ____________________________________ 56 7. ENVIRONMENTAL ASSESSMENT ______________________________ 57 8. SOCIAL AND GENDER EQUALITY ASSESSMENT ________________ 58 9. CONCLUSIONS ______________________________________________ 59 10. ACKNOWLEDGMENTS _______________________________________ 61 11. BIBLIOGRAPHY ______________________________________________ 62 Distributed Multiport Converters for Renewable Energy Integration Page 9 Abbreviations and Symbols List of abbreviations AC Alternating current ADRS Active demand response service aFFR Automatic frequency restoration reserve BESS Battery energy storage system DC Direct current DER Distributed energy resources DG Distributed generation ENS Energy not supplied FCR Frequency containment reserves HV High voltage LP Linear programming LV Low voltage mFFR Manual frequency restoration reserve MIP Mixed-integer programming MPC Multiport power converter MV Medium voltage NLP Nonlinear programming OF Objective function OOP Object oriented programming OPF Optimal power flow PV Photovoltaic REE Red Eléctrica de España RES Renewable energy sources SD Standard deviation SOC State of charge SOP Soft open point VAT Value-added tax VRES Variable renewable energy sources VSC Voltage Source Converters List of symbols 𝐴 Arbitrary coefficient (A ≥ 1) 𝐵 Arbitrary coefficient (0 ≤ B ≤ 1) 𝐵𝑐 BESS cost [€/kWh] 𝐵𝑐𝑦𝑐𝑙𝑒𝑠 Number of cycles [year-1] 𝐶𝐴𝑃𝐸𝑋𝑏𝑎𝑡 Capital expenditure of the BESS [€] Page 16 Report enough to control voltage levels, leading to possible generation or load curtailment. Similarly, this additional stress can lead to exceeding line capacities or unacceptable line losses, requiring new solutions to modernise distribution networks. The integration of VRES requires advanced grid management techniques, including the use of energy storage systems, demand response strategies, and sophisticated grid control algorithms. Power electronics play a crucial role in addressing this problem too, not only in the power generation side but also in providing grid services. In this context, multiport power converters (MPCs) present potential to improve the efficiency and power density of applications that require several power conversion stages. Figure 1.1. Share of non-VRES sources in total electricity generation in selected synchronous areas, 2017-2026 [6]. Distributed Multiport Converters for Renewable Energy Integration Page 17 2. Introduction This document delves into the potential of MPCs in enhancing the stability and efficiency of distribution grids, focusing on the capacity to reduce the supply shortage in case of faults in the system. By integrating distributed energy resources (DER), MPCs offer a robust solution for modern power systems facing increasing demand and renewable energy integration. The analysis is grounded in a comprehensive case study involving the enhanced IEEE 33-bus system, with minor modifications to better represent a modern grid. Through detailed simulations, the aim is to showcase how MPCs can improve grid reliability, manage power flows, and support voltage regulation. Additionally, the document highlights the economic feasibility of MPCs in some of their different possible configurations, as well as that of battery energy storage systems (BESS) in wholesale electricity markets, which can be integrated into the grid via MPC too. 2.1. Motivation This work originates from the need to adapt the existing grid, that was planned for a centralised power generation and unidirectional power flow, to the new paradigm that includes the massive integration of DER into the grid, such as photovoltaic (PV) and wind generation, BESS, electrification of the demand and active consumer participation. This causes the distribution network to face significant challenges in maintaining stability and service quality. Integrating DER effectively can address several key issues such as environmental sustainability, energy efficiency, and economic benefits at both macro and local levels. Furthermore, enhancing grid resilience and improving the efficiency of energy distribution are critical goals that align with broader societal needs, including the reduction of greenhouse gas emissions and the advancement of sustainable development objectives. This thesis delves into how MPCs can facilitate the integration of DER into the distribution grid, reduce ENS, and improve grid performance. 2.2. Scope The scope of this master’s thesis encompasses a comprehensive analysis of the role of MPCs in enhancing the stability and efficiency of distribution grids. The study involves a literature review, the modification and simulation of a modified IEEE 33-bus distribution system, and an evaluation of the economic feasibility of MPCs, focusing on their ability to reduce energy not supplied (ENS) and integrate DER. Page 18 Report Multiple possible configurations of MPCs can be supposed. Although, due to workload, only some have been considered. Integrating distributed generation (DG) units through the converter, electric vehicle, connection of loads directly to the converter, interfacing more than two ports with the alternating current (AC) grid, and integrating the grid at different voltage levels are some of the configuration options that MPC offer but remain out of the scope of this work. The computational power has limited the scope of the simulations. To complete them in a reasonable time, simulations involving the IEEE 33 bus case study were performed for reference days with the aim of a comprise between accurate and fast optimizations. Regarding the BESS participation in markets, the work does not present strategies to optimize it, rather, it presents the theoretical maximum obtainable revenue from this activity in the supposed scenario. In all the cases, the work is limited to theoretical data and simulations, without having tested them in the real distribution network. 2.3. Objectives The main objective of this master’s thesis is to analyse how Multiport Power Converters can enhance the resilience and efficiency of the distribution grid while reducing the energy not supplied and facilitating the integration of DER. This goal aims to address the challenges posed by the increasing integration of distributed energy resources and the loss of synchronous generators. The specific objectives are: • Conduct a review of existing research on MPCs and other power electronicsbased equipment and their integration into distribution grids. • Develop a modified IEEE 33-bus test system with increased renewable energy generation. Define scenarios for single- and double-line failures to assess the impact of MPC on energy supply analysing both grid-forming and grid-following operation modes for DG units. • Compare MPCs and switches in the context of energy-based simulation and gridbased simulation. • Analyse the cost-benefit of installing MPCs at partial-scale and full-scale for ENS reduction and grid performance enhancement. • In the context of taking advantage of the capability of MPC to integrate several conversion stages and technologies, develop guiding simulation to assess the feasibility of BESS participation in wholesale electricity markets, both for energy arbitrage and ancillary services. Distributed Multiport Converters for Renewable Energy Integration Page 19 3. Theoretical background This chapter provides the foundational concepts and theories that support the analyses and methodologies used in this work. It covers mathematical optimization, the role of power electronics in DER integration and grid stability enhancement focusing on MPC. Moreover, it examines the economic and technical incentives for BESS participation in electricity markets, focusing on energy arbitrage and grid support markets. Finally, the economic and social impact of electricity shortages are presented, as well as the causes for them. This theoretical background sets the stage for understanding the subsequent analyses and results presented in this thesis. 3.1. Mathematical optimization From the Mathematical Optimization Society [7], “in a mathematical optimization (or programming) problem, one seeks to minimize or maximize a real function of real or integer variables, subject to constraints on the variables”. It focuses on the mathematical properties of these problems, developing and implementing algorithms to solve them, and applying these algorithms to real-world issues. The general form of a mathematical optimization problem is the following: min 𝑥∈𝑅𝑛𝑓(𝑥) 𝑠𝑢𝑏𝑗𝑒𝑐𝑡 𝑡𝑜: ℎ𝑖(𝑥)= 0; 𝑖=1,2,…𝑚 𝑔𝑗(𝑥)≤0; 𝑗=1,2,…𝑟 Eq. 3.1 Eq. 3.2 Eq. 3.3 where 𝑥∈𝑅𝑛 are the decision variables, 𝑓(𝑥) the objective function to minimize or maximize, Eq. 3.2 the 𝑚 equality constraints and Eq. 3.3 the 𝑟 inequality constraints [8]. The properties of the constraints significantly influence the complexity and methods used to solve the optimization problem. Real-number decision variables can often be addressed with techniques from calculus and linear algebra. Integer variables introduce combinatorial complexity, requiring discrete optimization methods. Linear constraints lead to linear programming (LP) problems, solvable with methods like the simplex method, while nonlinear constraints lead to nonlinear programming (NLP), requiring advanced techniques such as gradient methods or heuristic algorithms. In optimization problems, solutions can be categorized as local or global. A local solution is a point where the objective function value is lower than that of any nearby feasible points. In contrast, a global solution has the lowest objective function value among all feasible points. In convex programming, local and global solutions coincide. However, nonlinear Page 20 Report problems often have local solutions that are not global. It is important to consider that many algorithms are designed to find local solutions due to the complexity of identifying global solutions [9]. Figure 3.1. Local and global minima in convex (left) and non-convex (right) functions [10] Various solvers are used to tackle optimization problems efficiently by utilizing advanced algorithms and computational techniques. These solvers, including Gurobi, CPLEX, IPOPT, and others, are designed to handle different types of optimization problems such as linear, integer, and nonlinear programming. They provide robust solutions by implementing state-of-the-art algorithms, enabling the efficient handling of large-scale and complex problems across numerous applications in industry and research. The use of these solvers facilitates the practical implementation of optimization techniques, but careful consideration must be given to the choice of solver, as each is specifically effective for certain types of problems. 3.2. Power electronics for DER integration and grid stability enhancement In the context of modern power systems, integrating DER and enhancing grid stability is crucial, and power electronics play a significant role in addressing these challenges. Among these technologies, various advanced power electronics devices and systems are noteworthy for their ability to interconnect multiple power sources and loads, offering versatile solutions for power conversion and distribution. Voltage source converters are self-commutated converters that use devices suitable for high power electronic applications, such as insulated-gate bipolar transistors (IGBTs) [11]. VSCs have several advantageous features: they can operate in grid-forming mode, provide good power quality thanks to their high commutation frequencies, provide grid services, and offer bidirectional power flow by inverting the current direction for power reversal. Additionally, VSCs are scalable, making them suitable for a wide range of applications. These applications range from connecting low-power batteries or Distributed Multiport Converters for Renewable Energy Integration Page 21 photovoltaic (PV) systems to the grid to high-voltage direct current (HVDC) systems in the gigawatt (GW) range. Soft Open Points (SOPs), a similar and more mature equipment compared to MPCs, are designed for improving the performance distribution networks. Utilizing VSCs, SOPs manage both active and reactive power flows. By connecting adjacent feeders, they inject or absorb active power, stabilizing voltage levels during peak loads or faults. SOPs also provide reactive power compensation, essential for voltage profile management. Their dynamic control capabilities allow real-time adjustments to network conditions, beneficial for handling the variable nature of renewable energy. This ensures rapid responses to power generation fluctuations, maintaining voltage stability [12]. By balancing loads and managing power flows, SOPs smooth voltage profiles, preventing disruptions that could affect sensitive electronics and industrial processes. 3.2.1. Comparison with switches Both switches and power electronics-based devices are employed to enhance the efficiency and reliability of power delivery but present substantial differences in terms of cost and capabilities. Switches are traditional electromechanical devices used to control the flow of electricity within the grid. They are relatively inexpensive and are primarily used to reconfigure the network and isolate faults. Switches are present in distribution networks, which despite being meshed are typically operated in a radial configuration with the switches open. That’s because a radial network is less complex to operate and can use simpler protection equipment. Despite their low cost, switches do not offer the controllability that advanced power electronics do and are limited to a binary operation. In the search for cost-effectiveness, some authors have proposed combining them. For example, one approach involves using a hybrid system with a partial-scale back-to-back SOP and a parallel load switch [13]. In this configuration, under normal operation the small converter regulates power flow and voltage under normal conditions while the parallel, normally open switchable line enables complete power recovery during faults, which otherwise would be limited to the SOP capacity. Another proposed solution, applicable for multiterminal converters, is to design each terminal to have different powers, connected to a multiterminal switch to reconfigure them. Compared to hard-wire ones, this method significantly increases the flexibility and performance of the network with a significant cost reduction [14], [15]. 3.2.2. Multiport power converters Multiport power converters are devices based on VSC designed to manage and control Page 22 Report the exchange of power between more than two ports. They are typically developed to enhance the efficiency and power density of applications involving several conversion stages [5]. Figure 3.2. MPC schematic [5]. These converters are broadly classified based on their power conversion stages and the methods used for power transfer between connected devices. The classifications are divided into single-stage and hybrid multistage converters, each with isolated and nonisolated variants. Single-stage MPCs are divided into isolated and non-isolated types. Isolated MPCs utilize a power transformer to provide galvanic isolation, using highfrequency modulation techniques to manage power transfer. Non-isolated MPCs, on the other hand, maintain a direct physical connection between all ports, eliminating the need for a transformer. The third group of MPCs involves hybrid multistage converters, which incorporate two or more power conversion stages, typically combining both isolated and non-isolated sections. 3.2.3. Voltage regulation Currently, voltage in distribution systems (which use AC) is mainly regulated by on-load- tap-change transformers, shunt capacitors and circuit breakers [16]. Voltage regulation is influenced by the nature of power and the X/R ratio at different voltage levels. At high voltages (HV), where the X/R ratio is high, voltage regulation is primarily related to reactive power. In contrast, at low voltages (LV), where the X/R ratio is low, voltage regulation is more affected by active power. However, at medium voltages (MV), where both reactance (X) and resistance (R) are significant, and the X/R ratio is medium, effective voltage regulation requires consideration of both active and reactive power [17]. In MV and LV, when all traditional voltage regulation has been exhausted, generation curtailment can be necessary to limit overvoltages and load curtailment to limit undervoltages [18]. 3.3. BESS and grid support markets Multiport power converters offer a solution for integrating battery energy storage systems into the grid. To fully present the economic and technical potential of MPCs with BESS, Distributed Multiport Converters for Renewable Energy Integration Page 23 the participation of BESS in the electricity markets should be studied. These technologies can participate through traditional energy arbitrage and grid support markets. Energy arbitrage essentially comprises storing electricity at times when energy is plentiful and inexpensive, and discharging it to the grid when it is scarce and most expensive. Typically, BESS performs one full charge and discharge cycle per day to maximize profits while limiting degradation. This activity is becoming increasingly profitable with the massive introduction of VRES in the mix, which offer their energy at low or even negative prices but cannot control their generation. Price variations of 50€/MWh or more in a single day are quite common in European electricity markets, Figure 3.3 illustrates this for a day heavily influenced by PV generation in Spain. Figure 3.3. Day-ahead prices and energy traded in Spain during 03/06/2024 [19]. In AC systems, monitoring the frequency value is possible to determine the equilibrium between generation and consumption. Frequency drops when there’s more consumption than demand and increases in the opposite case. Frequency restoration markets play a crucial role in maintaining the stability and efficiency of power systems, especially in grids with high penetration of renewable energy. In Spain, primary regulation is a mandatory, non-remunerated service provided by generators [20]. Its main function is to automatically correct instantaneous imbalances between production and consumption. This is achieved by immediate and autonomous adjustments in generator output through turbine speed regulators. This service is equivalent to the European Frequency Containment Reserves (FCR). Secondary regulation is an optional service that is compensated through market mechanisms. It aims to maintain the balance between generation and demand by correcting deviations from the scheduled exchanges and frequency. This service operates Page 24 Report within a time frame of 20 seconds to 15 minutes. The compensation is based on two factors: availability (power) and utilization (energy). The energy will generally be valued at the marginal price of the tertiary regulation energy that would have been needed to replace the performed secondary regulation energy in that period. This regulation corresponds to the European automatic Frequency Restoration Reserves (aFRR) [20]. Tertiary regulation is also an optional service but with a mandatory offer requirement for qualified units. It is managed and compensated through market mechanisms. The goal of this service is to resolve imbalances between generation and consumption and to restore the secondary regulation reserves. This is done by adjusting the operating schedules of the production and pumping consumption units. The tertiary regulation reserves are defined as the maximum power variation a production unit can achieve within 15 minutes, and this power must be maintainable for at least two hours. This service is equivalent to the European manual Frequency Restoration Reserves (mFRR) [20]. Figure 3.4. Schematic overview of the activation of operating reserves [21]. In recent years, regulatory changes in Spain have been implemented to increase the flexibility and participation of demand and storage facilities in balancing services, specifically in the Replacement Reserve (RR), aFRR, and mFRR. These changes are aimed at adapting Spanish Operating Procedures to accommodate demand facilities and storage in balancing markets, aligning with the approved Spanish Terms and Conditions. The adaptation of these procedures, which entered into force on January 26th, 2021, followed a public consultation period between March and April 2020. Key regulatory changes include allowing individual or aggregated participation of demand and storage Distributed Multiport Converters for Renewable Energy Integration Page 25 facilities, reducing the minimum bid capacity for qualification tests from 10 MW to 1 MW, and increasing flexibility in prequalification processes to facilitate the inclusion of new items in pre-existing balancing service provider units through aggregated participation. Despite BESS paper in these markets is not relevant yet, another storage technology is a major player. Pumped-hydro facilities are currently crucial participants in these markets, engaging in both upward and downward balancing: • When pumping: They can participate in the upward market by reducing consumption and in the downward market by increasing consumption. • When generating: They can participate in the upward market by increasing generation and in the downward market by decreasing it. Considering the cost reductions expected for BESS and the possibility to be aggregated, they show potential for participating in these markets. Probably, due to their higher power- to-energy ratio, they seem more suited to the aFFR than the mRFF. Figure 3.5. Tertiary regulation activation in Spain in 2023 [22]. These markets are also increasingly important with higher penetration of VRES, Table 3.1, Table 3.2. In fact, adjustment services represented a higher part of the final energy price than SPOT market price in April 2024 (18.02 €/MWh with respect to 14.26 €/MWh). Table 3.1. Cost of adjustment services in Spain in millions of euros [22]. 2020 2021 2022 2023 Technical restrictions 501.46 724.58 1103.94 1896.33 Frequency reserve and ADRS1 94.62 261.72 577.91 607.56 Other 4.73 41.20 47.18 -1.57 Total 600.81 1027.50 1729.03 2502.31 YoY increment - 71.02 % 68.28 % 44.72 % 1 Active Demand Response Service. Page 32 Report Table 4.4. Bus data of the system [32]. Bus number Type Active demand [kW] Reactive demand [kVAR] Vn [kV] Vmin [p.u.] Vmax [p.u.] 1 Slack 99.41 59.65 12.66 0.90 1.05 2 PQ 89.47 39.76 12.66 0.90 1.05 3 PQ 119.29 79.53 12.66 0.90 1.05 4 PQ 59.65 29.82 12.66 0.90 1.05 5 PQ 59.65 19.88 12.66 0.90 1.05 6 PQ 198.82 99.41 12.66 0.90 1.05 7 PQ 198.82 99.41 12.66 0.90 1.05 8 PQ 59.65 19.88 12.66 0.90 1.05 9 PQ 59.65 19.88 12.66 0.90 1.05 10 PQ 44.73 29.82 12.66 0.90 1.05 11 PQ 59.65 34.79 12.66 0.90 1.05 12 PQ 59.65 34.79 12.66 0.90 1.05 13 PQ 119.29 79.53 12.66 0.90 1.05 14 PQ 59.65 9.94 12.66 0.90 1.05 15 PQ 59.65 19.88 12.66 0.90 1.05 16 PQ 59.65 19.88 12.66 0.90 1.05 17 PQ 89.47 39.76 12.66 0.90 1.05 18 PQ/PV 89.47 39.76 12.66 0.90 1.05 19 PQ 89.47 39.76 12.66 0.90 1.05 20 PQ 89.47 39.76 12.66 0.90 1.05 21 PQ 89.47 39.76 12.66 0.90 1.05 22 PQ/PV 89.47 49.70 12.66 0.90 1.05 23 PQ 417.52 198.82 12.66 0.90 1.05 24 PQ 417.52 198.82 12.66 0.90 1.05 25 PQ/PV 59.65 24.85 12.66 0.90 1.05 26 PQ 59.65 24.85 12.66 0.90 1.05 27 PQ 59.65 19.88 12.66 0.90 1.05 28 PQ 119.29 69.59 12.66 0.90 1.05 29 PQ 198.82 594.51 12.66 0.90 1.05 30 PQ 149.11 69.59 12.66 0.90 1.05 31 PQ 208.76 99.41 12.66 0.90 1.05 32 PQ 59.65 39.76 12.66 0.90 1.05 33 PV 0.00 0.00 12.66 0.90 1.05 4.3. Code explanation 4.3.1. Energetic optimization The objective function (OF) of the energetic simulation system is designed to minimize the Distributed Multiport Converters for Renewable Energy Integration Page 33 total costs associated with the energy system over the project's lifespan. It encompasses various cost components, each representing a different aspect of the system's operational and capital expenses. It should be noted that some of the terms are being multiplied by the project lifespan (𝐿𝑝𝑟𝑗), these are the annual terms, including the cost of the energy bought to the grid (𝐶grid), the operating expense (OPEX) of the battery (𝑂𝑃𝐸𝑋bat) and the cost of the energy not supplied (𝐶ENS). On the other hand, the investments that span the entire lifespan of the project are the cost of the MPC itself (𝐶MPC) and the capital expense (CAPEX) of the battery (𝐶𝐴𝑃𝐸𝑋bat). The BESS is understood as a single-time investment despite the 30 years of project lifespan due to being only used to deliver energy in case of faults, leading to minimal annual cycles. The objective function of the mathematical optimization problem is defined in Eq. 4.1: OF=min[𝐿𝑝𝑟𝑗·(𝐶grid+𝑂𝑃𝐸𝑋bat+𝐶ENS)+𝐶MPC+𝐶𝐴𝑃𝐸𝑋bat] Eq. 4.1 𝐶𝑀𝑃𝐶 =∑𝐶𝑐𝑜𝑛𝑣−𝑖 𝑖⋅𝑃𝑀𝑃𝐶−𝑖 Eq. 4.2 Due to the energetic nature of the simulation, it is possible to group all the elements that are physically connected by lines in a single node, neglecting aspects such as voltages, line losses, or reactive power. These nodes will be called systems. With the information of the faulted line(s), the code uses a dictionary to group the different buses as defined in Table 4.5. Table 4.5. Grouping of the system’s buses. System 1 Buses connected to the main grid System 2 Buses that can be connected to the main grid via MPC System 3 Buses that can be connected to the MPC but not to the main grid via MPC System 4 Isolated buses System 5 Battery energy storage system To avoid energy exchange system 4, the cost of the power electronics connected to system 4 is several orders of magnitude higher to represent its isolation with respect to the MPC. For example, consider a scenario where there are faults in lines 22 and 25, and an MPC is located at position 36, refer to Figure 4.3. In this case: • System 1 comprises buses 1-22. • System 2 includes buses 26-33. • System 3 is empty. • System 4 contains buses 23-25. • System 5 consists of the BESS. Page 34 Report Figure 4.3. Example of reconfiguration of buses. Adapted from: [5], [32]. A single MPC cannot simultaneously have buses in both system 2 and system 3. If there are buses in system 2, system 3 must be empty, and vice versa. This is because having a non-empty system 1, which includes buses connected directly to the main grid, allows buses in system 2 (which can connect to the main grid via the MPC). However, for the existence of buses in system 3 the MPC cannot have access to the grid, Table 4.5. The constraint introduced to the code is that the converter’s power inflow must be equal to its power outflow Eq. 4.3, in a converter lossless supposition. In practice, since importing energy from the grid is much cheaper than installing a battery, 𝑃𝑀𝑃𝐶,5 will be zero in case the MPC has access to the grid, Eq. 4.4. If that’s not the case, the only option will be to import the energy from the BESS, Eq. 4.5. ∑𝑃𝑀𝑃𝐶−𝑖,𝑡 ∀k =0 ∀𝑡 Eq. 4.3 𝑃𝑀𝑃𝐶,2,𝑡 =−𝑃𝑀𝑃𝐶,1,𝑡 ∀𝑡 Eq. 4.4 𝑃𝑀𝑃𝐶,3,𝑡 =−𝑃𝑀𝑃𝐶,5,𝑡 ∀𝑡 Eq. 4.5 4.3.1.1. Grid-following approach For the grid-following approach of the energetic simulation, the objective is to consider the generation of DG units only if they find themselves in a relatively strong grid. Obviously, this will be always the case for units in system 1 and never for those in system 4. Thus, the main challenge is to properly consider this operation mode for those in systems 2 and 3. For that, the implementation supports two options that can be used together or separately. The first one, Eq. 4.7 is to consider their generation plus the power apported by the converter to be an arbitrary number of times 𝐴≥1 higher than the consumption of the isolated buses. The second option, Eq. 4.8, is to consider that the power of the converter needs to be higher than a specific coefficient (0≤𝐵≤1) of the load: 𝑃𝐷𝐺−𝑠𝑦𝑠𝑡,𝑖,𝑡 ≤𝑃𝐷𝐺,𝑖,𝑎𝑣,𝑡·𝑢𝐺𝐹𝐿,𝑖,𝑡 𝑖=2,3,∀𝑡 Eq. 4.6 Distributed Multiport Converters for Renewable Energy Integration Page 35 𝑃𝐷𝐺−𝑠𝑦𝑠𝑡,𝑖,𝑡+𝑃𝑀𝑃𝐶,𝑖,𝑡 ≥𝑃𝑙𝑜𝑎𝑑−𝑠𝑦𝑠𝑡,𝑖,𝑡·𝑢𝐺𝐹𝐿,𝑖,𝑡·𝐴 𝑖=2,3,∀𝑡 Eq. 4.7 𝑃𝑀𝑃𝐶−𝑠𝑦𝑠𝑡,𝑖,𝑡 ≥𝑃𝑙𝑜𝑎𝑑−𝑠𝑦𝑠𝑡,𝑖,𝑡·𝑢𝐺𝐹𝐿,𝑖,𝑡· 𝐵 𝑖=2,3,∀𝑡 Eq. 4.8 𝑢𝐺𝐹𝐿,𝑖,𝑡 ∈{0,1} 𝑖=2,3,∀𝑡 Eq. 4.9 Where 𝑃𝐷𝐺−𝑠𝑦𝑠𝑡,𝑖,𝑡 is the power generation of the DG in system 𝑖, 𝑃𝐷𝐺,𝑖,𝑎𝑣,𝑡 the power available and 𝑢𝐺𝐹𝐿,𝑖,𝑡 a binary variable that gets the value 0 if the grid isn’t formed and 1 otherwise. 4.3.2. BESS participation in electricity markets This chapter analyses the other potential revenues of the BESS, in a case study similar to that of the previous sections. Since the generation from the DERs is much lower than the load demand for all time periods, Figure 4.2, the only option for exploiting economically is by participating in electricity markets: day-ahead markets and support service markets. For the day-ahead energy prices the data from the Iberian market operator (OMIE [19]) has been used. On the other hand, data regarding ancillary markets is published by Spanish transmission system operator, Red Eléctrica de España (REE) [23]. In both cases, data from 2023 has been used. Regarding the secondary response data, REE publishes both the capacity data (the one service providers receive for being available in €/MW) and the actual energy participants are requested MWh and €/MWh. However, the benefits from ancillary services should be regarded as upper bounds and are likely to be lower. The primary challenge addressed by ancillary services is uncertainty. When a bid is matched, the provider receives availability (power) revenue but does not know if it will be required to deliver energy. Despite this, the analysis considers the energy requested throughout 2023 as an input for evaluating the benefits. It is worth mentioning that there are also limitations regarding the minimum power of bids in ancillary services. In Spain, the minimum bid size is 1 MW [33], whereas other markets, such as Finland, allow lower values, like 0.1 MW [34]. For the optimization, no minimum bid value has been considered. The justification for this is the possibility of participating through aggregation. Aggregation enables smaller distributed energy resources (DERs) to combine their capacities to meet the minimum bid requirements, thereby facilitating their involvement in the markets. 𝑂𝐹=min[𝑅+ 70·𝐵𝑐𝑦𝑐𝑙𝑒𝑠+0.02·∑(𝑃𝑎𝐹𝐹𝑅−𝑢𝑝,𝑡+𝑃𝑎𝐹𝐹𝑅−𝑑𝑜𝑤𝑛,𝑡) ∀t ] Eq. 4.10 R=∑𝐸𝑔𝑟𝑖𝑑,𝑡·𝐶𝑔𝑟𝑖𝑑,𝑡− ∀t 𝑃𝑎𝐹𝐹𝑅−𝑢𝑝,𝑡·𝐶𝑝,𝑎𝐹𝐹𝑅−𝑢𝑝,𝑡−𝑃𝑎𝐹𝐹𝑅−𝑢𝑝,𝑡·𝐸𝑎𝐹𝐹𝑅−𝑢𝑝,𝑡·𝐶𝑒,𝑎𝐹𝐹𝑅−𝑢𝑝,𝑡 −𝑃𝑎𝐹𝐹𝑅−𝑑𝑜𝑤𝑛,𝑡·𝐶𝑝,𝑎𝐹𝐹𝑅−𝑑𝑜𝑤𝑛,𝑡−𝑃𝑎𝐹𝐹𝑅−𝑑𝑜𝑤𝑛,𝑡·𝐸𝑎𝐹𝐹𝑅−𝑑𝑜𝑤𝑛,𝑡·𝐶𝑒,𝑎𝐹𝐹𝑅−𝑑𝑜𝑤𝑛,𝑡 Eq. 4.11 Page 36 Report Essentially, by minimizing the objective function the aim is to maximize revenues from aFFR and minimize cycles, up to a certain point, and energy bought to the grid. The latter is done by energy arbitrage and represented by the total cost of the energy bought to the grid 𝐸𝑔𝑟𝑖𝑑,𝑡·𝐶𝑔𝑟𝑖𝑑,𝑡, since it is considered that the BESS is installed in a system with a much higher load than its capacity, and BESS will be used to store cheap energy and avoid buyer more expensive one. In the 𝑅 coefficient definition, the second term refers to the availability (power) payment in aFFR upward and the third refers to the energy delivered payment where 𝑃𝑎𝐹𝐹𝑅−𝑢𝑝,𝑡 is the matched power and 𝐸𝑎𝐹𝐹𝑅−𝑢𝑝,𝑡 the requested energy that has to be delivered [kWh/kWmatched]. Finally, the last term of the objective function is used to avoid participating in upward and downward markets in the same period, with the coefficient 0.02 being sized so the term has a minimal impact on the optimization. The following equations describe the energetic constraints, including the evolution of energy stored in the battery, Eq. 4.12, minimum and maximum energy stored, Eq. 4.13, and power constraints, Eq. 4.15, Eq. 4.16. Additionally, to ensure a fair result, it is imposed that the energy has to be the same at the beginning and end of the optimization, Eq. 4.14. 𝐶𝐵𝐸𝑆𝑆,𝑡 =𝐶𝐵𝐸𝑆𝑆,𝑡−1·(1−𝜏)+(𝑃𝑐,𝑡+𝑃𝑎𝐹𝐹𝑅,𝑑𝑜𝑤𝑛,𝑡)·𝜂𝑐ℎ𝑎𝑟−(𝑃𝑑,𝑡+𝑃𝑎𝐹𝐹𝑅,𝑢𝑝,𝑡) 𝜂𝑑𝑖𝑠𝑐 ∀𝑡 ≠0 Eq. 4.12 𝐶𝐵𝐸𝑆𝑆,𝑚𝑎𝑥·𝑆𝑂𝐶𝑚𝑖𝑛 ≤𝐶𝐵𝐸𝑆𝑆,𝑡 ≤𝐶𝐵𝐸𝑆𝑆,𝑚𝑎𝑥·𝑆𝑂𝐶𝑚𝑎𝑥 ∀t Eq. 4.13 𝐶𝐵𝐸𝑆𝑆,0=𝐶𝐵𝐸𝑆𝑆,𝑡𝑚𝑎𝑥 Eq. 4.14 0≤𝑃𝑐,𝑡+𝑃𝑎𝐹𝐹𝑅,𝑑𝑜𝑤𝑛,𝑡 ≤𝑃𝐵𝐸𝑆𝑆 ∀t Eq. 4.15 0≤𝑃𝑑,𝑡+𝑃𝑎𝐹𝐹𝑅,𝑢𝑝,𝑡 ≤𝑃𝐵𝐸𝑆𝑆 ∀t Eq. 4.16 Table 4.6 collects the main parameters of the BESS. The maximum power 𝑃𝐵𝐸𝑆𝑆 and storage capacity 𝐶𝐵𝐸𝑆𝑆,𝑚𝑎𝑥 are irrelevant due to the formulation, that considers the BESS to be installed in a system with very high demand relative to its power and the BESS is not big enough to affect the markets. The capacity-to-power ratio (or hours) is crucial though. Table 4.6. BESS common parameters and capacities used. Round-trip efficiency (AC-AC) 85% [35] 𝜂𝑐ℎ𝑎𝑟 =𝜂𝑑𝑖𝑠𝑐 92.20% Depth of discharge 80% SOCmin / SOCmax 10% / 90% Self-discharge rate (𝜏) 0.2 %/day [36] Cycle life 5,000 [37] Capacities 1-h, 2-h, 4-h, 8-h Distributed Multiport Converters for Renewable Energy Integration Page 37 4.3.3. Grid-based optimization As stated in Section 3.2, the advantages of integrating MPCs into the grid are not limited to the energy distribution but are most important regarding the enhancement of grid operation. For this task, the work presented in [9] has been used. The aim is to analyse the impacts of installing a MPC on the voltage regulation of reduction of grid losses, and the objective function needs to be changed accordingly. For the former, Eq. 4.17 is created to minimize the voltage deviations across the buses, ensuring voltage stability. For the latter, Eq. 4.18 is applied to minimize the power losses in the network. In the results section, the base case scenario consists of running the AC- optimal power flow (AC-OPF) on the raw grid with the losses objective function. 𝑉𝑜𝑙𝑡𝑎𝑔𝑒_𝑂𝐹=min [∑∑(𝑣𝑖,𝑡−1)2 ∀i∀𝑡 ] Eq. 4.17 𝐿𝑜𝑠𝑠𝑒𝑠_𝑂𝐹=𝑚𝑖𝑛 [∑∑∑(𝑖𝑘𝑙,𝑡 2⋅𝑟𝑘𝑙) ∀𝑙∀𝑘∀𝑡 ⋅𝑆𝑏] Eq. 4.18 For the implementation of the MPCs to the grid, it has been considered that a new line is built parallel to the existing switchable line, with the same parameters. Then, the converter is placed at one end of the line creating a new bus for one terminal and connecting the other to the existing bus. The power balance within each multiport converter must be ensured by considering the active and reactive powers exchanged by each terminal. This is expressed mathematically by ensuring the sum of active powers exchanged by the terminals of the MPC equals zero at every time step, Eq. 4.19. The power limits are represented by Eq. 4.20 and can be visualised as the circle in Figure 4.4. The reactive power is further limited, considering the IEEE Standard 1547 [38] which recommends that energy storage DER should have a minimum reactive power capability of ±44% of their nominal power, Eq. 4.21. Figure 4.4. Power limits for each of the ports [38]. ∑𝑝𝑚𝑝𝑐,𝑖,𝑡 = ∀𝑘 0 ∀𝑡 Eq. 4.19 Page 38 Report 𝑝𝑚𝑝𝑐,𝑖,𝑡 2+𝑞𝑚𝑝𝑐,𝑖,𝑡 2≤𝑠𝑛𝑖 2 ∀𝑖,𝑡 Eq. 4.20 −0.44·𝑠𝑏≤𝑞𝑚𝑝𝑐,𝑖,𝑡 ≤0.44·𝑠𝑏 ∀𝑖,𝑡 Eq. 4.21 4.4. Data representation Due to the large amount of data needed to be represented, up to 96 hourly values for each of the 33 buses, it has been decided to use boxplots for the graphical representations. Boxplots provide a visual summary of the data, highlighting the median, quartiles, and potential outliers. The default parameters of Matplotlib (a comprehensive library for creating static, animated, and interactive visualizations in Python) have been used [39], represented in Figure 4.5. Whiskers extend to the maximum and minimum values of the series or up to 1.5 times the Inter Quartile Range (IQR). The box itself represents the IQR, stretching from quartile 1 (Q1) to Q3, with a line inside the box indicating the median of the dataset. Caps are the horizontal lines at the ends of these whiskers, marking the furthest points within the whisker range. Finally, outliers are points plotted individually outside the whiskers. Figure 4.5 Boxplot example. Own source. To represent voltage data effectively, mean voltage profiles with standard deviation are used, as shown in Figure 4.6. This method illustrates the average voltage levels and their variability across different buses. The solid line indicates the mean voltage without MPC, and the dashed line shows the mean voltage with MPC. Shaded areas represent the standard deviation, highlighting the consistency of voltage levels. Distributed Multiport Converters for Renewable Energy Integration Page 39 Figure 4.6. Example of voltage data representation. Page 40 Report 5. Results and discussion By default, in the energy-based optimizations, it has been considered that the DG units are capable of generating despite being isolated from the grid or without an MPC creating it. However, that’s not the case for the grid-following optimizations. Additionally, since there is no clear data on line longitudes and fault probabilities or even if the lines are overhead lines or cables, equal fault probability has been considered for all lines, with an annual failure rate considered of 4 hours, for the entire system. The general data for the simulations is collected in Table 5.1. Table 5.1. Key costs and project lifetime. Converter cost (per terminal) [€/kW] 150 Battery cost [€/kWh] 500 Battery O&M cost [€/kWh/year] 7.5 Cost of ENS (CENS) [€/kWh] 6 Project lifetime [years] 30 Energy bought to the grid [€/MWh] 50 To reduce the computational requirements of the optimization, the number of lines that can fail has been reduced from the total of 32 to 6. These are lines 2, 7, 11, 18, 22, and 25, selected because they are critical lines that would isolate the different bus groupings. 5.1. Expected results It is possible to estimate when the threshold time beyond which is economically feasible to install an MPC for delivering the energy if it has access to the grid, by matching the cost of the converter and the cost of the ENS, Eq. 5.1: 𝐸𝑁𝑆⋅𝐿𝑝𝑟𝑗 ⋅CENS =∑𝐶𝑐𝑜𝑛𝑣−𝑖 𝑖 ⋅𝑃𝑀𝑃𝐶,𝑖 Eq. 5.1 where 𝐶𝑐𝑜𝑛𝑣−𝑖 and 𝑃𝑀𝑃𝐶,𝑖 are the specific cost and power the MPC’s terminal 𝑖, and 𝐸𝑁𝑆 the annual energy not supplied, CENS its cost and 𝐿𝑝𝑟𝑗 the project’s lifespan. Assuming the demand to be constant, which is reasonable for short time periods, we can divide it in power times hours. By isolating hours and substituting the relevant parameters, the threshold failure time can be derived, as shown in Eq. 5.2. Note that the cost of the converter is now expressed as two times the cost of one terminal, in this case, there is not a third terminal with renewables or battery. Additionally, the cost of the energy bought to the grid to supply what otherwise would be ENS is neglected, since it is two orders of Distributed Multiport Converters for Renewable Energy Integration Page 41 magnitude lower than that of the ENS. ℎ=2⋅𝐶𝑐𝑜𝑛𝑣−𝑖 𝐿𝑝𝑟𝑗⋅C𝐸𝑁𝑆 =1h 40𝑚𝑖𝑛 Eq. 5.2 Similarly, it is possible to theoretically obtain the values relating to the economic feasibility of installing a battery to supply the demand in case of fault, Eq. 5.3. For the battery OPEX cost, it is frequent to be described as a fraction of the CAPEX, in this case, 1.5%. These costs are described in Eq. 5.4, where 𝑃𝐵𝐸𝑆𝑆 is the power of the battery [kW] ℎ is the number of hours that can deliver energy at that power and 𝐵𝑐 the cost in [€/kWh]. Again, supposing the demand to be constant along the faulted hours it is divided in power times hours. On the investment costs side, the MPC should now have three terminals, since it is not possible to know in advance which will be the faulted line. Assuming equal cost and power for each of the 𝑖 terminals: ENS⋅𝐿𝑝𝑟𝑗 ⋅CENS =∑𝐶𝑐𝑜𝑛𝑣−𝑖 𝑖 ⋅𝑃𝑀𝑃𝐶,𝑖 +𝐶𝑏𝑎𝑡 Eq. 5.3 𝐶𝑏𝑎𝑡 =𝐶𝐴𝑃𝐸𝑋𝑏𝑎𝑡+𝑂𝑃𝐸𝑋𝑏𝑎𝑡·30=𝑃𝐵𝐸𝑆𝑆·ℎ · 𝐵𝑐+𝑃·ℎ·𝐵𝑐·1.5 100·30 𝐶𝑏𝑎𝑡 =𝑃𝐵𝐸𝑆𝑆·ℎ·𝐵𝑐·1.45 Eq. 5.4 𝑃·ℎ·30·6=𝑃·(3·150+ℎ·𝐵𝑐·1.45) Eq. 5.5 From Eq. 5.5, one can note that the longer the fault duration the more feasible is to install a BESS, since the power electronics cost remains constant. For a fault duration of 4 hours, the 𝐵𝑐 would need to be below 47 €/kWh to be feasible. Considering that the current prices for large-scale BESS are around 500 €/kWh, this suggests that under current market conditions, the installation of BESS is not economically viable for reasonable fault durations. Note that the real value would be below 47 €/kWh since this approximation does not consider discharge and converter losses. 5.2. Single line failure 5.2.1. Without closing any switches or installing MPC Firstly, a simulation is carried out to determine the ENS for a fault at each grid line, without applying any corrective actions to minimize it. This approach helps identify the most critical lines. However, the information provided is limited in scope as the main focus is to understand how the installation of MPC can mitigate the ENS while optimizing its location and power capacity. Page 48 Report 5.4. Failure duration and MPC sizing In this section, the effects of the different time duration of the fault are presented. A single line failure has been considered and a grid-following approach. For a 1-hour fault differences appear between grid-forming and grid-following approaches, which can affect the optimal sizing. In the latter, the power generation of the DG units isolated is lost without an element capable of forming the grid. Thus, the reduction in ENS is higher than that going through the MPC, encouraging its installation. Conversely, under a grid-forming energetical simulation approach, the generation from the DG units will be delivered to the loads regardless of the presence of a strong grid, and the rest of the energy will not be delivered by the MPC since the fault duration is too short for that being economically advantageous, refer to Eq. 5.2. This approach is more relevant in the case of isolating a DG of relatively strong power, thus, a fault in line 22 and converter located in position 35 has been studied. Figure 5.7 shows the obtained results with the only restriction that the power of the converter plus the isolated generation needs to be higher than the isolated demand. In this case, the reduction of ENS combined from the MPC and the wind power plant makes the installation of a converter feasible during all the hours with significant generation. Figure 5.7. Unrestricted grid-following approach for fault at line 22 and MPC in position 35. However, note that around hour 76 these constraints allow the WPP to supply the load with no converter at all. Essentially, the WPP is working in an undesired grid-forming mode. With this in mind, it has been introduced that the combined power of MPC and DG needs to be higher than 110% of the load (A coefficient in Eq. 4.7), and the MPC power Distributed Multiport Converters for Renewable Energy Integration Page 49 needs to be at least 40% of the load power (B coefficient in Eq. 4.8). With this realistic approach considered, the installation of the converter remains feasible in most of the cases, effectively preventing energy wastage and ensuring a more reliable operation. Figure 5.8. A and B coefficient restricted grid-following approach for 1-hour fault at line 22 and MPC in position 35. With the aforementioned A and B coefficients, a simulation has been carried out to represent how this realistic grid-following approach can be applied in previous sections’ scenarios. The optimization is conducted for a 1-hour fault duration, given that the resolution of the code is based on hourly intervals. This approach is expected to not have any effects on the results for fault durations extending beyond one hour and forty minutes. Figure 5.9. PMPC for A and B coefficient restricted grid-following approach for 1-hour fault. Table 5.8 demonstrates how the locations that allow to form the grid in the buses with the most installed capacity DG units are the most benefited by this approach. Location 35, with the ability to form the grid at the bigger generators (located at buses 25 and 33), is Page 50 Report the one with the highest savings-to-investment ratio. However, this does not imply that installing a 26.94 kW MPC at location 35 is a prudent investment if the total duration of faults across all selected lines amounts to just one hour per year; it merely represents the average value. In fact, installing such a converter would not make any impact at all as it would be too small to fulfil the 40% of the load criteria. Table 5.8. Comparison of grid-following approach between DG lost and DG available if the grid is formed. ENS [kWh] PMPC [kW] CENS [€] CMPC [€] Total Cost [€] DG lost case 819.01 0.00 147,422 0 147,422 MPC location 33 780.27 16.57 140,449 4,972 145,420 34 749.51 28.08 134,912 8,424 143,336 35 749.47 26.94 134,904 8,083 142,986 36 742.46 29.75 133,643 8,925 142,568 5.5. BESS revenue in markets In previous chapters, the economic feasibility of installing a battery to deliver energy during system faults was studied. This approach requires maintaining the BESS at full charge, ready to act throughout the year, which may not be the most efficient use of the storage capacity. Considering only this revenue source, the cost of the battery (500 €/kWh) plus power electronics (150 €/kW) is much higher than the cost of the ENS (6 €/kWh · Lprj), Eq. 5.5. After discarding the energy storage purely as a backup system to limit the energy not supplied, its participation in wholesale electricity markets is analysed in this section, both for energy arbitrage and ancillary services, with the results presented in Table 5.9. It is important to note that, since the objective function remains unchanged for each simulation, the battery might be underused or overused in some cases. Specifically, the cycle penalty, designed to avoid excessive degradation, was calibrated for the 4-hour battery with aFFR participation, ensuring the BESS is replaced once during the project's lifetime. Distributed Multiport Converters for Renewable Energy Integration Page 51 Figure 5.10. Example of energy arbitrage for a 4-hour battery. Figure 5.10 represents an example of how the energy arbitrage is done, in the context of not participating in aFFR. Note that the penalty for the battery cycles causes it to remain on standby most of the time, averaging a cycle per day in days with price differences. Remarkably, the average cost of the energy discharged is 107 €/MWh, while that of the charged is 36 €/MWh. Table 5.9. Economic analysis of BESS with and without aFFR participation. Battery capacity 1 h 2 h 4 h 8 h Annual Battery Cycles With aFFR 512.36 407.6 296.57 182.81 Without 230.11 218.65 187.07 126.01 Lifespan (years) With aFFR 9.76 12.27 16.86 27.35 Without 21.73 22.87 26.73 39.68 Network Revenues (€) With aFFR 95,597 85,366 68,700 47,841 Without 82,193 77,705 66,404 46,936 aFRR Revenues (€) With aFFR 505,664 325,988 180,628 92,883 Without - - - - Total Revenues (€) With aFFR 601,261 411,354 249,327 140,723 Without 82,193 77,705 66,403 46,935 CAPEX (€/kWh) [35] With aFFR 861 537 446 358 Without 861 537 446 358 CAPEX (€) With aFFR 15,881,086 7,879,692 4,764,431 2,355,215 Without 7,132,337 4,226,864 3,005,256 1,623,489 Lifetime profit (€) With aFFR 5,071,073 4,460,951 2,715,400 1,866,497 Without -4,666,540 -1,895,711 -1,013,145 -215,417 Payback (years) With aFFR 8.59 7.83 10.74 15.26 Without N/A (higher than lifespan) Page 52 Report Despite all BESS being unfeasible with only the revenues from energy arbitrage, represented with not applicable (N/A) values in the payback, it should be noted that for this task the better-suited batteries are the ones with higher Capacity/Power (C/P) ratio, thanks to a lower capacity cost. Even the 8-hour battery is close to achieving a positive lifetime profit. However, considering the project lifespan of nearly 40 years and the lack of consideration for the evolution of money over time or financial costs, the project remains far from being seen as a viable investment. On the other side, all scenarios are feasible with the participation in aFFR, knowing the results of the markets beforehand. The lower the C/P the higher the revenues are from ancillary services, but the most interesting battery is the 2-hour one, due to the significant increase in cost in the 1-hour. 5.6. Electrical simulation To assess the potential of MPC in improving grid performance, several cases will be studied, including partial- (300 kVA) and full-scale converters at the four possible locations, all without line failures. The minimum power to be considered a full-scale converter depends on its location and time period, but 1000 kVA has been used for all cases to ensure a fair comparison. Anyhow, since no faulted lines are considered the MPC role is purely grid performance enhancement, and ENS will not be a factor in this assessment. The results are compared to the base case scenario, which consists of running the AC-OPF on the raw grid with the losses objective function. 5.6.1. Potential for voltage regulation In the base case, voltage drops below 0.95 p.u. in some of the buses. This can be avoided without interrupting the power supply simply by increasing the voltage at the feeder substation, as there is an on-load tap-changing transformer. However, the voltage deviations would still be very high, highlighting the potential to regulate the voltage using a power electronics device such as an MPC. Voltage profiles for a partial-scale and full-scale MPC at the four possible locations are presented in Figure 5.11 and Figure 5.12, respectively, with comparisons to the base case. Distributed Multiport Converters for Renewable Energy Integration Page 53 Figure 5.11. Voltage profiles for 300 kVA MPCs compared to normal operation profiles. Figure 5.12. Voltage profiles for 1000 kVA MPCs compared to normal operation profiles. For the 300 kVA MPCs (Figure 5.9), the voltage profiles indicate an improvement in voltage regulation, although the impact varies depending on the location of the MPC. Specifically, the voltage profiles show a noticeable reduction in voltage drops, particularly in the segments of the network that are furthest from the feeder substation. The standard deviation of the voltage profiles also decreases, suggesting a more stable voltage level across the network. When the MPC power is increased to 1000 kVA (Figure 5.10), the improvements in voltage profiles become even more pronounced. The voltage levels are closer to the nominal value of 1 p.u., and the standard deviations are significantly lower Page 54 Report compared to the base case and the 300 kVA scenarios. It is also important to note that the improvement in voltage regulation from having no MPC to installing a 300 kVA MPC is like the improvement observed when increasing the MPC power from 300 kVA to 1000 kVA. However, the converter cost associated with the second case is 7/3 times higher for achieving a comparable level of improvement. This highlights the need for a cost-benefit analysis when considering the power rating of MPCs for voltage regulation, showing that a partial scale is more advantageous for this task. Table 5.10. Mean voltage and SD for different MPC locations and power ratings. Power [kVA] MPC location Mean voltage [p.u.] Standard deviation [p.u.] 0 N/A 0.9785 0.0129 300 33 0.9842 0.0105 34 0.9863 0.0101 35 0.9844 0.0102 36 0.9845 0.0109 1000 33 0.9919 0.0074 34 0.9942 0.0087 35 0.9921 0.0082 36 0.9902 0.0088 5.6.2. Potential for loss reduction The 1.92% of losses under normal operation conditions can be decreased down to 1.37% for the 1000 kVA-MPC 35 case. Considering the annual consumption of 24 GWh, this represents 133 MWh or 11625 € in savings annually, assuming 87.10 €/MWh (average SPOT market price in 2023 in Spain), which would be even higher due to other tariffs and taxes. Considering the converter cost of 300,000 € and its 30-year lifetime, lifetime line losses savings are higher than the converter’s cost. However, the fact that the line losses are lower does not mean that the overall system losses are lower since the internal losses of the converter must be considered too. In this case, the converter’s internal losses are likely to outweigh the improvement in line losses. Additionally, other costs associated with the converter, mainly the construction of the new line, could further complicate the feasibility, despite the possibility of replacing the switch in the existing line or the necessity to build a new line anyway which would eliminate this cost. Overall, in a scenario with relatively low base case losses, the investment in an MPC to operate as an SOP is not economically feasible. Distributed Multiport Converters for Renewable Energy Integration Page 55 Table 5.11. Impact of closing switches and MPC location and size on power line losses. Switches closed MPC location PMPC [kVA] Power lines losses [%] None None 0 1.92 33 1.55 34 1.54 35 1.59 36 1.84 34 & 35 1.31 All 1.20 None 33 300 1.56 1000 1.47 34 300 1.53 1000 1.47 35 300 1.53 1000 1.37 36 300 1.80 1000 1.80 5.6.3. The impact of batteries Combining an MPC plus BESS is expected have a positive impact on the technical parameters of the grid, on the line loading and, consequently, losses. Focusing on energy arbitrage, BESS absorbs energy from the grid when prices are low, these low prices appear under low demand periods and/or high penetration of cheap sources, VRES. For that, when BESS is charging line loadings are either low and are increased or high (due to VRES) and BESS absorbs part of them. On the other hand, BESS discharge under high prices scenario, typically on peak demand periods. In this case, the energy required to import from the main feeder is lower thanks to the injection of energy by the BESS. Considering the relation between active power and voltage in MV and especially LV distribution grids, having a more constant flow of active power should facilitate voltage regulation too. Page 56 Report 6. Economic assessment This chapter presents the budget developed for this thesis, accounting for human resources, equipment, and software used. The human resources costs are based on the labour hours dedicated to the thesis, calculated from the time of enrollment until the final submission date. For a master’s thesis worth 15 ECTS, the expected workload is approximately 375 hours. The average hourly rate is 15 €/h, summing up to a total of 5,625.00 €. Additionally, the electricity costs for running simulations on a laptop with a 45 W power consumption are included. With a total energy consumption of 16.90 kWh and an electricity cost of 0.20 €/kWh, the total cost for electricity is 3.38 €. The laptop used for this project costs 900 € and is assumed to be amortized over 5 years, leading to an annual amortization cost of 180 €. Given the 5-month duration of this project, the total amortization cost is 75 €. Transportation costs include private car use and public transport for commuting. The private car is used for 600 km with a rate that includes fuel and amortization of 0.22 €/km, totalling 132.00 €, and public transport costs include two tickets at 42.70 €/ticket, totalling 85.40 €. Table 6.1. Budget for the development of the thesis. Description Units Unit price Total cost [€] Labour hours 375 15.00 €/h 5,625.00 Electricity consumption 16.90 kWh 0.20 €/kWh 3.38 Laptop 5 months 15 €/month 75.00 Private car 600 km 0.22 €/km 132.00 Public transport 2 tickets 42.70 €/ticket 85.40 Total 5,920.78 VAT (21%) 1,243.36 Final cost 7,164.14 The cost of accessing literature databases such as IEEE and Elsevier is assumed by the university, as well as the office 365 pack. Thus, the total cost for the development of this thesis is 5,920.78 €. Including value-added tax (VAT) (21%), the total cost would be 7,164.14 €. Distributed Multiport Converters for Renewable Energy Integration Page 57 7. Environmental assessment The two detected sources of CO2 emissions that are a direct consequence of the development of this work are electricity consumption and transport. During the February 2024 to June 2024 period, emission factors of the Spanish electrical mix were record low thanks to the large amounts of PV and wind generation and the typical mild spring weather that causes a reduction of demand in comparison to summer and winter, with an average daily value of 85 g CO2e/kWh [40], see Table 7.1. Table 7.1. Specific emission factors for the Spanish electrical mix from 2019 to June 2024 [40]. 2019 2020 2021 2022 2023 Feb-June 2024 Specific emissions [g CO2e/kWh] 193 145 140 163 122 85 Considering that the average power consumption of the laptop is 45 W, the total hours of work, and the transport-specific emissions of the used transport sources [41], the total emissions of the thesis are collected in Table 7.2. Table 7.2. Total CO2 emissions resulting from the development of this thesis. Quantity Specific emissions Total emissions [kg CO2e] Electricity consumption 16.90 kWh 85 g CO2e/kWh 1.44 Private car (per commute) 20 km 120 g CO2e/km 2.40 Metro (per commute) 12 km 30 g CO2e/km 0.36 Interurban bus (per commute) 140 km 33 g CO2e/km 4.62 Transport total 30 commutes N/A 221.40 Total emissions 222.84 Thus, the total emissions for the thesis amount to 222.84 kg CO2e. This assessment provides a clear picture of the environmental impact associated with the computational and transport activities during the development of this thesis, highlighting that electric emissions are negligible compared to transport and working from home and the use of public transport can help reduce emissions. Despite the direct emissions associated with the development of this thesis, this research supports the transition towards a cleaner and more sustainable energy system and the contribution may help decarbonize the energy sector in the future. Page 64 Report [24] I. Renewable Energy Agency, Electricity storage valuation framework: Assessing system value and ensuring project viability. 2020. [Online]. Available: www.irena.org [25] R. Poudineh, T. Jamasb, and Oxford Institute for Energy Studies, Electricity supply interruptions : sectoral interdependencies and the cost of energy not served for the Scottish economy. 2017. [26] P. Linares and L. Rey, “The costs of electricity interruptions in Spain: Are we sending the right signals?,” Energy Policy, vol. 61, pp. 751–760, Oct. 2013, doi: 10.1016/j.enpol.2013.05.083. [27] B. Chen, “Fault statistics and analysis of 220-kV and above transmission lines in a southern coastal provincial power grid of China,” IEEE Open Access Journal of Power and Energy, vol. 7, no. 1, pp. 122–129, 2020, doi: 10.1109/OAJPE.2020.2975665. [28] M. Bindi, M. C. Piccirilli, A. Luchetta, and F. Grasso, “A Comprehensive Review of Fault Diagnosis and Prognosis Techniques in High Voltage and Medium Voltage Electrical Power Lines,” Energies, vol. 16, no. 21. Multidisciplinary Digital Publishing Institute (MDPI), Nov. 01, 2023. doi: 10.3390/en16217317. [29] “Pyomo.” Accessed: Jun. 28, 2024. [Online]. Available: https://www.pyomo.org/ [30] “Ipopt: Documentation.” Accessed: Jun. 28, 2024. [Online]. Available: https://coin- or.github.io/Ipopt/ [31] “HiGHS - High-performance parallel linear optimization software.” Accessed: Jun. 30, 2024. [Online]. Available: https://highs.dev/ [32] S. H. Dolatabadi, M. Ghorbanian, P. Siano, and N. D. Hatziargyriou, “An Enhanced IEEE 33 Bus Benchmark Test System for Distribution System Studies,” IEEE Transactions on Power Systems, vol. 36, no. 3, pp. 2565–2572, May 2021, doi: 10.1109/TPWRS.2020.3038030. [33] Red Eléctrica de España, “Guía descriptiva - Ser proveedor de servicios de balance”, Accessed: Jun. 27, 2024. [Online]. Available: www.ree.es [34] “Frequency containment reserves (FCR products) - Fingrid.” Accessed: Jun. 27, 2024. [Online]. Available: https://www.fingrid.fi/en/electricitymarket/reserves_and_balancing/frequency-containment-reserves/#technicalrequirements [35] “Utility-Scale Battery Storage | Electricity | 2023 | ATB | NREL.” Accessed: Jun. 29, Distributed Multiport Converters for Renewable Energy Integration Page 65 2024. [Online]. Available: https://atb.nrel.gov/electricity/2023/utilityscale_battery_storage [36] A. A. Kebede, T. Kalogiannis, J. Van Mierlo, and M. Berecibar, “A comprehensive review of stationary energy storage devices for large scale renewable energy sources grid integration,” Renewable and Sustainable Energy Reviews, vol. 159. Elsevier Ltd, May 01, 2022. doi: 10.1016/j.rser.2022.112213. [37] “LiFePO4 Battery Cycle Life & Durability.” Accessed: Jun. 03, 2024. [Online]. Available: https://ecotreelithium.co.uk/news/lifepo4-battery-cycle-life-and-durability/ [38] 1547.9-2022 - IEEE Guide for Using IEEE Std 1547 for Interconnection of Energy Storage Distributed Energy Resources with Electric Power Systems. [39] “Matplotlib — Visualization with Python.” Accessed: May 13, 2024. [Online]. Available: https://matplotlib.org/ [40] “REData - No renovables detalle emisiones CO2 | Red Eléctrica.” Accessed: Jun. 30, 2024. [Online]. Available: https://www.ree.es/es/datos/generacion/norenovables-detalle-emisiones-CO2 [41] “Emisiones de CO2 por modos de transporte motorizado | Idae.” Accessed: Jun. 30, 2024. [Online]. Available: https://www.idae.es/en/node/32886 [42] “Objetivos de Desarrollo Sostenible | Programa De Las Naciones Unidas Para El Desarrollo.” Accessed: Jun. 21, 2024. [Online]. Available: https://www.undp.org/es/sustainable-development-goals