AI in Smart Energy Systems Lecture 6 Notes
AI in Smart Energy Systems Lecture 6 Notes
AI in Smart Energy Systems Lecture 6 Notes
Energy
Systems
Lecture 6
Sohail Khan
Contents
1 Computational Methods for Energy Networks ........................................................................... 2
1.1 Energy networks ................................................................................................................ 2
1.2 Why model energy networks? ............................................................................................ 2
1.3 Conventional energy systems ............................................................................................. 3
1.4 Future energy systems ....................................................................................................... 3
1.5 Modelling cycle .................................................................................................................. 4
1.6 Model types ....................................................................................................................... 4
1.7 Transient behavior in gas and electricity networks ............................................................. 5
1.8 Summary............................................................................................................................ 5
2 Simulation of Transmission and Distribution Networks .............................................................. 6
2.1 Transmission vs distribution networks................................................................................ 6
2.2 Challenges.......................................................................................................................... 8
2.3 Summary............................................................................................................................ 9
3 Simulation of Gas Networks ..................................................................................................... 10
3.1 Unknowns in gas networks ............................................................................................... 10
3.2 Gas types ......................................................................................................................... 11
3.3 Gas Simulation ................................................................................................................. 11
3.4 Components to be modeled ............................................................................................. 12
3.5 Gas vs. electricity ............................................................................................................. 12
3.6 Gas-Electricity coupling .................................................................................................... 13
3.7 Energy Hubs ..................................................................................................................... 13
3.8 Summary.......................................................................................................................... 14
4 Easy and Complex Models ....................................................................................................... 15
4.1 Generator model.............................................................................................................. 15
4.2 Power flow models .......................................................................................................... 16
4.2.1 AC model:................................................................................................................. 16
4.2.2 DC model:................................................................................................................. 16
4.3 Combining models ........................................................................................................... 17
4.4 Challenges of models ....................................................................................................... 17
4.5 Summary.......................................................................................................................... 18
1 Computational Methods for Energy Networks
1.1 Energy networks
There are different kinds of energy networks. Let us consider the most important three:
1. Electricity network
2. Gas networks
3. Heat networks
All these networks are different. These different networks have distinct properties and
phenomena. One of the essential things to consider is how we can interconnect them? Or, how
can we integrate to make these networks which have distinct properties work together?
There are various reasons why we might want to model energy networks. Some of them are:
1. We wanted to know what could happen in the present and the future. For example, what
if we add a new consumer or a new producer? Then it is essential to know what will
happen in the network. Hence, we can study what should be included and removed from
the network. We can also check the effects on the other consumers or producers.
2. To analyze the energy flow in the network. Energy flows from one network node to
another network node, leading to the solution of the simulation problem.
3. To analyze the effect of defects and breakage in a line. This analysis helps to see
whether it is local. Or will there only be a problem in the neighborhood of these nodes?
Or will this effect globally? And how will that interact?
4. Another idea of network modelling is that you can adapt your models. This means that
you can model the network differently to solve the problem before it happens.
If we consider a city to be energized, we can see that electricity, gas and heat systems will be
standalone; they do not communicate with each other. There is no interaction between the
networks.
Note that we have two lines in heat networks. A line that carries hot water to the houses. And a
line that carries cold water flowing back to the heat generator.
In future, we could see a different model. The conventional energy sources are present, and
renewables like wind and solar power, alongside hydrogen gas, are introduced. This means that
the conventional generators play a smaller role. There will also be an interaction between two
networks: electricity and gas. This means that the energy systems are integrated, so part of the
energy can come from gas, and part of the energy can come from electricity.
Moreover, it is possible to transform electricity to hydrogen, store it, and later release it so that
it can be used in the network to provide energy.
1.5 Modelling cycle
To explain, understand and do simulations on future grids, we need a model. To create the
model, we use the modelling cycle.
We start with a simple, straightforward model, and then after we have done this modelling, we
compute its solution, or in other words, simulate it. Then, we compare the results of this
simulation with reality. If it is good enough, we can stop and say, OK, this model is what we
want to execute and use.
If the model is not good enough, we improve it and create a more complex model. Then, we
repeat the simulation steps and check again whether it fits or not. If it fits, we stop and stick
with this model. Otherwise, we can go to the next modelling cycle until it satisfies.
The modelling cycle also depends on the application. A simple model might be good enough
for specific applications, whereas, for certain other applications, we would require a very
complex model to have a good description of reality.
Transient behavior in an electricity network is very fast. This means that the transients
are transmitted from one end of the Netherlands to the other in the order of
microseconds.
If a transient occurs at the gas producer side, it will take a particular time ΔT, depending
on the distance, to see the effect on the consumer side. This delay could range from
minutes to half an hour.
1.8 Summary
Modelling cycles go from a very simple model to more advanced ones after each
iteration if it does not fit the actual scenario.
Models can be stationary or transient. Stationary models are similar for electricity and
gas networks, while transient models of gas networks introduce a time delay.
2 Simulation of Transmission and Distribution Networks
In the transmission network, we could see the big producers and the high voltage network
that transports the electricity from the producer end to cities or factories. Then it goes into the
distribution network.
In general, an electrical distribution network is a low voltage network that is more localized.
Think about a city or part of it or a small group of small industries where only a limited
amount of power is consumed. This is the part where the distribution network is utilized.
A transmission network has more of a mesh structure which means that the cities through
which the electricity flows are interconnected, ensuring reliability. On the other hand, the
distribution network is more localized, for example, the street or neighborhood of a particular
city. Here you have one connection point, and energy is tapped from this point and
transported downstream. This is termed a radial or tree-like network structure.
Both transmission and distribution networks have three phases. But in the transmission
network, they are balanced, and in the distribution network, they are unbalanced.
The consequence is that for a transmission network, it is sufficient to simulate only one
phase. Because all phases are in balance, the other phases will simply be a phase shift of the
simulated phase. Due to its unbalanced nature, you have to compute all three phases
separately in a distribution network.
The responsibility of these two separate networks lies with two different utilities. In the
Netherlands, the transmission network is handled by only one Transmission System Operator,
a TSO utility called TenneT. In contrast, the distribution network is the responsibility of
different parties like Alliander or Stedin, also known as Distribution System Operators or
DSOs for short. It is to be noted that the TSO and DSOs operate separately. This can lead to
problems such as limited information sharing due to privacy issues. Hence, it is not easy to
simulate both networks in a coupled manner.
The main differences are summarized in table 1.
Goal: It is to be noted that the models of the transmission and distribution networks are
different. Moreover, these networks are standalone, so we have a separate simulation for the
transmission network and the distribution network. Due to the penetration of renewable
energy sources like wind and solar, the goal is to couple the transmission and distribution
networks and do the simulation on this coupled network.
We need some kind of solver that can simulate distribution networks, transmission networks,
and the coupled network.
Input to the solver: Properties like the voltage, the resistance of power lines, the generated
power, and coupling of the different lines. Note: for all nodes at each instant, the energy
conservation property should be satisfied.
Result: To have an optimal operation of the different networks.
We already have solvers for the individual networks, but how can we simulate both networks
together? There are two approaches we can use:
2.2 Challenges
There are certain problems associated with solving coupled transmission and distribution
networks. The important one are:
2.3 Summary
Note:
The Transmission system is used to deliver power from power station to consumption
centers. It is used for transporting power using a 3 phase (when considering AC
transmission). Unless there is an unbalanced fault event, the transmission system is
balanced.
The Distribution system is typically used to power consumers. Different types of
consumers can be found:
o Three-phase power consumers (eg. motors), typically balanced.
o Single-phase or two phase consumers (eg, lighting, electronic devices), which
introduced unbalance in the system.
1. Balanced three-phase voltage system: a system where the voltage magnitude of the
three phases is the same and the voltage angle is shifted 120º.
2. Balance three-phase current system: a balanced 3Ph voltage system where power is
delivered to a balanced consumer, making the currents have the same magnitude in
each of the fases and a curreng angle shifted 120º.
1. Velocity: This variable indicates how fast gas goes from the beginning to the end of the
pipe. This is comparable to the current density in electrical circuits.
2. Pressure: To be more specific, this is the pressure difference of gas. For instance, if you
have a high-pressure difference, the resulting velocity will be high; the velocity will be
low if you have a low-pressure difference. This is similar to the voltage in an electrical
circuit.
3. The temperature of the gas
It is essential to keep in mind a coupling between the parameters. The pressure can be coupled
with temperature, and velocity can also be connected with temperature. Hence, it is required to
use different quantities in gas simulation.
3.2 Gas types
There are different types of gases available. Table 1 analyzes a few gases based on their
calorific value and density. The calorific value indicates how much heat is produced when you
burn it.
As we can see from table 1, each gas is distinct. Hydrogen is much lighter than all the above-
compared gases but stores the least energy. To use these gases in a house, a city, or an industry,
we must remember that most burners or furnaces are based on specific calorific values. If the
calorific value of the supplied gas differs, we have to mix it with nitrogen to get it back to the
original value. Therefore, the combining should be accounted for in the simulation as well.
If we start with the best mathematical model for any gas transport, we will end up with the
Navier Stokes equation. This equation is given below:
This provides an accurate solution but is very complicated to solve, especially for massive
networks. For instance, the Navier-Stokes equation cannot solve the gas network of the
entire Netherlands.
1. Pipeline resistance: This depends on the material that the pipe is made of. It is
measured by how much resistance the gasses experience when coming from one end
to the other.
2. Pipeline connection: This is a crucial component of the model. Things can become
difficult at the connection point, but we generally don’t use the Navier-Stokes
equation. Instead, we see it as a sort of hub and apply the conservation property,
which states that what’s coming in is equal to what’s going out. This is generally
sufficient for modeling.
3. Compressors: A pressure difference is needed to transport gas. To make the pressure
difference, we need to include compressors. They are more complicated to describe.
We don’t define them in much detail, but we treat them as black boxes. Another
complication is that they should be powered. This can be done using electricity or gas.
In this latter case, gas comes in, drives the machine, and then increases the gas’s
pressure to a higher value to obtain a high-pressure difference.
Although similar in many ways, there are also some fundamental differences between gas and
electricity. They are:
Gas is much slower than electricity. Electricity can flow in microseconds from one
part of the Netherlands to the other. But for instance, if gas is transported from
Groningen to Rotterdam, it may take half an hour before it reaches Rotterdam.
Gas is more dangerous than electricity. If something goes wrong in the electricity
grid, it is generally a local phenomenon. For example, a short circuit is obviously
hazardous, but its impact is limited because it can quickly be isolated. With gas, this is
more complicated. If there’s a lot of gas leaking and a spark occurs, you get an
explosion that can blackout a part of the city. So we could say that gas is hazardous
when compared to electricity.
To store electricity is difficult, but storing gas is relatively easy. We can store gas in
two ways:
1. Preserve energy in the pipeline: If you increase the pressure, more gas will be
present in the pipeline, acting as a buffer.
2. Transformed to gas: The surplus of energy generation, for instance, by excess
wind, transformed into a gas, like hydrogen. That gas can then be stored and
reused in the future when there is excessive demand. This property enables gas
and electricity infrastructure coupling.
There are multiple ways the gas infrastructure is coupled to the electrical network:
1. Transport both electricity and gas in parallel. This allows you to choose between
electricity and gas.
2. Compressors: This is used in gas transportation lines. The electricity can be used to
drive the compressor, which leads to gas propagation.
3. Steam turbines: gas can be converted into electricity using steam turbines. This is
done in furnaces.
4. Power-to-gas method: Here, electricity can be used to produce hydrogen that is stored
in the container. Then, when needed, the gas can be used to produce electricity. So,
there’s coupling from power-to-gas and also from gas-to-power.
5. CHP plant: This stands for combined heat and power plant. Here, you can see that all
three sorts of energy are present: electricity, gas, and heat. We start with gas, feed it
to the CHP system, which then produces both electricity and hot water.
To combine different forms of energy, we use energy hubs which are black boxes. In this, on
the one hand, electricity can go in and out. On the right-hand side, gas can enter and leave. To
model this, we have to include specific conservation laws. What happens inside the box is not
essential when simulating; it is only necessary how much is lost in the transformation. So if
you go from electricity to gas, you’ll lose something, which also holds the other way around.
There is a specific efficiency involved. It can be 90% or 95%, but you always lose something,
which should be considered.
Importance:
1. We don’t have to make a detailed model of this energy hub. Instead, we only treat it
as a black box.
2. The interaction between the different energy networks can be simplified, making the
integration more straightforward.
3.8 Summary
Consider a generator. We can simulate it with a simple model as well as a complex model.
For instance, in a simple model, we can look at the differential equations that represent the
synchronous generator. while complex models enables to simulate a generator with a
comprehensive model to describe its behavior accurately. Based on the application, we can
define the level of complexity.
Examples
1. Expansion planning model: Here, we want to find out which types of wind turbines or
which types of pipelines we need in, say, ten years.
Usually, it is not needed to have a detailed description because we are only interested in the
general trends. For instance, we want to know how the consumption is increasing, linearly or
quadratically, so that we can invest appropriately in offshore wind farms. Then, it is sufficient
to have only a global overview, and no detailed model is needed. Therefore, grid planning
generally requires simpler models.
2. System operation: Here, for example, we are interested in seeing the impact of an event on
the grid dynamics. So, we must know what happens exactly, not only now but also in five or
ten minutes. Thus, the model should be more accurate. Therefore, grid operations demand
more complex models.
There are two models for computing the power flow in the electricity network.
4.2.1 AC model:
It leads to a non-linear system, which means that it is also more difficult to solve.
Inputs: generator power and voltages and the demand
Output: Current and power flow in the lines, the voltage at the nodes, the power losses
in the system, the generator reactive power setpoints and the power output at the slack
bus.
This model is complicated but comprehensive.
accuracy of the AC model is higher
more challenging to solve
more computational power and CPU time
requires complicated iterative solvers to solve this non-linear model efficiently
4.2.2 DC model:
Both the easy and complex models have their own advantages and disadvantages.
4.3 Combining models
It is possible to combine AC and DC models and thereby having the accuracy of the complex
model and the speed of the simple model together. It is done in the following steps:
5. If not, we can reiterate: we go back to the inaccurate model, solve it again, plug it in the
accurate model etc.
We can not only use this combination of models in simulation but also in optimization. In
optimization, we try to find an optimal solution to a problem. It is not always needed to start
the optimization with an accurate model. We can start with the inaccurate model, try to
optimize that, plug that solution in the accurate model and reiterate. This way, we can get a
good enough solution in a fraction of the time.
1. Performance: Some models are easier to solve than others. We have to make sure that
the models we are using are solvable within an acceptable time limit.
2. Interdisciplinary: such problems or models are interdisciplinary. It is needed to have a
clear view of the different components and closely cooperate between them. On the
one hand, we need to consider the physics and electric laws governing physical
behavior. On the other hand, computer science develops good solvers and efficient
algorithms that can be implemented on modern hardware. And mathematics is at the
core of all this.
3. Stopping criterion: This is inherent to the iterative way of solving models. How do we
know when to stop? When do we consider the solution to be accurate enough? The
answer is not straightforward and should be tuned to the problem.
4.5 Summary
Different applications require different types of models, some more complex than
others. Planning uses only general trends, while operations require an accurate system
model.
There are differences between the AC and DC models, both with their advantages.
The AC model is more complex but more accurate, while the DC model is easier to
solve.
There are methods that efficiently combines easy and complex models to get the best
of both worlds.
There are three main challenges: ensuring good performance, close cooperation
between disciplines and stopping the simulation.