Professional Documents
Culture Documents
Application of Electric Vehicles and Solar Panels To Support The Public Grid Through Reactive Power Injection
Application of Electric Vehicles and Solar Panels To Support The Public Grid Through Reactive Power Injection
Application of Electric Vehicles and Solar Panels To Support The Public Grid Through Reactive Power Injection
TITLE: Application of electric vehicles and solar panels to support the public
grid through reactive power injection
1
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Abstract
The objective of this project is to analyze the impact that solar panels and electric vehicles
would have on the power grid, specifically, the injection and/or absorption of reactive power
by the inverters of these.
Prior to the topic in question, the document contains a brief explanation of the climate
situation, energy and smart grids (all of which are core topics in the document).
The study will be carried out with simulations made by Simulink on 3 different cases. The
first and second case will consist of single-phase inverters, while the third case will be run
with three-phase inverters. Each case will vary the number of houses that will be connected
to the grid. Apart from the incidence of reactive power, in case 3, the behavior of the system
subjected to disturbances in the electrical grid will also be studied.
The work consists of all the necessary explanations to fully understand the operation of the
Matlab and Simulink simulation files. The Excel program will also be used for some graphics.
Keywords:
2
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Resumen
El objetivo de este proyecto es analizar el impacto que tendrían los paneles solares y los
vehículos eléctricos en la red eléctrica, concretamente, la inyección y/o absorción de
potencia reactiva por parte de los inversores de éstos.
El estudio se llevará a cabo con simulaciones realizadas mediante Simulink sobre 3 casos
diferentes. El primer y el segundo caso consistirán en inversores monofásicos, mientras
que el tercer caso se ejecutará con inversores trifásicos. En cada caso se variará el número
de viviendas que se conectarán a la red. Además de la incidencia de la potencia reactiva,
en el caso 3 se estudiará también el comportamiento del sistema sometido a perturbaciones
en la red.
Palabras clave:
3
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Resum
L'objectiu d'aquest projecte és analitzar l'impacte que tindrien els panells solars i els
vehicles elèctrics a la xarxa elèctrica, concretament la injecció i/o absorció de potència
reactiva per part dels inversors.
Previ al tema en qüestió, el document conté una breu explicació de la situació climàtica,
l'energia i les xarxes intel·ligents (tots ells temes centrals al document).
L’estudi es durà a terme amb simulacions realitzades mitjançant Simulink sobre 3 casos
diferents. El primer i segon cas consistiran en inversors monofàsics, mentre que el tercer
cas s'executarà amb inversors trifàsics. En cada cas es variarà el nombre d’habitatges que
es connectaran a la xarxa. A més de la incidència de la potència reactiva, en el cas 3 també
s'estudiarà el comportament del sistema sotmès a pertorbacions de la xarxa.
El treball consta de totes les explicacions necessàries per comprendre el funcionament dels
fitxers de simulació empreats de Matlab i Simulink. També es farà servir el programa Excel
per a alguns gràfics.
Paraules clau:
4
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Index
Abstract 2
1. Introduction 15
1.1. Main objectives 15
1.2. Antecedents 16
1.3. Personal motivation 16
1.4. Work Structure 17
2. Context 19
2.1. Climate Change 20
2.1.1. CO2 Emissions 20
2.1.2. CO2 Emissions by sector 25
2.1.3. Energy Mix 27
2.1.4. Solar and Wind energy 36
2.1.5. Electric mobility 38
2.1.6. Conclusions 41
2.2. Smart Grid 42
2.2.1. The effect of electrical vehicles and solar panels in the electrical grid 46
2.3. How can reactive power help to stabilize the public electrical grid? 47
3. System Description 49
3.1. Introduction 49
3.2. Control and Inverters 50
3.2.1 Inverter Control (single-phase) 50
3.2.2 Inverter Control (three-phase) 55
4. Cases of studying 65
4.1. Introduction to the different cases 65
4.2. Case 1: Single-family house with solar panels and one electric vehicle 65
4.2.1. Simulink Description 65
4.2.2. Control 78
4.2.3. Simulation 82
4.2.4. Parasitic Grid Inductance 86
4.2.5. Conclusions from Case 1 87
4.3. Case 2: A neighborhood with several single-family houses like the case one 88
4.3.1. Case description 88
4.3.2. Control 89
4.3.3. Simulation 89
5
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
6
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Summary of figures
Figure 1: Global atmospheric CO2 concentration _________________________________________________ 21
Figure 2: Temperature Anomaly _______________________________________________________________ 21
Figure 3: Average Temperature anomaly ________________________________________________________ 22
Figure 4: Status of net-zero carbon emissions target ______________________________________________ 22
Figure 5: Countries with net-zero target set______________________________________________________ 23
Figure 6: Annual CO2 emissions from fossil fuels by world region ____________________________________ 24
Figure 7: Annual CO2 emissions, 2020 __________________________________________________________ 24
Figure 8: Greenhouse emissions per capita, 2018 _________________________________________________ 25
Figure 9: Global greenhouse gas emissions by sector ______________________________________________ 26
Figure 10: Global greenhouse gas emissions by sector _____________________________________________ 27
Figure 11: Primary energy consumption_________________________________________________________ 29
Figure 12: Electricity access in the World, 2019 ___________________________________________________ 29
Figure 13: Electricity consumption by source _____________________________________________________ 30
Figure 14: Global primary energy consumption by source __________________________________________ 31
Figure 15: Difference between electricity and energy ______________________________________________ 31
Figure 16: Primary energy consumption from fossil fuels and non-carbon technologies ___________________ 32
Figure 17: Number of deaths by risk factor, 2019 _________________________________________________ 33
Figure 18: Primary energy from low-carbon sources, 2020 __________________________________________ 33
Figure 19: Energy consumption per capita by source, 2020 _________________________________________ 34
Figure 20: Energy from low-carbon sources, 2020 _________________________________________________ 35
Figure 21: Energy production from wind, 2021 ___________________________________________________ 35
Figure 22: Solar power generation _____________________________________________________________ 36
Figure 23: Installed solar energy capacity, 2020 __________________________________________________ 37
Figure 24: Installed solar energy capacity, Spain, 2020 _____________________________________________ 38
Figure 25: Battery electric vehicles, Europe, 2019 _________________________________________________ 39
Figure 26: Battery electric and Plug-in Hybrid vehicles, Europe, 2019 _________________________________ 39
Figure 27: Lithium-ion batteries prices __________________________________________________________ 40
Figure 28: Smart grid scheme illustration _______________________________________________________ 44
Figure 29: Block diagram system Case 1 and Case 2 - Single phase ___________________________________ 51
Figure 30: Single-phase inverter: (a) General block diagram and (b) blocks forming the Solar/EV inverter. ___ 51
Figure 31: Block diagram of the single-phase Solar and EV Inverter control ____________________________ 53
Figure 32: IGBT bridge for Solar and EV inverter __________________________________________________ 53
Figure 33: PI Block diagram of the single-phase Inverter control _____________________________________ 54
Figure 34: Delay to get 100% of reactive power __________________________________________________ 54
Figure 35: Block diagram of Solar active and reactive control _______________________________________ 55
Figure 36: Block diagram of EV active and reactive control _________________________________________ 56
Figure 37: Three-Phase System Scheme _________________________________________________________ 56
Figure 38: Three-phase Inverter location ________________________________________________________ 57
Figure 39: Three-Phase Inverter Control, Essential variables ________________________________________ 58
Figure 40: Alpha-Beta Three-Phase Inverter Control _______________________________________________ 59
Figure 41: Power and Control Loop Block, Three-phase Inverter______________________________________ 60
Figure 42: Current Loop Controller, Three-phase Inverter ___________________________________________ 61
Figure 43: Alfa and Beta controller, Three-phase inverter ___________________________________________ 62
Figure 44: SVM Control Block, Three-phase Inverter _______________________________________________ 62
Figure 45: SVM adapter before pulses generation, Three-phase Inverter ______________________________ 63
Figure 46: 3 Half-Bridge switching triggered by Pulses Block, Three-phase Inverter ______________________ 63
Figure 47: Simulink system Case 1 and Case 2 - Single phase ________________________________________ 65
Figure 48: Simulink Solar and EV Inverter model - Single phase ______________________________________ 66
7
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
8
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
9
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 142: Case 4, Voltage sags Scenario 2 (reactive absorption) – Range Time 3 ______________________ 135
Figure 143: Case 4, Voltage sags Scenario 2 (reactive injection) – Range Time 3 _______________________ 136
Figure 144: Case 4, Voltage sags Scenario 3 (non-self-generation) – Range Time 3 _____________________ 137
10
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure A41: Active and Reactive power (left) and accumulated energy (right) of COMB 4 for the 3 scenarios -
Case 3___________________________________________________________________________________ 207
Figure A42: Apparent power and accumulated active energy of COMB 4 for the 3 scenarios - Case 3 _______ 208
Figure A43: Active and Reactive power (left) and accumulated energy (right) of COMB 5 for the 3 scenarios -
Case 3___________________________________________________________________________________ 209
Figure A44: Apparent power and accumulated active energy of COMB 5 for the 3 scenarios - Case 3 _______ 210
Figure A45: Active and Reactive power (left) and accumulated energy (right) of COMB 6 for the 3 scenarios -
Case 3___________________________________________________________________________________ 211
Figure A46: Apparent power and accumulated active energy of COMB 6 for the 3 scenarios - Case 3 _______ 212
Figure A47: Active and reactive power per phase (18 houses), Scenario 1 - Case 3 ______________________ 214
Figure A48: Active and reactive power per phase (72 houses), Scenario 1 - Case 3 ______________________ 214
Figure A49: Active and reactive power per phase (144 houses), Scenario 1 - Case 3 _____________________ 215
Figure A50: Active and reactive power per phase (18 houses), Scenario 2 - Case 3 ______________________ 215
Figure A51: Active and reactive power per phase (72 houses), Scenario 2 - Case 3 ______________________ 216
Figure A52: Active and reactive power per phase (144 houses), Scenario 2 - Case 3 _____________________ 216
Figure A53: Active and reactive power per phase (18 houses), Scenario 3 - Case 3 ______________________ 217
Figure A54: Active and reactive power per phase (72 houses), Scenario 3 - Case 3 ______________________ 217
Figure A55: Active and reactive power per phase (144 houses), Scenario 3 - Case 3 _____________________ 218
11
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Summary of tables
Table 1: Constants and variables values for single-phase inverter control ______________________________ 74
Table 2: Standardized Electrical Power (kW) _____________________________________________________ 76
Table 3: Formula and profile sequence for the Load _______________________________________________ 77
Table 4: Main parameters Case 1 ______________________________________________________________ 78
Table 5: Solar and Electric vehicle production table - Case 1 ________________________________________ 80
Table 6: Solar and Electric vehicle production table - Case 2_________________________________________ 89
Table 7: Main Power House variables, Case 2 ____________________________________________________ 89
Table 8: Solar and Electric vehicle production table - Case 3________________________________________ 107
Table 9: Summary of the load, solar and reactive power of each house _______________________________ 108
Table 10: Total Active Energy comparison ______________________________________________________ 114
Table 11: Total Reactive Energy comparison ____________________________________________________ 114
Table 12: Summary table from Case 3 simulations _______________________________________________ 117
12
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Summary of Equations
Equation 1: Solar Power, Single-Phase Inverter ___________________________________________________ 52
Equation 2: Voltage Clarke Transform, Three-phase Inverter ________________________________________ 58
Equation 3: Current Clarke Transform, Three-phase Inverter ________________________________________ 59
Equation 4: Instantaneous Active and Reactive Power, Three-phase Inverter ___________________________ 59
Equation 5: Power reference calculation, Three-phase Inverter ______________________________________ 60
Equation 6: Reference Currents Calculation, Three-phase Inverter ____________________________________ 61
Equation 7: Alfa and Beta Tustin Controller Transformation, Three-phase Inverter ______________________ 62
Equation 8: Maximum reactive power provided by the Inverter equation, Single-phase___________________ 69
Equation 9: Single Home Load [ohm] equation ___________________________________________________ 77
Equation 10: Single Home Load equation as a function of "n" _______________________________________ 77
Equation 11: Apparent Power formula __________________________________________________________ 91
13
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
14
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
1. Introduction
With this work I would like to show, which would be the impact of using the inverters installed
in solar installations and electric vehicles from single-family houses, to support the grid. This
backing will be done with reactive injection and absorption.
The study consists of the simulation of several cases where each one will be simulated in 3
different situations: injecting reactive power, absorbing reactive power and without self-
generation. In all cases they will be single-family houses where they will have photovoltaic
generation and/or electric cars. Also, every situation is going to be evaluated in three different
parasitic grid inductances. At the same time, analyze the pros and cons of a distributed power
generation grid compared to a grid without self-generation.
To make this study the main programs used have been Matlab, Matlab-Simulink and Excel.
Matlab has been used for the simulations and calculation. Excel has been implemented to
show or graph the data obtained through Matlab.
15
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
1.2. Antecedents
For this work, the main reference studies have been those cited below. In the case of the
three-phase inverter, it had been used and improved the model seen in different subjects of
the university, which is why there are not many external references to it. In the case of the
single-phase inverter, it has been necessary. Without further ado, the contribution of each
report in this work will be explained below.
First of all, the document [1] on microgrids was read, which explains very well what their
structure, advantages and disadvantages should be. This document has been used to
organize the Simulink blocks and to have a basic idea of what a smart grid or micro grid is. To
make the single-phase inverter models, the documents [2], [3] and [4] have been used. In
them an explanation of how these inverters should be for solar panels is made. The bases of
the models proposed by these documents have been adapted for this work and reused for the
electric vehicle. It had been also considered the analysis of the effects of these inverters on
the grid. Finally for the three-phase inverter, although the base material has been the one
used in several subjects of the university degree, the documents [5] and [6] have served to
see interesting proposals on how to control the inverters from a simple and precise PQ control
strategy. The explanation of the control through block diagrams was of great help to improve
and better understand the PQ control. All of them are focused on control, but they have not
explored or quantified how much more or less energy a grid with single-family houses with
self-generation and electric vehicles would need, what would happen if the inverters absorbed
or injected the maximum reactive power. Another issue mentioned, but not addressed, would
be the usefulness of inverters using reactive power to stabilize the grid. All these points will be
addressed in this work.
1.3. Personal motivation
I decided to choose this topic because it is still an area of continuous research and presents
a great importance in modernizing our electrical grid. The smart grid sector is a field of study
that I would like to pursue professionally, as it will be of great importance in the future. If the
applications that the inverters used in solar panels and electric vehicles will have been studied,
society will be able to develop better systems for the electric grid and contribute to the
reduction of our carbon footprint on the planet. I was interested in doing a research work rather
than other themes. In my current job, I am developing reports and participating in research on
solar inverters and the injection or absorption of energy into the grid. So doing a project that
touched on this topic was very interesting on a personal level. Also, this last year I have read
quite a few books about sustainability concepts or renewable energies such as Bill Gates'
latest book "How to avoid a climate disaster" or Vaclav Smil's "Numbers don't lie". All these
readings apart from improving my knowledge, have made me want to investigate more about
16
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
renewables and electric vehicles .Finally, I would like to say that this work has helped me to
learn and to have an informed opinion about the advantages and disadvantages of solar
energy or electric vehicles.
17
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
18
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
2. Context
Many historians and scientists agree that humans have evolved when energy has been
developed. First it was fire, then motion energy using rivers and wind, then fossil fuels, nuclear
energy and finally renewables. Experts agree that the key to taking the next step as a species
is once again energy. Up to now, humans have obtained almost everything basically by
burning fuels and polluting. At the beginning there was no problem, since there were not many
of us, but with the exponential growth of the population and an improvement in basic needs,
an increase in products and consumption, all this makes us need more energy. The perfect
solution would be to find nuclear fusion energy, but this seems to be a long way off. So, what
can society do with the knowledge and currently technologies that have and avoid a climate
collapse? Whatever it is, the key is energy [7].
Thanks to the creation of the organization Our World in Data, it has been possible to have
data around the world from different sectors, including energy. Thanks to the organization, it
can be seen in the form of graphics and tables what is happening around the world. This is
why now, it is known that the energy sector generates around 75% of global CO2 emissions.
Although these emissions are more limited in the USA and the European Union, it should be
remembered that the burning of fossil fuels, such as coal or gas, continues to be the most
widely used resource for energy production. In addition, the use of fuels such as oil and gas,
their production and refining, is responsible for at least one third of global CO2 emissions.
Knowing the impact of power generation in our blue globe, by taking advantage of cheaper
generation model for one in which the energy is more distributed, more environmentally
friendly and smart.
19
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
These unusual concentrations of CO₂ in our global atmosphere cause major problems
worldwide, largely due to temperature changes (Figure 2 and Figure 3), and it is something
that all of us could see because every year the winter is more extreme and it rains less.
To reverse this situation, all countries have to be involved, but unfortunately this is not the
case so far, as it can be seen in the following map, only Europe together with other countries
are committing themselves with laws and objectives to solve this global problem and achieve
a zero emissions policy. There are many countries that say they will do it, but in reality, there
are very few that have these commitments in their laws, among which Spain can be found
(Figure 4).
20
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
21
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
22
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
There are only 7 countries that have already achieved that goal (Figure 4) even though these
are Third World countries, meaning that the energy consumes or industry is not as developed
as in Figure 5, the first world countries like the USA or Germany, Meanwhile, the highlighted
regions have the objective of 0 emissions on their to-do lists.
Figure 6 displays the annual CO2 emissions from fossil fuels around the world, where it could
reaffirm that the European Union in terms of population and rich countries is the least polluting
area. China generates the most, the problem is that it is increasing every year, that is
something that North America and Europe in general have not experienced in the last few
years. But if the data check is performed only with Figure 7, an error occurs because there
could be an incorrect idea of CO2 emissions due to not comparing the emissions with the
number of inhabitants of each region. For that reason, the best bay to compare date is by
using the last official data of annual emissions and Per capita gas emissions with Figure 8.
23
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
24
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
It is seen in Figure 8 that even though in terms of annual emissions, China is the country that
generates more pollution, but in terms of per capita it has similar values like Spain or Europe.
Another interesting aspect is that France, due to their 70% energy mix generated by nuclear
power, pollutes less than Germany where lately, they implement a policy of closing their
nuclear reactors. All this data has to be taken as a general idea, not as the unique truth, but
still, it is important to know these numbers and have a global perspective.
25
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
As shown in Figure 9, emissions come from many sectors, in the same way, many solutions
are required to decarbonize the economy. It is clear from Figure 9, that a range of sectors and
processes contribute to global emissions. This means there is no single or simple solution to
tackle climate change. Focusing on electricity, or transport, or food, or deforestation alone is
insufficient. Even within the energy sector – which accounts for almost three-quarters of
emissions. Even if the societies could fully decarbonize our electricity supply, it will also be
necessary to electrify all of our heating and road transport. With all this measures, countries
would still have to reduce the emissions from shipping and aviation, which unfortunately, there
is not yet a low-carbon technology. To reach net-zero emissions, many sectors would need
innovations across. Single solutions will not get the societies there. There is a phrase for
situations like this: for complex problems, complex solutions. Even though, Figure 9 let see
that Energy accounts for the largest share of the pie, with 73% of the global emissions.
26
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Within this 73%, energy use in industry, transport and electricity usage for buildings are the
biggest contributors. Seeing the data, it is easy to say that at the core of these challenges is
the question of energy — more precisely, the overall energy consumption and the dependency
on fossil fuels.1
2.1.3. Energy Mix
Before going into more detail on the energy mix, it is important to know for what energy is
used, this information is easily displayed by Figure 10 of greenhouse gas emissions by sector,
where worldwide, the main category is heat and power, followed by transportation.
That is why it is so important to reduce emissions from electricity, because it is a major part of
the cake. That does not mean governments should leave the rest like they are actually, but
the main focus should be energy generation and transport.2
Now that energy is presented, let’s see how it is generated. Today the energy mixes are
composed of a diverse range of sources, mainly coal, oil, gas, nuclear, hydropower, solar,
wind, and biofuels. Nevertheless, a couple of centuries ago, the energy mixes were relatively
homogeneous. In the 19th century, the energy came from traditional biomass as the dominant
source of energy used across the world. Biomass in that century was the burning of solid fuels
such as wood, crop waste, or charcoal. But with the Industrial Revolution came the rise of
1
For further information, go to Annex 1 where there is more information and delve more deeply into
the greenhouse gas emissions by sector.
2
For further information, go to Annex 2 where there is a comparison between China, USA and EU
27
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
coal; followed by oil, gas; and by the turn of the 20th century, hydropower. Nuclear energy
was added to the mix in the 1960s. The newest renewable energies, like solar and wind, were
only added in the 1980s and in the last 20 years they have experienced a huge revolution.
According to scientist Vaclav Smil and other researchers studying long-term energy
transitions, the speed and scale of the energy transition needed today in switching from fossil
fuels to low-carbon energy is therefore a new challenge, very different from the past. Mainly
because the energy landscape expected to see in 2050 will be quite different from how it looks
today. Meeting future energy demand will be a key challenge.
According to World Energy Council two main energy scenarios have been described This
document considers two main scenarios in his document World Energy Scenarios Composing
energy futures to 2050:
- JAZZ: It has a focus on energy equity with priority given to achieving individual access
and affordability of energy through economic growth.
Averaging the values of both scenarios, the world’s population will increase approximately
from 7 billion in 2013 to approximately 9 billion in 2050, which is equal to a 36% increase. The
GDP per capita will also increase from slightly more than 9,000 US$ 2010 in to approximately
23,000 US$ in 2050. This represents an increase by 153% and 100%, respectively. Mobility
will also increase, with car ownership in terms of cars per 1000 people increasing from 124 in
2010 to 244 in 2050.
All these means more consume leading to more energy. Total global primary energy
consumption, averaged over both scenarios, will be approximately increase 45% [29]. Figure
11 shows that the 3 emerging regions of the planet (Africa, India and China) are increasing
year by year. Besides that, Europe and developed countries tend to reduce their consumption
or do not experience such a large increase.
28
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Global primary energy consumption is expected to continue to increase, but at a much slower
rate than in previous decades. Also, the electricity access (Figure 12) will increase and
probably reach the minimum of 80% in the entire world.
29
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
With all these in mind and knowing that energy represents 73% of the global emissions, it is
clear that society has a lot to work on. The latest data about the global energy consumption
shows that the primary energy consumption is still too dependent on Gas, Oil and Coal (Figure
13). Also, other information that can be extracted from the Figure 13 is that the energy
consumption, before the pandemic, has been constantly increasing.
More than 80% of the energy still comes from fossil fuels. Since three-quarters of global
greenhouse gasses come from energy – the burning of coal, oil and gas – experts and
scientists are saying to governments the need to rapidly transition away from them to low-
carbon sources like renewable and nuclear. The majority of the world’s energy still comes from
fossil fuels. In 2019, 84% of global energy came from fossil fuels, only 1.8% less than in the
year 2000 [Figure 14]. In Figure 14, it highlights that low-carbon energy accounted for only
16% – around 11% from renewables and just over 4% from nuclear energy.
30
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
One of the reasons that the energy mix is so dominated by fossil fuels is that transport and
heating are often harder to decarbonize than electricity. Transport relies heavily on oil; and
heating on gas. There are fewer energy options available to substitute in these sectors and
specially in poor countries. However, in Figure 15 shows electricity tends to have a higher
share of low-carbon sources.
One-third of global electricity came from nuclear or renewables, more than double the share
in the total energy mix, at 16%. This provides one important pathway for progress: if some
activities can shift towards electricity like transportation, a great progress on decarbonization
and reduction will be seen.
31
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 16: Primary energy consumption from fossil fuels and non-carbon technologies
Besides that, if society and governments are able to shift oil-dependent transport to
electrification, this will require massive increases in nuclear and renewable generation to make
up for rising demand for electricity and done it sustainable, something that it is not happening
right now as shown in Figure 16.
It could sound weird to say that nuclear energy is clean, but scientifically and statistically
speaking it is true. One of the main factors to reinvent energy mix is due to the deaths
attributed to air pollution, becoming the third risk factor of human deaths in the world as it
indicates in Figure 173. Even though the global energy mix is dominated by fossil fuels, some
countries get more than half of their energy from low-carbon sources, and it is very important
because it means that is possible. Unfortunately, only a handful of countries get around half
or more of their energy from nuclear and renewables. The main examples are Iceland which
is around 80%, Norway and Sweden it is close to 70% and France with 50%. All of these
countries get a significant share of their energy from nuclear power and renewables. The
following Figure 18 shows what has been said and the % of primary energy from low-carbon
sources in 2020.
3 For further information, go to Annex 3 where there is a major explanation and discussion of nuclear
power.
32
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
33
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Another interesting information is to compare the energy consumption by source per capita in
the main countries or zones of the world and see which are the differences. Fossil fuels
continue to show as the main resources, as shown in Figure 19.
It is interesting to see how certain policies that have been adopted in some countries, such as
Germany, for example, have had an impact. In the last decade in this country, a policy of
dismantling nuclear power plants and replacing them with gas-fired plants has been
implemented. This has resulted in Germany being one of the countries most affected by the
current war between Russia and Ukraine, and at the same time, polluting more than other
countries such as France, characterized by being an openly nuclear country. Politics is very
important as it can play a leading role in issues such as energy.
Even though with the previous graphics it is noticeable to see that fossil fuels are the main
resource, as seen in Figure 20, in the last 10 years there has been a higher percentage of
renewable sources in the energy mix, not including biofuels. These data are encouraging, and
hopefully this trend continues to grow upward in the future. The problem is that energy
demand, as explained above, will also increase in the future.
34
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
35
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Continuing with solar energy, Figure 22 is about the solar generation at scale – compared to
hydropower, for example – is a relatively modern renewable energy source but is growing
quickly in many countries across the world. Its growth is focused on Asia (India and China),
the United States and Europe (as Figure 23 shows), where Spain is set to be a very important
country in respect. It is notable in the installed solar energy capacity, where China is becoming
the main generator above the rest of the world.
36
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Note that the Figure 22 is for total capacity, so it is normal that countries with larger populations
generate more solar energy. If a new measurement is made by dividing solar generation by
the country's population If we were to divide the generation by the population of the country,
we will know which country is greener per capita. This is represented in the Figure 23 below.
In Spain, a country with many hours of sunshine and 45 million inhabitants, due to some
policies about the taxes on solar panels and generation, it is perfectly noticeable in the graph,
where it can be seen that in those years that these types of policies were implemented, solar
generation stagnated. A couple of years ago these policies and taxes were modified and since
then the generation has had an exponential growth. This is a clear example of how public
administrations and political parties can influence and delay the progress of an entire country
in terms of technology and energy.
What about food?
There are other factors as Figure 9 shows, and it can be highlight food production because it
is responsible for 20% of global emissions. In the annex number 4 (Food the hidden key?),
there is a little explanation of how our diets and food humanity consume impacts on the earth
and the environment4.
4 For further information, go to Annex 4 where there is a major explanation and discussion about the
impact of our diet on the earth.
37
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Unfortunately, there is no contrast or official information about China with electric vehicles, but
the world knows that China is the main producer of batteries and electric vehicles, and the
sales data says that China is the country that has more electric vehicles.
38
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 26: Battery electric and Plug-in Hybrid vehicles, Europe, 2019
39
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
The main problem of electrification in vehicles is the battery, but there are good news in this
sector because the prices of lithium batteries have been reduced by 97% over the years as
Figure 27 shows. Something similar has happened with solar panels, which have also
experienced a significant reduction.
Although electric mobility has concerns with the issue of recharging cars in public
infrastructures, battery life and other factors such as pollution generated by the construction
of an electric car itself, it is necessary to continue working and innovating to achieve a
transition to a sustainable and efficient electric mobility and transportation.
40
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
2.1.6. Conclusions
As conclusions of this general introductory section, it seems that the electrification of transport
and energy are essential to develop in a greener, more sustainable and technological
environment. Also, the necessity of innovation and good policies to help us take that step
forward as a society. Following the World Energy Council study “World Energy Scenarios
Composing energy futures to 2050” mentioned in section 2.1.3 and the little summary of this
complex situation in this introduction, the world energy most probably scenarios and their
solutions to solve it could be:
- More complexity in our Energy systems by 2050.
- Energy efficiency should be crucial in dealing with demand outstripping supply of energy.
- The energy mix in 2050 will mainly be fossil based.
- As right now, there is not going to be a ‘one-size-fits-all’ solution to energy, probably the best
solution is going to be a mix of technologies.
- The global economy will be challenged with a higher population and unacceptable carbon
prices for Third World countries.
- A low-carbon future is not only linked to renewables: carbon capture, utilization and storage
is important as well as consumer behavior requires changing.
- Solar energy and energy storage are the key uncertainties up to 2050 due to their lack of
capacity for generating energy in big quantities. Even so, the mentality should be to install
solar panels on as many roofs as possible.
- Balancing the energy dilemma means making difficult choices.
- It is important to generate energy where it is consumed, the closer the better (such as on the
roofs of houses thanks to solar panels).
- Energy markets require investments and regional integration to deliver benefits to all
consumers and also to generate wealth around the globe.
- Energy policy should ensure that energy and carbon markets deliver their commitments.
- Improvements in public transportation simultaneously with electric vehicles technologies.
- Investigate more in nuclear power and their variations like mini or micro nuclear reactors.
- Be more sustainable in our food production, reducing beef and investigating other
alternatives that are healthier and eco-friendly.
41
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
These points can be found on pages 7-15 of the National Integrated Energy and Climate Plan
2021-2030. In order to meet all the points, grids must be modernized and Smarts Grids will
play a fundamental role. Before the smart grid’s explanation, let's take a brief look at what a
conventional electricity grid is like. The traditional electricity grid is currently the system
responsible for delivering energy to homes. This system is composed of elements responsible
for the generation, transport and distribution of energy, in addition to the control, security and
protection mechanisms. The management model can be summarized model as follows:
- Generation: First, power plants generate electricity from energy sources. Within the
energy sources are non-renewable and renewable sources. These generation plants
are generally located far from populated areas and are usually large-scale.
- Transmission: The transmission electrical grid is responsible for linking the power
plants with the distribution electrical grids, connecting the power plants with the
transformation substations. High-voltage lines are used for long-distance transmission.
- Transformer substations: They provide interconnection of all lines with each other to
deliver the power generated to the power plants at the consumption centers. This
requires a voltage transformation, the energy arrives from the transmission electrical
42
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
grid at high voltage to travel long distances. At the substation, a transformer is used to
reduce this voltage in order to start distribution.
- Distribution electrical grids: These are the approach power lines found in large
consumption centers (cities and industrial facilities of a certain importance). Most of
these lines tend to be overhead, and generally once they reach the urban centers,
subway electrical grids are used.
- Transformer substations: These are responsible for carrying out the final
transformation, reducing the medium-voltage distribution voltage to voltages with
values suitable for low-voltage consumption. The voltage used in Spain ranges from
220V to 380V for domestic use.
- Electricity control center: coordinates in real time the energy demand with the
generation and transmission facilities of the electricity system. With the information
received from the substations, the operation of the electrical system is checked and
makes the needed decisions.
Sending electrical energy through a electrical grid means that some energy is lost in the
process. In the case of transmission and distribution lines, the lost energy varies depending
on factors such as their length, location of generation and demand, technical characteristics
of the equipment, etc. This electricity grid structure, maintained practically since the middle of
the last century, has begun a process of transformation caused by the introduction of
distributed generation (small generation plants located close to consumption). These
generation points are connected directly to the distribution electrical grid and to consumption
(specifically speaking about talking about photovoltaic generation by solar panels and the use
of electric vehicles).
The electric grid has not evolved much since its invention, but current circumstances require
the evolution of the conventional electric grid towards a Smart Grid. These grids have (and
will have) the capacity to transport energy and information in a bidirectional way, having the
ability to integrate renewable energy installations, all controlled by an intelligent control
system. A Smart Grid, in comparison with a traditional grid, adds the digital and domotic
technology necessary for a fluid supply/demand interaction between the installation and the
user or public grid. Thanks to these types of grids, it will be possible to calculate in real time
the electricity needed in order to produce or inject only the amount that will be used.
43
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Therefore, smart grids are based on the use of sensors, communication systems and must be
able to compute and control data in order to make the most appropriate decisions in time.
Could lead to obtaining a more efficient, economical and reliable supply. They become
"intelligent" when they are able to make more efficient decisions in real time in the face of
fluctuations. These electrical grids will be able to make electric cars behave like a battery,
which would lead to absorb or give energy to the grid while it is plugged in, thus improving the
efficiency of generation and optimizing the installation. Everything connects to each other to
add up the benefits [Figure 28].
An example of the many applications that have these devices would be to put the washing
machine at 4 am, the price of kWh is lower than at peak hours and also at that time there is
not so much electrical demand from the electrical grid, making this small movement the
electricity bill is reduced and also consumption and electricity peaks. Another example would
be with the solar energy surplus: the Smart Grid would automatically take this energy and
send it, for example, to the next-door neighbor who for whatever reason needs more power.
Therefore, Smart Grid uses IT and home automation tools, as well as the latest technology
and the most innovative equipment, to respond to the volatile demand for electricity. Electricity
must be consumed at the same time as it is generated, otherwise it is lost. A power plant
generates energy, but cannot store it until it is needed. Thanks to these devices, energy can
be sent where it is most needed, without wasting it, thus seeking maximum energy efficiency,
as a result improving the integration of intermittent generation and new storage technologies.
Smart grids also mean developing decentralized generation architectures (distributed
generation). The last few years have seen an increase in electricity consumption, and it is
expected to continue to increase in the future.
44
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Therefore, cities and villages will have to manage and handle more and more energy, it will
require and improvement in order to combat the climate emergency and be more efficient.
There is also a growing participation of customers in the energy markets where customers can
play two roles: being producers or being customers. The cheapening of renewables in recent
years is one of the main reasons why Smart Grids have now emerged.
Spain spent a total of 37,340 million euros on importing hydrocarbons in 2017 as a whole. If
there is an increase efficiency and green energy production, less energy will be needed to buy
from abroad. Reduced peak demand, which will also result in lower prices and less energy
waste. They will favor the large-scale integration of renewable energy systems and also the
implementation of systems in which the owner is the consumer. It will also give better security
because the energy system will be much more diversified. It is a step forward in the
development of the electricity market, offering new functionalities and services to marketers
and consumers in the market. Besides being the gateway for renewable energies, it is also
the gateway for electric vehicles. To conclude this point, the advantages of a smart grid can
be summarized in the following 6 points:
- Renewed and innovative power grid: improve the quality of service, strengthen and
automate the grid. In order to obtain a quality transmission and distribution electrical
grid and minimize grid losses.
- A secure supply: solving the problem of the depletion of current energy sources (fossil
fuels, non-renewable), optimizing the connection of areas with renewable energy
sources and minimizing costs such as transportation losses, since if consumers are
closer to energy generation, everything will be much more efficient. More diversification
means more safety supply.
- Reducing environmental impact: reducing smoke and gas emissions, helping to
reduce the greenhouse effect, trying to increase social responsibility and sustainability.
- Manage energy demand: allowing consumers to manage their energy consumption
more efficiently. Enable self-management during incidents, ensuring a constant flow of
energy at all points in the event of failures or errors in the grid. Liberalize the sector to
enhance the active participation of consumers, encouraging local energy generation
and the delivery of excess energy to the grid at peak hours. Provide consumers with
more information and options when selecting their energy supply.
- Variety in generation modalities: allowing the coexistence in the grid of all types of
generators, regardless of size and technology. Variety in storage strategies, aided by
the implementation of microgrids and distributed energy generation.
45
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
- Facilitating the growth of national and European markets: facilitating the transport
of energy over long distances, introducing elements such as electric vehicles,
increasing the use of renewable energies and other elements under development.
Smart Grids still have a long way to go. However, it must be followed in terms of energy
efficiency and savings in order to build a sustainable world. According to some estimates: if
grid installations that were only 5% more efficient were incorporated into the domestic grid,
the savings would be comparable to the emissions of 53 million cars. Therefore, any gesture
can make a difference in terms of efficiency. Smart grids are definitely a bet on the future, not
to say the future itself.
46
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
be also from reactive energy, in the next subsection, there is going to be a discussion of
different applications of reactive injection.
2.3. How can reactive power help to stabilize the public electrical grid?
What does it mean to say the electricity electrical grid needs to be balanced? It does not refer
to the structural stability of the high-power tower. Rather, balancing the power system is about
ensuring electricity supply meets demand second by second. From the side of a consumer,
the power system serves one purpose: to deliver electricity to homes and businesses so that
it powers the human activity. But from a generator and a system operator perspective, there
is much more.
Electricity must be transported the length of the country, levels of generation must be
managed, so they are exactly equal to levels being used, and properties like voltage and
frequency must be minutely regulated across the whole electrical grid to ensure power
generated at scale in industrial power stations can be used by domestic installations. This is
something already discussed above in the Smart Grid chapter, where it has been shown that
it would provide more efficient power where the consumed is generated. The stabilization of
the grid relies on the system operator, working with power generators that keep the power
system in operation, stable and balanced.
One of the main factors that contribute to the destabilization of the grid is the frequency. In the
world, the power electrical grid operates at a frequency of 50 Hz or 60 Hz, which is determined
by the number of directional changes alternating current (AC) electricity makes every second.
However, just a 1% deviation from this begins to damage equipment and infrastructure, so it
is imperative it remains consistent. This is done by National Grid instructing flexible generators
(such as thermal, steam-powered or batteries) to either increase or decrease generation, thus
electricity supply is matched exactly to demand. If this is unbalanced, it affects the electrical
grid’s frequency and leads to instability and equipment damage. Generators are set up to
respond automatically to these requests, correcting frequency deviations in seconds. With a
distributed power generation with solar panels and electric vehicles, it could help with
frequency stabilization.
The other factor to be considered and the one that will be addressed in this document is
reactive power. The electricity that turns on light and charges phones is what is known as
‘active power’. However, getting that active power around the transmission system efficiently,
economically and safely requires something called ‘reactive power’. Reactive power is
generated the same way as active power and assists with “pushing” the real power around
the system, but unlike active power it does not travel very far. The influence of Reactive power
is local, and the balance in any particular area is very important to maintain power flows and
47
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
a stable system. Working with generators to either generate more reactive power when there
is not enough, or absorb it when there is an excess, which can happen when lines are ‘lightly
loaded’ (meaning they have a low level of power running through them). Absorb reactive power
is also vital in controlling the grid’s voltage. Producing reactive power a generator increases
the voltage on a system, but by switching to absorbing reactive power it can help lower the
voltage, keeping the grid’s electricity safe and efficient.
Reactive energy appears in electrical installations that need to create magnetic and electric
fields to operate. That is, electrical appliances that have coils and capacitors. For example,
refrigerator and freezer motors, fluorescent lamps and transformers, among others. This
energy is a nuisance for distribution, as it increases losses in electrical electrical grids. For this
reason, charges were created for the excess reactive energy discharged into the grid.
Depending on the devices present in the installation, the reactive energy that may appear can
be inductive reactive energy or capacitive reactive energy. Reactive power is measured in
kVArh (kilovolt-amperes reactive per hour).
Solar panels and electric cars need inverters. Inverters give the possibility to inject active and
also to inject or absorb reactive power. Throughout this document, it will be analyzed which
influence would have injecting or absorbing reactive power through photovoltaic or electric car
inverters. How is reactive power compensated? To ensure a stable power grid, grid operators
require power generators to contribute to reactive power compensation. During the day, this
is not a problem: Inverters can generate reactive power during injection operation. In order to
compensate for reactive energy, the only solution so far has been to build expensive
compensation systems, mainly using capacitors. But thanks to today's technologies, in
particular the inverters mentioned above, every single-family house or building can provide
the necessary power to the grid depending on its needs. This is known as dynamic generation,
meaning reactive power is generated according to the needs of the grid.
Thanks to innovation in the latest inverters, they can now also provide reactive power
compensation during the night. Pure reactive power is fed into the public grid. This saves the
costs associated with the purchase of reactive power. In addition, it is also possible to
compensate for the need of other producers by making this additional reactive power
available. This generates a new source of revenue and greater grid stability in line with the
previously defined principles of the smart grid, i.e. more efficiently and directly.
48
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
3. System Description
This chapter will contain the explanation of the different systems and controls used in the later
cases from a theoretical point of view. Block diagrams and equations will be used for the
explanations. The values of the variables, operation of the simulations and subsequent
justifications will be discussed individually for each case study, in chapter 4 in particular.
3.1. Introduction
Inverters are used to convert DC power into AC power, which is supplied normally to the grid.
This power injection into the grid through inverters can produce single-phase or three-phase
output. A solar inverter or PV inverter is a type of electrical converter that converts the variable
DC output from a PV solar panel into an (AC) output which is at utility frequency which can be
directly fed to power appliances or fed directly into the electrical grid. Some solar power
inverters have extra functions for optimizing the output of PV arrays, like maximum power
point tracking and anti-islanding protection. In this project, the inverter will be bidirectional
since it will have to be able to inject or absorb reactive power.
In case of the electric vehicles, they have 2 inverters: the first one converts DC power to the
AC power used in an electric vehicle motor. The inverter can change the speed at which the
motor rotates by adjusting the frequency of the alternating current. It can also increase or
decrease the power or torque of the motor by adjusting the amplitude of the signal. The second
inverter is the charger, which is the one to be discussed in this work. The battery charger
inverter converts the AC power available on the electrical grid to DC power stored in a battery.
It controls the voltage level of the battery cells by adjusting the rate of charge. It will also
monitor the cell temperatures and control the charge to help keep the battery healthy. This
document will specifically discuss a bidirectional inverter (charger), capable of absorbing or
injecting power from the grid, which means that it will switch from DC to AC and vice versa.
There are two types of inverters: the single-phase and three-phase. Below is an explanation
with the differences between single-phase inverter and three-phase inverter:
- A single-phase inverter is fairly obvious. It converts the DC power generated by solar
panels or electric vehicle into (EV) a single phase of AC power that the house can use.
- A three-phase inverter produce three-phase power from the PV modules or electric
vehicle (EV) and can be connected to the three-phase equipment or grid. Its three
phases are normally delayed by an angle of 120° to generate the 3-phase AC supply.
With the three-phase inverter, it is possible to produce more power for direct use and
also send much more solar energy back into the grid compared to single-phase.
49
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
What are the differences between the two? Single-Phase Inverter are typically used in most
new houses and small businesses, single-phase electricity is transported via two wires: active
and neutral. The electricity from the grid or solar PV or EV system will only flow through the
one active wire, while the neutral wire is connected to the earth at the switchboard. The
purpose of the neutral wire is to provide a path back to the switchboard, the source of the
electrical current, in the event of a fault or problem which could lead to trip the breaker or blow
the fuse, cutting the electricity and preventing from getting electrocuted. Three-phase power
has four wires, three of which are active, in addition to one neutral wire, which is earthed at
the switchboard. Three phase electricity is common in both larger homes and businesses, as
well as older homes, and allows for smaller and less expensive wiring, and lower voltages.
Which one should be chosen? If the property has single-phase power, then the installation
needs a single-phase inverter. On the other hand, when the property has three-phase power,
it is technically able to install both single-phase and three-phase compatible inverters.
However, electrical grid operators do not allow an imbalance across the phases, that is why
the only solutions are to install three single-phase inverters for each phase, or one three phase
inverter that will work across all three phases.
50
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 29: Block diagram system Case 1 and Case 2 - Single phase
Figure 30: Single-phase inverter: (a) General block diagram and (b) blocks forming the Solar/EV inverter.
51
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Measures 1:
In this block 1 there is going to be measured the intensity (I_boost_solar) and the voltage
(V_boost_solar) of the simplified back-boost circuit (by the DC voltage source). With these two
measures, the solar DC power (SOLAR_POWER_1) can be calculated (1):
𝑆𝑂𝐿𝐴𝑅𝑃𝑂𝑊𝐸𝑅1 = 𝑉𝑏𝑜𝑜𝑠𝑡𝑠𝑜𝑙𝑎𝑟 · 𝐼𝑏𝑜𝑜𝑠𝑡𝑠𝑜𝑙𝑎𝑟 (1) → 𝑃 = 𝑉 · 𝐼 (1)
Equation 1: Solar Power, Single-Phase Inverter
Filter:
Corresponds to a filter for having a good lecture of the measurements of voltage and current.
The values are C=52*1e-6 [F] and L=1.9656*1e-3 [H], considering the max current output from
the inverter.
Measures 2:
This block corresponds to the measure of AC voltage and current, meaning output values.
Variables 1:
Finally, this block has the function of the calculation of both active and reactive power using
the signals of block 4.
The difference is passed through a PI controller, where, thanks to the integral, the error is
eliminated. Besides that, there is a division between the voltage of the inverter and the boost
voltage (the Vdc indicated in previous figures) multiplied by the constant kd. Finally, the sum
of the signal from the PI and the kd signal is compared to a repeating sequence to create the
IGBT signals of the inverter. These signals are the ones which will trigger the IGBT bridge
(Figure 32).
The P&Q references block in Figure 31 has the function to introduce the references of active
and reactive power. In the case of the solar inverter, it is programmed as the inverter has to
provide the maximum power, also the max active and reactive. On the other hand, the inverter
of the car will deliver the reactive power with a small modification that will be explained later.
It is important to remember that in this control, the reference current is the sum of the reference
currents generated by the active and reactive controls.
52
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 31: Block diagram of the single-phase Solar and EV Inverter control
Solar EV
53
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
The symbology used with the character “▷” corresponds to a NOT (meaning multiplied by -1).
Inside the PI control boxes from Figure 33, there is the next control where they also have their
own proportional (kp) and integral (ki) gains, as shown in Fig. 31.
The signals s1, s2, s3 and 24 from solar inverter and s11, s12, s13 and s14 from the EV
(Figure 31), goes to the IGBT bridge (Figure 32). Thanks to these signals, the inverter is going
to provide the power introduced by the references. To generate the reactive power, there is a
delay in the control followed by the reactive control (Q control). The phase difference between
voltage and current must be 90º, to get full reactive power as Figure 34 shows.
54
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Solar
Figure 31 shows the blocks forming the P and Q controls for both the solar and EV cases, in
these blocks there is going to be the next control shown in Figure 36 and Figure 35 where the
main variables are the real power produces and the current voltage from the inverter. In case
of the electric vehicle, it is the same control only by changing the main variables as shows
Figure 36. Each of the power controls ("P Control" and "Q Control"), generates a reference
current for each power, which when added together results in the inverter reference current.
55
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
56
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
The three-phase inverters of each house are located within the "Power Generation" blocks,
as shown in Figure 38. For the subsequent control, 2 essential variables are needed, the
phase current of the inverter (measured in the current blocks inside "Power Generation") and
the voltages between phases A-B and B-C of the grid (obtained in the block "Measures Block
(1)"). The following control will be the same for both solar panels and electric vehicles.
As can be seen in the following Figure 39, the control for this three-phase inverter will consist
of 5 essential initial variables, the mains voltage between phases and the phase currents
flowing through each house. The control will give us the signals that will trigger the IGBTs. As
shown in Figure 39, within the control it can be differentiate 3 more controls:
- Alfa-Beta Control
- Power and Current loop Control
- SVM
57
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
The explanation will follow with the Alpha-Beta control as shown Figure 40, where the input
variables are the phase-to-phase voltages (vab and vbc) and the phase currents measured in
their respective blocks explained above. Through the Clarke transformation αβ values of the
current and voltage (Figure 40) are found. With these values, the control aims to create the
variables α and β for current and voltage. At the same time, these variables will be the ones
used to calculate the active and reactive power being generated by the inverter. This power
will follow the setpoint powers entered in the "Control Power and Current loop" block.
Within the "Voltage Clarke Transf" block, the α and β values for the voltage are created. Inside
the block, it is represented the following Clarke transform matrix (Equation 2).
2 1 2 2
·𝑣 𝑣
𝑣𝑎𝑙𝑓𝑎 𝑣𝑎𝑏 𝑣𝑏𝑐 3 3 𝑣𝑎𝑙𝑓𝑎 3 𝑎𝑏 3 𝑏𝑐 (2)
(𝑣 )= ( 0 𝑣𝑏𝑐 ) · → (𝑣 )=
𝑏𝑒𝑡𝑎 √3 𝑏𝑒𝑡𝑎 √3
0 0 𝑣
( 3) ( 3 𝑏𝑐 )
58
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Furthermore, in the block corresponding to the current, the matrix introduced inside the block
would be the following equation 3:
2 1 2 2
· (𝑖 − 𝑖𝐵 ) (𝑖 − 𝑖𝐶 )
𝑖𝑎𝑙𝑓𝑎 (𝑖 − 𝑖𝐵 ) (𝑖𝐵 − 𝑖𝐶 ) 3 3 𝑖𝑎𝑙𝑓𝑎 3 𝐴 3 𝐵 (3)
( )= ( 𝐴 )· → ( )=
𝑖𝑏𝑒𝑡𝑎 0 (𝑖𝐵 − 𝑖𝐶 ) √3 𝑖𝑏𝑒𝑡𝑎 √3
0 0 (𝑖 − 𝑖𝐶 )
( 3) ( 3 𝐵 )
Once all the variables have been obtained, the "P&Q Calculation" block determines the
instantaneous active and reactive power using the following expression form equation 4:
3
𝑝= (𝑣 ·𝑖 + 𝑣𝑏𝑒𝑡𝑎 · 𝑖𝑏𝑒𝑡𝑎 )
2 𝑎𝑙𝑓𝑎 𝑎𝑙𝑓𝑎 (4)
3
𝑞 = (−𝑣𝑎𝑙𝑓𝑎 · 𝑖𝑏𝑒𝑡𝑎 + 𝑣𝑏𝑒𝑡𝑎 · 𝑖𝑎𝑙𝑓𝑎 )
2
Equation 4: Instantaneous Active and Reactive Power, Three-phase Inverter
Before the final result, the signal is passed through a discrete "LPF" filter. This is a second
order filter discretized using Tustin.
59
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Once instantaneous powers are calculated, the process continues in the "Control Power and
Current loop" block where it will use the voltage and current variables calculated in the
previous block. In this part of the controller, the objective is to make the current follow the
reference current. When entering inside there is the following circuit Figure 41.
The current reference function takes the values of vα, vβ and together with the active and
reactive power reference values generates the reference iα and iβ. The power references are
introduced through vectors created within the Matlab code, in the "P&Q references" block.
Knowing that the reference power can be defined as the equation 5.
3
𝑃𝑟𝑒𝑓 = (𝑣 ·𝑖 + 𝑣𝑏𝑒𝑡𝑎 · 𝑖𝑏𝑒𝑡𝑎𝑟𝑒𝑓 )
2 𝑎𝑙𝑓𝑎 𝑎𝑙𝑓𝑎𝑟𝑒𝑓 (5)
3
𝑄𝑟𝑒𝑓 = (−𝑣𝑎𝑙𝑓𝑎 · 𝑖𝑏𝑒𝑡𝑎𝑟𝑒𝑓 + 𝑣𝑏𝑒𝑡𝑎 · 𝑖𝑎𝑙𝑓𝑎𝑟𝑒𝑓 )
2
Equation 5: Power reference calculation, Three-phase Inverter
60
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Now that control have the instantaneous and reference αβ currents, the process can continue
with the next control inside “Current Loop” shown in Figure 42. The Figure 42 shows 2 control
diagrams where it can be seen a voltage cancellation.
61
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Specifically with the DC voltage raised by the boost circuit of the inverter (remember that in
this control, as in the single-phase inverter, this control is not shown in order to simplify the
simulations). Since what the control wants to equate the input to the output, in this case, control
wants to equal iαref and iβref to iα and iβ. Therefore, a Feed-Forward for Voltage is going to
be needed and a cancellation by division of Vdc/2. Inside the alfa and beta controller, there is
the next control shown in Figure 43.
𝑌(𝑧)
The filter 𝑍(𝑧) is a Tustin transformation as the equation:
𝑌(𝑧) 𝑌(𝑠) 𝑌(𝑠) 2·𝑘𝑖·𝜉·𝑤0 (7)
𝑍(𝑧)
= 𝑇𝑢𝑠𝑡𝑖𝑛 𝑡𝑟𝑎𝑛𝑠𝑓𝑜𝑟𝑚𝑎𝑡𝑖𝑜𝑛 𝑜𝑓 𝑍(𝑠) where 𝑍(𝑠)
= 𝑠+ 2·𝜉·𝑤0 +𝑤0 2
62
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
The variable "wo" is the computational frequency. In the simulation’s explanation section, the
concrete values of all variables and constants will be given. Finally, the obtained variables
dalfa and dbeta, will be used to be compared with a SVM to obtain the 6 signals that will
activate the IGBTs as shown in Figure 44. Before the pulses generation there must be an SVM
adapter as shown in Figure 45. Pulses block generates pulses for a three-phase basic two-
level voltage-sourced converter (VSC) consisting of three half-bridge switching devices
(IGBTs). The block will utilize the space vector pulse width modulation (SV PWM) technique
to generate firing pulses to the 6 switching devices of the 3 half-bridge switching devices as
shown in Figure 46.
63
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
64
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
4. Cases of studying
4.1. Introduction to the different cases
In cases 1 and 2 the system is single-phase, where there is going to be the monophasic
inverter. Furthermore, cases 3 and 4 are a three-phase system. In this way, there is going to
be an analysis of single-phase and three-phase with different profiles of consumption and
generation. All cases are going to be evaluated in 24 seconds, which emulates 24 hours, i.e.
one day. In all the simulations, if the signal is positive means injection, if it is negative it is
absorption. The nomenclature "P" stands for active power, and "Q" for reactive power. In all
cases they will be evaluated in 3 scenarios:
- Scenario 1: reactive absorption.
- Scenario 2: Reactive injection.
- Scenario 3: system without self-generation houses.
4.2. Case 1: Single-family house with solar panels and one electric
vehicle
As mentioned above, this first case corresponds to a single-phase system. It will be studied
what influence can have a house with self-generation in one phase.
4.2.1. Simulink Description
The following Figure 47 corresponds to the Simulink system for Case 1 and 2, where it has
the same structure as the block diagram system as described in chapter 2.
65
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Now that there is an idea of the structure of the inverter, the explanation will follow the Simulink
model (Figure 48) with the same order established in the Figure 47.
66
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Block 1:
In this block 1 there are the current and voltage measurements needed for the forward control.
As can be seen in Figure 49, there is going to be measured the intensity (I_boost_solar) and
the voltage (V_boost_solar) of the simplified back-boost circuit (by a DC voltage source). With
these two measures, applying the same Equation 1, the system calculates the solar DC power
(SOLAR_POWER_1).
𝑆𝑂𝐿𝐴𝑅𝑃𝑂𝑊𝐸𝑅1 = 𝑉𝑏𝑜𝑜𝑠𝑡𝑠𝑜𝑙𝑎𝑟 · 𝐼𝑏𝑜𝑜𝑠𝑡𝑠𝑜𝑙𝑎𝑟 (1) → 𝑃 = 𝑉 · 𝐼
To obtain a more real and finer, a first order transfer function filter is performed, where ωc is
the angular velocity. This parameter follows the next equation →
ωc = 2π / Tc or ωc = 2πfc (rad / s)
Block 2:
Following the established order and the structure of the block diagram in chapter 2 (Figure
49), the inverter in Simulink looks like in the next figure. Also, the symbology used with the
character “▷” corresponds to a NOT (meaning multiplied by -1). In the case of the Electric
vehicle inverter, the operation is going to be the same as the solar inverter, changing the
necessary variables. In the next Figure 50 there are the diagrams block with the Simulink
model.
67
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 50: Block diagram & Simulink Model of single-phase Solar and EV Inverter control
In both cases, voltage and current are the output signals of the inverter, those variables are
measured in block 4, next to the filter block 3. Once the variables s1, s2, s3 and s4 (Solar
inverter), also s11, s21, s31 and s41 (EV inverter) have been selected, the variables go to the
IGBT Bridge, Figure 51.
68
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
These IGBT bridge signals are generated by comparing with a ramp signal, this signal is inside
the block Ramp_1 and Ramp_2 (both are identical). The variable "ts" corresponds to the
inverse of the computational frequency ("fs") as shown in Figure 52. In this case 1 and in the
rest of them, fs= [Hz] and ts= 1/fs [s].
Inside P&Q references boxes from Figure 50, it will set up the control and creation of
references for the inverters. The control will be related with the apparent power, whereas if it
is introduced as well as the amount of active energy produced, using the next simple Equation
8 is easy to know the maximum reactive power that the inverter can provide.
Therefore, only the values of active power, reactive power and time are needed for each value.
The code for this part will be as follows in next page Figure 53, where SPG is the power
entered by the repetition sequence, followed by the reactive calculation. The GPS values will
be introduced by means of Matlab code, which can be consulted in annex 55.
The EV inverter, the control, has the same idea, meaning that it provides the maximum active
and reactive power all the time. But in this case, as it is an electric vehicle, if the vehicle is not
charging because it is on the road, there is no battery, so there is no power supply. Therefore,
in the code shown next to this paragraph, if the reference is equal to 0, that means the car is
not in the house, if it is not, it means it is in the charging pull. Go to next page Figure 54 to see
the code.
5For further information, go to Annex 5 where the Matlab code has been copied with its respective
annotations
69
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
As it has been said, the output values of the repeating sequences are defined in the Matlab
code, as well as the time values. The code can be consulted in annex 5. To do the reactive
absorption, there should be a negative ahead of the square root of the Qref in the P&Q
references block code (line 4 in the solar inverter and line 8 in the EV inverter).
70
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
This sign change will be defined by the variable "SIGNO" entered in the Matlab code. This will
obtain values of 1 (reactive injection), -1 (reactive absorption) or 0 (in case of wanting to
eliminate the generation), Figure 56 shows the above.
The "Active Control" and "Reactive Control" boxes contain the same control presented in the
block diagram in the corresponding section of Chapter 2. This control subtracts the actual
power value (measured in block 5, "Preal_solar_1", "Preal_EV_1", "Qreal_solar_1",
"Preal_EV_1",) from the reference power (entered in the positive).
71
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
This error is then passed through a PI, and summed with the operations shown in the image.
Variables "V_AC_EV_1" and "V_AC_SOLAR_1" are measured in blocks 4 of their respective
inverters. The variable “ v_amplitude_2”, corresponds to the electrical grid amplitude squared
as Figure 57 and Figure 58 shows.
For the reactive delay, it is used the Simulink block “Transport Delay”. The variables
“delay_solar” and “delay_EV” have the same value. The phase difference between voltage
and current must be 90º. This parameter block requires the time lag variable, knowing that the
frequency is 50 Hz and that the period is its inverse, it can be find out that the time lag must
be half the period (T=1/f=1/50=0.02 and delay=T/2=0.01 [s]). This variable is entered by the
Matlab code as shown in next page Figure 59.
72
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
73
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Frequency [Hz] fo 50
[rad/s] ωO 2𝜋fo
The Table 1 compiles all the variables seen so far and their respective value.
Block 3: the function of this block is simply because it is just a filter with considering the max
current output from the inverter, the values are the following:
C_filter= 52*1e-6 [F]
L_filter= L2=1.9656*1e-3 [H]
Block 4: Here the output voltage of the inverter and its corresponding peak value are
measured.
Block 5: Finally, with the current and voltage variables read in block 4, using the Matlab power
calculation block, reactive and active power is obtained as Figure 60 shows in the next page.
These 2 variables are the ones that will be used to make the graphs and are the ones that are
sent to block 2 for inverter control.
74
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 60: Active and reactive power generated, Block 5, single phase inverter
Following with the order established, the next blocks to comment on are Grid (3) and Load (4).
- Grid, from Figure 47 (3)
This block represents the grid, there is a RL resistance where in the following simulations there
is going to be variations in the inductance with the objective to reach the parasitic electrical
grid inductance, the values are introduced in the Matlab code. Also, there are the necessary
measurements of the voltage and current grid values. The grid is going to be 220√2 of peak
amplitude value and 50Hz of frequency as it shows Figure 61.
75
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Increased consumption
couple with 2 children
Figure 62: Average consumption profile in a single house in Spain in the year 2019
Figure 63 is the control for the Load sequence, where it is introduced by a repeating sequence
and is the divider of the voltage read in the controlled Current source (I=V/R). This current is
going to simulate the charge of the single-family house. The time parameters and output
values will be introduced by means of vectors with Matlab code, see annex 5 for the code
used. The power of the single house is going to be the stipulated by the normative values in
Spain law resumed in next page Table 3.
76
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
6 0,2 14 0,5 22 1
Knowing the power of the house (PHouse), using Equation 9, doing a simple clearing it is easy
to get the Load value (Ohm) of the House (Equation 10). As it has been said in this chapter,
the load sequence is going to follow the average consumption profile in a single house in Spain
in the year 2019 (Figure 62).
To do so, the variable “n” is going to have the same values of the
Table 3, which is related to the Figure 62. resulting in a new equation as a function of the
variable "n". This ensures that the load profile of the house always follows the average
consumption profile in the figure below.
With the different values of the contracted power of each house, different sequences will be
obtained, but they will always follow the profile of the average consumption profile. With the
end of this section, the explanation of the single-phase Solar and EV inverter will be almost
the same for case 2.
77
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
4.2.2. Control
In case number 1, is going to be a single-phase house with solar power generation and an
electrical vehicle. For the code only 3 variables are needed for the code:
- Solar power
- EV power
- Installed capacity power of the house.
The values under consideration are as follows in Table 4. With these values, the load value
is calculated which later is going to be used to calculate the load profile. Also, the maximum
power values for the solar inverters and the electric vehicle are also established.
0,5 · (220 ·√2)2
For the load sequence, with the formula→ 𝐿𝑜𝑎𝑑 = 𝑃𝐻𝑜𝑢𝑠𝑒
, the value of Load is 8,4174 Ω.
0,5 · (220 ·√2)2
Once the value is obtained, the profile using 𝐿𝑜𝑎𝑑 (𝑛) = , where “n” follows the
𝑛·𝑃𝐻𝑜𝑢𝑠𝑒
values of Table 4 to have the average profile. With the “n” corresponding values, the house
will have the Figure 64 resistance profile.
In the following Figure 65, an extract of the code that can be found in annex 1 is shown, where
it is shown how this profile is introduced in the Simulink model: first the resistance of the house
is calculated, then the profile is produced where it is collected in a vector that together with
the time one, both are introduced in the block.
78
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Load Calculation
Profile generated
following Equation 10
Sequence
vector
Repeating
Sequence
Introduction
79
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
For this case the control is going to be single-phase, the inverters used are the same explained
in chapter 3. For the solar case, the production is going to follow an average solar curve shown
in Figure 66.
Due to the inverter control, it is going to provide the maximum reactive power in function of
the active power that could be generated. For the electric vehicle, there has to be a
consideration that at night the car will only charge the battery, more specifically, it charges the
battery slowly and to not lose power, so that it does not degrade over time. When the car is
coming back to the house, it is going to act as an energy storage and will provide power at
night, in the peak hours (21 to 22). Later it will generate reactive power. As it has been said,
all the simulations are going to be compared with reactive injection, reactive absorption and
with a non-self-generation home. To make it simple here is a table of the energy production
from solar and the EV, Q power is going to be injection or absorption depending on the
configuration shown in Table 5.
These references are entered via Matlab code in much the same way as the house load profile.
As can be seen in Figure 67, first the profile is created, then the vector is created and finally it
is entered into the repeating sequence. The time vector is always the same, both for powers
and load sequences. Note that the reference power profiles conform to the conditions shown
in Table 5.
80
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 67: Power References introduction to the repeating sequence, Solar and EV, Single-phase Inverter
81
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 68: Active and Reactive generation of Grid, Solar, EV, and Load (H1) - Case 1 – Scenario 1
4.2.3. Simulation
Remember that in all cases as well as this Case 1, are going to be evaluated in 3 scenarios:
- Scenario 1: reactive absorption.
- Scenario 2: Reactive injection.
- Scenario 3: system without self-generation.
The first figure obtained from the simulation is the active and reactive generated in the grid in
scenario 1, Solar and EV inverter and the Load. Also, at the end of each column there is the
load sequence as shown in Figure 68. In this figure is shown that the inverters work perfectly
fine due to power generated (red) following the reference (blue), this one introduces as Figure
67. The first conclusion that can be drawn is the amount of reactive energy that the solar
inverter injects into the grid, provoking the grid to absorb the energy. It can also be seen how
the grid is absorbing reactive power, since the inverters are in absorption mode. Also, if the
reader focus on the active power from the grid, it is clear the influence of solar generation. In
the hours with the highest solar incidence (midday), when the greatest amount of power is
produced, the grid switches from injecting to absorbing.
In the next page Figure 69 shows the behavior of the system. Now let's see what happens
when the inverter absorbs reactive power instead of injecting. The figure is going to have the
same structure as the previous above.
82
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 69: Active and Reactive generation of Grid, Solar, EV, and Load (H1) - Case 1 – Scenario 2
Figure 70: Active and Reactive generation of Grid, Solar, EV, and Load (H1) - Case 1 - Non self-generation
Here it is notable the impact of the inverter in the reactive power. The active power has the
same behavior in all cases, whereas the reactive is clear that the grid now has to inject the
reactive due to the inverters being able to inject. Finally, the same figure is going to be
evaluated in scenario 3, where there is no solar self-generation and electric vehicle at the
house, Figure 70.
83
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 71: Active and Reactive power generation of Grid (H1) – All Scenarios - Case 1
Figure 72: Apparent power generation of Grid (H1) - 3 All Scenarios - Case 1
In this case, it is notable that the active power from the grid is more like the load profile or the
load power demand. Also, there is no reactive generation or demand. On the other hand, the
grid is always injecting and never absorbing. Now let's compare the 3 simulation scenarios
with the graphics shown in Figure 71, been “P//Q” (Scenario 2 - injection), “P’//Q’” (Scenario 1
- absorption) and “Scenario 3 p//q” (non-self-generation)
Here it is clearly visualized that at night the active consumption of the self-generation house
(P or P’) is the same and both are higher than the non-self-generation scenario. This is due to
charging the electric vehicle (EV) at night. In addition, when the sun comes up, the solar panels
start generating power and the EV is gone, the grid starts absorbing power instead of injecting.
In the dinner hours, when the load demand is at its best, the needed power is very similar.
Besides, the reactive power Q and Q’ are the opposite, in contrast “q” is almost 0 all the time.
In addition, Figure 72 shows the apparent power where is shown that scenarios 1 and 2 have
much more apparent energy compared to the non-self-generation scenario 3.
84
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 73: Active and Reactive Energy produced (H1) – All Scenarios - Case 1
Another way to visualize all this data is making the total amount of energy provided in each
scenario as Figure 73 shows. In this figure is easy to see that the self-generation scenarios
(45 kWh) need less active energy than a non-self-generation case (58 kWh).
In case of the reactive power, the scenarios with auto generation have the same quantity but
at the same time they are the opposite (injection +97 kVArh, absorption -97 kVArh). In addition,
the third scenario (7 kVArh) is much smaller than the other two.
Finally, another intriguing figure is Figure 74, where it represents the apparent energy.
Self-generation scenarios (125 kVAh) are the same and much bigger than the non-self-
generation case (58 kVAh).
85
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 76: Relation between load sequence and voltage variation through inductance
So, the limits that will appear in the following figures are the +/-7% of the peak voltage value,
which is 220·√2, meaning that the range voltage limits are -289,35 V and +332,9 V. By
modifying the grid inductance, the simulation is going to show us how it affects the injection or
absorption of energy, especially reactive energy. The 3 inductance values introduced are:
Red → L=12e-6 H ; R= 1e-6 Ω
Blue→ L=6e-6 H ; R= 1e-6 Ω
Magenta → L=9e-6 H ; R= 1e-6 Ω
In the next page Figure 77 there is going to be the results of the 3 different scenarios and their
response to the 3 inductance variations from the grid. With the Figure 77 is it does not matter
if the house has self-generation or not, if it absorbs or injects reactive power, in all cases it has
behaved in the same way with respect to inductance variations. The impact of a single house
is very little. Also, the variation in voltage follows more the curve of the load rather than the
reactive injection as Figure 76 shows.
86
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Scenario 3 (non-self-generation)
Likewise in the inductance variation in this case 1, it is demonstrated that the impact of a house
with self-generation is practically negligible when it comes to presenting changes in the grid
by injecting or absorbing energy, provoking the voltage variation caused by the grid inductance
to be more like the load curve rather than the reactive energy.
87
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Case number 2 is going to be the same as Case 1 but with 3 houses, the same control
explained in case 1 will repeat it here 3 times, one for each home. Also, with the required
measurement blocks, RL grid branch and a three-phase programmable Voltage Source as
Figure 78 shows.
The variables will always have the same name and will only be differentiated with "_H1"
(representing house 1), "_H2" (representing house 2) and "_H3" (representing house 3). For
the Matlab code used for the simulation, see Appendix 6. The code has the same structure of
case 1, the only difference is in the name of the variables and the number of profiles, since in
this case there will be a total of 3 sequence and power profiles (one for each house).
88
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
4.3.2. Control
Every home will have different behaviors, profiles and power. In the following tables Table 6
and Table 7 there are the main characteristics of the 3 houses and their injection or absorption
power times. All these reference characteristics will be introduced in the simulation code,
which is located in Annex 66 following the same structure and process as in Figure 67 shown
above in previous chapter 4.2.2.
4.3.3. Simulation
After the simulation from Simulink of all three scenarios, the fist figure is about the active and
reactive power from the 3 scenarios for each grid phase:
- Scenario 1, self-power reactive injection (P, Q and S)
- Scenario 2, self-power reactive absorption (P’, Q’ and S’)
- Scenario 3, non-self-power (p, q and s)
6For further information, go to Annex 6 where the Matlab code has been copied with its respective
annotations
89
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 79: P and Q from each phase in Scenario 1 (Reactive absorption) - Case 2
Figure 80: P and Q from each phase in Scenario 2 (Reactive injection) - Case 2
The symbol criteria will also remain the same as those used up to now: + → injection - →
absorption. All this graphics are shown in figures 79, 80 and 81. These figures represent the
values from the grid. Since the individual graphs for each house are not shown at this point, if
the reader is interested on the Active and Reactive generation of Grid, Solar, EV, and Load
from each house like the previous Figures 69 and 70, go to annex 7 7
7
For further information, go to Annex 7 where there are complementary figures from Case 2
90
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
𝑺 = √𝑷𝟐 + 𝑸𝟐 (11)
Equation 11: Apparent Power formula
Reading the active and reactive values of each one of the phases and applying Equation 11,
as shown in Figure 82, representing the apparent power values over 24 hours. Figure 83
represents the sum of each active and reactive power of each phase, i.e., the reactive power
of phase A, B and C is added. The same with the reactive power.
91
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 84: Active, Reactive and Apparent energy each phase - Case 2
Figure 85: Sum of Active, Reactive and Apparent energy grid - Case 2
With figure 83, is shown that active power generation does not differ in whether inverters are
injecting or absorbing reactive power. The same happens with the reactive power, where they
simply have a difference of signs as in case 1. Another observation, as in case 1, is that in the
sunny hours, there is energy excess and, at night, the consumption of the self-generation
scenarios is higher because of charging the car at those hours. Also, due to the reactive
generation, the apparent power of the self-generation scenarios is much higher. In figure 84,
when the active and reactive power from each phase is added together, is confirmed that all
what has been said before. Repeating the same process as in case 1, in order to visualize
what has been described above in a clearer and simpler way, a graph will be made with the
sum of the active, reactive and apparent energy, joining the values of the 3 phases and for
each single phase.
92
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 86: Voltage variation across grid inductance - Scenarios 1 (Reactive absorption) - Case 2
Seeing figure 85, is it clear that self-production scenarios generate more energy, needing less
active power and with the possibility to provide power to the grid. The conclusions are the
same as case 1 in this aspect.
4.3.4. Parasitic Grid Inductance
In this case 2 it will be repeated the same process as in case 1 above. The grid inductance
variation values are the followings:
Red → L=6.5e-6 H ; R= 1e-6 Ω
Blue→ L=9.5e-6 H ; R= 1e-6 Ω
Magenta → L=12e-6 H ; R= 1e-6 Ω
Once the simulation has been carried out, in Figures 86, 87 and 88, it can be seen the voltage
variation. In case 2 the grid inductance is bigger than in case 1, meaning that with the increase
of loads, the inductance grid grows.
With the mentioned figures, the voltage variation of the 3 phases, a higher grid inductance
causes an increase in distortion. However, this case does it in a different way than Case 1, in
fact it almost does not go out of the normative values and it does it with a very flat shape that
is decreasing throughout the day.
93
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 87: Voltage variation across grid inductance - Scenarios 2 (Reactive injection) - Case 2
Figure 88: Voltage variation across grid inductance - Scenarios 3 (non-self-generation) - Case 2
As can be seen in Figures 86, 87 and 88, the voltage variation is very similar independently of
the scenario that is being evaluated.
94
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 89: Voltage through inductance variation, P&Q grid power from the phase A and Load sequence House 1
- Case 2
In this case 2, the voltage variation does not follow either the load curve and power grid, even
though the variation declines as the load decreases. As is shown in Figure 89 representing
the voltage variation through inductance variation and the active and reactive grid power from
the phase, in this case is phase A, and the load sequence from the house of the phase (house
1).
Also, it is shown that at night, when the consumption and reactive power is the highest, the
variation decreases a little bit. If the reader consults Annex 7, there is going to be all the figures
from the simulation, and it is easy to see that in case 2 there is no correlation between the
reactive power or load sequence with voltage variation this happens in all the scenarios.
95
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Likewise in the inductance variation in this case 2, it is noticed that the impact of a house with
self-generation is as well practically negligible like the case 1. The difference is that in this
case 2, the variation does not follow either load sequence or a reactive power curve.
Therefore, once cases 1 and 2 have been simulated, is it shown that with one single house
per phase, it is not enough to present significant changes in the voltage variation through
inductance variation (regardless of whether the inverter is working to inject or absorb reactive
power). On the other hand, it is possible to reaffirm that the houses with solar generation and
electric vehicles increase the consumption in low hours (at night) and decrease it in the sunny
hours. Making a balance of all the energy consumed, it can be concluded that the houses with
self-generation consume considerably less active energy than the normal ones and provide a
large amount of reactive energy to inject or absorb.
For the Matlab code used for the simulation, see Annex 88. As in case 3, the corresponding
figures for each house will be attached in the explanation, the graphs related to the electrical
grid will be shown. If the reader wishes to view the graphs for each house individually, see
annex number 9.
8
For further information, go to Annex 8 where the Matlab code has been copied with its respective
annotations
96
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Before continuing with the explanation, let's see an image of the real model in Simulink in
Figure 91 where, if compared with the previous figure 90, the above-mentioned structure is
perfectly visible.
Within each combo there will be a block where it will calculate the variables of the phase to
which it belongs. The power generation block is where the three-phase inverter and all its
respective controls explained in chapter 2 will be installed. This block will be structured as
follows the next figure, where it will be a measure block, a filter and the block where is going
to be the three-phase inverter as Figure 92 shows.
97
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
98
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
99
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
L[H] = 1.9656*1e-3
C[F] = 52*1e-6
Figure 94: Currents read, filter values and the structure of the model - Case 3
The following section will explain the calculations. It is recommended to review the explanation
of the three-phase inverter in chapter 3, section 3.2.2. The active and reactive grid values will
be calculated as the cases 1 and 2, using the Power block, which compute the active and
reactive powers of a voltage-current pair at fundamental frequency. Figure 93 shows where
the current and voltage values are obtained. It is very important to remember that the grid
voltage values should be measured before the Three-Phase Series RL-Branch. The Simulink
model gives problems if the voltage is measured after the RL Brunch, as this causes distortions
in the reading, which causes the control to be destabilized. As mentioned above, in each
100
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
combo there are 3 houses. In Figure 94 it is possible to see the currents read, the filter values
and the structure of the model. Within each block "H1", "H2"... "H18", there is the three-phase
inverter where it follows the same structure exposed in chapter 3. This explanation will be for
only one house, but the process will be the same for the rest of them.
Figure 95 shows the control block where the mains voltage signals between phases A-B and
B-C enter. The current signals read by the measuring block in the previous Figure 94 are also
input. This control block, from calculation processes that will be explained below, knowing the
voltage between phases and the currents, will generate the signals that will trigger the three-
phase IGBT Half-Bridge switching. Within the control block, as shown in Figure 96, there are
these 3 more blocks (same structure as described in chapter 3).
101
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
2 2 2 2
· (𝑖 − 𝑖𝐵 ) (𝑖𝐵 − 𝑖𝐶 ) ·𝑣 𝑣
𝑖𝑎𝑙𝑓𝑎 3 𝐴 3 𝑣𝑎𝑙𝑓𝑎 3 𝑎𝑏 3 𝑏𝑐 (2)
( )= (𝑣 )=
𝑖𝑏𝑒𝑡𝑎 √3 𝑏𝑒𝑡𝑎 √3 (3)
0 (𝑖𝐵 − 𝑖𝐶 ) 0 𝑣
( 3 ) ( 3 𝑏𝑐 )
Figure 98: Clarke transform Alpha-Beta Control with Equations 2 and 3, Case 3
3
𝑝= (𝑣 ·𝑖 + 𝑣𝑏𝑒𝑡𝑎 · 𝑖𝑏𝑒𝑡𝑎 )
2 𝑎𝑙𝑓𝑎 𝑎𝑙𝑓𝑎 (4)
3
𝑞 = (−𝑣𝑎𝑙𝑓𝑎 · 𝑖𝑏𝑒𝑡𝑎 + 𝑣𝑏𝑒𝑡𝑎 · 𝑖𝑎𝑙𝑓𝑎 )
2
Figure 99: Instantaneous power is calculated by alfa-beta values with Equation 4, Case 3
The first block of the 3 main sub-blocks of the general control block (which is the alpha-beta),
is where the control voltages and currents are calculated, as well as the instantaneous power
generated by the inverter. It is structured as follows Figure 97. As can be seen, it consists of
2 Clarke transformations, one for voltage and the other for current. These Clarke transforms
are introduced by means of a Matlab function. Voltage and Current Matlab Clarke function are
equal to the equations seen in chapter 3, which is introduces as Figure 98 shows. Thus, with
the variables obtained, the instantaneous power is calculated with the following Matlab
function as Figure 99 shows.
102
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
The Low Pass Filter (LPF) is introduced by Matlab simulation code as shown in Figure 100.
Then, the process continues with the calculation of dalfa and dbeta in the "Power and Current
loop" block. In this block, shown in Figure 101, the voltage and current variables of the
previous block are used, so that together with the introduction of the reference powers, the
reference current variables are created. Within the "P&Q References" block there are 2
Repeating Sequences, one for active power and the other for reactive power. The values of
the power sequences are entered using the Matlab code of the simulation as seen in the
previous cases and as can be seen in Figure 102 on the following page. Unlike the previous
cases, here the reactive profile must be entered, while in cases 1 and 2 only the active one,
since the reactive one was generated by itself. This is because being a simulation with so
many houses, it was very difficult to have a block dedicated to generating the active and
reactive powers of each house separately and then enter them in a vector to the repeating
sequence. This way the simulation is streamlined and the process is faster. Each house will
have a different profile, the only one that is the same for all of them is the weather.
103
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
2 𝑣𝑎𝑙𝑓𝑎 2 𝑣𝑏𝑒𝑡𝑎
𝑖𝑎𝑙𝑓𝑎𝑟𝑒𝑓 = ( 𝑃𝑟𝑒𝑓 ) + ( 𝑄 )
2
3 𝑣𝑎𝑙𝑓𝑎 + 𝑣𝑏𝑒𝑡𝑎 2 3 𝑣𝑎𝑙𝑓𝑎 2 + 𝑣𝑏𝑒𝑡𝑎 2 𝑟𝑒𝑓 (6)
2 𝑣𝑏𝑒𝑡𝑎 2 𝑣𝑏𝑒𝑡𝑎
𝑖𝑏𝑒𝑡𝑎𝑟𝑒𝑓 = ( 𝑃𝑟𝑒𝑓 ) − ( 𝑄 )
2
3 𝑣𝑎𝑙𝑓𝑎 + 𝑣𝑏𝑒𝑡𝑎 2 3 𝑣𝑎𝑙𝑓𝑎 2 + 𝑣𝑏𝑒𝑡𝑎 2 𝑟𝑒𝑓
Figure 103: Reference Current calculation with Equation 6
For this reason, in this case 3 the load profile is not introduced, since it has been previously
executed, when obtaining the active and reactive profiles, these are already shaped by the
load when introduced.
The reference current (Reference Current Block in Figure 101) is calculated by a Matlab
function that introduces the same equation seen in chapter 3 as shown in Figure 103. Even if
it says ialfa and ibeta, the code refers to the reference values.
Within the current loop block (Current Loop Block in Figure 101) is the next control shown in
next page Figure 104. Where PRES alfa and beta are the same controller formed by a
proportional constant and a resonant integrator introduced by Matlab code as next page Figure
105 shows.
104
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 104: Current Loop block, dalfa and dbeta generation - Case 3
𝑌(𝑧)
The filter resonant integrator 𝑍(𝑧) is a Tustin transformation as the equation 7 seen it chapter
For the rest of the houses it will be exactly the same filter, with the same values and the
same introduction method.
105
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Finally, the last part of the control corresponds to the SVM block (Figure 96), in this block
Simulink is going to use an SVM to achieve the signals that will trigger the IGBTs as next
page Figure 107 shown. This discrete block generates pulses for a three-phase basic two-
level voltage-sourced converter (VSC) consisting of three half-bridge switching devices
(IGBTs). The block utilizes the space vector pulse width modulation (SV PWM) technique to
generate firing pulses to the 6 switching devices of the converter. With these functions, control
generates the trigger IGBTs signals. All this blocks and controls will be repeated for each
home, the only change will be the variables names by using the word "_H1", "_H2" ... "H18"
appended to the end of each variable name.
4.4.2. Control
This case 3 will have a total of 18 houses where to be more realistic there will be some with
solar panels and an electric car, others with just one or none at all, also other houses will have
contracted higher power. This has been decided to do so in order to obtain more average and
realistic results. Table 8 on the following page shows the distribution of active and reactive
power of the solar panels and electric vehicle of each house, with their respective powers. In
this way, it is clearly shown in which hours power will be generated from the sun or the electric
vehicle and in which hours the inverters will inject or absorb active or reactive energy.
106
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
107
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Table 9: Summary of the load, solar and reactive power of each house
Table 9 shows a summary of the load, solar and reactive power of each house and their total
sum.
4.4.3. Simulation
First, as has been done throughout this work, scenarios 1 and 2 (with self-generation) will be
analyzed first. The nomenclature to identify each scenario will remain the same as in the past:
- Scenario 1, self-power reactive injection (P, Q and S)
- Scenario 2, self-power reactive absorption (P’, Q’ and S’)
- Scenario 3, non-self-power (p, q and s)
The symbol criteria will also remain the same as those used up to now:
+ → injection
- → absorption
Due to the number of houses that have this case 3, in this explanation and subsequent, the
focus will be in the grid. As mentioned above, if the reader wishes to go deeper on the specific
sequence of each home, go to annex 99.
9 For further information, go to Annex 9 where there is more Figures and information of the simulation
108
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 107: P and Q from each phase in Scenario 1 (Reactive absorption) - Case 3
Figure 108: P and Q from each phase in Scenario 2 (Reactive injection) - Case 3
Now there is going to be a comparison between scenario 1 and 2. The first scenario as it is
known, is the reactive absorption, the second is reactive. With all the power generated form
each house, the three-phase grid voltage looks like in Figures 107 and 108. Active power is
the same in both scenarios and follows the logic observed in the previous cases: the highest
consumption is always in the evening from 00:00 am onwards, where the cars or electric
vehicles are charging; and, when the sun comes up, the solar panels begin to generate energy
109
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 109: Comparison between the absolute reactive energy value generated from each phase of Scenario 1
(blue) and Scenario 2 (red) in kVArh
and consumption decreases substantially. Moreover, in this case 3, since many houses with
different consumption and generation profiles have been introduced, this causes the electrical
grid values to be more similar, causing in each phase the same amount of active and reactive
power produced, the system is balanced, for this reason the values are very similar in the
three phases. Reference and real generation lines are not distinguished, as the inverter follows
the reference perfectly, so it overlaps
But when visualizing the reactive power, something happens here that did not happen in the
other cases, the absolute values of reactive power in scenario 2 (reactive injection) are higher
than in the scenario 1, unlike in the previous cases in which the reactive power was always the
same in absolute values. This phenomenon can be seen more easily in Figure 109.
It seems like the three phase inverters in a grid with lots of houses, there is a remaining
reactive power. If the power difference is made in absolute values between the reactive values
from scenarios 1 and 2 as shown in next page Figure 110, it is noticeable that the difference
is completely the same and follows the same profile, independently of the phase. It can be
observed that in sunny hours (specially between 11:00 and 16:00) the difference goes down.
This range of time matches when de self-power generation houses injects more active power
to the grid, which means inverters are producing less reactive. This decrease occurs when the
inverters inject active power and at the same time generate less reactive power.
110
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 110: Difference between reactive power from scenario 1 and scenario 2 in absolute value
Figure 111: P and Q from each phase in Scenario 3 (non-self-generation houses) - Case 3
Figure 111 shows the results scenario 3 where all houses have neither solar panels nor an
electric car. The conclusions in this scenario 3 are the same as the previous cases, due to
there are not electric vehicles the consumption at night is the lowest. As household
consumption increases, the active power does it so also. It can be seen that the active power
has a similar form like the average consumption profile in a single house in Spain in the year
2019 (Figure 62). However, the reactive power is different because is not 0 or similar. This
means that when there are the three-phase inverters and a big number of houses, the system
has a remaining reactive power, this observation reinforces the same idea exposed above.
Like in the previous cases, there is going to be a comparison between all three scenarios using
excel and later the needed commentaries where red is scenario 1, blue is scenario 2 and
yellow is scenario 3 in next page Figure 112.
111
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 112: Active (P) and Reactive (Q) power generated in the 3 Scenarios - Case 3
This figure 112 show and reaffirm the influence of solar and EV in active generation, and in
the reactive is easy to see what had been explained before, which is that scenario 1 (red)
produces less reactive. Now in the following next page Figure113 it will be shown the amount
of energy produced in each scenario. The reader is reminded that these values are obtained
by adding the values of the 3 phases of active power in one band and reactive power in the
other. Multiplying the power of each one by the time (which in this case is always hours), it
can be obtained the energy value. In the active energy, the conclusions form Figure 113 are
the same as the previous Case 1 and 2, which is that non-self-generation houses demand
more active power than those which have self-generation. Due to the less use of reactive
power injection in scenario 1, when the apparent energy is analyzed, in contrast to the other
cases, scenario 2 and scenario 3 are much more similar. Besides that, when the inverters are
programed to inject reactive power, the apparent energy is almost the double of the absorption
scenario.
112
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 113: Active & Reactive Energy produced in each scenario - Case 3
113
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
For more Matlab figures of the simulation, see Annex 9. Compared to the other cases, the
difference of active energy between scenario 1 or 2 and scenario 3, is getting larger as there
are more houses. Table 10 shows this difference in comparison with the other cases summing
the active energy of all the phases of each case and scenario.
With this Table 10 it could be said that from the point of view of generating energy, the more
self-generation houses the grid has, the less active energy it will need. However, is it going to
happen the same if sum the reactive energy of all the phases? Let’s take a look at the reactive
energy with Table 11 where it can be confirmed what has been told above about.
10 For further information, go to Annex 10 where there more graphic data and information
114
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 115: Active and Reactive Energy Generated by Case 3 with 18 Homes
Figure 116: Active and Reactive Energy Generated by Case 3 with 72 Homes (x4)
Figure 117: Active and Reactive Energy Generated by Case 3 with 144 Homes (x8)
With these figures it is possible to see that the trends repeat it themselves again: the more
houses with self-generation, the greater the difference compared to a system of houses
without generation. Therefore, as the number of houses increase, if the reader looks at the
reactive power, there is less difference between the absorption and injection scenarios, on the
other hand, in the third scenario there is not much difference. This indicates something
contrary to what it had been seen and commented previously with the case of the 18 houses.
In next page Figures 118, 119 and 120 the values of the apparent energy are displayed, it is
noticeable that a better control for scenario 1 would be needed for the reactive power because
as the number of houses increases, there is less difference with respect to the injection
scenario 2.
115
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 120: Apparent Energy Generated by Case 3 with 144 Homes (x8)
Table 12 summarizes all the values shown in the previous figures. In the case of active energy,
if the values of scenario 3 are divided by those of scenario 1 or 2, it can be seen h ow much
more active energy is being generated by scenarios 1 and 2 compared to scenario 3. Figure
121 on the following page shows the described. If the same process is carried out, Figure 122
is obtained. What these graphs show is very intriguing, looking Figure 121, for 50 dwellings
the active energy required from the non-self-generation electrical grid ("p") is going to be 1.8
(180%) times higher than the self-generation electrical grid ("P" or "P' "). Furthermore, taking
the value for 18 dwellings, the active power grid required for "p" is going to be 2 (200%) times
higher than the P or P' scenario. The same happens with Figure 122, where for 25 dwellings,
in the case of reactive absorption, the non-self-generation system will have -0.7 (-70%) less
reactive power, and it will also have 0.4 (40%) times less power than the injection scenario. In
the graph of the reactive power we can see the limitation of the inverters or the c
116
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
117
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 123: Voltage variation through grid Inductance and P&Q Power, Scenario 1 Phase A - Case 3
In the graph of the reactive power (Figure 122) it can be seen the limitation of the inverters or
the system in case 3, since, from 75 houses, the curve flattens, which means that the increase
of reactive power does not vary much with respect to a grid without self-generation.
The final results are the following figures showing the peak voltage variation with the active
and reactive power for each phase. The following figures are summarized as follows:
118
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 124: Voltage variation through grid Inductance and P&Q Power, Scenario 1 Phase B - Case 3
Figure 125: Voltage variation through grid Inductance and P&Q Power, Scenario 1 Phase C – Case 3
119
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 126: Voltage variation through grid Inductance and P&Q Power, Scenario 2 Phase A – Case 3
Figure 127: Voltage variation through grid Inductance and P&Q Power, Scenario 2 Phase B – Case 3
120
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 128: Voltage variation through grid Inductance and P&Q Power, Scenario 2 Phase C – Case 3
Figure 129: Voltage variation through grid Inductance and P&Q Power, Scenario 3 Phase A – Case 3
121
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 130: Voltage variation through grid Inductance and P&Q Power, Scenario 3 Phase B – Case 3
Figure 131: Voltage variation through grid Inductance and P&Q Power, Scenario 3 Phase C – Case 3
122
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 132: Voltage variation through grid Inductance and P&Q Power, Scenario without Reactive Power
generated by Inverters, Phase A – Case 3
Unlike the previous cases, the relationship between voltage variation and reactive power is
clearly seen here. In cases 1 and 2, the relationship was much more related to the load profile.
Another interesting phenomenon that manifests itself for the first time is that there is a notable
difference between the scenarios simulated: in scenario 1 (reactive absorption) it can be seen
that the voltage variation remains within the margins of +/- 7% established by Spanish
regulations.
In addition, in scenario 2 (reactive injection) the limit is exceeded most of the time. In this case,
this occurs when the inductance has the value of L3. This means that if the inverters work to
absorb reactive power, they help to stabilize the grid within the normative values.
123
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 133: Voltage variation through grid Inductance and P&Q Power, Scenario without Reactive Power
generated by Inverters, Phase B – Case 3
Figure 134: Voltage variation through grid Inductance and P&Q Power, Scenario without Reactive Power
generated by Inverters, Phase C – Case 3
In the figure quoted, it can be confirmed that the active injection does not show any change in
the power injection to the electrical electrical grid. Although inverters have been programmed
to not generate or absorb reactive power, the system itself generates reactive power and this
causes the voltage variation. The voltage variation graphs in this figure are the same as in
scenario 3. Therefore, it seems that the efficient way to operate the inverters would be to only
124
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
absorb reactive power when the grid demands it. Because, as has been shown, active power
does not have a significant impact on voltage variation. Working in this way, the grid system
would benefit from self-generation and, at some point, would demand reactive absorption from
the inverters when needed to keep the voltage in the normative range. However, this issue
will be explained in the next section of this work, where it is going to explain if this hypothesis
is true.
125
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
In case 1, the impact of a house with self-generation is practically negligible when it comes to
presenting changes in the grid by injecting or absorbing energy, provoking the voltage
variation caused by the grid inductance to be more like the load curve rather than the reactive
energy. In case 2, the impact of a house with self-generation is as well practically negligible
like the case 1. The difference is that in this case 2, the variation does not follow either load
sequence or a reactive power curve. In addition, in case 3 it does not occur, this one having
18 houses influences much more in the voltage variation.
As far as reactive power is concerned, it seems that as the number of houses in three-phase
systems increases, the reactive power generated by the system also increases.
At the same time, focusing on the apparent energy data, it can be seen that if reactive power
is injected (Figure 76), the apparent power increases much more compared to absorbing it,
so the sizing of the electrical grid transformers, protections and others should be higher.
Therefore, absorbing reactive power not only helps to better stabilize the electrical grid, but
also to reduce the sizing of the devices.
It is also demonstrated that in a system there is a reactive saturation point, which means that
from that point on, the increase of houses with self-generation will not cause a proportional
increase in reactive power. In the next chapter, it will perform a simulation with the files used
for case 3, to see how the system would behave in the event of an electrical grid failure.
126
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
The first vector is A: [Order Amplitude Phase Seq]. This parameter is only enabled if the
Fundamental and/or Harmonic generation check box is selected. Here it can be specified the
order, amplitude, phase, and the type of sequence (1 = positive-sequence; 2 = negative-
sequence; 0 = zero-sequence) of the first harmonic to be superimposed on the fundamental
signal. The voltage of the harmonic is specified in p.u of the positive-sequence voltage.
The second vector is B: [Order Amplitude Phase Seq]. This parameter is only enabled if the
Fundamental and/or Harmonic generation check box is selected. Here it can be specified as
the order, amplitude, phase, and the type of sequence (0 = zero sequence, 1 = positive
sequence, 2 = negative sequence) of the second harmonic to be superimposed on the
fundamental signal. The voltage of the harmonic is specified in p.u of the positive - sequence
127
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
voltage. Finally, the last variable to be introduced is Timing (s), where this parameter is
enabled only if the Fundamental and/or Harmonic generation check box is selected. In Matlab
code, two variables must be introduced in this vector: er1 corresponds to the stars and er2 to
the end.
This study simulated 3 scenarios with 3 different inductance values and 3 different voltage
sags range times. Inductance grid values are going to be the same as the case 3:
Red → L=1.0e-6 H ; R= 1e-6 Ω
Blue→ L=9.0e-5 H ; R= 1e-6 Ω
Magenta → L=2.4e-4 H ; R= 1e-6 Ω
The 3 time ranges where voltage sags will occur are as follows:
- Range 1 → from 02:00 to 04:00 (er1=02:00, er2=04:00) (maximum reactive power)
- Range 2 → from 13:00 to 15:00 (er1=13:00, er2=15:00) (minimum reactive power)
- Range 3 → from 21:00 to 23:00 (er1=21:00, er2=00:00) (maximum consume)
These time ranges have not been chosen at random: Range 1 corresponds to when in
scenarios 1 and 2 there is more reactive power available and in scenario 3 there is less
consumption also. In range 2 it happens that in ranges 1 and 2 there is not much reactive
power. Finally, in range 3 is when the highest consumption occurs in all scenarios and those
with self-generation again have enough reactive power. The graphs extracted from the
simulation will be presented in the pages below, followed by the subsequent figures:
- Figures 136, 137 and 138 correspond to Range 1
- Figures 139, 140 and 141 correspond to Range 2
- Figures 142, 143 and 144 correspond to Range 3
128
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 136: Case 4, Voltage sags Scenario 1 (reactive absorption) – Range Time 1
129
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 137: Case 4, Voltage sags Scenario 2 (reactive injection) – Range Time 1
130
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
131
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 139: Case 4, Voltage sags Scenario 2 (reactive absorption) – Range Time 2
132
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 140: Case 4, Voltage sags Scenario 2 (reactive injection) – Range Time 2
133
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
134
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 142: Case 4, Voltage sags Scenario 2 (reactive absorption) – Range Time 3
135
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure 143: Case 4, Voltage sags Scenario 2 (reactive injection) – Range Time 3
136
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
137
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Outside this hourly period, the reactive power absorption scenario is superior to the reactive
power absorption scenario. So, it seems clear that in case of lifting the electrical grid, the
scenario of injecting outperforms the absorbing scenario in terms of raising the tension. In
scenario 3, the system has no response capacity since it can neither inject nor absorb reactive
power, so the voltages of all phases are not raised. What causes the voltage to rise in this
case is the increase of the parasitic inductance of the electrical grid.
This range implies that in cases where a grid disturbance occurs and the system has less
reactive power, it is better for the inverters to absorb. Just the opposite of range 1, where the
system has a lot of reactive power and it is better to inject it to raise the voltage.
138
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
5.4. Conclusions
With this simulation it is clear that in a system without generation, the voltage variation due to
reactive power is less unstable and higher grid inductances are needed to exceed the
normative values. The problem with this system is that although it is more stable from this
point of view, it does not have the capacity to react and to lift or support the electrical grid, it
adopts a passive behavior. Apart from eliminating the benefits of needing less active power
with respect to the scenarios with self-generation.
In contrast, scenarios 1 and 2 show greater voltage variation with the same grid inductance
values as scenario 3. This makes it a more sensitive system, where the voltage has more
variations. But contrary to scenario 3, scenarios 1 and 2 have the ability to support the grid. It
has been seen from the figures that in cases where the system has less reactive power
capacity, it is better for the inverters to absorb. Otherwise, in cases where there is a high
reactive capacity it is just the opposite, it is better to inject it to raise the voltage. Because it
seems clear that in case of lifting the electrical grid, the scenario of injecting outperforms the
absorbing scenario if the system has reactive power capacity. However, as shown in the
comparison of Figures 136 and 137, absorbing reactive power is better for the overall stability
of the electrical grid. What happens is that in the time section where there is a fault, if reactive
power is absorbed, the voltage remains outside the margins, whereas if it is injected, the
voltage rises within the margins.
Therefore, the ideal control would seem to be that the injection and absorption of reactive
power would change according to the needs of the electrical grid. In case there is no fault it is
better that the inverters are absorbing. Besides that, if a fault causes the voltage of a phase
to decrease, it is better that the reactive is injected just in that specific time range in which the
fault occurs. On the other hand, if the fault causes an overvoltage, as can be seen in phase A
of the figures in this section, it is better to be absorbed, since it causes the voltage variation to
decrease.
139
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
140
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
In the case of analyzing a single house with solar self-generation and electric car it has been
proved that scenarios with self-generation need less energy compared to the scenario of a
house without solar panels and an electric car showing that a single house could help to the
grid and reduce large-scale power generation. In addition, apart from needing less active
energy, self-generated houses can deliver by absorbing or injecting reactive power.
Unfortunately, this study demonstrates that the contribution of a single house is not enough,
in fact, it is practically negligible when it comes to presenting changes in the grid by injecting
or absorbing energy. All this makes the voltage variation curve caused by the grid inductance
more similar in shape to the load curve than the reactive power. For this reason, it was decided
to continue the investigation but with 3 houses, giving rise to case study 2.
In this case 2 the results were very similar to the case 1 meaning the self-generation scenarios
provide more power to the grid and at the same time needing less active power. In this regard,
the effect of electric car charging on the change in grid consumption compared to a grid system
without self-generation and EVs was seen more clearly. In fact, the differences in the
consumption profile were noticeably at night. Regardless of whether the inverters are working
141
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
to inject or absorb reactive power, any remarkable results show improvements in voltage
variation through the grid inductance. With the simulations of case 1 and 2, it is demonstrated
that for a system of houses with self-generation and electric vehicles to have the capacity to
support the grid, it needs a greater number of these homes. Knowing this situation, case 3
was simulated in a three-phase grid with 18 houses.
From the simulations performed on case 3, it was possible to reaffirm that the houses with
solar generation and electric vehicles increase the consumption in low hours (at night) and
decrease it in the sunny hours. Making a balance of all the energy consumed, it can be
concluded that the houses with self-generation consume considerably less active energy than
the normal ones and also presents much more reactive power to inject or absorb than in
scenario 3 (houses without self-generation and EVs). So, in the end, the extra consumption of
the electric car when charging at night is compensated by the surplus of solar energy, where
finally, as mentioned above, houses with self-generation represent less consumption for the
grid. With the simulation of case 3, it is clear that the more houses with self-generation and
electric vehicles, the higher the power for grid stabilization is, having 18 houses influences
much more in the voltage variation. As far as reactive power is concerned, it seems that as
the number of houses in three-phase systems increases, the reactive power generated by the
system also increases. Contrary to the previous cases, in case 3 it is clear that if the inverters
are programmed to absorb and not to inject, they help in the stabilization of the system. On
the other hand, if the inverters are configured to inject reactive power, the voltage trends to
rise. An observation that could not be made in the other cases is on the apparent energy,
where it can be seen that if reactive power is injected, apparent power increases much more
compared to absorbing it. This would lead to improvement and expansion in the sizing of the
electrical grid transformers, protections and others. Therefore, absorbing reactive power not
only helps to better stabilize the electrical grid, but also to reduce the sizing of the devices.
Finally with the evaluation of case 3 subjected to voltage sags, it is clear that in a system
without self-generation and EVs, the voltage variation due to reactive power is less unstable
and higher grid inductances are needed to exceed the normative values. Even so, given that
the system stops to obtain the other advantages of having self-generating homes and electric
vehicles, it cannot be considered a good line of thinking. Scenarios with self-generation and
EVs (scenarios 1 and 2) presented greater voltage variation making it a more sensitive system.
Also, when inverters are injecting, outperforms the absorbing scenario if the system has
reactive power capacity and needs to elevate the grid voltage. On the other hand, if the system
need to reduce the voltage grid, the scenario of absorbing reactive outperforms the injection
one.
142
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Having clarified the main conclusions of each point, the following is a summary list of the most
important conclusions of this research conducted through this work:
- In order to show an effect on grid support, the system needs several houses with self-
generation and electric vehicles.
- If the car is plugged in at home, it can act as a battery and reduce the consumption
injecting active power in the hours when the consumption is higher, and the electricity
is more expensive.
- It is possible to reaffirm that the houses with solar generation and electric vehicles
increase the consumption in low hours (at night) and decrease it in the sunny hours
- Systems with self-generation presents much more reactive power than in scenarios 3
from all the cases.
- The voltage variation due to reactive power in non-self-generation systems is less
unstable and higher grid inductances are needed to exceed the normative values. The
problem with this system is that although it is more stable from this point of view, it
does not have the capacity to react and to lift or support the electrical grid, it adopts a
passive behavior. Apart from eliminating the benefits of needing less active power with
respect to the scenarios with self-generation.
- In large simulations and cases with a vast number of homes with self-generation and
EVs, absorbing reactive power not only helps to a better stabilization of the electrical
grid, but also to reduce the sizing of the devices due to the apparent energy. If reactive
power is injected through inverters, apparent power increases much more compared
to absorbing it, leading to a necessary improvement and expansion in the sizing of the
electrical grid transformers, protections and others.
- It is also demonstrated that in a system there is a reactive saturation point, which
means that from that point on, the increase of houses with self-generation will not
cause a proportional increase in reactive power.
- If the system is subjected to voltage sags, it is clear that in a system without self-
generation and EVs, the voltage variation due to reactive power is less unstable and
higher grid inductances are needed to exceed the normative values.
- Even so system without self-generation and EVs are more stable, given that the
system obtaining the other advantages of having self-generating homes and electric
vehicles, it cannot be considered a good line of thinking.
- Systems with self-generation and EVs presents greater voltage variation with less grid
inductance, making it a more sensitive system than a normal electric grid.
- In cases where the system has less reactive power capacity, it is better for the inverters
to absorb.
143
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
- In case of rising the grid voltage, the scenario of injecting outperforms the absorbing
scenario if the system has reactive power capacity
- In the case of lowering the grid voltage, the absorption scenario outperforms the
injection scenario if the system has reactive power capacity.
- The ideal control would be that the injection and absorption of reactive power would
change according to the needs of the electrical grid. In case there is no fault it is better
that the inverters are absorbing. In addition, if there is a fault that causes the voltage
of a phase to decrease, it is better to inject reactive power just in that specific time
range in which the fault occurs. On the contrary, if the fault causes an overvoltage, it
is better to be absorbed, since it causes the voltage variation to decrease.
Before the end, a review of the objectives of the work will be made to see if they have been
met:
- Analyze and comprehend the impact of solar panels & electric vehicles in the public
grid.
Thanks to the set of simulations, the use of graphs and the conclusions drawn, this point is
considered analyzed.
- See which reactions have the public grid due to active power.
- See which reactions have the public grid due to reactive power injection and
absorption.
- See the results using different grid inductance values.
Throughout this work, different simulations have been done by configuring the inverters to
absorb or inject reactive power. This has been one of the main points studied in this work, so
it is considered that it has been fulfilled.
- Compare a complete model with and without distributed power generation through
solar panels and electric vehicles and, at the same time, differentiating reactive power
injection and absorption.
In all the simulated cases, the results obtained have been constantly compared with scenarios
where the grid did not have self-generating houses and electric vehicles.
- Analyze if a distributed power generation grid could support the public grid through
reactive power.
This topic has been discussed but not as deeply as the previous ones, since it has been
shown that it can support the electrical grid but it needs a more complex control. As a personal
objective, my intention would be to further develop this point and implement it in the different
cases exposed.
- Analyze and understand the advantages and disadvantages of a distributed generation
system.
With all the research done, this objective has been completed.
144
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
After reading the entire work, it can be seen that most of the initial objectives have been
achieved. As possible future improvements, the most important would be the proposal of a
real time control over the grid voltage, injecting and absorbing reactive power through the
inverters of the solar panels and electric vehicles. Personally, the result has been very
satisfactory.
145
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
146
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
References
[1] Z. Li and Y. Yuan, “Smart microgrid: a novel organization form of smart distribution grid in
the future,” Automation of Electric Power Systems, vol. 33, no.17, pp. 42–47, September 2009.
[4] Winid Sripipat and Sakorn Po-Ngam. “Simplified Active Power and Reactive Power Control
with MPPT for Single-Phase Grid-Connected Photovoltaic Inverters”. Power Electronics and
Motor Drives Laboratory (PEMD LAB) Department of Electrical engineering, Faculty of
Engineering King’s Mongkut University of Technology Thonburi , Thailand
[6] Yang CHEN, Jinbin ZHAO, Keqing QU, Fen LI. “A PQ Control strategy for Voltage-
Controlled Inverters Applied in Low-Voltage Power System”. College of Electric Engineering
Shanghai University of Electric Power Shanghai, China, 2019
[7] Bill Gates (2020). How to Avoid a Climate Disaster: The Solutions We Have and the
Breakthroughs We Need. (Chapter 1-4)
[9] Amirnaser Yazdani; Reza Iravani (2010). Voltage-Sourced Converters in Power Systems.
Modeling, Control and Applications (Chapter 4)
[10] Updated draft of the National Integrated Energy and Climate Plan 2021-2030 (2020)
document link:
https://www.miteco.gob.es/images/es/pniec_2021-2030_borradoractualizado_tcm30-
506491.pdf
[11] International Energy Agency (2021) Net Zero by 2050: Net Zero by 2050 Scenario - Data
product – IEA. Document link: https://www.iea.org/data-and-statistics/data-product/net-zero-
by-2050-scenario
[12] Agustín Gargallo Tatay (2017). Medición y análisis del consumo energético de energía
eléctrica en los receptores doméstico en condiciones reales de funcionamiento: Aplicación a
una vivienda unifamiliar, 9-21. Document link:
https://riunet.upv.es/bitstream/handle/10251/106520/21790210X_Trabajo_15308153330007
985563568234754430.pdf?sequence=1
147
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
[14] World Energy Scenarios. Project Partner Paul Scherrer Institute (PSI), Switzerland
(2020). Composing energy futures to 2050. Composing Energy Futures to 2050 Chapter.
Document link: https://www.worldenergy.org/assets/downloads/World-Energy-
Scenarios_Composing-energy-futures-to-2050_Executive-summary.pdf
[15] Hannah Ritchie; Max Roser; Pablo Rosado (2022). Our World in Data. Energy.
Document link: http://https//ourworldindata.org/energy
[16] Hannah Ritchie (2020). Our World in Data: The carbon footprint of foods: are differences
explained by the impacts of methane? Document link: https://ourworldindata.org/carbon-
footprint-food-methane
[17] Hannah Ritchie (2020). Our World in Data: You want to reduce the carbon footprint of
your food? Focus on what you eat, not whether your food is local. Document link:
https://ourworldindata.org/food-choice-vs-eating-local
[18] Hannah Ritchie (2020). Our World in Data: You want to reduce the carbon footprint of
your food? Focus on what you eat, not whether your food is local. Document link:
https://ourworldindata.org/food-choice-vs-eating-local
[19] Hannah Ritchie; Max Roser (2022). Our World in Data: CO2 emissions. Document link:
https://ourworldindata.org/co2-emissions
[20] Hannah Ritchie (2019). Our World in Data: Food production is responsible for one-
quarter of the world’s greenhouse gas emissions. Document link:
https://ourworldindata.org/food-ghg-emissions
[21] Brandon Graver, Ph.D., Kevin Zhang, Dan Rutherford, Ph.D (2018). CO2 emissions from
commercial aviation. Document link:
https://theicct.org/sites/default/files/publications/ICCT_CO2-commercl-aviation-
2018_20190918.pdf
[22] Energy Environment Agency (2017). Energy and climate change. Document Link:
https://www.eea.europa.eu/signals/signals-2017/articles/energy-and-climate-
change#:~:text=Climate%20change%20can%20alter%20our,for%20heating%20in%20the%
20winter
[23] Hannah Ritchie; Max Roser; Pablo Rosado (2020). Our World in Data: Emissions by
sector. Document link:
https://ourworldindata.org/emissions-by-sector#total-greenhouse-gas-emissions-by-sector
[24] Hannah Ritchie; Max Roser; Pablo Rosado (2020). Our World in Data Global primary
Global primary energy: how has the mix changed over centuries? Document link:
https://ourworldindata.org/energy-mix
148
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
[25] Hannah Ritchie; Max Roser; Pablo Rosado (2020). Nuclear Energy Power. Document
link: https://ourworldindata.org/nuclear-energy
[26] Hannah Ritchie; Max Roser; Pablo Rosado (2020). Renewable Energy Power. Document
link: https://ourworldindata.org/renewable-energy
[27] Hannah Ritchie; Max Roser (2022). Electricity-Mix Energy Power. Document link:
https://ourworldindata.org/electricity-mix
[28] Hannah Ritchie; Max Roser (2021). Energy Access. Document link:
https://ourworldindata.org/energy-access
[29] Hannah Ritchie; Max Roser (2021). Energy Production Consumption. Document link:
https://ourworldindata.org/energy-production-consumption
149
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
150
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
151
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Transport (16.2%)
This part has to be considered as indirect emissions due to it includes a small amount of
electricity as well as all direct emissions from burning fossil fuels to power transport activities.
It is important to know that the above graphic does not include emissions from the
manufacturing of motor vehicles or other transport equipment, this is included in the previous
point ‘Energy use in Industry’.
- Road transport (11.9%):
Emissions from the burning of petrol and diesel from all forms of road transport which includes
cars, trucks, motorcycles, buses etc. Approximately 60% of the emissions come from
passenger travel (cars, motorcycles and buses); and the remaining forty percent from road
freight (lorries and trucks). Knowing that road transport emissions are the biggest factor in
transport emissions, it is clear society should become aware of this and transform our vehicles
into electric or other non-polluting technologies.
- Aviation (1.9%):
According ICCT (The International Council on Clean Transportation) the 81% of aviation
emissions come from passenger travel; and 19% from freight. From passenger aviation, 60%
of emissions come from international travel, and 40% from domestic. The study is from 2018,
there have not been many changes.
- Shipping (1.7%):
Emissions from the burning of petrol or diesel on boats. This includes both passenger and
freight maritime trips.
152
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
- Rail (0.4%):
Emissions from passenger and freight rail travel. Apart from the electrification of our particular
vehicles, maybe new policies should be oriented into the develop of more railways. Trains are
clean and very efficient.
- Pipeline (0.3%):
Fuels and commodities (e.g. oil, gas, water or steam) often need to be transported (either
within or between countries) via pipelines. This requires energy inputs, which results in
emissions. Poorly constructed pipelines can also leak, leading to direct emissions of methane
to the atmosphere. However, these leaks are in the category ‘Fugitive emissions from energy
production’.
153
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Waste (3.2%)
- Wastewater (1.3%):
Organic wastes and residues from animals, plants, humans and their waste products can
collect in wastewater systems. When this organic matter decomposes, it produces methane
and nitrous oxide.
- Landfills (1.9%):
Landfills are often low-oxygen environments. In these environments, organic matter is
converted to methane when it decomposes.
154
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure A3: CO2 emissions by sector Per capita from China in 2018, Annex 2
155
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
expected to only increase in the near future, as China's intention is to have more trains than
airplanes and to be the world power in terms of electric mobility.
Figure A4: CO2 emissions by sector Per capita from USA in 2018, Annex 2
The USA has a problem with transport, North American people use their cars for everything
and there is not enough public transport like buses or trains and there are not many electric
vehicles. That is why they use aviation more frequently than China. In contrast, the major part
of buildings in the USA are old, that is why it is supposedly a major factor than China’s
buildings. Although the USA is growing, it is not growing at the same rate as China, so its
impact is also lower.
In the next page Figure A5, it can be seen the data from the European Union, where it can be
seen in terms per capita, every sector is less compared to China and USA. It could surprise
the contribution of transport and agriculture, but Europe is leading the world in terms of
recovering forests and protecting national parks, that is why in the European Union the land-
use change and forestry is higher and is helping with the absorption of CO2 emissions.
156
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure A5: CO2 emissions by sector Per capita from EU in 2018, Annex 2
Figure A6: CO2 emissions by sector Per capita from Spain in 2018, Annex 2
Finally, there is going to be the presentation of Spain data (Figure A6), where it is surprising
to see that the main source of pollution is transportation, surpassing energy generation. Due
to being one of the most visited countries, Aviation and shipping are huge factors too.
157
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
158
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Is it clear that renewable energy should be the main focus, but governments and societies
shouldn’t leave apart nuclear generation because this energy does not generate CO2 or
greenhouse gasses and also it is very safe. If there are a comparison between nuclear energy
with others, especially fossil fuels it can be seen that the balance between safe and clean is
clearly on the side of nuclear and renewable energies as it can be seen in the next page Figure
A8. If it is not enough, the death rates from energy production per TWh and the conclusions
are the same, nuclear power is safer according to this data Figure A9.
159
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure A9: Death rates from energy production per TWh, Annex 3
The potential risks of nuclear energy are real: in both Chernobyl and Fukushima, deaths
occurred as a result of direct nuclear impacts, radiation exposure and psychological stress.
Chernobyl was an accident caused by a technology that was not mature and above all
because a nuclear power plant was built in a facility that was not designed for it. Since then,
there have been no more accidents caused by technological or man-made failures. Fukushima
was a horrible accident, but it was caused by a tsunami.
160
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
There have only been 2 accidents, one due to a lack of technology and one due to a tsunami.
Since then, nuclear power plants have improved a lot, and there is already talk that the new
plants will only have nuclear waste for 200 years. It should be noted that nuclear plants have
not had the same level of investment as the automotive sector. This sector had a lot of
investment from the beginning and that is why today's cars are safer, pollute less and consume
much less fuel than the first ones. This has not been the case with nuclear power plants since
the 70's when research stopped. If research had continued during the last 50 years, we would
surely have much better, more efficient nuclear power plants with less nuclear waste.
There is a need for more innovation in this energy because it is one of the cleanest and less
deadly that exists. Nonetheless, of the two largest nuclear disasters, the death toll was of the
order of thousands, and hundreds in the latest. Arguably still too many, but far fewer than the
millions who die every year from impacts of other conventional energy sources, as it could
have seen before. Nuclear risk is generally focused within low-probability, high-impact single
events, in contrast to air pollution impacts which provide a persistent background health risk.
In the last years nuclear generation has been in conversations, it seems that the scientific
community has convinced some countries and regions to continue using this type of
generation. Thanks to the Figure A10 is can be noticed that there has been a small growth in
nuclear energy.
161
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
It is alarming that only 26% of the greenhouses of global emissions came from food production,
which is something that maybe the world, especially the first world countries might need to
change with local agriculture, a more reasonable use of the resources and changes in our
diet.
162
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
163
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Following Figure A12, approximately 17% of the global greenhouse gas emissions came from
Methane, the problem is that it is 4 times more potent in greenhouse effect. Also, with the next
page graphic, it can be seen which kind of meats and products have more impact in the earth
comparing their use of:
- Land → biomass loss from deforestation or ground
- Farm → mainly methane emissions
- Animal feed → emissions from crop production and its processing
- Industrial processing → emissions from energy use in the conversion of raw food into
the final product
- Transport → emissions from the energy need it in the transport of food around the
world
- Retail → energy use in refrigeration or other processes to maintain in good quality of
the food and the final product
- Packaging → emissions from the production of the packaging and material transport
With the next page Figure A13 it can be seen that beef meat is by far the food that has the
highest impact on earth, followed by lamb, mutton, cheese and dairy products from beef.
Personally, what surprises me the most is that the production of coffee and chocolate surpass
pork and poultry meats. In the vast majority of the cases, it can be noticed that transport, retail
and packaging contribute to a lesser extent to the impact. The use of land and farm are the
main factors, especially in meat products and derivatives. May be world does not realize it,
but by eating less meat, or substituting poultry and fish for beef, along with reducing other
products, these actions can make a big impact on the earth. The change has to come not only
from technology, also from our habits and diets. If it is too much for us to become vegetarian
or vegan, it could be a good decision in terms of the planet to substitute beef, lamb and mutton
for poultry, pork and eggs, this change would maintain the amount of animal proteins and
amino acids having less impact on the earth and at the same time, improving our diet.
164
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Because these types of meats have less fat and are not red meat. If at the same time, also
reduce our consumption of cheese or dairy products, eat more vegetables and fruits from our
area, people would be also healthier and more sustainable. In addition, a major part of the
deforestation came from the production of beef, representing 41% of the total as shown in
Figure A14.
165
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure A14: Greenhouse gas emissions across the supply chain, Annex 4
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
%% definition of voltage
fo=50;
wo=2*pi*fo;
To=1/fo;
v_amplitut=220*sqrt(2); Definition of voltage, frequency and network
v_amplitut_2=v_amplitut^2; period. Also of the cut-off and computational
v_ef=v_amplitut/sqrt(2); frequency values. The variable “delma”
corresponds to a value for the decimation of the
fc=0.5;
wc=2*pi*fc; variables (internal parameter of a "To Workspace
fs=10e3; %switching block).
ts=1/fs;
delma=10;
V_DC_SOLAR=400;
V_DC_EV=400;
DC voltage simulating the buck-boost circuit.
% MAIN VARIABLES Declaration of the power ratings of the house, solar
PHouse=5750;
panels and electric vehicle (W). Capacitor and
SOLAR_POWER=4400;
EV_POWER=3600; inductor values for the voltage filter inside the
inverters.
%% PASSIVE ELEMENTS
C2=52*1e-6; %[F] considering the max current output from the inverter
L2=1.9656*1e-3; %[H] considering the max current output from the inverter
C2EV=C2;
L2EV=L2;
%SOLAR PANELS
%% definition of K constant Definition of control constants for the Solar
ki_SOLAR=3; inverter. Calculation of the house resistance
kp_SOLAR=3;
and average absorbed power of the house.
kd_SOLAR=1;
V_pico=v_ef*sqrt(2);
Pave_load=V_pico^2/(2*LOAD_1); %average power absorved by the LOAD
167
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
%PROFILE LOAD
L11=(LOAD_1/0.2); L12=(LOAD_1/0.2); %CASE 1 00:00-01:00
L21=(LOAD_1/0.2); L22=(LOAD_1/0.2); %CASE 2 01:00-02:00
Declaration of the
L31=(LOAD_1/0.2); L32=(LOAD_1/0.2); %CASE 3 02:00-03:00 load profile plus the
L41=(LOAD_1/0.2); L42=(LOAD_1/0.2); %CASE 4 03:00-04:00 creation of the
L51=(LOAD_1/0.2); L52=(LOAD_1/0.2); %CASE 5 04:00-05:00 vector that will go
L61=(LOAD_1/0.2); L62=(LOAD_1/0.2); %CASE 6 05:00-06:00
into the repeating
L71=(LOAD_1/0.2); L72=(LOAD_1/0.3); %CASE 7 06:00-07:00
L81=(LOAD_1/0.3); L82=(LOAD_1/0.4); %CASE 8 07:00-08:00 sequence
L91=(LOAD_1/0.4); L92=(LOAD_1/0.4); %CASE 9 08:00-09:00
L101=(LOAD_1/0.4); L102=(LOAD_1/0.23); %CASE 10 09:00-10:00
L111=(LOAD_1/0.23); L112=(LOAD_1/0.25); %CASE 11 10:00-11:00
L121=(LOAD_1/0.25); L122=(LOAD_1/0.25); %CASE 12 11:00-12:00
L131=(LOAD_1/0.30); L132=(LOAD_1/0.35); %CASE 13 12:00-13:00
L141=(LOAD_1/0.35); L142=(LOAD_1/0.50); %CASE 14 13:00-14:00
L151=(LOAD_1/0.50); L152=(LOAD_1/0.50); %CASE 15 14:00-15:00
L161=(LOAD_1/0.50); L162=(LOAD_1/0.45); %CASE 16 15:00-16:00
L171=(LOAD_1/0.45); L172=(LOAD_1/0.40); %CASE 17 16:00-17:00
L181=(LOAD_1/0.40); L182=(LOAD_1/0.35); %CASE 18 17:00-18:00
L191=(LOAD_1/0.47); L192=(LOAD_1/0.67); %CASE 19 18:00-19:00
L201=(LOAD_1/0.67); L202=(LOAD_1/0.80); %CASE 20 19:00-20:00
L211=(LOAD_1/0.80); L212=(LOAD_1/0.90); %CASE 21 20:00-21:00
L221=(LOAD_1/0.90); L222=(LOAD_1/1.00); %CASE 22 21:00-22:00
L231=(LOAD_1/1.00); L232=(LOAD_1/0.80); %CASE 23 22:00-23:00
L241=(LOAD_1/0.80); L242=(LOAD_1/0.50); %CASE 24 23:00-00:00
sequence_LOAD= [L11 L12 L21 L22 L31 L32 L41 L42 L51 L52 L61 L62 L71 L72
L81 L82 L91 L92 L101 L102 L111 L112 L121 L122 L131 L132 L141 L142 L151
L152 L161 L162 L171 L172 L181 L182 L191 L192 L201 L202 L211 L212
L221 L222 L231 L232 L241 L242];
168
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
t151=t142+st1;t152=t151+1;%14:00 - 15:00
t161=t152+st1;t162=t161+1;%15:00 - 16:00
t171=t162+st1;t172=t171+1;%16:00 - 17:00
t181=t172+st1;t182=t181+1;%17:00 - 18:00
t191=t182+st1;t192=t191+1;%18:00 - 19:00
t201=t192+st1;t202=t201+1;%19:00 - 20:00
t211=t202+st1;t212=t211+1;%20:00 - 21:00
t221=t212+st1;t222=t221+1;%21:00 - 22:00
t231=t222+st1;t232=t231+1;%22:00 - 23:00
t241=t232+st1;t242=t241+1;%23:00 - 00:00
%SOLAR CASE
S11=0.00;S12=0.00; %00:00 - 01:00
S21=0.00;S22=0.00; %01:00 - 02:00
S31=0.00;S32=0.00; %02:00 - 03:00
S41=0.00;S42=0.00; %03:00 - 04:00
S51=0.00;S52=0.00; %04:00 - 05:00 Declaration of the
S61=0.00;S62=0.00; %05:00 - 06:00 Solar and EV profile
S71=0.00;S72=500; %06:00 - 07:00 vector that will go
S81=500;S82=1000; %07:00 - 08:00 into the repeating
S91=1000;S92=1500; %08:00 - 09:00
S101=1500;S102=2000; %09:00 - 10:00
sequence
S111=2000;S112=2500; %10:00 - 11:00
S121=2500;S122=3000; %11:00 - 12:00
S131=4000;S132=4400; %12:00 - 13:00
S141=4400;S142=4400; %13:00 - 14:00
S151=4400;S152=4400; %14:00 - 15:00
S161=4400;S162=4000; %15:00 - 16:00
S171=4000;S172=2500; %16:00 - 17:00
S181=2500;S182=1500; %17:00 - 18:00
S191=1500;S192=0.00; %18:00 - 19:00
S201=0.00;S202=0.00; %19:00 - 20:00
S211=0.00;S212=0.00; %20:00 - 21:00
S221=0.00;S222=0.00; %21:00 - 22:00
S231=0.00;S232=0.00; %22:00 - 23:00
S241=0.00;S242=0.00; %23:00 - 24:00
%ACTIVE EV CASE
EV11=-3600;EV12=-3600; %00:00 - 01:00
EV21=-3600;EV22=-3600; %01:00 - 02:00
EV31=-3600;EV32=-3600; %02:00 - 03:00
EV41=-3600;EV42=-3600; %03:00 - 04:00
EV51=-3600;EV52=-3600; %04:00 - 05:00
EV61=-3600;EV62=-3600; %05:00 - 06:00
EV71=-3600;EV72=-3600; %06:00 - 07:00
EV81=0.000;EV82=0.000; %07:00 - 08:00
EV91=0.000;EV92=0.000; %08:00 - 09:00
EV101=0.00;EV102=0.00; %09:00 - 10:00
EV111=0.00;EV112=0.00; %10:00 - 11:00
EV121=0.00;EV122=0.00; %11:00 - 12:00
EV131=0.00;EV132=0.00; %12:00 - 13:00
EV141=0.00;EV142=0.00; %13:00 - 14:00
EV151=0.00;EV152=0.00; %14:00 - 15:00
EV161=0.00;EV162=0.00; %15:00 - 16:00
EV171=0.00;EV172=0.00; %16:00 - 17:00
EV181=0.00;EV182=0.00; %17:00 - 18:00
EV191=0.00;EV192=0.00; %18:00 - 19:00
EV201=0.00;EV202=0.00; %19:00 - 20:00
EV211=1000;EV212=1000; %20:00 - 21:00
169
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
sequence_TIME= [ t11 t12 t21 t22 t31 t32 t41 t42 t51 t52
t61 t62 t71 t72 t81 t82 t91 t92 t101 t102 t111 t112
t121 t122 t131 t132 t141 t142 t151 t152 t161 t162 t171 t172
t181 t182 t191 t192 t201 t202 t211 t212 t221 t222 t231 t232
t241 t242]*time_scale_factor;
sequence_S_H1=[ S11 S12 S21 S22 S31 S32 S41 S42 S51 S52 S61 S62
S71 S72 S81 S82 S91 S92 S101 S102 S111 S112 S121 S122 S131 S132
S141 S142 S151 S152 S161 S162 S171 S172 S181 S182 S191 S192 S201 S202
S211 S212 S221 S222 S231 S232 S241 S242];
sequence_E_H1=[ EV11 EV12 EV21 EV22 EV31 EV32 EV41 EV42 EV51 Data collection
EV52 EV61 EV62 EV71 EV72 EV81 EV82 EV91 EV92 EV101 EV102 to create time,
EV111 EV112 EV121 EV122 EV131 EV132 EV141 EV142 EV151 EV152 EV161 Solar and EV
EV162 EV171 EV172 EV181 EV182 EV191 EV192 EV201 EV202 EV211 EV212 vectors
EV221 EV222 EV231 EV232 EV241 EV242];
%__________________________________________________________________________
%%% FILTER
psi=0.1; %selectividad
num=[2*psi*wo 0];
den=[1 2*psi*wo wo^2];
Declaration of filter variables,
sysd=c2d(tf(num,den),1e-6,'tustin'); simulation time, discretization
[numBPF,denBPF]=tfdata(sysd,'v'); variables and RL Branch
values.
%% definition of the simulation's parameters
t_simula=1e-6;
t_stop=24*time_scale_factor;
%% SIMULATION
%RLC BRANCH POWER LINE
R_branch_line=1e-6;L_branch_line=6e-6; SIGNO=1;
sim('CASE_1_SIM_FINAL')
170
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
%__________________________________________________________________________________
%%%%%%%%%% TIME FOR CASES %%%%%%%%%%%
st1=1e-5;%separation time
time_scale_factor=1;
%__________________________________________________________________________________
%% PASSIVE ELEMENTS
C2=52*1e-6; %[F] considering the max current output from the inverter
L2=1.9656*1e-3; %[H] considering the max current output from the inverter
C2EV=C2;
Capacitor and inductive values for the voltage filter
L2EV=L2;
inside the inverters.
%__________________________________________________________________________________
171
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
%PROFILE SOLAR
SH1_11=0; SH1_12=0; %00:00 - 01:00
SH1_21=0; SH1_22=0; %01:00 - 02:00
Definition of house power (W).
SH1_31=0; SH1_32=0; %02:00 - 03:00 Calculation of the minimum load
SH1_41=0; SH1_42=0; %03:00 - 04:00 of the house. Definition of solar
SH1_51=0; SH1_52=0; %04:00 - 05:00 and EV generation profiles.
SH1_61=0; SH1_62=0; %05:00 - 06:00
SH1_71=0; SH1_72=500; %06:00 - 07:00
SH1_81=500; SH1_82=1000; %07:00 - 08:00
SH1_91=1000; SH1_92=1500; %08:00 - 09:00
SH1_101=1500; SH1_102=2000; %09:00 - 10:00
SH1_111=2000; SH1_112=2500; %10:00 - 11:00
SH1_121=2500; SH1_122=3500; %11:00 - 12:00
SH1_131=3500; SH1_132=4400; %12:00 - 13:00
SH1_141=4400; SH1_142=4400; %13:00 - 14:00
SH1_151=4400; SH1_152=4400; %14:00 - 15:00
SH1_161=4400; SH1_162=4000; %15:00 - 16:00
SH1_171=4000; SH1_172=3000; %16:00 - 17:00
SH1_181=3000; SH1_182=1000; %17:00 - 18:00
SH1_191=1000; SH1_192=100; %18:00 - 19:00
SH1_201=100; SH1_202=0; %19:00 - 20:00
SH1_211=0; SH1_212=0; %20:00 - 21:00
SH1_221=0; SH1_222=0; %21:00 - 22:00
SH1_231=0; SH1_232=0; %22:00 - 23:00
SH1_241=0; SH1_242=0; %23:00 - 24:00
%PROFILE EV
EH1_11=-3600; EH1_12=-3600; %00:00 - 01:00
EH1_21=-3600; EH1_22=-3600; %01:00 - 02:00
EH1_31=-3600; EH1_32=-3600; %02:00 - 03:00
EH1_41=-3600; EH1_42=-3600; %03:00 - 04:00
EH1_51=-3600; EH1_52=-3600; %04:00 - 05:00
EH1_61=-3600; EH1_62=-3600; %05:00 - 06:00
EH1_71=0; EH1_72=0; %06:00 - 07:00
EH1_81=0; EH1_82=0; %07:00 - 08:00
EH1_91=0; EH1_92=0; %08:00 - 09:00
EH1_101=0; EH1_102=0; %09:00 - 10:00
EH1_111=0; EH1_112=0; %10:00 - 11:00
EH1_121=0; EH1_122=0; %11:00 - 12:00
EH1_131=0; EH1_132=0; %12:00 - 13:00
EH1_141=0; EH1_142=0; %13:00 - 14:00
EH1_151=0; EH1_152=0; %14:00 - 15:00
EH1_161=0; EH1_162=0; %15:00 - 16:00
EH1_171=0; EH1_172=0; %16:00 - 17:00
EH1_181=0; EH1_182=0; %17:00 - 18:00
EH1_191=0; EH1_192=0; %18:00 - 19:00
EH1_201=0; EH1_202=0; %19:00 - 20:00
EH1_211=0; EH1_212=0; %20:00 - 21:00
EH1_221=0; EH1_222=0; %21:00 - 22:00
EH1_231=3600; EH1_232=3600; %22:00 - 23:00
EH1_241=3600; EH1_242=3600; %23:00 - 24:00
172
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
%PROFILE LOAD H1
H1L11=(LOAD_1/0.2); H1L12=(LOAD_1/0.2); %CASE 1 00:00-01:00
H1L21=(LOAD_1/0.2); H1L22=(LOAD_1/0.2); %CASE 2 01:00-02:00
Generation of the
H1L31=(LOAD_1/0.2); H1L32=(LOAD_1/0.2); %CASE 3 02:00-03:00 consumption
H1L41=(LOAD_1/0.2); H1L42=(LOAD_1/0.2); %CASE 4 03:00-04:00 (load) profile of
H1L51=(LOAD_1/0.2); H1L52=(LOAD_1/0.2); %CASE 5 04:00-05:00 the house
H1L61=(LOAD_1/0.2); H1L62=(LOAD_1/0.2); %CASE 6 05:00-06:00
H1L71=(LOAD_1/0.2); H1L72=(LOAD_1/0.3); %CASE 7 06:00-07:00
H1L81=(LOAD_1/0.3); H1L82=(LOAD_1/0.4); %CASE 8 07:00-08:00
H1L91=(LOAD_1/0.4); H1L92=(LOAD_1/0.4); %CASE 9 08:00-09:00
H1L101=(LOAD_1/0.4); H1L102=(LOAD_1/0.23); %CASE 10 09:00-10:00
H1L111=(LOAD_1/0.23); H1L112=(LOAD_1/0.25); %CASE 11 10:00-11:00
H1L121=(LOAD_1/0.25); H1L122=(LOAD_1/0.25); %CASE 12 11:00-12:00
H1L131=(LOAD_1/0.30); H1L132=(LOAD_1/0.35); %CASE 13 12:00-13:00
H1L141=(LOAD_1/0.35); H1L142=(LOAD_1/0.50); %CASE 14 13:00-14:00
H1L151=(LOAD_1/0.50); H1L152=(LOAD_1/0.50); %CASE 15 14:00-15:00
H1L161=(LOAD_1/0.50); H1L162=(LOAD_1/0.45); %CASE 16 15:00-16:00
H1L171=(LOAD_1/0.45); H1L172=(LOAD_1/0.40); %CASE 17 16:00-17:00
H1L181=(LOAD_1/0.40); H1L182=(LOAD_1/0.35); %CASE 18 17:00-18:00
H1L191=(LOAD_1/0.47); H1L192=(LOAD_1/0.67); %CASE 19 18:00-19:00
H1L201=(LOAD_1/0.67); H1L202=(LOAD_1/0.80); %CASE 20 19:00-20:00
H1L211=(LOAD_1/0.80); H1L212=(LOAD_1/0.90); %CASE 21 20:00-21:00
H1L221=(LOAD_1/0.90); H1L222=(LOAD_1/1.00); %CASE 22 21:00-22:00
H1L231=(LOAD_1/1.00); H1L232=(LOAD_1/0.85); %CASE 23 22:00-23:00
H1L241=(LOAD_1/0.85); H1L242=(LOAD_1/0.65); %CASE 24 23:00-00:00
%PROFILE SOLAR
SH2_11=0; SH2_12=0; %00:00 - 01:00
SH2_21=0; SH2_22=0; %01:00 - 02:00 Definition of house power (W).
SH2_31=0; SH2_32=0; %02:00 - 03:00 Calculation of the minimum load
SH2_41=0; SH2_42=0; %03:00 - 04:00
of the house. Definition of solar
SH2_51=0; SH2_52=0; %04:00 - 05:00
SH2_61=0; SH2_62=0; %05:00 - 06:00 and EV generation profiles.
SH2_71=0; SH2_72=500; %06:00 - 07:00
SH2_81=500; SH2_82=1000; %07:00 - 08:00
SH2_91=1000; SH2_92=1500; %08:00 - 09:00
SH2_101=1500; SH2_102=2000; %09:00 - 10:00
SH2_111=2000; SH2_112=2500; %10:00 - 11:00
SH2_121=2500; SH2_122=3500; %11:00 - 12:00
SH2_131=3500; SH2_132=4400; %12:00 - 13:00
SH2_141=4400; SH2_142=4400; %13:00 - 14:00
SH2_151=4400; SH2_152=4400; %14:00 - 15:00
SH2_161=4400; SH2_162=4000; %15:00 - 16:00
SH2_171=4000; SH2_172=3000; %16:00 - 17:00
SH2_181=3000; SH2_182=1000; %17:00 - 18:00
SH2_191=1000; SH2_192=100; %18:00 - 19:00
SH2_201=100; SH2_202=0; %19:00 - 20:00
SH2_211=0; SH2_212=0; %20:00 - 21:00
SH2_221=0; SH2_222=0; %21:00 - 22:00
SH2_231=0; SH2_232=0; %22:00 - 23:00
SH2_241=0; SH2_242=0; %23:00 - 24:00
173
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
%PROFILE EV
EH2_11=-3600; EH2_12=-3600; %00:00 - 01:00
EH2_21=-3600; EH2_22=-3600; %01:00 - 02:00
EH2_31=-3600; EH2_32=-3600; %02:00 - 03:00
EH2_41=-3600; EH2_42=-3600; %03:00 - 04:00
EH2_51=-3600; EH2_52=-3600; %04:00 - 05:00
EH2_61=-3600; EH2_62=-3600; %05:00 - 06:00
EH2_71=0; EH2_72=0; %06:00 - 07:00
Definition of EV
EH2_81=0; EH2_82=0; %07:00 - 08:00 generation profile.
EH2_91=0; EH2_92=0; %08:00 - 09:00
EH2_101=0; EH2_102=0; %09:00 - 10:00
EH2_111=0; EH2_112=0; %10:00 - 11:00
EH2_121=0; EH2_122=0; %11:00 - 12:00
EH2_131=3550; EH2_132=3550; %12:00 - 13:00
EH2_141=3550; EH2_142=3550; %13:00 - 14:00
EH2_151=3550; EH2_152=3550; %14:00 - 15:00
EH2_161=0.01; EH2_162=0.01; %15:00 - 16:00
EH2_171=0.01; EH2_172=0.01; %16:00 - 17:00
EH2_181=0.01; EH2_182=0.01; %17:00 - 18:00
EH2_191=0.01; EH2_192=0.01; %18:00 - 19:00
EH2_201=0.01; EH2_202=0.01; %19:00 - 20:00
EH2_211=0.01; EH2_212=0.01; %20:00 - 21:00
EH2_221=3600; EH2_222=3600; %21:00 - 22:00
EH2_231=3600; EH2_232=3600; %22:00 - 23:00
EH2_241=3600; EH2_242=3600; %23:00 - 24:00 Generation of the
consumption
%PROFILE LOAD H2 (load) profile of
H2L11=(LOAD_2/0.2); H2L12=(LOAD_2/0.2); %CASE 1 00:00-01:00
H2L21=(LOAD_2/0.2); H2L22=(LOAD_2/0.2); %CASE 2 01:00-02:00
the house
H2L31=(LOAD_2/0.2); H2L32=(LOAD_2/0.2); %CASE 3 02:00-03:00
H2L41=(LOAD_2/0.2); H2L42=(LOAD_2/0.2); %CASE 4 03:00-04:00
H2L51=(LOAD_2/0.2); H2L52=(LOAD_2/0.2); %CASE 5 04:00-05:00
H2L61=(LOAD_2/0.2); H2L62=(LOAD_2/0.2); %CASE 6 05:00-06:00
H2L71=(LOAD_2/0.2); H2L72=(LOAD_2/0.3); %CASE 7 06:00-07:00
H2L81=(LOAD_2/0.3); H2L82=(LOAD_2/0.4); %CASE 8 07:00-08:00
H2L91=(LOAD_2/0.4); H2L92=(LOAD_2/0.4); %CASE 9 08:00-09:00
H2L101=(LOAD_2/0.4); H2L102=(LOAD_2/0.23); %CASE 10 09:00-10:00
H2L111=(LOAD_2/0.23); H2L112=(LOAD_2/0.25); %CASE 11 10:00-11:00
H2L121=(LOAD_2/0.25); H2L122=(LOAD_2/0.25); %CASE 12 11:00-12:00
H2L131=(LOAD_2/0.30); H2L132=(LOAD_2/0.35); %CASE 13 12:00-13:00
H2L141=(LOAD_2/0.35); H2L142=(LOAD_2/0.50); %CASE 14 13:00-14:00
H2L151=(LOAD_2/0.50); H2L152=(LOAD_2/0.50); %CASE 15 14:00-15:00
H2L161=(LOAD_2/0.50); H2L162=(LOAD_2/0.45); %CASE 16 15:00-16:00
H2L171=(LOAD_2/0.45); H2L172=(LOAD_2/0.40); %CASE 17 16:00-17:00
H2L181=(LOAD_2/0.40); H2L182=(LOAD_2/0.35); %CASE 18 17:00-18:00
H2L191=(LOAD_2/0.47); H2L192=(LOAD_2/0.67); %CASE 19 18:00-19:00
H2L201=(LOAD_2/0.67); H2L202=(LOAD_2/0.80); %CASE 20 19:00-20:00
H2L211=(LOAD_2/0.80); H2L212=(LOAD_2/0.90); %CASE 21 20:00-21:00
H2L221=(LOAD_2/0.90); H2L222=(LOAD_2/1.00); %CASE 22 21:00-22:00
H2L231=(LOAD_2/1.00); H2L232=(LOAD_2/0.80); %CASE 23 22:00-23:00
H2L241=(LOAD_2/0.80); H2L242=(LOAD_2/0.65); %CASE 24 23:00-00:00
174
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
%PROFILE SOLAR
SH3_11=0; SH3_12=0; %00:00 - 01:00
SH3_21=0; SH3_22=0; %01:00 - 02:00
SH3_31=0; SH3_32=0; %02:00 - 03:00
SH3_41=0; SH3_42=0; %03:00 - 04:00
SH3_51=0; SH3_52=0; %04:00 - 05:00 Definition of house power (W).
SH3_61=0; SH3_62=0; %05:00 - 06:00 Calculation of the minimum load
SH3_71=0; SH3_72=500; %06:00 - 07:00 of the house. Definition of solar
SH3_81=500; SH3_82=1000; %07:00 - 08:00 and EV generation profiles.
SH3_91=1000; SH3_92=1500; %08:00 - 09:00
SH3_101=1500; SH3_102=2000; %09:00 - 10:00
SH3_111=2000; SH3_112=2500; %10:00 - 11:00
SH3_121=2500; SH3_122=3500; %11:00 - 12:00
SH3_131=3500; SH3_132=4400; %12:00 - 13:00
SH3_141=4400; SH3_142=4400; %13:00 - 14:00
SH3_151=4400; SH3_152=4400; %14:00 - 15:00
SH3_161=4400; SH3_162=4000; %15:00 - 16:00
SH3_171=4000; SH3_172=3000; %16:00 - 17:00
SH3_181=3000; SH3_182=1000; %17:00 - 18:00
SH3_191=1000; SH3_192=100; %18:00 - 19:00
SH3_201=100; SH3_202=0; %19:00 - 20:00
SH3_211=0; SH3_212=0; %20:00 - 21:00
SH3_221=0; SH3_222=0; %21:00 - 22:00
SH3_231=0; SH3_232=0; %22:00 - 23:00
SH3_241=0; SH3_242=0; %23:00 - 24:00
175
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
%PROFILE LOAD H3
H3L11=(LOAD_3/0.2); H3L12=(LOAD_3/0.2); %CASE 1 00:00-01:00 Generation of
H3L21=(LOAD_3/0.2); H3L22=(LOAD_3/0.2); %CASE 2 01:00-02:00 the consumption
H3L31=(LOAD_3/0.2); H3L32=(LOAD_3/0.2); %CASE 3 02:00-03:00 (load) profile of
H3L41=(LOAD_3/0.2); H3L42=(LOAD_3/0.2); %CASE 4 03:00-04:00
H3L51=(LOAD_3/0.2); H3L52=(LOAD_3/0.2); %CASE 5 04:00-05:00
the house
H3L61=(LOAD_3/0.2); H3L62=(LOAD_3/0.2); %CASE 6 05:00-06:00
H3L71=(LOAD_3/0.2); H3L72=(LOAD_3/0.3); %CASE 7 06:00-07:00
H3L81=(LOAD_3/0.3); H3L82=(LOAD_3/0.4); %CASE 8 07:00-08:00
H3L91=(LOAD_3/0.4); H3L92=(LOAD_3/0.4); %CASE 9 08:00-09:00
H3L101=(LOAD_3/0.4); H3L102=(LOAD_3/0.23); %CASE 10 09:00-10:00
H3L111=(LOAD_3/0.23); H3L112=(LOAD_3/0.25); %CASE 11 10:00-11:00
H3L121=(LOAD_3/0.25); H3L122=(LOAD_3/0.25); %CASE 12 11:00-12:00
H3L131=(LOAD_3/0.30); H3L132=(LOAD_3/0.35); %CASE 13 12:00-13:00
H3L141=(LOAD_3/0.35); H3L142=(LOAD_3/0.50); %CASE 14 13:00-14:00
H3L151=(LOAD_3/0.50); H3L152=(LOAD_3/0.50); %CASE 15 14:00-15:00
H3L161=(LOAD_3/0.50); H3L162=(LOAD_3/0.45); %CASE 16 15:00-16:00
H3L171=(LOAD_3/0.45); H3L172=(LOAD_3/0.40); %CASE 17 16:00-17:00
H3L181=(LOAD_3/0.40); H3L182=(LOAD_3/0.35); %CASE 18 17:00-18:00
H3L191=(LOAD_3/0.47); H3L192=(LOAD_3/0.67); %CASE 19 18:00-19:00
H3L201=(LOAD_3/0.67); H3L202=(LOAD_3/0.80); %CASE 20 19:00-20:00
H3L211=(LOAD_3/0.80); H3L212=(LOAD_3/0.90); %CASE 21 20:00-21:00
H3L221=(LOAD_3/0.90); H3L222=(LOAD_3/1.00); %CASE 22 21:00-22:00
H3L231=(LOAD_3/1.00); H3L232=(LOAD_3/0.80); %CASE 23 22:00-23:00
H3L241=(LOAD_3/0.80); H3L242=(LOAD_3/0.65); %CASE 24 23:00-00:00
sequence_TIME=[ t11 t12 t21 t22 t31 t32 t41 t42 t51 t52 t61
t62 t71 t72 t81 t82 t91 t92 t101 t102 t111 t112 t121 t122 t131
t132 t141 t142 t151 t152 t161 t162 t171 t172 t181 t182 t191 t192 t201
t202 t211 t212 t221 t222 t231 t232 t241 t242]*time_scale_factor;
176
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Generation of active and reactive power vectors for all houses. These
vectors contain the previously introduced profiles. These vectors will be
introduced in the repeating sequences of Simulink.
sequence_E_H1= [EH1_11 EH1_12 EH1_21 EH1_22 EH1_31 EH1_32 EH1_41 EH1_42
EH1_51 EH1_52 EH1_61 EH1_62 EH1_71 EH1_72 EH1_81 EH1_82 EH1_91 EH1_92
EH1_101 EH1_102 EH1_111 EH1_112 EH1_121 EH1_122 EH1_131 EH1_132 EH1_141 EH1_142
EH1_151 EH1_152 EH1_161 EH1_162 EH1_171 EH1_172 EH1_181 EH1_182 EH1_191 EH1_192
EH1_201 EH1_202 EH1_211 EH1_212 EH1_221 EH1_222 EH1_231 EH1_232 EH1_241 EH1_242];
177
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
%__________________________________________________________________________________
psi=0.1; %selectividad
num=[2*psi*wo 0]; Declaration of filter variables,
den=[1 2*psi*wo wo^2];
simulation time, discretization
sysd=c2d(tf(num,den),1e-6,'tustin');
[numBPF,denBPF]=tfdata(sysd,'v'); variables and RL Branch
values.
%RLC BRANCH POWER LINE
L_parasite=3e-3;
%% definition of the simulation's parameters
t_simula=1e-6;
t_stop=t242*time_scale_factor;
%% SIMULATION
The reader is reminded that the "SIGNO" variable is the one that decides
whether the inverters absorb or inject reactive power. If the variable takes the
value -1 it means that the inverters absorb reactive, on the contrary if it is 1 it
means that they inject reactive. If the value 0 is set, the inverters will simply
work with active only.
178
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
179
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
180
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
181
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
182
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
183
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
184
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
185
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
186
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
187
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
188
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%% COMB1 %%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%
%ACTIVE PHASE A H1
AH1_11=4.77; AH1_12=AH1_11; %00:00 - 01:00 Creation of the variables
AH1_21=4.77; AH1_22=AH1_21; %01:00 - 02:00 containing the active
AH1_31=4.77; AH1_32=AH1_31; %02:00 - 03:00 power values (kW), which
AH1_41=4.77; AH1_42=AH1_41; %03:00 - 04:00
AH1_51=4.77; AH1_52=AH1_51; %04:00 - 05:00
will then form the active
AH1_61=1.00; AH1_62=AH1_61; %05:00 - 06:00 power vector from House 1
AH1_71=1.11; AH1_72=AH1_71; %06:00 - 07:00
AH1_81=1.23; AH1_82=AH1_81; %07:00 - 08:00
AH1_91=0.30; AH1_92=AH1_91; %08:00 - 09:00
AH1_101=-0.62; AH1_102=AH1_101; %09:00 - 10:00
AH1_111=-1.52; AH1_112=AH1_111; %10:00 - 11:00
AH1_121=-2.40; AH1_122=AH1_121; %11:00 - 12:00
AH1_131=-2.05; AH1_132=AH1_131; %12:00 - 13:00
AH1_141=-1.69; AH1_142=AH1_141; %13:00 - 14:00
AH1_151=-1.49; AH1_152=AH1_151; %14:00 - 15:00
AH1_161=-1.43; AH1_162=AH1_161; %15:00 - 16:00
AH1_171=-1.13; AH1_172=AH1_171; %16:00 - 17:00
AH1_181=0.09; AH1_182=AH1_181; %17:00 - 18:00
AH1_191=3.18; AH1_192=AH1_191; %18:00 - 19:00
189
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
%REACTIVE PHASE A H1
RH1_11=4.45; RH1_12=RH1_11; %00:00 - 01:00
RH1_21=4.45; RH1_22=RH1_21; %01:00 - 02:00
RH1_31=4.45; RH1_32=RH1_31; %02:00 - 03:00 Creation of the variables
RH1_41=4.45; RH1_42=RH1_41; %03:00 - 04:00 containing the reactive
RH1_51=4.45; RH1_52=RH1_51; %04:00 - 05:00
power values (kVAr), which
RH1_61=4.39; RH1_62=RH1_61; %05:00 - 06:00
RH1_71=4.32; RH1_72=RH1_71; %06:00 - 07:00 will then form the active
RH1_81=4.19; RH1_82=RH1_81; %07:00 - 08:00 power vector from House 1
RH1_91=4.07; RH1_92=RH1_91; %08:00 - 09:00
RH1_101=3.94; RH1_102=RH1_101; %09:00 - 10:00
RH1_111=3.36; RH1_112=RH1_111; %10:00 - 11:00
RH1_121=2.77; RH1_122=RH1_121; %11:00 - 12:00
RH1_131=0.19; RH1_132=RH1_131; %12:00 - 13:00
RH1_141=0.06; RH1_142=RH1_141; %13:00 - 14:00
RH1_151=-0.07; RH1_152=RH1_151; %14:00 - 15:00
RH1_161=2.09; RH1_162=RH1_161; %15:00 - 16:00
RH1_171=3.16; RH1_172=RH1_171; %16:00 - 17:00
RH1_181=4.24; RH1_182=RH1_181; %17:00 - 18:00
RH1_191=4.31; RH1_192=RH1_191; %18:00 - 19:00
RH1_201=4.38; RH1_202=RH1_201; %19:00 - 20:00
RH1_211=4.38; RH1_212=RH1_211; %20:00 - 21:00
RH1_221=4.38; RH1_222=RH1_221; %21:00 - 22:00
RH1_231=4.38; RH1_232=RH1_231; %22:00 - 23:00
RH1_241=4.38; RH1_242=RH1_241; %23:00 - 24:00
%ACTIVE PHASE B H2
AH2_11=4.49; AH2_12= AH2_11; %00:00 - 01:00
AH2_21=4.49; AH2_22= AH2_21; %01:00 - 02:00
AH2_31=4.49; AH2_32= AH2_31; %02:00 - 03:00
AH2_41=4.49; AH2_42= AH2_41; %03:00 - 04:00 Creation of the variables
AH2_51=4.49; AH2_52= AH2_51; %04:00 - 05:00 containing the active
AH2_61=0.84; AH2_62= AH2_61; %05:00 - 06:00 power values (kW), which
AH2_71=0.81; AH2_72= AH2_71; %06:00 - 07:00
will then form the active
AH2_81=0.78; AH2_82= AH2_81; %07:00 - 08:00
AH2_91=-0.01; AH2_92= AH2_91; %08:00 - 09:00 power vector from House 2
AH2_101=-0.80; AH2_102=AH2_101; %09:00 - 10:00
AH2_111=-1.51; AH2_112=AH2_111; %10:00 - 11:00
AH2_121=-2.22; AH2_122=AH2_121; %11:00 - 12:00
AH2_131=-5.96; AH2_132=AH2_131; %12:00 - 13:00
AH2_141=-5.70; AH2_142=AH2_141; %13:00 - 14:00
AH2_151=-5.70; AH2_152=AH2_151; %14:00 - 15:00
AH2_161=-1.96; AH2_162=AH2_161; %15:00 - 16:00
AH2_171=-1.31; AH2_172=AH2_171; %16:00 - 17:00
AH2_181=1.96; AH2_182=AH2_181; %17:00 - 18:00
AH2_191=2.85; AH2_192=AH2_191; %18:00 - 19:00
AH2_201=3.75; AH2_202=AH2_201; %19:00 - 20:00
AH2_211=0.52; AH2_212=AH2_211; %20:00 - 21:00
AH2_221=0.52; AH2_222=AH2_221; %21:00 - 22:00
AH2_231=0.52; AH2_232=AH2_231; %22:00 - 23:00
AH2_241=0.49; AH2_242=AH2_241; %23:00 - 24:00
190
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
%REACTIVE PHASE B H2
RH2_11=4.40; RH2_12= RH2_11; %00:00 - 01:00
RH2_21=4.40; RH2_22= RH2_21; %01:00 - 02:00
RH2_31=4.40; RH2_32= RH2_31; %02:00 - 03:00 Creation of the variables
RH2_41=4.40; RH2_42= RH2_41; %03:00 - 04:00 containing the reactive
RH2_51=4.40; RH2_52= RH2_51; %04:00 - 05:00 power values (kVAr), which
RH2_61=4.34; RH2_62= RH2_61; %05:00 - 06:00
RH2_71=4.29; RH2_72= RH2_71; %06:00 - 07:00
will then form the active
RH2_81=4.18; RH2_82= RH2_81; %07:00 - 08:00 power vector from House 2
RH2_91=4.08; RH2_92= RH2_91; %08:00 - 09:00
RH2_101=3.97; RH2_102=RH2_101; %09:00 - 10:00
RH2_111=2.87; RH2_112=RH2_111; %10:00 - 11:00
RH2_121=1.77; RH2_122=RH2_121; %11:00 - 12:00
RH2_131=1.43; RH2_132=RH2_131; %12:00 - 13:00
RH2_141=1.12; RH2_142=RH2_141; %13:00 - 14:00
RH2_151=2.67; RH2_152=RH2_151; %14:00 - 15:00
RH2_161=4.80; RH2_162=RH2_161; %15:00 - 16:00
RH2_171=6.32; RH2_172=RH2_171; %16:00 - 17:00
RH2_181=7.84; RH2_182=RH2_181; %17:00 - 18:00
RH2_191=7.84; RH2_192=RH2_191; %18:00 - 19:00
RH2_201=8.00; RH2_202=RH2_201; %19:00 - 20:00
RH2_211=8.00; RH2_212=RH2_211; %20:00 - 21:00
RH2_221=4.41; RH2_222=RH2_221; %21:00 - 22:00
RH2_231=4.41; RH2_232=RH2_231; %22:00 - 23:00
RH2_241=4.41; RH2_242=RH2_241; %23:00 - 24:00
%ACTIVE PHASE C H3
AH3_11=4.22; AH3_12= AH3_11; %00:00 - 01:00
AH3_21=4.22; AH3_22= AH3_21; %01:00 - 02:00
AH3_31=4.22; AH3_32= AH3_31; %02:00 - 03:00
AH3_41=4.22; AH3_42= AH3_41; %03:00 - 04:00
Creation of the variables
AH3_51=4.22; AH3_52= AH3_51; %04:00 - 05:00 containing the active
AH3_61=4.13; AH3_62= AH3_61; %05:00 - 06:00 power values (kW), which
AH3_71=4.04; AH3_72= AH3_71; %06:00 - 07:00 will then form the active
AH3_81=3.86; AH3_82= AH3_81; %07:00 - 08:00
power vector from House 3
AH3_91=0.10; AH3_92= AH3_91; %08:00 - 09:00
AH3_101=-1.19; AH3_102=AH3_101; %09:00 - 10:00
AH3_111=-1.70; AH3_112=AH3_111; %10:00 - 11:00
AH3_121=-2.21; AH3_122=AH3_121; %11:00 - 12:00
AH3_131=-3.23; AH3_132=AH3_131; %12:00 - 13:00
AH3_141=-2.46; AH3_142=AH3_141; %13:00 - 14:00
AH3_151=-2.70; AH3_152=AH3_151; %14:00 - 15:00
AH3_161=-2.66; AH3_162=AH3_161; %15:00 - 16:00
AH3_171=-1.39; AH3_172=AH3_171; %16:00 - 17:00
AH3_181=0.14; AH3_182=AH3_181; %17:00 - 18:00
AH3_191=1.38; AH3_192=AH3_191; %18:00 - 19:00
AH3_201=2.73; AH3_202=AH3_201; %19:00 - 20:00
AH3_211=3.03; AH3_212=AH3_211; %20:00 - 21:00
AH3_221=0.81; AH3_222=AH3_221; %21:00 - 22:00
AH3_231=0.81; AH3_232=AH3_231; %22:00 - 23:00
AH3_241=0.81; AH3_242=AH3_241; %23:00 - 24:00
191
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
%REACTIVE PHASE C H3
RH3_11=7.47; RH3_12= RH3_11; %00:00 - 01:00
RH3_21=7.47; RH3_22= RH3_21; %01:00 - 02:00
RH3_31=7.47; RH3_32= RH3_31; %02:00 - 03:00 Creation of the variables
RH3_41=7.47; RH3_42= RH3_41; %03:00 - 04:00 containing the reactive
RH3_51=7.47; RH3_52= RH3_51; %04:00 - 05:00
RH3_61=7.47; RH3_62= RH3_61; %05:00 - 06:00
power values (kVAr), which
RH3_71=7.47; RH3_72= RH3_71; %06:00 - 07:00 will then form the active
RH3_81=7.47; RH3_82= RH3_81; %07:00 - 08:00 power vector from House 3
RH3_91=7.47; RH3_92= RH3_91; %08:00 - 09:00
RH3_101=7.47; RH3_102=RH3_101; %09:00 - 10:00
RH3_111=7.09; RH3_112=RH3_111; %10:00 - 11:00
RH3_121=6.71; RH3_122=RH3_121; %11:00 - 12:00
RH3_131=5.96; RH3_132=RH3_131; %12:00 - 13:00
RH3_141=5.96; RH3_142=RH3_141; %13:00 - 14:00
RH3_151=6.06; RH3_152=RH3_151; %14:00 - 15:00
RH3_161=6.33; RH3_162=RH3_161; %15:00 - 16:00
RH3_171=6.60; RH3_172=RH3_171; %16:00 - 17:00
RH3_181=7.14; RH3_182=RH3_181; %17:00 - 18:00
RH3_191=7.23; RH3_192=RH3_191; %18:00 - 19:00
RH3_201=7.33; RH3_202=RH3_201; %19:00 - 20:00
RH3_211=9.98; RH3_212=RH3_211; %20:00 - 21:00
RH3_221=9.98; RH3_222=RH3_221; %21:00 - 22:00
RH3_231=9.98; RH3_232=RH3_231; %22:00 - 23:00
RH3_241=9.98; RH3_242=RH3_241; %23:00 - 24:00
%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%% COMB2 %%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%
%ACTIVE PHASE A H4
AH4_11=4.78; AH4_12= AH4_11; %00:00 - 01:00
AH4_21=4.78; AH4_22= AH4_21; %01:00 - 02:00
AH4_31=4.78; AH4_32= AH4_31; %02:00 - 03:00
Creation of the variables
AH4_41=4.78; AH4_42= AH4_41; %03:00 - 04:00
AH4_51=4.78; AH4_52= AH4_51; %04:00 - 05:00 containing the active
AH4_61=0.81; AH4_62= AH4_61; %05:00 - 06:00 power values (kW), which
AH4_71=0.81; AH4_72= AH4_71; %06:00 - 07:00 will then form the active
AH4_81=0.13; AH4_82= AH4_81; %07:00 - 08:00
power vector from House 4
AH4_91=-0.56; AH4_92= AH4_91; %08:00 - 09:00
AH4_101=-1.96; AH4_102=AH4_101; %09:00 - 10:00
AH4_111=-2.74; AH4_112=AH4_111; %10:00 - 11:00
AH4_121=-3.55; AH4_122=AH4_121; %11:00 - 12:00
AH4_131=-5.71; AH4_132=AH4_131; %12:00 - 13:00
AH4_141=-4.90; AH4_142=AH4_141; %13:00 - 14:00
AH4_151=-4.57; AH4_152=AH4_151; %14:00 - 15:00
AH4_161=-2.23; AH4_162=AH4_161; %15:00 - 16:00
AH4_171=-0.12; AH4_172=AH4_171; %16:00 - 17:00
AH4_181=1.94; AH4_182=AH4_181; %17:00 - 18:00
AH4_191=3.77; AH4_192=AH4_191; %18:00 - 19:00
AH4_201=4.60; AH4_202=AH4_201; %19:00 - 20:00
AH4_211=5.07; AH4_212=AH4_211; %20:00 - 21:00
AH4_221=5.53; AH4_222=AH4_221; %21:00 - 22:00
AH4_231=1.62; AH4_232=AH4_231; %22:00 - 23:00
AH4_241=0.32; AH4_242=AH4_241; %23:00 - 24:00
192
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
%REACTIVE PHASE A H4
RH4_11=7.47; RH4_12= RH4_11; %00:00 - 01:00
RH4_21=7.47; RH4_22= RH4_21; %01:00 - 02:00
RH4_31=7.47; RH4_32= RH4_31; %02:00 - 03:00 Creation of the variables
RH4_41=7.47; RH4_42= RH4_41; %03:00 - 04:00
RH4_51=7.47; RH4_52= RH4_51; %04:00 - 05:00
containing the reactive
RH4_61=7.47; RH4_62= RH4_61; %05:00 - 06:00 power values (kVAr), which
RH4_71=7.47; RH4_72= RH4_71; %06:00 - 07:00 will then form the active
RH4_81=7.25; RH4_82= RH4_81; %07:00 - 08:00 power vector from House 4
RH4_91=7.00; RH4_92= RH4_91; %08:00 - 09:00
RH4_101=6.50; RH4_102=RH4_101; %09:00 - 10:00
RH4_111=4.95; RH4_112=RH4_111; %10:00 - 11:00
RH4_121=3.40; RH4_122=RH4_121; %11:00 - 12:00
RH4_131=0.30; RH4_132=RH4_131; %12:00 - 13:00
RH4_141=0.30; RH4_142=RH4_141; %13:00 - 14:00
RH4_151=0.30; RH4_152=RH4_151; %14:00 - 15:00
RH4_161=1.99; RH4_162=RH4_161; %15:00 - 16:00
RH4_171=3.68; RH4_172=RH4_171; %16:00 - 17:00
RH4_181=7.06; RH4_182=RH4_181; %17:00 - 18:00
RH4_191=7.40; RH4_192=RH4_191; %18:00 - 19:00
RH4_201=7.40; RH4_202=RH4_201; %19:00 - 20:00
RH4_211=7.40; RH4_212=RH4_211; %20:00 - 21:00
RH4_221=7.40; RH4_222=RH4_221; %21:00 - 22:00
RH4_231=7.40; RH4_232=RH4_231; %22:00 - 23:00
RH4_241=7.40; RH4_242=RH4_241; %23:00 - 24:00
%ACTIVE PHASE B H5
AH5_11=4.66; AH5_12= AH5_11; %00:00 - 01:00
AH5_21=4.66; AH5_22= AH5_21; %01:00 - 02:00
AH5_31=4.66; AH5_32= AH5_31; %02:00 - 03:00
Creation of the variables
AH5_41=4.66; AH5_42= AH5_41; %03:00 - 04:00
AH5_51=4.66; AH5_52= AH5_51; %04:00 - 05:00 containing the active
AH5_61=0.66; AH5_62= AH5_61; %05:00 - 06:00 power values (kW), which
AH5_71=1.06; AH5_72= AH5_71; %06:00 - 07:00 will then form the active
AH5_81=1.13; AH5_82= AH5_81; %07:00 - 08:00
power vector from House 5
AH5_91=0.25; AH5_92= AH5_91; %08:00 - 09:00
AH5_101=-0.55; AH5_102=AH5_101; %09:00 - 10:00
AH5_111=-1.88; AH5_112=AH5_111; %10:00 - 11:00
AH5_121=-5.94; AH5_122=AH5_121; %11:00 - 12:00
AH5_131=-5.94; AH5_132=AH5_131; %12:00 - 13:00
AH5_141=-5.10; AH5_142=AH5_141; %13:00 - 14:00
AH5_151=-1.48; AH5_152=AH5_151; %14:00 - 15:00
AH5_161=-1.05; AH5_162=AH5_161; %15:00 - 16:00
AH5_171=-0.43; AH5_172=AH5_171; %16:00 - 17:00
AH5_181=0.20; AH5_182=AH5_181; %17:00 - 18:00
AH5_191=2.37; AH5_192=AH5_191; %18:00 - 19:00
AH5_201=4.55; AH5_202=AH5_201; %19:00 - 20:00
AH5_211=1.25; AH5_212=AH5_211; %20:00 - 21:00
AH5_221=2.11; AH5_222=AH5_221; %21:00 - 22:00
AH5_231=6.05; AH5_232=AH5_231; %22:00 - 23:00
AH5_241=3.85; AH5_242=AH5_241; %23:00 - 24:00
%REACTIVE PHASE B H5
RH5_11=4.49; RH5_12= RH5_11; %00:00 - 01:00 Creation of the variables
RH5_21=4.49; RH5_22= RH5_21; %01:00 - 02:00 containing the reactive
RH5_31=4.49; RH5_32= RH5_31; %02:00 - 03:00
RH5_41=4.49; RH5_42= RH5_41; %03:00 - 04:00
power values (kVAr), which
RH5_51=4.49; RH5_52= RH5_51; %04:00 - 05:00 will then form the active
RH5_61=4.49; RH5_62= RH5_61; %05:00 - 06:00 power vector from House 5
193
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
%ACTIVE PHASE C H6
AH6_11=8.58; AH6_12= AH6_11; %00:00 - 01:00
AH6_21=8.58; AH6_22= AH6_21; %01:00 - 02:00
AH6_31=8.58; AH6_32= AH6_31; %02:00 - 03:00 Creation of the variables
AH6_41=8.58; AH6_42= AH6_41; %03:00 - 04:00 containing the active
AH6_51=8.58; AH6_52= AH6_51; %04:00 - 05:00 power values (kW), which
AH6_61=8.58; AH6_62= AH6_61; %05:00 - 06:00
will then form the active
AH6_71=8.58; AH6_72= AH6_71; %06:00 - 07:00
AH6_81=1.24; AH6_82= AH6_81; %07:00 - 08:00 power vector from House
AH6_91=0.11; AH6_92= AH6_91; %08:00 - 09:00
AH6_101=-1.01; AH6_102=AH6_101; %09:00 - 10:00
AH6_111=-1.55; AH6_112=AH6_111; %10:00 - 11:00
AH6_121=-2.08; AH6_122=AH6_121; %11:00 - 12:00
AH6_131=-3.14; AH6_132=AH6_131; %12:00 - 13:00
AH6_141=-2.64; AH6_142=AH6_141; %13:00 - 14:00
AH6_151=-2.14; AH6_152=AH6_151; %14:00 - 15:00
AH6_161=-1.61; AH6_162=AH6_161; %15:00 - 16:00
AH6_171=-1.07; AH6_172=AH6_171; %16:00 - 17:00
AH6_181=0.00; AH6_182=AH6_181; %17:00 - 18:00
AH6_191=3.78; AH6_192=AH6_191; %18:00 - 19:00
AH6_201=5.29; AH6_202=AH6_201; %19:00 - 20:00
AH6_211=2.99; AH6_212=AH6_211; %20:00 - 21:00
AH6_221=3.25; AH6_222=AH6_221; %21:00 - 22:00
AH6_231=2.19; AH6_232=AH6_231; %22:00 - 23:00
AH6_241=1.13; AH6_242=AH6_241; %23:00 - 24:00
%REACTIVE PHASE C H6
RH6_11=5.63; RH6_12= RH6_11; %00:00 - 01:00 Creation of the variables
RH6_21=5.63; RH6_22= RH6_21; %01:00 - 02:00
containing the reactive
RH6_31=5.63; RH6_32= RH6_31; %02:00 - 03:00
RH6_41=5.63; RH6_42= RH6_41; %03:00 - 04:00 power values (kVAr), which
RH6_51=5.63; RH6_52= RH6_51; %04:00 - 05:00 will then form the active
RH6_61=5.63; RH6_62= RH6_61; %05:00 - 06:00 power vector from House 6
RH6_71=5.63; RH6_72= RH6_71; %06:00 - 07:00
RH6_81=12.44; RH6_82= RH6_81; %07:00 - 08:00
RH6_91=12.34; RH6_92= RH6_91; %08:00 - 09:00
RH6_101=12.24; RH6_102=RH6_101; %09:00 - 10:00
RH6_111=10.95; RH6_112=RH6_111; %10:00 - 11:00
RH6_121=9.67; RH6_122=RH6_121; %11:00 - 12:00
RH6_131=7.10; RH6_132=RH6_131; %12:00 - 13:00
194
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%
Creation of time vectors
%%%%%%%%%%%%%%%%%%%%%% COMB3 %%%%%%%%%%%%%%%%%%%%%% (common for all houses).
%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%% Creation of active and
. reactive power vectors for
. each house.
.
(Same structure for each combo and house)
SIGNO=1;
sequence_AC_H1=[ AH1_11 AH1_12 AH1_21 AH1_22 AH1_31 AH1_32 AH1_41 AH1_42
AH1_51 AH1_52 AH1_61 AH1_62 AH1_71 AH1_72 AH1_81 AH1_82 AH1_91 AH1_92
AH1_101 AH1_102 AH1_111 AH1_112 AH1_121 AH1_122 AH1_131 AH1_132 AH1_141 AH1_142
AH1_151 AH1_152 AH1_161 AH1_162 AH1_171 AH1_172 AH1_181 AH1_182 AH1_191 AH1_192
AH1_201 AH1_202 AH1_211 AH1_212 AH1_221 AH1_222 AH1_231 AH1_232 AH1_241
AH1_242]*nn*1000;
sequence_RE_H1=[ RH1_11 RH1_12 RH1_21 RH1_22 RH1_31 RH1_32 RH1_41 RH1_42
RH1_51 RH1_52 RH1_61 RH1_62 RH1_71 RH1_72 RH1_81 RH1_82 RH1_91 RH1_92
RH1_101 RH1_102 RH1_111 RH1_112 RH1_121 RH1_122 RH1_131 RH1_132 RH1_141 RH1_142
RH1_151 RH1_152 RH1_161 RH1_162 RH1_171 RH1_172 RH1_181 RH1_182 RH1_191 RH1_192
RH1_201 RH1_202 RH1_211 RH1_212 RH1_221 RH1_222 RH1_231 RH1_232 RH1_241
RH1_242]*nn*1000*SIGNO;
195
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
196
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
197
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
198
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
t_stop=t242*time_scale_factor;
t_simula=1e-5;
Time variables for simulation. Creation
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
of DC voltage for three-phase inverter
Vdc_SOLAR=400;
Vdc_EV=Vdc_SOLAR;
control. Introduction of filter variables
%FILTER 1 P & Q
sysd1_h1_sol=c2d(tf(num,den),10e-6,'tustin');
[numLPF_h1_sol,denLPF_h1_sol]=tfdata(sysd1_h1_sol,'v');
[numLPF_h1_ev,denLPF_h1_ev]=tfdata(sysd1_h1_sol,'v');
199
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
R_LINE=1e-6; L_LINE=1.0e-6;
sim('CASE_3_SIM_FINAL2');
200
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
H1
H2
H3
Figure A35: Active and Reactive power (left) and accumulated energy (right) of COMB 1 for the 3 scenarios - Case 3
201
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
H1 H2 H3
[kVA]
[kVA]
[kVA]
Apparent
Power
[kVA]
Apparent
Energy
[kVA]
Figure A36: Apparent power and accumulated active energy of COMB 1 for the 3 scenarios - Case 3
202
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
H4
H5
H6
Figure A37: Active and Reactive power (left) and accumulated energy (right) of COMB 2 for the 3 scenarios - Case 3
203
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
H4 H5 H6
[kVA]
[kVA]
Apparent
[kVA]
Power
[kVA]
Apparent
Energy
[kVA]
Figure A38: Apparent power and accumulated active energy of COMB 2 for the 3 scenarios - Case 3
204
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
H7
H8
H9
Figure A39: Active and Reactive power (left) and accumulated energy (right) of COMB 3 for the 3 scenarios - Case 3
205
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
H7 H8 H9
[kVA]
Apparent
[kVA]
[kVA]
Power
[kVA]
Apparent
Energy
[kVA]
Figure A40: Apparent power and accumulated active energy of COMB 3 for the 3 scenarios - Case 3
206
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
H10
H11
H12
Figure A41: Active and Reactive power (left) and accumulated energy (right) of COMB 4 for the 3 scenarios - Case 3
207
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Apparent
[kVA]
[kVA]
[kVA]
Power
[kVA]
Apparent
Energy
[kVA]
Figure A42: Apparent power and accumulated active energy of COMB 4 for the 3 scenarios - Case 3
208
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
H13
H14
H15
Figure A43: Active and Reactive power (left) and accumulated energy (right) of COMB 5 for the 3 scenarios - Case 3
209
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Apparent
[kVA]
[kVA]
[kVA]
Power
[kVA]
Apparent
Energy
[kVA]
Figure A44: Apparent power and accumulated active energy of COMB 5 for the 3 scenarios - Case 3
210
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
H16
H17
H18
Figure A45: Active and Reactive power (left) and accumulated energy (right) of COMB 6 for the 3 scenarios - Case 3
211
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Apparent
[kVA]
[kVA]
[kVA]
Power
[kVA]
Apparent
Energy
[kVA]
Figure A46: Apparent power and accumulated active energy of COMB 6 for the 3 scenarios - Case 3
212
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
213
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Annex 10: Case 3 figures and data for 18, 71 and 144 homes
Figure A47: Active and reactive power per phase (18 houses), Scenario 1 - Case 3
Figure A48: Active and reactive power per phase (72 houses), Scenario 1 - Case 3
214
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure A49: Active and reactive power per phase (144 houses), Scenario 1 - Case 3
Figure A50: Active and reactive power per phase (18 houses), Scenario 2 - Case 3
215
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure A51: Active and reactive power per phase (72 houses), Scenario 2 - Case 3
Figure A52: Active and reactive power per phase (144 houses), Scenario 2 - Case 3
216
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure A53: Active and reactive power per phase (18 houses), Scenario 3 - Case 3
Figure A54: Active and reactive power per phase (72 houses), Scenario 3 - Case 3
217
Application of electric vehicles and solar panels to support the public grid through reactive power injection
Carles Bertran Pujol
Figure A55: Active and reactive power per phase (144 houses), Scenario 3 - Case 3
218