scieee AI-readable full text Open interactive document viewer

Instantaneous power control on a PV energy generation system using a VSC

Sans Esqué, Maria

Abstract

The aim of this Thesis is to study and analyze the active and reactive power control exchange of a Two-phase VSC used in grid connected PV energy generation systems. The control scheme includes a PLL, a current loop and a reference computation using a DC voltage regulator. The PV panels power control is also discussed as well as many MPPT techniques being the Perturb & Observe method implemented on the model. Furthermore, physical limitations of the de- vices and grid voltage sags involving positive- and negative-sequence components are discussed while its control is implemented and analyzed using a current saturation with an anti-windup and a sequence analyzer respectively

Full text

Degree Thesis Bachelor’s degree in Industrial Technologies Engineering (GETI) Instantaneous power control on a PV energy generation system using a VSC June 26, 2023 Author: Maria Sans Esqué Director: Daniel Westerman Spier Co-director: Marc Cheah Mañé Summons: June 2023 Escola Tècnica Superior d’Enginyeria Industrial de Barcelona It is the things supposed to be impossible that interest me. I like to do things they say cannot be done. Mária Telkes "The queen of sun", 1942 Instantaneous power control of a PV system page 1 Acknowledgements First of all, I would like to express my deepest gratitude to my Thesis director, Daniel Westerman Spier, for his support and guidance during this seven months. I am really grateful for his valuable insights, unwavering support and commitment to my academic growth. His experience and knowledge on the subject has been truly inspiring and he has challenged and encouraged me to learn more pushing me to reach my full potential. Thank you Daniel for all the meetings, help and motivation, your contribution will make a difference throughout my career. I would also like to thank Marc Cheah Mañé for his advice and help he has provided during the last few weeks. Moreover, I would like to thank my family for their unconditional love and commitment on not only on this Thesis and studies but also on all the aspects of my life. (CAT) Vull donar les gràcies al tiet Palau, que ni que ja no sigui aquí, segueix animant-me cada dia a ser una persona millor. Finally, I would also like to express my gratitude to my flatmates Maria, Pau, Àgueda and Marta for being always there for me; to Tibó and Uri for their inconditional love and support and finally to all my friends, fellow classmates and everybody present during the development of this Thesis. Instantaneous power control of a PV system page 3 Abstract The aim of this Thesis is to study and analyze the active and reactive power control exchange of a Two-phase VSC used in grid connected PV energy generation systems. The control scheme includes a PLL, a current loop and a reference computation using a DC voltage regulator. The PV panels power control is also discussed as well as many MPPT techniques being the Perturb & Observe method implemented on the model. Furthermore, physical limitations of the devicesandgrid voltagesagsinvolvingpositive-andnegative-sequencecomponents are discussed while its control is implemented and analyzed using a current saturation with an anti-windup and a sequence analyzer respectively. Resum L’objectiud’aquestTreballdefidegrauésestudiar i analitzarcontroldepotènciaactiva i reactiva d’un convertidor VSC bifàsic utilitzat en sistemes de generació d’energia fotovoltaica connectats a la xarxa. L’esquema de control inclou un PLL, un llaç de corrent i un càlcul de referència mitjançant un regulador de tensió de continua. També s’analitza el control de potència dels panells fotovoltaics, així com algunes tècniques MPPT implementant el mètode ’Perturb & Observe’ en el model. A més, es discuteixen les limitacions físiques dels dispositius i les caigudes de tensió de la xarxa que impliquen components de seqüència positiva i negativa. S’implementa i analitza el seu control mitjançant una saturació de corrent amb un anti-windup i un ’Sequence analyzer’ respectivament. Resumen El objetivo de este Trabajo de fin de grado es estudiar y analizar el control de potencia activa y reactiva de un convertidor VSC bifásico utilizado en sistemas de generación de energía fotovoltaica conectados a la red. El esquema de control incluye un PLL, un lazo de corriente y un cálculo de referencia utilizando un regulador de voltaje de contínua. También se analiza el control de potencia de los paneles fotovoltaicos, así como algunas técnicas MPPT, siendo el método ’Perturb & Observe’ implementado en el modelo. Además, se discuten las limitaciones físicas de los dispositivos y las caídas de tensión de la red que involucran componentes de secuencia positiva y negativa. Se implementa y analiza su control utilizando una saturación de corriente con un anti-windup y un ’Sequence analyzer’ respectivamente. Instantaneous power control of a PV system page 5 Glossary •AC: Alternating Current •BJT: Bipolar Junction Transistor •BOE: Boletín Oficial del Estado •CSC: Current Source Converter •DC: Direct Current •DDSRF: Double Decoupling Synchronous Reference Frame •ECTS: European Credit Transfer and Accumulation System •ETSEIB: Escola Tècnica Superior d’Enginyeria Industrial de Barcelona •FOCVM: Fractional Open Circuit Voltage Method •GETI: Industrial Engineering Degree, (CAT) Grau en Enginyeria en Tecnologies Industrials •GHG: Greenhouse Gas •GTO: Gate Turn-off Thyristor •IC: Incremental Conductance •IEEE: Institute of Electrical and Electronic Engineers •IGBT: Insulated Gate Bipolar Transistor •IMC: Internal Model Control •LED: Light-emitting Diode •MOSFET: Metal Oxide Semiconductor Field-Effect Transistor •MPP: Maximum Power Point •MPPT: Maximum Power Point Tracking •MUEE: Master’s Degree in Energy Engineering, (CAT) Master Universitari en Enginyeria de l’Energia. •MUEI: Master’s Degree in Industrial Engineering, (CAT) Master Universitari en Tecnologies Industrials •P: Active power •PAS: Administrative and Services personnel (CAT) Personal d’Administració i Serveis page 12 Degree Thesis 39 Sag type C. ......................................... 61 40 From top to down and from left to right: AC and DC voltages and currents, positive- and negative-sequence components of the AC voltage and current and active and reactive positive- and negative-sequence components powers during voltage sag type C in the improved system using a sequence analyzer to decouple the positive- and negative-sequence components control. .............. 63 41 Current saturation during voltage sag type C with the decoupled positive- and negative-sequence components control. ........................ 64 42 Positive-sequence component of the AC active power versus the instantaneous AC active power and the DC power during a voltage sag type C using the decoupled positive- and negative-sequence components control. ............. 64 List of Tables 1 Gantt diagram. ...................................... 7 2 Types of fully controlled semiconductors. ....................... 17 3 Types of PV panels.[3] .................................. 21 4 Case study parameters. .................................. 53 5 Reference power variations in the system disregarding the DC side of the VSC. . 53 6 Irradiance and temperature variations. ......................... 56 7 Simulink year wages. ................................... 65 8 Material cost amortization. ................................ 66 9 Detailed energetic cost. .................................. 66 10 Total budget for the hypothetical scenario: professional task. ............ 66 11 Total budget for the real case: degree Thesis. ..................... 67 12 GHG emissions depending on the energy source [4]. ................ 71 13 ETSEIB and UPC collectives analyzed by gender. ................... 74 13 Instantaneous power control of a PV system page 15 1 Introduction 1.1 Origin of the project and motivation The human world is growing. Every year there are more people with more needs and consuming more energy so the industry is growing too. The population is increasing at a rate of 1% annually while resource depletion is growing even more, up to a rate of 3% annually [5]. However, our main energy source, the fossil fuel reserve, is not enough to maintain this level of life during a lot of years combined with the fact that fossil fuels are the main contribution to the emission of the greenhouse gases (GHG) and a huge list of negative externalities involving not only environmental but social aspects. In this way, the global climate emergency is a huge challenge against the humanity that has to be faced, dealt with and mitigated in order to ensure the survival of our world the way we know it. While many efforts have been done in order to mitigate this big problem, none of them are enough to stop this urgent disaster. A huge change in our society must be done in many different fields involving social awareness, degrowth on some economical sectors, a global effective industrial plan and energy transition from fossil fuels to renewable energy as some examples. The energy transition to renewable energy systems involves not only a change on the energy production but also structural changes to the grid and the way of consuming that humanity is used to. A need for a decentralized energy production with small-scale and regional production and transmission with active consumers and new electrified sectors in the industry[6]. Consequently a huge research in smart-grids and power electronics is needed in order to make possible this transition ensuring grid codes as voltage and frequency stability or fault control. This requires a huge grid control not only of the general network but also of the individual energy generators and consumers. Together with the development of smart-grids, the search for new green energy sources has intensified in order to change our energy generation to a clean and unlimited alternative. Solar energy and wind energy production are the main green energy sources together with geothermal energy or the tidal power for example. PV systems and wind power generation systems are based on power electronics which allow them to perform a controlled and adaptative power exchange. For all these reasons, this Thesis is an introduction to control and design of descentralized PV systems or, in general, renewable generation systems connected to the grid in order to study the general control scheme for power electronic devices, in particular the voltage source converter (VSC) and the regulation of active and reactive power control in the instantaneous power theory frame. page 16 Degree Thesis 1.2 Objectives of the project The objectives of this project can be divided into general and specific objectives. 1.2.1 General Objectives On the one side, the main objective of this project is to control the active and reactive power exchange in a two.level VSC regarding a medium-low scale grid connected PV energy generation system. Study the control performance and great quality power production from an electric engineering perspective. 1.2.2 Specific Objectives On the other side, the specific objectives are connected to each part of the project, pointing out the key aspects of the Thesis itself. •Study the concept of smart grid and its features as well as their application in renewable energy generation. •Understand the principles of the Park and Clarke transformations and their usage in the control of active and reactive power. •Implement the average model of a two-level VSC. •Analyze the control scheme for renewable generation systems involving the different controls and loops: PLL, DC voltage regulator and the MPPT among others. •Identify different faults that can happen to the grid as well as different control schemes in order to manage those faults. •Simulate the system studied using MATLAB/Simulink®in order to validate the theory and models developed as well as its performance in front of different grid faults. 1.3 State of the art and previous requirements In order to be able to understand and develop the general and specific objectives of this Thesis it necessary to understand what has been previously developed in the different fields involved in this work. Not only technical knowledge about the kind of project is going to be developed but also how to execute and implement it. These previous requirements are organized and explained next. Firstly, various engineering softwares are needed to elaborate the Thesis. These are, overall, MATLAB/Simulink®. It is a software tool developed by MathWorks used, primarily, for data analysis, numerical computation and simulations in fields like engineering and science. On the one side, MATLAB®is a programming code desgined for scientific computing which provides a wide range of functions and tools designed specificaly for academic and industrial research using an easy syntax, On the other side, Simulink®is a graphical programming environment and simulation tool. It allows to model and simulate dynamic systems in various fields like engineering systems, electrical circuits or control systems among others, sharing the same workspace with MATLAB. In conclusion, they are a basic tool for most engineering students and researchers. Instantaneous power control of a PV system page 17 Nonetheless, the main field of the Thesis is electrical engineering. Basic knowledge of high and medium voltage systems, three-phase networks and the general components of a PV system are fundamental requirements that lead to many other fields: Automatic control and Electronics or power electronics mainly. How to control a system’s variable using PIDs and closed loops and also the basics of the Laplace Transform L(s)are required for the power control, for example. Moreover, a general knowledge of power electronics regarding different types of controlled switches and converters are needed to develop the Thesis. A wider explanation about power electronics, converters, microgrids and PV systems is found below. Power electronics is a field that connects electronics and electrical engineering that deals with conversion, control and manipulation of electrical power using solid-state circuits. It’s aim is to optimize the power efficiency and meet the requirements for user loads by modifying voltages and currents. It is used in diverse fields like energy conservation, uninterruptible power supplies (UPS), process control, factory automation or energy generation and transportation among others. Therefore, nowadays power electronics can be found in many fields such as residential, commercial and industrial applications, automotive and aerospace transportation, telecommunications and generation systems [7]. The key components and devices used in power electronics are created using semiconductors. From simple to complex devices, some of the mostly used semiconductor devices are diodes, transistors, thyristors and all kind of integrated circuits made using combinations of this switches and passive elements such as resistances, inductances and capacitors [7,8] . In Table 2some of the most well known controlled switches are found. Besides, all this complex integrated circuits are used in microgrids. Transistors MOSFET Metal Oxide Semiconductor Field-Effect Transistor BJT Bipolar Junction Transistor IGBT Insulated Gate Bipolar Transistor Thyristors SCR Silicon Controlled Rectifier TRIAC TRIode for Alternating Current GTO Gate Turn-off Thyristor Table 2: Types of fully controlled semiconductors. Microgrids are small-scale power subsystems that control and connect distributed generation, energy storage and local loads [9]. Traditionally these connected only AC links since AC signal was supposed to be the most efficient. However, with the growth of power electronics these grids have evolved to smart grids which connect and control different AC and DC devices. DC systems are gaining interest considering their higher reliability and efficiency, simpler control and renewable energy generation and storage systems. In Figure 1, an example of a microgrid linking AC and DC systems is found. page 18 Degree Thesis Figure 1: Example of microgrid with AC and DC signals. The core components of smart grids are the power converters which are responsible of AC and DC signal conversions. There are many different types of converters depending on their components which can transform the signal from AC to DC, otherwise or both. The four different types of conversions are explained below. •AC/DC Converters or rectifiers The aim of this systems is to generate a DC signal from an AC input. Moreover, these are unidirectional since their working principle are diodes or thyristors. Two different types of rectifiers can be found: half wave or full wave. This type of converters are currently used only on low power applications as the average current provided is not zero. •AC/AC Converters As their name indicates, these type of converters can change the voltage RMS of the AC signal by controlling the power flow. Some examples of AC/AC converters could be Cycloconverters, Matrix Converters or AC choppers. •DC/DC Converters While AC/AC converters change the voltage RMS, DC/DC converters work on the same principle adapted to DC signal: increase or decrease the DC voltage of the input signal. There are two basic types of DC/DC converters: the Buck converters which decrease the voltage and the Boost converters which increase it. A combination of them can also be found being called Buck-Boost converters. Instantaneous power control of a PV system page 19 •DC/AC Converters or inverters Inverters transfer power from a DC source to an AC load. These can be single or threephase converters and can work in different modulation schemes. Some configurations can be full wave bridge, half bridge. More concretely, two types of grid electronic converters have an increasing matter on power electronics: Voltage Source Converters (VSC) and Current Source Converters (CSC) [8,2]. Depending on the power flow’s direction they are named rectifiers, inverters or bidirectional converters. Moreover, they can be classified as phase-controlled since they are synchronized with the grid frequency. Their switching frequency is controlled using distinct modulations such as Pulse Width Modulation (PWM), which is the most commonly used. As stated before, one of the power electronics’ application is on the field of energy generation, to be concrete, in the renewable energy generation area. This field is being more and more significant in the industry due to the climate emergency, the shortage of fossil fuel and as a consequence of all these, the energy transition. The renewable energy source that is used in this project is the photovoltaic energy. This renewable energy technology is gaining acceptance as an energy source. It is a fact that in the last years the number of PV installations has exponentially grown. Besides its low efficiency and the fact that the sun is not controllable, the research and use of this energy source is increasing rapidly [10]. The general structure for a PV system is detailed in Figure 2. It’s main parts are the AC side and the DC side, connected by a power converter. In the AC side, between the converter and the grid, there usually are filtering elements and an AC/AC converter in order to adjust the voltage. In the other side, the DC side connects the DC side of the converter with the PV panels. An essential part of the system is the MPPT (Maximum Power Point Tracking) which controls the current of the PVs in order to follow the maximum power that the PVs can get in every moment. A wider explanation of the MPPT is found in Section 2.10.1. There is also a filtering action. Figure 2: General structure for a PV system. Moreover, in order to understand how this technology works the principle of PV cells must be explained. The PV effect has been known by scientists for more than 150 years. It was discovered by Alexandre-Edmond Bec-querel in 1839 but it was Russel Ohl who invented the solar cell made of silicon. The principle of the PV cells lies on the p-n junction. When the solar irradiation in the form of page 20 Degree Thesis photons strikes the semiconductor this energy creates an electric field between the p and the n sides. This means that an induced current appears and also a voltage between the p and n sides [11]. The PV cell has the capacity to work both with direct and diffuse light so they can generate electricity both in sunny and cloudy days. However, the bigger the solar irradiation is, the better. A PV cell can be modeled like seen in Figure 3. Figure 3: PV cell model. The model consists on a current source, a diode and the shunt Rsand series Rsh resistances inside each cell due to the material, contact and impurities of the p-n junction [11]. The current IPV can be expressed as: IPV =IL−ID−Ish (1) Where IDis the diode’s current that is characterised as: ID=I0"expq(VPV +IPV ·Rs) ηkT −1#(2) Being I0the reverse saturation current of the diode , qthe electric charge, kthe Boltzmann constant, Tthe temperature in [K]and ηthe diode quality factor. The shunt current Ish is defined as: Ish =VPV +IPV ·Rs Rsh (3) Furthermore, there are different types of PV panels. Since their principal manufacturing material is silicon, the types of PV panels depend on how silicon is found. There are also new generation PV cells made of new materials. The types of solar cells are organized as shown in Table 3. Instantaneous power control of a PV system page 21 Mono-crystalline solar panel Rows and columns of single silicon crystal sliced into wafers. They have a high efficiency (18%) and are the more expensive type of PV panels. Polycrystalline solar panel Also referred as multi-crystalline. The solar cells are made of wafers cut from a solid block which contains multiple crystalline fragments of silicon arranged in an irregular manner. Their efficiency lies around 15-17% and they are a bit cheaper than the monocrystalline panels. Thin film solar panel They can be made of many different materials such as: amorphous silicon, gallium arsenide, copper indium gallium selenide or cadmium telluride. They are super thin and flexible. They have an efficiency between 11 and 15% and are the cheapest ones. New technologies Many innovations have been made in order to increase the efficiency of PV panels, decrease their cost and increase their longevity. Some of these new technologies are: bifacial solar, concentrated PV panels, solar tiles or transparent solar panels. Table 3: Types of PV panels.[3] This Thesis develops a PV generation system connected to the grid based on a two-level VSC. page 28 Degree Thesis Figure 8: Example of Park Transformation in a three-phase three-wire system. 2.2 Control scheme The system under analysis is a PV system composed of a VSC which exchanges power between the AC side and the DC side. The AC side is composed of a three-phase three-wire balanced grid connected to the VSC by means of a RL filter. Otherwise, in the DC side the PV panels are connected to the VSC with a parallel capacitor. Moreover, many different controllers are needed to ensure a desired active and reactive power, a constant grid frequency and a maximum current permited by the physical limitations of the system among others. However, to achieve the final version of the project many steps will be presented. Firstly, it necessary to understand what has been previously developed in the different fields involved in this work.. The AC side control consists of a Phase Lock Loop (PLL), a reference computation regarding an active and reactive power reference and the current loop. It also involves the Park transformation and its inverse. Those connect the system with the controllers by transforming the variables from abc reference frame to qd reference frame. It is the most simple control scheme developed. The control scheme for this first section is illustrated in Figure 9. A current saturation can also be implemented between the reference computation and the current loop adjust the reference to the physical limitations of the system devices. Later, the power transfer between the DC side and the converter is added into the previous system. It is characterised as an ideal constant current source in parallel with the filtering capacitor. Now, the reference computation refers to the DC side since the active power PAC and the DC power PDC must be equal, assuming no losses. For that, a DC voltage regulator is implemented. This type of controller is used for generation systems, in this case, assuming a constant DC power. The control scheme for this second version is found in Figure 10. Next, the ideal DC source is replaced by PV panels. The control scheme of the third version is illustrated in Figure11. With the addition of thePV panels a newcontrollerhastobeconsidered, the MPPT. It tracks the maximum power point of the PV panels depending on the irradiance and temperature and it translates it into a reference DC voltage which is used in the DC voltage regulator. Instantaneous power control of a PV system page 29 Figure 9: Grid converter control general scheme considering only the AC side based on the system found in [1]. Figure 10: Grid converter control general scheme for renewable energy generation systems based on the system found in [1]. page 30 Degree Thesis Figure 11: Control scheme of the three-phase grid-tied PV system under study. Figure 12: Complete scheme of the three-phase grid-tied PV system under study regarding a current saturation. Instantaneous power control of a PV system page 31 Finally, a current saturation is added between the reference computation and the current loop in order to limit the reference current according to the physical limitations of the converter. This limitation can be done in different ways depending on the power prioritized: active or reactive power. This saturation is widely explained in Section 2.7. Moreover,the Park transformation is expanded in order to consider both the positive- and negative-sequence components of the AC network, which is very important especially during potential AC unbalanced faults. This detection is done using a sequence analyzer which different approaches are discussed in Section 2.9.2. The control scheme for this last version is shown in Figure 12. 2.3 Voltage Source Converter (VSC) modelling The VSC is based on the switch of different controlled IGBT’s which allows, using discrete states, the conversion of DC to AC current or otherwise. Moreover, a filtering action is needed in both AC and DC sides so as to allow a smooth connection [1]. The control of the switches creates a square wave that, using the appropriate filter, it gets rid of the harmonics, generates the sinusoidal waveform needed and controls the active and reactive power flow. In order to do a better control of the IGBT’s and deal with the harmonics, different types of switching controls have been discovered. One of them is the Pulse Width Modulation or PWM which modulates the width of the pulses comparing a sinusoidal signal with the desired frequency to a triangular carrier signal with the switching frequency [14]. Depending on the amount of switches and phases, there are different types of VSC. In this Thesis, the two-level voltage source converter is used. As seen in Figure 13, it consists on three parallel branches with who IGBT’s each with their middle point connected to the grid via serie inductances a parallel capacitor on the DC side. Figure 13: Example of forced-commuted VSC working as an inverter. However, an average model of the VSC can also present similar responses for the studies perform in this Thesis with a important reduction in the simulation time. This simplified model can be derived decoupling the AC and DC parts of the converter as shown in Figure 14. The AC side is modelled with three AC controlled voltage sources, one for each phase and the DC side is modelled with a controlled current source and a capacitor. It allows the converter control to act directly on the DC current source and AC voltage sources without modulating the signal for the switches. page 32 Degree Thesis Figure 14: Voltage source converter electrical model. In order to ensure the system’s power balance, the active power of the AC side must be equal to the DC power assuming no losses. PAC =PDC =EDC ·IDC (17) 2.4 Voltage equations The AC side of the system regarding the VSC electrical model can be modeled as illustrated in Figure 15. It includes the grid, the equivalent resistor Rland inductance Llof the wiring and filter. Figure 15: AC side electrical model. Assuming a balanced sinusoidal three-wire three-system with a constant frequency, the voltage equation for the AC side in the abc is vz−vl−(vl0−vz0) = Rli+Ll di dt (18) where vzis the instantaneous grid voltage, vlis the instantaneous converter voltage, iis the instantaneous current, Rland Llare the resistance and inductance equivalents respectively and vl0−vz0is the difference between the converter and the grid neutral. Noticing that there is no neutral conductor and the system is balanced, this difference is 0. Moreover, the voltage equation can be expressed in a matrix format as shown below: Instantaneous power control of a PV system page 33    vza vzb vzc   −   vla vlb vlc   =   Rl0 0 0Rl0 0 0 Rl      ia ib ic   +   Ll0 0 0Ll0 0 0 Ll    d dt    ia ib ic   (19) As discussed in Section 2.1, the qd frame is widely and commonly used to control sinusoidal waves. Applying the Park transformation and eliminating the zero sequence, the voltage equations are expressed as: "vzq vzd#−"vlq vld#="RlLlωe −LlωeRl#"iq id#+"Ll0 0Ll#d dt "iq id#(20) where vzq and vzd are the instantaneous grid voltages, vlq and vld are the instantaneous converter voltages, iqand idthe instantaneous currents and ωethe electrical angular velocity. Therefore, the RMS voltage, current and powers can be defined in the qd frame as Vqd =(ˆvq−jˆvd) √2(21) Iqd =(ˆ iq−jˆ id) √2(22) So, the power of a three-phase system can be written as: S=P+jQ = 3VqdI∗ qd = 3(ˆvq−jˆvd) √2·(ˆ iq−jˆ id) √2(23) Where ˆvand ˆvdare the peak voltages for vqand vdrespectively;ˆ iqandˆ idare the peak currents for iqand idand finally Vqd,Iqd,Sare the phasors of vqd,iqd and the apparent power S respectively. The active Pand reactive power Qare defined as [1] P=3 2(vqiq+vdid) Q=3 2(vqid+vdiq) (24) Considering the situation where vd= 0, the active power is directly proportional to iqand the reactive power to idso it simplifies the analysis and control. 2.5 Phase Locked Loop Imposing vd= 0 in the equation 24 mean that the qd frame is well synchronized with the grid angle. The Phase Locked Loop (PLL) is used to guarantee this synchronization. This PLL page 34 Degree Thesis measuresthe electrical angular velocity and controls it. Itdoes that by controlling the vzd voltage using a PI and setting it to 0 to achieve lock. In a synchronous reference frame the structure of the PLL can be illustrated as shown in Figure 16. Figure 16: PLL structure. As stated before, the PLL not only synchronizes the qd frame to the grid but also ensures that vd= 0. Moreover, the decoupling of vdand vqallows an independent control for the active and reactive power which are correlated to iqand idrespectively. Moreover the frequency feed forward must be noticed. This component is added in order to provide an additional means of adjusting the frequency of the output signal based on the error between the reference and the output signal. In order to characterise the PLL PI controller a system linearization must be done assuming the angle error to be small. Therefore, the second order closed loop controller can be written as ˆ θ(s) θ(s)=H(s)ˆ V Kf,P LL(s) s+ˆ V Kf,P LL(s)=2ξP LLωPLLs+ω2 PLL s2+ 2ξPLLωP LLs+ω2 PLL (25) Kf,P LL(s) = KP,P LLs+KI,PLL s(26) Where ˆ Vis the peak voltage of the grid, Kf,P LL(s)is the PI equation in a general form, ξPLL is the dampling ratio which is recommended to be between √2 2and 1 and ωP LL is the AC electrical angular velocity [1]. Therefore, defining the PLL time constant as τPLL =2ξPLL ωPLL (27) the expression for KP,P LL and KI,P LL can be computed as Instantaneous power control of a PV system page 35 Kp,PLL =2ξPLLωP LL ˆ V Ki,PLL =ω2 PLL ˆ V=Kp,PLL τPLL (28) An example of the waveforms used and output by the PLL are shown in Figure 17. Where the PLL is able to track the grid angle of a three-phase three-wire balanced system. It can be seen that the grid angle θP LL goes from 0to 2πrad in a period of 20 ms which correspond to the grid frequency, 50Hz. The ωereminds constant at 2π50 rad/s which also corresponds to the grid frequency. It can be noticed that the θP LL computed grid angle from the PLL has a lack of 90°with respect to the grid angle. This is explained considering the qd frame used in this Thesis rotates in a different way than the grid. In general computations of the qd frame the q axis coincides with the βaxis when θ= 0°from the Clarke transformation and the d axis with the αaxis. However, in the Park transformation considered in this Thesis the qaxis coincides with the αaxis and the daxis is delayed 90°to the αaxis. A geometrical interpretation of the Park transformation used is found in Figure 6. Since the PLL controls vd, the angle computed will have a lack of 90°with respect to the αor aaxis, which coincides with the delay of the d axis explained above. Figure 17: θPLL and ωeobtained from the Phase Lock Loop in a three-phase three-wire balanced system. Since the aim of the PLL is to track the grid frequency a change on the grid frequency must be considered in order to prove that the PLL works properly. In Figure 18, is illustrated how it affects to apply an increase of 10 Hz, from 50 to 60 Hz. As it is shown, between t= 0.3s and t= 0.7s the Vabc curves and θlines are closer among them respectively. Regarding to the electrical angular velocity, there is a transient at t= 0.3s and t= 0.7s where the frequency changes from 50 to 60 Hz or otherwise but when steady state is achieved the ωeis constant at 2π50 rad/s or 2π60 rad/s. This shows a correct tracking of the grid frequency. page 36 Degree Thesis Figure 18: θPLL and ωeobtained from the Phase Lock Loop in a three-phase three-wire balanced system with a change on the frequency from 50 to 60 Hz from t= 0.3s to t= 0.7s . In order to generally study the transient at t= 0.3s and t= 0.7s, Figures 19 and 20 illustrate a zoom of Figure 18 at those instants. On the one side, in Figure 19, one can see how before the fault, the PLL is capable of following perfectly the grid frequency. The grid period is T= 20 ms which corresponds to the grid frequency 50 Hz. The PLL angle’s period before the fault is also T= 20 ms. However, just after the fault, while the grid period is now T= 16.67 ms corresponding to the new grid frequency, 60 Hz; the angle θcomputed by the PLL does not match the grid angle. It’s seen in Figure 18 how there is a transient of about t= 0.16 s on the PLL angle computation so, therefore, during the transient, the PLL is not able to compute the correct grid angle, the ωPLL keeps decreasing until it reaches the grid frequency. On the other side, before t= 0.7s the PLL is able to follow the grid frequency. It is seen in Figure 20 how the grid period is the same as the period for the PLL angle, T= 16,67 ms which corresponds to the grid frequency, 60 Hz. However when the grid returns to the initial frequency 50 Hz another transient of about t= 0.16 s takes place until the ωP LL is stabilized at ωPLL = 100πrad/s, the corresponding electrical angular velocity at f= 50 Hz. Instantaneous power control of a PV system page 37 Figure 19: Zoom on t= 0.3swhere the grid frequency changes from 50 to 60 Hz from Figure 18. Figure 20: Zoom on t= 0.7swhere the grid frequency changes from 60 to 50 Hz from Figure 18. page 44 Degree Thesis ++ + Figure 25: DC voltage regulator and reactive power controller (id). In Figure 25, the general scheme of the DC voltage regulator and the reactive power reference computation, i∗ dis illustrated. It consists on a control of E2with a feed-forward E∗ DC2scheme and a PI controller. E2is proportional to the energy stored in the DC capacitor. With the proportional controller P∗ cis computed. Adding the DC power before the capacitor we obtain the total DC power of the VSC: P∗=P∗ C+PDC (41) Where P∗is the reference DC voltage of the VSC, P∗ Cis the power stored in the capacitor and PDC is the actual power of the DC side before the power capacitor (PDC =EDCIDC). The power stored in the capacitor is described as: PC=d dt(1 2CDCE2)(42) Where CDC is the capacity of the capacitor. The capacitor power equation in the Laplace domain is: PC(s) = 1 2CDCE2s(43) Using this last equation and the general equation for a second order closed loop transfer function, the PI controller constants, KP,DC and KI,DC, can be calculated as [1] E2 E2∗(s) = H(s) = sKP,DC +KI,DC 1 2s2CDC +sKP,DC +KI,DC =2sξDCωe,DC +ω2 e,DC s2+ 2sξDCωe,DC +ω2 e,DC (44) where ξDC is the dumpling ratio and ωe,DC is the electrical angular velocity for the DC voltage regulator. KP,DC and KI,DC are defined as: Instantaneous power control of a PV system page 45 KP,DC =CDCξDCωe,DC KI,DC =CDCω2 e,DC 2 (45) Moreover, the DC voltage regulator must be slower than the current controller in order to assure stable system response [1]. 2.9 Grid faults The grid considered for this Thesis is an ideal three-phase three-wire and balanced grid. This makes the control of the PV system easier since grid-connected power converters are acutely sensitive to voltage disturbances or grid faults so the control could not work on distorted conditions. So, in presence of voltage disturbances what is desired is to attenuate them in order to get rid of their effects [2]. These voltage disturbances can occur in the grid in many different occasions such as a huge problem on the grid generation systems or a problem during the grid. Either case, this faulty voltages can be understood as a summation of unbalanced harmonic components. Organizing this components into positive-, negative- and zero-sequence, the three-phase voltage vector is written as [2] vabc =   va vb vc   =∞ X n=1 (v+n abc +v−n abc +v0n abc)(46) with v+n abc =V+n   cos(nωt +θ+n) cos(nωt −2π 3+θ+n) cos(nωt +2π 3+θ+n)  (47) v−n abc =V−n   cos(nωt +θ−n) cos(nωt −2π 3+θ−n) cos(nωt +2π 3+θ−n)  (48) v0n abc =V0n   cos(nωt +θ0n) cos(nωt −θ0n) cos(nωt +θ0n)  (49) Where +n,−nand 0nrepresent respectively the positivenegative- and zero-sequence of the nth harmonic if the voltage vector where the zero-sequence coincides with the zero axis of the Clarke and Park transformations. Since in PV systems the Park transformation is widely used, it is convenient to write these equations in the qd frame. page 46 Degree Thesis vqd = [Tqd]vabc =r3 2V+1 "cos(ωt) sin(ωt)#+r3 2Vn"cos(nωt −θ′) sin(nωt −θ′)#(50) Where V+1 refers to the positive sequence at the fundamental frequency, nrefers to the nth harmonic being either positive or negative and θ′to the angular position of the qd rotating reference frame. It can be noticed that the zero-sequence or zero axis has not been considered. This happens since grid faults involving zero-sequence are not considered on this Thesis. A geometrical interpretation of the positive- and negative-sequence components at the fundamental frequency is found in Figure 26. Figure 26: Geometrical representation of the positive- and negative-sequence components at the fundamental frequency [2]. Three-phase power converters used in PV systems inject positive-sequence currents at the fundamental frequency into the grid. However, there are some cases where negative-sequence and/or harmonic currents are injected into the grid. This can be done in order to compensate an unbalanced grid voltage or to avoid power oscillations to protect the power converter, for example [2]. So that, according to symmetrical components theory [18], identifying the positive- and negative-sequence components at the fundamental frequency is an important task to do in order to synchronize the system and control it in presence of grid faults. Therefore, the Fortescue transform is used to obtain the positive-, negative- and zero-sequence components of a balanced or unbalanced three phase sinusoidal voltage [19]. This transform is shown below. V+−0(a)=    V+ a  V− a  V0 a   =1 3   1α α2 1α2α 1 1 1       Va  Vb  Vc   (51) Whereα=ej2π/3= 1∠120°isthe Fortescue operator and  V+ a, V− aand  V0 athe positive-, negative- and zero-sequence components at the fundamental frequency referred to the aphase. This transformation is also valid for currents. Instantaneous power control of a PV system page 47 2.9.1 Types of voltage sags Faulty three-phase voltages can be generically understood as a summation of unbalanced harmonic components. As stated in Section 2.9, in PV systems, using a VSC a correct detection and control of the positive-, negative-, and zero-sequence components at the fundamental harmonic allow an attenuation of these grid faults. There are different types of grid faults depending on many aspects such as their duration or the affected parameter. In this Thesis transient grid faults are considered. Transient grid faults, also called voltage sags o voltage dips are a reduction of the grid voltage between 10 and 90% of the nominal value during a very short period of time. Generally, between half a cycle and a few seconds [2]. The cause of these are faults to ground, short-circuit or transformer connections. In this Thesis two different types of voltage sags following the ABC classification of voltage dips [20], sag type A and sag type C, are being considered and explained below. The characteristic voltage DV ∗is the product of the nominal voltage of the grid and a factor which rates the reduction of the voltage. Moreover, propagation of faults along the grid should be considered. Figure 27: Sag type A. Three-phase fault and three-phase-to-ground fault. A voltage sag type A can be explained as a three phase fault or a three-phase-to-ground fault. In practice, this fault decreases equally the three phases heading to a balanced three-phase system with a lower RMS. So that, the fault has only positive-sequence and it can be controlled after the transient as without fault. The sag type A propagates as a sag type A along AC-AC converters and AC-DC converters. An illustrated sag type A is found in Figure 27. On the other side, a voltage sag type C happens when two phases are connected for an instant. It can also be seen as a propagation of a sag type B which is a single-phase to ground fault. Since an AC/AC converter is not considered on the general scheme, the sag C happens on the grid directly. The imaginary part of those phases suffer the reduction of voltage.Thus, a negativesequence is introduced as shown in Figure 28. With this negative-sequence the control using the instantaneous voltage vabc and currents iabc does not work properly. Many different approaches have been developed to control both positive and negative, even zero-sequence voltages. Those would have to adapt the PLL to control the positive voltage v+1 q, the current computation to qd frame to decouple both positive- and negative-sequence currents and decouple the current loop page 48 Degree Thesis Figure 28: Sag type C. Phase-to-phase fault. to two different current loops: one for the positive-sequence and another one for the negativesequence. An approach on positive- and negativesequence computing is given in Section 2.9.2. 2.9.2 Positive+ and negativesequence faults: Sequence analyzer AssumingAC inductancesand resistances symmetrical, the system canbe decoupledintopositive- , negative- and zero-sequence. Since the aim of the controller is to control active and reactive power, the instantaneous active and reactive power of positive and negative-sequences in the qd frame can be derived as: "p q#="¯q+ ˜q ¯p+˜ d#="(v+ qi+ q+v+ di+ d+v− qi− q+v− di− d) (v+ di+ q−v+ qi+ d+v− di− q−v− qid−)#+ sin(2θ)"(v+ qi− d−v+ di− q+v− di+ q−v− qi+ d) (v+ qi− q+v+ di− d+v− qi+ q+v− di+ d)# +cos(2θ)"(v+ qi− q+v+ di− d+v− qi+ q+v− di+ d) (v+ qi− d−v+ di− q+v− di+ q−v− qi+ d)#(52) Where the sinus and cosinus therms of the equations are the oscillation parts of the instantaneous powers. Without a positive- and negative-sequence components controller, the magnitudes will experiment a voltage ripple of 2θHz and an electric torque pulsation [18]. In order to decouple this positive- and negative-sequence components and control them correctly, many methods have been developed. Double Decouple Synchronous Reference Frame (DDSRF) is based on the fact that the negative-sequence component appears as a second-order harmonic on the positive qd frame and the positive-sequence as a second-order harmonic on the negative qd frame. This, combined with a low-pass filter is used to decouple these two sequence components and suppress high-frequency oscillations [18]. While it is a nice method to decouple the sequence components, it can be hard to implement. Therefore another method is taken into account: the sequence analyzer. The sequence analyzer or so-called Signal delay cancellation is based on the fact that in the αβ frame the positive- and negative-sequence components in the αaxis coincide while the βaxis Instantaneous power control of a PV system page 49 is ahead or delayed for 90°, positive- or negative-, which corresponds to a quarter part of the period. Then, expressing the voltages in the αβ frame "vα(t) vβ(t)#="v+ α(t)v− α(t) v+ β(t)v− β(t)#="v+cos(ωt +σ+) + v−cos(−ωt +σ−) v+sin(ωt +σ+) + v−sin(−ωt +σ−)#(53) And delaying the signal for a quarter part of the period "vα(t−T 4) vβ(t−T 4)#="v+sin(ωt +σ+)−v−sin(−ωt +σ−) −v+cos(ωt +σ+) + v−cos(−ωt +σ−)#(54) So in a matrix from the positive- and negative-sequence components can be calculated as      v+ α(t) v+ β(t) v− α(t) v− β(t)      =1 2     1 0 0 −1 0 1 1 0 1 0 0 1 0 1 −1 0           vα(t) vβ(t) vα(t−T 4) vβ(t−T 4)      (55) Positive- and negative-sequence components in the qd reference frame can be computed using the rotational matrix described in Section 2.1.2 with θor −θrespectively. Finally, it must be stated that at the starting and finishing moment of a voltage sag this method will have a larger transient than the DDSRF and also a time delay of T/4[18]. 2.10 Renewable energies approach: PV panels PV panels energy generation depend mostly on the irradiation of the sun and the temperature of the PV. This irradiation value depend not only on the weather but also on the physical distribution of those. For an optimum irradiance capture in the north hemisphere in general, the PVs should be azimuth placed to the south direction and angle elevated around 45°over the horizontal line. PV panels can be fixed on the decided angles or can track the sun motion along the azimuth and vertical angles. Moreover, PV panels’ physical properties must match with the VSC properties in order to connect them. Therefore parallel and series connection of the panels are needed so as to connect the panels to the VSC providing a specific DC voltage and referenced DC power. Following the simple parallel and series association theory connection, parallel association maintain the same voltage but increases the current while on the other side, series association increase the voltage maintaining the same current. Each PV panel have its particular characteristic curves. Those are IP V vs EPV and PPV vs EPV . These curves change depending on the azimuth and the tilt angle as well as the temperature and irradiation magnitude. Irradiance levels affect directly on the generated current in the PVs IP V . The current increases with the irradiation while the voltage is almost not affected. Figure 29 illustrates these variations page 50 Degree Thesis on the PV curves against different irradiations in the proposed PV array studied. 0 100 200 300 400 500 600 700 800 900 1000 Voltage (V) 0 5 10 15 20 Current (A) Array type: AXITEC AC-200M/125-72S; 21 series modules; 3 parallel strings 1 kW/m 2 0.5 kW/m 2 0.1 kW/m 2 0 100 200 300 400 500 600 700 800 900 1000 Voltage (V) 0 5000 10000 15000 Power (W) 1 kW/m 2 0.5 kW/m 2 0.1 kW/m 2 Figure 29: Characteristic PV curves against irradiation variations. Source: MATLAB/Simulink® While irradiance affects directly to the generated current, the changes on the temperature affect the PV voltage following an inverse proportion. As lower the temperature is, higher the voltage is maintaining current levels almost constant. Figure 30 shows the effect on the PV voltage by variations on the temperature. 0 200 400 600 800 1000 1200 Voltage (V) 0 5 10 15 20 Current (A) Array type: AXITEC AC-200M/125-72S; 21 series modules; 3 parallel strings 45 oC 25 oC 15 oC 0 200 400 600 800 1000 1200 Voltage (V) 0 5000 10000 15000 Power (W) 45 oC25 oC 15 oC Figure 30: Characteristic PV curves against temperature variations.Source: MATLAB/Simulink® Instantaneous power control of a PV system page 51 2.10.1 MPPT The maximum power point defined in the characteristic PV curve PP V vd EP V is defined as dP dV = 0 and depends, as stated in the previous section, on the irradiance and temperature. In order to follow the maximum power point of the PV panels a controller must be implemented. The MPPT "Maximum Power Point Tracking" controller is found in the system between the PV array and the VSC. It is implemented by means of a micro-controller or digital processor and it provides a reference voltage E∗ DC or current I∗ DC, depending on the MPPT method, to the VSC so it can regulate the switching frequency (PWM) of the IGBT’s or the v∗ abc and I∗ DC of the electrical model of the VSC. Many MPP following techniques have been developed and implemented. Some of them are stated below [21]: •Perturb & Observe (P&O): The algorithm perturbs the operating voltage to reach the MPP. The voltage keeps changing. It is the most simple algorithm. •Incremental Conductance (IC): It compares the incremental conductance with the instantaneous conductance in a PV system. It increases or decreases the voltage until it reaches the MPP. The voltage remains constant when the MPP is reached. •Fractional Open Circuit Voltage Method (FOCVM): The algorithm is based on the principle that the MPP voltage is always a constant fraction of the open circuit voltage. This fraction of the open circuit voltage is controlled. In this Thesis the implemented MPPT technique is the Perturb & Observe method. In Figure 31, the P&O loop is illustrated. As seen, the method compares the new power to the previous power. The E∗ DC increases or decreases otherwise in order to reach the maximum power point. Figure 31: MPPT flowchart. Instantaneous power control of a PV system page 53 3 Case study The three-phase grid-tied PV system described in the previous section has been simulated using MATLAB/Simulink®. So as to perform a complete analysis of the system many different scenarios have been considered: •System disregarding the DC side of the VSC. •Variations on the PV parameters: temperature and irradiance. •System response in presence of voltage sags. •Sequence analyzer response. Therefore, the parameters used in the simulations are stated in Table 4. Quantity Value Quantity Value EAC Nominal AC voltage 400VRMS Imax AC maximum current 1.2InA EDC Nominal DC voltage 800 VtsP LL PLL time constant 40 ms SApparent nominal power 10 kVA ξPLL PLL dumpling ratio √2 2 fNominal grid frequency 50 Hz tsDC Current loop time constant 4ms LlFilter inductance 5.4mH ξDC Current loop dumpling ratio √2 2 RlFilter resistance 0.5Ω TNominal PV temperature 25 °C CDC DC Capacitor 1000µFIr Nominal PV irradiance 800W/m2 Table 4: Case study parameters. Using the case study parameters stated in Table 4the maximum peak current ˆ Imax = 24.495 A with a nominal peak current ˆ In= 20.412 A, following the equations found in Section 2.7. Moreover, a initial transient is performed in all simulations due to the initialization of the parameters at t= 0 s. Since this transient does not show the real results achieved during the simulations, all Figures are started at t= 0.1s in order to suppress this undesirable initial transient. 3.1 System disregarding the DC side of the VSC Disregarding the DCside oftheVSC, aconstantDC voltageis assumed. Therefore, following the corresponding control scheme from Section 2.2, the reference AC power is directly controlled by the reference computation. The variations on the active power reference Pref developed during the simulations are shown in Table 5maintaining the reactive power Q constant at 0 kVAr. Regarding Figure 32, the reference power following has been achieved. In zooms 1, 2 and 3 one can see a short transient. This response matches with the time constant tsDC = 4 ms. t∈[0,0.25)s t ∈[0.25,0.5)s t ∈[0.5,0.75)s t ∈[0.75,1)s t ∈[1,1.25]s DC Power P Pn=10 [kW/m2]0 0.8[kW/m2]15 [kW/m2]11[kW/m2] Table 5: Reference power variations in the system disregarding the DC side of the VSC. page 60 Degree Thesis Figure 38: Sag type A. Instantaneous power control of a PV system page 61 Figure 39: Sag type C. 3.4 Sequence analyzer Finally, a decoupled control of the positive- and negative-sequence components has been implemented following Section 2.9.2. With this new control, the system must be able to track and control both positive- and negative-sequence components so unbalanced faults regarding those sequences can be controlled. Figure 40 illustrates all voltages, currents and powers during a voltage sag type C in a system with a positive- and negative-sequence components decoupled control. In all the magnitudes a small transient occurs at t= 0.3s and t= 0.6s, when the fault takes place and finishes. While vabc shows the unbalanced voltage from fault type C as ex- page 62 Degree Thesis pected, the DC voltage is constant at 800 V. Since the current is saturated during the fault with a reactive power prioritization, iabc is limited and IDC is zero, which corresponds to a null DC power during the voltage fault. Moreover, the 5th and 6th Figures in 40 show how, when there is no fault, the AC voltage is equal to the positive-sequence component of the voltage, so there are no negativeeither zero-sequence components while, when the fault arises, the AC voltage is decoupled into positive- and negative-sequence voltages. Regarding the positive- and negative-sequence AC currents in the qd reference frame, negativesequence components are 0 during all the simulation as referenced while i+ q= 0 and i+ d=Imax during the fault due to the current saturation with reactive power prioritization. Same happens to the active and reactive powers when decoupled in both positive- and negative-sequence components. While negative-sequence components are zero, P+and Q+follow the current saturation rules. Furthermore, the current saturation during the fault is shown in Figure 41. The current saturation controls the q and d components of the positive-sequence component current prioritizing i+ d(reactive power Q+) during the voltage sag. Just like in the other cases, the unsaturated i+ q component keeps increasing while the saturated i+ qis 0. When the fault finishes the anti-windup resets to zero the reference i+ qto avoid instabilities and after the transient the q current reaches its steady state value. Last but not least, one of the objectives of the VSC is that the AC active power and the DC power are equal. When computing the instantaneous AC active power on this system it has not the same value as the DC power during the fault. In fact, as illustrated in Figure 42 it oscillates with a frequency of 100 Hz around the DC power value during the fault, which is zero due to the current saturation. This 100 Hz frequency is due to the negative-sequence component of the power. However, the positive-sequence of the active AC power coincides exactly during steady state with the DC power. As expected a transientoccurs when the fault starts and finishes but it stabilizes correctly although it is far more slower than the previous version without the sequence analyzer. A small time delay can also be seen in the transients. This larger transient combined with the delay are consequence of the sequence analyzer, as detailed in Section 2.9.2. Instantaneous power control of a PV system page 63 Figure 40: From top to down and from left to right: AC and DC voltages and currents, positive- and negative-sequence components of the AC voltage and current and active and reactive positive- and negative-sequence components powers during voltage sag type C in the improved system using a sequence analyzer to decouple the positive- and negative-sequence components control. page 64 Degree Thesis Figure 41: Current saturation during voltage sag type C with the decoupled positive- and negative-sequence components control. Figure 42: Positive-sequence component of the AC active power versus the instantaneous AC active power and the DC power during a voltage sag type C using the decoupled positive- and negative-sequence components control. Instantaneous power control of a PV system page 65 4 Budget The budget of this Thesis compares both the hypothetical total economic cost of the project if it would have been developed as a professional task and the total real cost being a research project in the academic field. In both cases, the total budget can be derived in 4 different costs: personal, licensing, material and energetic cost. 4.1 Hypothetical scenario: professional task The hypothetical scenario case contemplates a junior engineer with the degree working in the industry. The total approximated time of studying, simulating and writing the thesis has been three months considering a full-time job. This is counted as 480 hours in total. Firstly, the personal costs can be calculated regarding the Spanish XX Convenio colectivo nacional de empresas de ingeniería, oficinas de estudios técnicos, inspección, supervisión y control técnico y de calidad. publicated the march 10th of 2023 at the BOE. It considers the junior engineer wage as level 1 and it fixes the salary at 26323.57€/year meaning 2193.60€/month. Considering the salary for three months, the total personal cost is 6580.90€. Software and liscencing costs involve the costs of all the softwares needed to do the project. In this case: •The memory of the project is written using L A TEXwhich is free. For the dimensions of the project the Premium version is not needed. •MATLAB/Simulink ®is the simulations software used. The year licence for each product used in the thesis is stated below. Product €/year €/3 months MATLAB 860 215 Simulink 1300 325 Simscape 860 215 Simscape electrical 1300 325 TOTAL 4320 1080 Table 7: Simulink year wages. •To create the graphics Inkscape has been used. It is also free. •Articles and Papers found in IEEE have different wages depending on the type of article. It can go from free to 1778€/article. Considering the access to all Articles and Papers read for free, the licensing cost is 1080€. The material cost of the project involve the amortization for three months of the hardware used: the PC and the monitor. The considered useful life of the devices is 7 years. page 66 Degree Thesis Product total Amortization during 3 months Lenovo ideapad 330 969€34.61€ Monitor Lenovo Thinkvision T24-D 10 295€10.64€ TOTAL 1264€45.15€ Table 8: Material cost amortization. Finally the energetic cost of the project must consider the energetic cost of the computer, the monitor and the indirect electricity costs of illumination and climatization of the office. The average electricity cost considered for this year 2023 is 0.1105€/kWh. In Table 9the energetic cost is detailed. Product consumption hours energy consumption cost Laptop 0.060 kW 480 28.8 kWh 3.12 € Monitor 0.016 kW 480 7.71 lWh 0.8519 € Illumination 0.008 kW 240 1.92 kWh 0.212 € Climatization 1 kW 200 200 kWh 22.1 € TOTAL - 238.43 kWh 36.35€ Table 9: Detailed energetic cost. Therefore, the total energetic cost is 36.35 €. Finally, the total cost of the project is detailed in Table 10. Concept Cost Personal cost 6580.90 € Licensing cost 1080 € Material cost 45.15 € Energy cost 36.35 € TOTAL 7742.2 € Table 10: Total budget for the hypothetical scenario: professional task. 4.2 Real scenario: Degree Thesis The real case scenario contemplates the real case: an Industrial engineering student in ETSEIB developing its degree Thesis. While the budget will be much lower compared to the other scenario, all the knowledge gained not only in the engineering field but also regarding technical aspects such as writing techniques can not be dismissed. The development of this Thesis can be seen as an investment in the future projects. Firstly, personal costs would includethe tutor wageforthe meetinghours andthe student salary. In this case, professors are not paid for being thesis directors and students are not paid for doing the Thesis either so the total personal cost is zero. Additionally, in this case the licensing costs are zero since the MATLAB/Simulink ®licence is provided by the University. The free access to Articles and Papers in IEEE is also provided by Instantaneous power control of a PV system page 67 the University. Nonetheless, the material and energy costs of the Thesis would be the same as the costs calculated for the hypothetical scenario being 45.15€the material cost and 36.35€the energy cost. Finally, the enrollment fee for the degree Thesis must be considered. The degree Thesis consists of 12 ECTS. The cost for each ECTS is 18.46€/ECTS. Therefore, 12 ECTS plus the proportional part of the service costs of the enrollment (42,07€) rises up to 263.59€. The total budget for the real case of the Thesis is detailed in Table 11. Cost Personal cost 0 € Licensing cost 0 € Material cost 45.15 € Energy cost 36.35 € Enrollment fee 263.59€ TOTAL 345.09 € Table 11: Total budget for the real case: degree Thesis. Instantaneous power control of a PV system page 69 5 Environmental impact The environmental impact of a project is a decisive aspect on the development of the project itself. Adding the growing global awareness of the climate emergency this aspect is mandatory to determine the viability of the project. To identify the environmental impact of the Thesis many different things must be taken into account; from the source of the energy used to design and develop the simulations to the waste management of the materials used in a real PV energy generation system. A list of the most remarkable environmental impacts is found hereunder. •Energy source and computational cost The impact energy used for developing the simulations and writing the project is minimal compared to the other aspects considered on the environmental impact. However, is good to notice the effect of working with electronic devices and the computational cost of the simulations itself. Nowadays, almost half of the energy production and consumption in Spain comes from renewable sources mainly wind power and PV energy generation [22]. While this can seem like an achievement, it means that half of the energy produced in Spain still comes from fossil fuels and nuclear energy. Moreover, thecomputational cost ofthe simulationsperformed usingMATLAB/Simulink® must be considered. A significant amount of memory can be consumed especially when involving large datasets, complex algorithms or high-resolution simulations. Ensuring an adequate memory capacity of the system is crucial to avoid underperformance or crashes. Moreover, the simulation time required by MATLAB/Simulink ®models vary depending on the complexity of the model. A large computational time may require large computational resources and energy and can be particularly relevant on time-sensitive projects.In order to reduce this computational cost optimization of the models and algorithms is crucial [23]. •Use of natural resources and transportation While in general the implementation of a PV energy generation system is a positive fact for the environment, the construction and manufacturing processes of the PV panels, the converter and all the other materials needed for the installation requires a lot of water, energy and other resources. First of all, the mining extraction of the silicon for semiconductors, various metals such as copper and aluminium or lithium for the batteries, if included, requires not only a land and ecosystem destruction but also a large amount of energy while producing GHG emissions leading to soil, air and water pollution. It must also be considered that the energy needed in the manufacturing processes to create the final products comes generally from coal burning [24]. In fact, a 71.3% of the GHG emissions of the PV panels production is due to its fabrication [25]. Furthermore, the transportation and logistics of these materials from the production site to the location of the decentralized PV system can generate GHG emissions. Greener transportation means or logistics efficiency can reduce this impact. •Land use Fossil fuels energy generation produce large amounts of GHG emissions as well as all the well known devastating effects it have on the planet. However when considering the Instantaneous power control of a PV system page 77 Future work The actual completed work regards active and reactive power control of a PV energy generation system connected to the grid. It uses the PO method in the MPPT in order to track the MPP. Also the systems takes into consideration the physical limitations of the VSC and two different grid faults involving positive- and negative-sequence components control using a sequence analyzer. The system performs as expected. However, there are many different open paths to follow on the improvement of this system. Those are stated below. •Implementing the IGBT’s model of the VSC and the control of the switching frequency using PWM. •Considering a storage system and it’s control. •Improving the performance of PI controllers in order to avoid large transients. •Considering and implementing other more sofisticated MPPT techniques. •Considering all types of grid faults involving positivenegative- and zero-sequence components and its control. •Considering other types of renewable energy generation such as wind power. Instantaneous power control of a PV system page 79 Bibliography [1] A. J.-F. Agustí Egea-Alvarez and O. Gomis-Bellmunt, “Active and reactive power control of grid connected distributed generation systems,” pp. 1–33. [2] M. L. Remus Teodorescu and P. Rodríguez, “Grid converters for photovoltaic and wind power systems,” 2011, pp. 1–407. [3] “Types of pv panels, in the market and in the lab,” Solar Magazine, 2020. [4] H. Ritchie and M. Roser, “What are the safest and cleanest sources of energy?” Our world data, 2022. [5] A. Valero, “No trobar el que busquem a les botigues serà el pa de cada dia.” El crític, 2014. [6] S. Lladó Fernández, La bossa o la vida. El 99% contra l’emergència climàtica. Barcelona: Tigre de paper, 2020. [7] C. Kuo, J. Hsieh, F. Zare, and G. Ledwich, “An interactive educational learning tool for power electronics,” in 2007 Australasian Universities Power Engineering Conference, 2007, pp. 1–6. [8] N. Flourentzou, V. G. Agelidis, and G. D. Demetriades, “Vsc-based hvdc power transmission systems: An overview,” IEEE Transactions on Power Electronics, vol. 24, no. 3, pp. 592–602, 2009. [9] F. Li, Z. Lin, Z. Qian, and J. Wu, “Active dc bus signaling control method for coordinating multiple energy storage devices in dc microgrid,” in 2017 IEEE Second International Conference on DC Microgrids (ICDCM), 2017, pp. 221–226. [10] F. Blaabjerg, R. Teodorescu, M. Liserre, and A. Timbus, “Overview of control and grid synchronization for distributed power generation systems,” IEEE Transactions on Industrial Electronics, vol. 53, no. 5, pp. 1398–1409, 2006. [11] N. Rathore, N. L. Panwar, F. Yettou, and A. Gama, “A comprehensive review of different types of solar photovoltaic cells and their applications,” International Journal of Ambient Energy, vol. 42, no. 10, pp. 1200–1217, 2021. [12] E. H. W. Hirofumi Akagi and M. Aredes, “Chapter 3: The instantaneous power theory,” in Instantaneous Power Theory and Applications to Power Conditioning, Second Edition, 2017. [13] C. J. O’Rourke, M. M. Qasim, M. R. Overlin, and J. L. Kirtley, “A geometric interpretation of reference frames and transformations: dq0, clarke, and park,” IEEE Transactions on Energy Conversion, vol. 34, pp. 2070–2083, 2019. [14] J. B. i Jané, “Control del motor d’inducció considerant els límits del convertidor i del motor.” Ph.D. dissertation, Universitat Politècnica de Catalunya, 2000. [15] W. Tan, “Unified tuning of pid load frequency controller for power systems via imc,” IEEE Transactions on Power Systems, vol. 25, no. 1, pp. 341–350, 2010. page 80 Degree Thesis [16] C. Bohn and D. Atherton, “An analysis package comparing pid anti-windup strategies,” IEEE Control Systems Magazine, vol. 15, no. 2, pp. 34–40, 1995. [17] M. H. A. Jalil, R. Hamdan, R. Ngadengon, H. M. Shariff, S. Amely Jumaat, and S. Z. Islam, “Pid with clamping anti-windup performance on temperature regulation of glycerin bleaching process,” in 2021 IEEE 12th Control and System Graduate Research Colloquium (ICSGRC), 2021, pp. 127–131. [18] Y. Zhou, P. Bauer, J. A. Ferreira, and J. Pierik, “Operation of grid-connected dfig under unbalanced grid voltage condition,” IEEE Transactions on Energy Conversion, vol. 24, no. 1, pp. 240–246, 2009. [19] C. L. Fortescue, “Method of symmetrical co-ordinates applied to the solution of polyphase networks.” NAPS Univeristy of Waterloo, Canada, 2000. [20] M. Bollen and L. Zhang, “Different methods for classification of three-phase unbalanced voltage dips due to faults,” Electric Power Systems Research, vol. 66, no. 1, pp. 59–69, 2003, power Quality. [Online]. Available: https://www.sciencedirect.com/science/article/pii/ S0378779603000725 [21] Mathworks, “Mpptalgorithm,” https://la.mathworks.com/solutions/electrification/mpptalgorithm. [22] Redia, “Las energías renovables podrían alcanzar el 50% del ‘mix’ de generación eléctrica en España en 2023,” 2022. [23] MathWorks, “Estimate computation costs,” https://es.mathworks.com/help/simscape/ ug/estimate-computation-costs.html, 2022. [24] K. Zagame, “The environmental impact of solar panels,” https://www.ecowatch.com/ solar-environmental-impacts.html, 2014. [25] M. Tawalbeh, A. Al-Othman, F. Kafiah, E. Abdelsalam, F. Almomani, and M. Alkasrawi, “Environmental impacts of solar photovoltaic systems: A critical review of recent progress and future outlook,” Science of The Total Environment, vol. 759, p. 143528, 2021. [26] M. C. Moscatelli, R. Marabottini, L. Massaccesi, and S. Marinari, “Soil properties changes after seven years of ground mounted photovoltaic panels in central italy coastal area,” Geoderma Regional, vol. 29, p. e00500, 2022. [27] J. M. Aberilla, A. Gallego-Schmid, L. Stamford, and A. Azapagic, “Design and environmental sustainability assessment of small-scale off-grid energy systems for remote rural communities,” Applied Energy, vol. 258, p. 114004, 2020. [28] O. of Energy Efficiency & renewable energy, “Eere celebrates women leaders and pioneers in energy.” 2022. [29] “Quadre de comandament d’indicadors,” Gabinet de planificació, avaluació i qualitat UPC, 2023.