Modeling and simulation of gas networks coupled to power grids
Eike Fokken, Simone G\"ottlich, Oliver Kolb

TL;DR
This paper develops a mathematical framework for coupling gas networks with electric grids, modeling the transition from gas to power, and demonstrates how this coupling influences network dynamics through simulations.
Contribution
It introduces a novel coupling model using pressure laws that ensure well-posedness and provides numerical methods for simulating gas-power network interactions.
Findings
Gas-to-power transition affects network dynamics
Coupling model ensures mathematical well-posedness
Simulations illustrate impact on gas and power flows
Abstract
In this paper, a mathematical framework for the coupling of gas networks to electric grids is presented to describe in particular the transition from gas to power. The dynamics of the gas flow are given by the isentropic Euler equations, while the power flow equations are used to model the power grid. We derive pressure laws for the gas flow that allow for the well-posedness of the coupling and a rigorous treatment of solutions. For simulation purposes, we apply appropriate numerical methods and show in a experimental study how gas-to-power might influence the dynamics of the gas and power network, respectively.
| value of | left wave | right wave | ||||
|---|---|---|---|---|---|---|
| invalid | ||||||
| r | r | |||||
| s | r | |||||
| s | s | |||||
| value of | left wave | right wave | ||||
|---|---|---|---|---|---|---|
| invalid | ||||||
| r | r | |||||
| s | r | |||||
| s | s | |||||
| value of | left wave | right wave | ||||
|---|---|---|---|---|---|---|
| invalid | ||||||
| r | r | |||||
| r | s | |||||
| s | s | |||||
| value of | left wave | right wave | ||||
|---|---|---|---|---|---|---|
| invalid | ||||||
| r | r | |||||
| s | r | |||||
| s | s | |||||
| Pipe | From | To | Length [km] | Diameter [mm] | Roughness [mm] |
|---|---|---|---|---|---|
| P10 | S4 | S20 | 20.322 | 600 | 0.05 |
| P20 | S5 | S17 | 20.635 | 600 | 0.05 |
| P21 | S17 | S4 | 10.586 | 600 | 0.05 |
| P22 | S17 | S8 | 10.452 | 600 | 0.05 |
| P24 | S8 | S20 | 19.303 | 600 | 0.05 |
| P25 | S20 | S25 | 66.037 | 600 | 0.05 |
| P99 | S4 | S8 | 5.000 | 600 | 0.05 |
| Node | ||
|---|---|---|
| N1 | 0.0000 | -17.3611 |
| N2 | 0.0000 | -16.0000 |
| N3 | 0.0000 | -17.0648 |
| N4 | 3.3074 | -39.3089 |
| N5 | 3.2242 | -15.8409 |
| N6 | 2.4371 | -32.1539 |
| N7 | 2.7722 | -23.3032 |
| N8 | 2.8047 | -35.4456 |
| N9 | 2.5528 | -17.3382 |
| Node | ||
|---|---|---|
| N1 | 0.0000 | -17.3611 |
| N2 | 0.0000 | -16.0000 |
| N3 | 0.0000 | -17.0648 |
| N4 | 3.3074 | -39.3089 |
| N5 | 3.2242 | -15.8409 |
| N6 | 2.4371 | -32.1539 |
| N7 | 2.7722 | -23.3032 |
| N8 | 2.8047 | -35.4456 |
| N9 | 2.5528 | -17.3382 |
| Edge | From | To | ||
|---|---|---|---|---|
| TL14 | N1 | N4 | 0.0000 | 17.3611 |
| TL45 | N4 | N5 | -1.9422 | 10.5107 |
| TL56 | N5 | N6 | -1.2820 | 5.5882 |
| TL36 | N3 | N6 | 0.0000 | 17.0648 |
| TL67 | N6 | N7 | -1.1551 | 9.7843 |
| TL78 | N7 | N8 | -1.6171 | 13.6980 |
| TL82 | N8 | N2 | 0.0000 | 16.0000 |
| TL89 | N8 | N9 | -1.1876 | 5.9751 |
| TL94 | N9 | N4 | -1.3652 | 11.6041 |
| Node | ||||
|---|---|---|---|---|
| N1 | - | - | 1 | 0 |
| N2 | 163 | - | 1 | - |
| N3 | 85 | - | 1 | - |
| N4 | 0 | 0 | - | - |
| N5 | -90 | -30 | - | - |
| N6 | 0 | 0 | - | - |
| N7 | -100 | -35 | - | - |
| N8 | 0 | 0 | - | - |
| N9 | -125 | -50 | - | - |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Modeling and simulation of gas networks coupled to power grids
E. Fokken111University of Mannheim, Department of Mathematics, 68131 Mannheim, Germany ({fokken,goettlich,kolb}@uni-mannheim.de)., S. Göttlich11footnotemark: 1, O. Kolb11footnotemark: 1
Abstract
In this paper, a mathematical framework for the coupling of gas networks to electric grids is presented to describe in particular the transition from gas to power. The dynamics of the gas flow are given by the isentropic Euler equations, while the power flow equations are used to model the power grid. We derive pressure laws for the gas flow that allow for the well-posedness of the coupling and a rigorous treatment of solutions. For simulation purposes, we apply appropriate numerical methods and show in a experimental study how gas-to-power might influence the dynamics of the gas and power network, respectively.
AMS Classification: 35L65, 65M08
Keywords: Gas networks, pressure laws, power flow equations, simulation
1 Introduction
Power generation is changing drastically with more and more available energy coming from renewable sources. Most of these, like wind and solar power, are much more volatile than traditional sources. The problems of incorporating them into the power system have sparked much research. Due to their flexibility in comparison to other power plants, gas turbines and gas engine power plants are often proposed as a means to balance power demands that cannot be met with renewable power sources at a given time. The repercussions on the gas pipeline networks by this balancing have been studied [6] and also joint optimal control of gas and power networks are investigated [24, 27]. But so far only steady-state flow of the gas dynamics is examined. Although this is often sufficient, the comparably low acoustic speed allows for short term effects that cannot be seen with steady state methods.
We propose a fully time-dependent gas model on a pipeline network coupled to a power network. Gas networks have been studied during the last two decades and questions of node conditions have been analyzed from a theoretical point of view, see for example [1, 2, 4, 5, 7]. Therein, a system of conservation or balance laws based on the Euler equations is used and the concept of Lax curves [22] allows for a discussion on well-posedness of solutions. Finite volume or finite difference methods are typically applied to solve the network problem numerically [15, 19, 21]. Power grids are mainly described by the power flow equations consisting of a nonlinear system of equations to determine power and voltage, see for example [3, 17].
Although the power network could also be modeled with full time-dependency [9], the high signal speed of electricity renders this unnecessary. Coupling of the networks happens at nodes common to both, where a gas-fired generator is placed such that it can convert gas to electricity, see [16, 27]. The coupling is modeled by an equality constraint relating generated power to consumed gas flow. In section 2 and 3, we derive conditions on the gas pressure and power demand, respectively, that guarantee that the coupling conditions lead to well-posedness of the gas-power coupling. For the numerical study in section 4, we first give some validation results for the proposed discretizations, then we present the influence of different pressure laws and lastly we showcase the solution of a coupled gas-power system.
2 Gas networks
Gas networks have been investigated very intensively during the last ten years, see for example [2, 5, 21]. Coupling conditions at nodes have been established to ensure well-posedness of the network solution [7] and a rigorous numerical treatment [8, 15, 21, 25]. As underlying structure for gas networks we consider a directed graph with nodes and arcs . Nodes as well as arcs may have state variables, which are in general time-dependent. We briefly recall the common setting.
In each pipe , the gas flow is described by the isentropic Euler equations in one space dimension:
[TABLE]
where is the time, is the position along the pipeline of length , is the density of the gas, is the momentum of the gas, is the pressure and includes source terms that influence the momentum of the gas. The pressure law must be a function of the form
[TABLE]
to ensure strict hyperbolicity. Usual examples are the isothermal pressure law
[TABLE]
where is the acoustic speed of the gas, or, more general, the -law
[TABLE]
for suitable constants and , which we examine in Proposition 2. In fact, we show that the class of possible pressure laws can be enlarged, leading to non-standard pressure functions. From literature we know that the eigenvalues and the eigenvectors for the system (1) are given by
[TABLE]
At the (gas) network inflow boundaries, typically the pressure is prescribed and at the outflow boundaries the flow is given. Further, the following coupling conditions, an introduction to which can be found in [2], are used at all inner nodes of :
- •
equality of pressure: the pressure values at the ends of all arcs connected to the same node must be equal, that is, there is a coupling pressure such that
[TABLE]
at the end of all arcs connected to the junction. This condition is equivalent to a condition
[TABLE]
because as a strictly increasing function is one-to-one.
- •
conservation of mass: the sum of all incoming fluxes must equal the sum of all outgoing fluxes (including eventual source/sink terms), i.e.,
[TABLE]
2.1 Well-posedness of the Riemann problem for the isentropic Euler equation
In this section, we investigate conditions for the pressure function (3) and the flows that guarantee well-posedness of the Riemann problem for the isentropic Euler equations without a source term, see [4] for an introduction. By the front-tracking technique this is sufficient for the well-posedness of the isentropic Euler equations, see [12]. Assuming strict hyperbolicity, we start with the assumption . We also assume that the initial data and of the Riemann problem is sub-sonic, i.e.,
[TABLE]
A solution to the Riemann problem with left state and right state is given by an intersection point of the Lax curves through these two points, again see [4]. The Lax curve of all states reachable via -rarefaction or -shock (that is, waves corresponding to above) from a left state is given by (taken from [7])
[TABLE]
where is defined by
[TABLE]
such that holds.
Analogously, the Lax curve of all states reachable via -rarefaction or -shock from a right state is given by
[TABLE]
Whenever we write and , it will mean and , respectively. Beware that later in section 2.2 different second and third arguments will appear and we will write them out again.
A solution is then at a point , where
[TABLE]
An example of this is shown in figure 1.
Note that
[TABLE]
So and share most properties. Therefore equation (10) is best understood not as a difference of two functions but as a sum of two very similar functions. Similar to [16], we show certain properties of the Lax curves that are used to define the new pressure laws. There will appear three propositions, which are numbered by A, B and C. These propositions present lists of conditions that are closely related. To make things tractable, each list bears the same numbering but has the letter of the corresponding proposition in front. For example, the conditions A1, B1 and C1 all govern concavity of the Lax curves.
Proposition A** (Proposition 1).**
Let and let it fulfill conditions A1 through A3 (where only one of A3A(a) and A3A(b) must hold).
- (A1)
, 2. (A2)
, 3. (A3)
- (a)
* or* 2. (b)
* and .*
Then there is a unique with such that for all holds and for .
Proof.
Condition A3 ensures positive values near [math], condition A2 ensures negative values for some , together yielding a zero in between and condition A1 makes concave, guaranteeing uniqueness of the zero and implying then that for . ∎
Note if two functions , satisfy the prerequisites of Proposition A, so does . Therefore we search for conditions on pressure functions that make and satisfy the conditions of Proposition A, as then their sum in equation (10) will, too, and so it will have a unique zero.
Our main result is the following. It generalizes the usual notion of -laws to allow for . Further, as we will show below (Proposition C), positive linear combinations of such valid pressure laws again lead to valid pressure laws.
Proposition 2** (generalized -laws).**
Let the derivative of the pressure be given by
[TABLE]
This translates to pressure functions given by
[TABLE]
for and
[TABLE]
For these pressure functions there holds
- •
The Lax curves through any sub-sonic initial states , have a unique intersection point at some if and only if and .
- •
For every with there are sub-sonic states , such that the Lax curves have no intersection at all.
Expressed in the usual form of -laws, this result means is a valid pressure function if and only if and or and . The proof of Proposition 2 will be given at the end of this section. To prove Proposition 2 we will reformulate conditions A1 through A3 in Proposition A in terms of the pressure function.
Because of equation (11), both Lax curves behave essentially identically and therefore we prove our findings for only as the proofs for are the same. Along the way the derivatives of the Lax curves will be important and so we provide them here,
[TABLE]
and
[TABLE]
Next, we intend to give conditions under which Proposition A is applicable to . Before we do so, we provide the following lemma:
Lemma 3**.**
Let be a non-negative function, , such that also for all and let be given by . Then, there holds if and only if .
Proof.
The proof can be found in Appendix A. ∎
The role of in Lemma 3 will be played by and in the following. Let us now put the focus on the Lax curve again. The following Proposition B will turn conditions A1 through A3 in Proposition A into conditions on the pressure function.
Proposition B** (Proposition 4).**
Let with . Then conditions A1, A2, A3 hold for for all , with if and only if conditions B1 through B3 hold (again with only one of B3B(a) and B3B(b) fulfilled).
- (B1)
These inequalities hold:
[TABLE]
where the arguments and have been omitted for readability, see equation (8). 2. (B2)
Let . For all there holds
[TABLE] 3. (B3)
- (a)
There is such that or 2. (b)
* and for all .*
Proof.
The equivalence B1 A1 is immediate from the definitions, inequality (14) is for the rarefaction part, inequality (15) for the shock part. Note that
[TABLE]
Assume conditions A1 and A3A(a). Let .
[TABLE]
Therefore . Note now that
[TABLE]
due to condition A1. Lemma 3 therefore shows that
[TABLE]
and hence
[TABLE]
which again with lemma 3 yields
[TABLE]
Assume now conditions B1 and B3B(a). We now note that , because of B1 and use the lemmas to arrive at A3A(a).
We assume condition B3B(b). The last proof (here we need again conditions A1 and B1 respectively) also shows that
[TABLE]
For the derivative we find
[TABLE]
due to the sub-sonic condition. This is non-negative due to condition B3B(b).
Assume that B3B(b) does not hold, that is
[TABLE]
Choosing such that yields
[TABLE]
First of all we note that the limit exists, as . For we find
[TABLE]
This is less than zero if and only if the bracket is less then zero. If now , this is fulfilled for some . If , we have the limit
[TABLE]
Let now and be defined by
[TABLE]
Then as the state is sub-sonic and . Therefore let be so great that . Then, we find
[TABLE]
which implies A2.
In case condition B2 is fulfilled. Let now and let there be for all sub-sonic a such that
[TABLE]
that is, let A2 be true. Note that the right-hand-side is increasing in because its derivative is positive. Therefore taking suprema of (18) yields
[TABLE]
With Proposition B we have a list of conditions B1, B2, B3 which is equivalent to conditions A1, A2, A3 from Proposition A but now only involves the pressure function. This is fortunate as we want to prove Proposition 2, which only contains pressure functions. In principle, we could just plug the pressure functions into our conditions B and check, what generalized -laws are allowed. But there is more insight to be gained by simplifying the conditions further. We will do so in Propositions 5, 6 and 7. Yet this comes at a price, the next list of conditions in Proposition C below will only be sufficient conditions for Propositions A and B to hold.
Proposition 5**.**
Let . Condition B1 holds if
[TABLE]
holds for all .
Proof.
We note that and that
[TABLE]
As , we see that for all if for all . This was also proved in [13]. This is the case if and only if . For this we find
[TABLE]
which is an affine function in . Hence for given this function takes its minimum in one of the edges of the simplex . The values on these are given by
[TABLE]
The next condition we will replace is condition B3B(b).
Proposition 6**.**
Condition B3B(b) is fulfilled if either of these conditions is satisfied:
-
C3(b)
-
(i)
* and for all .* 2. (ii)
. 3. (iii)
There is a such that exists and .
Proof.
- (i)
Here we have
[TABLE] 2. (ii)
In this case the integral is unbounded near zero, but is finite. 3. (iii)
In this case there is such that with . Then, for every there is such that for all there holds . Choose now so great that
[TABLE]
and then so small that for all there holds
[TABLE]
with . Define also
[TABLE]
Then we find for
[TABLE]
Proposition 7**.**
All conditions only depend on differences in pressures, that is, if is a constant then if a pressure function satisfies our conditions, so does . This means that if in condition B2, we can instead choose , yielding the clearer condition
[TABLE]
Having all we need, we now sum up our findings in the following Proposition C:
Proposition C** (Proposition 8).**
The Riemann problem for arbitrary sub-sonic left- and right-hand states is well-posed if the pressure function satisfies the following conditions:
- (C1)
both inequalities of Proposition 5:
[TABLE] 2. (C2)
one of the conditions according to Proposition 7:
- (a)
* for or* 2. (b)
* for all ,* 3. (C3)
according to Proposition 6:
- (a)
There is such that for or 2. (b)
one of the following conditions is fulfilled:
- (i)
* and for all ,* 2. (ii)
, 3. (iii)
there is a such that exists and .
These conditions are positively linear in and hence all pressure functions satisfying them define a convex cone. In addition, because the integral is monotone and linear, we can also integrate over pressure functions to find new pressure functions.
With Proposition C we have a useful list of conditions which can be checked easily for any given candidate for a pressure function. The proposition now makes it easy to prove our central result Proposition 2 and we will do so now.
Proof of Proposition 2.
- •
For the first part of the claim we note that for and the generalized -law fulfills the conditions in C. Note that at the conditions in C3 switch and at the conditions in C2 switch.
- •
For the second part of the claim we observe: For , choose , which is obviously sub-sonic. Then is strictly negative for , as is easily computed. A similar range for shows the same for . For , choose and is strictly positive for and similarly for .∎
Example 9**.**
As just proved, the functions
[TABLE]
are all valid pressure functions. Even a and more exotic
[TABLE]
might be possible.
2.2 Extension to junctions
Our findings guarantee well-posedness of Riemann problems with sub-sonic initial conditions under certain conditions on the pressure function. We now examine the coupling conditions (4) and (5) and do so by considering the generalized Riemann problem at the junction in accordance with [1, 2, 7]. Consider a junction with incoming pipes indexed by and outgoing pipes indexed by . At the junction-facing end of each pipe there are initial states for each and , respectively. To make things tractable, we restrict the solution of the junction Riemann problem to be of this form: In each pipe , there appears exactly one new state next to the junction such that the satisfy the junction conditions and are connected to their respective by a shock or a rarefaction wave. On ingoing pipes these must be -waves, on outgoing pipes these must be -waves. A sketch of this is shown in figure 2.
This is not a great restriction as this is the only solution structure found in pipelines with low Mach number, yet for different solutions, see [13]. For these new states to appear at all, the wave speed between and must be negative on ingoing pipes and positive on outgoing ones. To keep things simple, we examine a single ingoing pipe with initial condition and new state .
Proposition 10**.**
Let Proposition B and hence A be fulfilled for the pressure. Let be such that , if it exists, otherwise let . The wave speed of the wave between and is negative if and only if .
Proof.
One easily sees that . Also using the definitions (7) and (12) and the concavity of , one can see that is always unique. Because is concave, is decreasing, so if and only if .
- :
Let . Then . If is in the rarefaction part of the wave speed is negative. If is in the shock part of , we compute:
[TABLE]
since is concave. So
[TABLE]
because is sub-sonic.
- :
Let . Because is sub-sonic, we have and are dealing with a rarefaction wave. But then the wave speed is just given by which is non-negative. ∎
For outgoing pipes one defines such that , if possible, or otherwise and obtains in the same way
Proposition 11**.**
Let Proposition B be fulfilled for the pressure. On an outgoing pipe the wave speed between and is positive if and only if .
Coming back to junctions we define the junction minimal density as
[TABLE]
A solution to the junction Riemann problem is admissible if and only if the density at the junction fulfills . If it is not admissible, then in at least one pipe there is a super-sonic gas flow.
Note that a usual Riemann problem with sub-sonic initial conditions can be treated as a junction with one ingoing and one outgoing pipe. In this case only one new state is created and the admissibility criterion guarantees that . For the sake of completeness, we classify the solutions to the usual Riemann problem by wave types in Table 1.
2.3 Additional constraints for consistency
We have found a complete list of conditions for a usual Riemann problem and a junction Riemann problem to be well-posed. For the usual Riemann problem this is enough, as just noted. Yet our conditions do not guarantee that the solution states at the junction are sub-sonic, as only one of each eigenvalue is restricted. Since sub-sonic states are necessary at the junction, we introduce an additional condition by hand. We again focus on one incoming pipe with initial condition and new state . We define
[TABLE]
and further
[TABLE]
Although there is no knowledge about as it is not conveniently given by the derivative of a Lax curve, we still have , so there holds at least in every pipe. But there is no guarantee that .
3 Coupling to power grids
In this section, we focus on the coupling of the gas network to power grids. Following the ideas in [16, 27], the coupling is done extending the already existing coupling conservation of fluxes (5) by a gas power plant. To model the power grid, we use the well-known powerflow equations [11], which describe real and reactive power nodewise. We have to investigate again under which assumptions this kind of coupling is well-posed.
3.1 Power flow model
Power grids are usually modeled as a graph, whose nodes (buses) are indexed by and whose edges (transmission lines) are indexed by the indices of the nodes connected by the edge. For each node of the power grid (PG) there are four (time-dependent) state variables, namely real power , reactive power , voltage magnitude and voltage angle . We consider three different types of nodes: load/PQ buses ( und are given), generater/PV buses ( and are given) and a single slack bus ( and are given). Thus we always have two unknowns per node . Accordingly, we apply the powerflow equations for real and reactive power for each node:
[TABLE]
where is the real part of the entry in the bus admittance matrix and is the imaginary part. For we consider and as properties of the arc/transmission line connecting nodes and . and are considered as node properties.
3.2 Gas-to-power coupling
We focus on a junction with one incoming pipeline, one outgoing pipeline and an outlet that draws a set amount of flow , which is converted to electric power. The coupling condition is taken from [16] and reads
[TABLE]
where the outflow is non-negative. The fuel is converted to gas via the following heat rate formula, taken from [27],
[TABLE]
where is the real power and , , are constants.
To find what are allowed, we examine another generalized Riemann problem at the junction. We start with two constant states on the ingoing and outgoing pipes and solve the Riemann problem where the flow jumps by an amount at the junction. We again demand the waves to leave the junction, giving rise to a picure like that in Figure 4,
where next to the junction in red two new states , appear that fulfill the coupling conditions (25). The analysis of this setting is similar to a three-way junction but with the flow on one outgoing pipe fixed to . We must now solve the equation
[TABLE]
which is similar to equation (10) of a usual (two-way) Riemann problem but with a non-zero right-hand side. We even can forego the additional consistency constraints of section 2.3: One half of the eigenvalues is on the right side of zero due to the -criterion, which we need here again to make the waves have the right direction.
[TABLE]
Instead of invoking , we note that and compute for the remaining two eigenvalues
[TABLE]
and
[TABLE]
Remark 12**.**
In our setting this is sufficient. If we also considered power-to-gas plants, we would need to also treat negative . In this case, we would have to adhere to the -criterion (23) again.
Solution structure for different outflows
For the usual Riemann problem we had a unique non-zero solution due to our findings in Section 2.1. For we now have two solutions to , one of which is not admissible as it lies to the left of the maximum and hence has non-negative derivative (which means it would be super-sonic). As is decreasing in the admissible regime, greater result in smaller . One of the two solution structures is given in table 2.
4 Numerical results
Within the following numerical examples, we consider two different discretization schemes. The first is a third-order CWENO scheme (CWENO3) with suitable boundary treatment [20, 23], which relies on a local Lax-Friedrichs flux function for the inner discretization points of each pipe and handles coupling points by explicitly solving equation (27).
The second scheme is an implicit box scheme (IBOX) [21], suitable for sub-sonic flows. For a general system of balance laws
[TABLE]
the considered scheme reads
[TABLE]
Here, and are the temporal and spatial mesh size, respectively, and the numerical approximation is thought in the following sense:
[TABLE]
The implicit box scheme has to obey an inverse CFL condition [21], which is beneficial for problems with large characteristic speeds whereas the solution is merely quasi-stationary. This is usually the case for daily operation tasks in gas networks and therefore motivates the choice of this scheme for the real-world scenario below.
The first test example in section 4.1 is supposed to demonstrate the different cases revealed in the analysis above (section 3.2). Further, since the applied implicit box scheme does not explicitly make use of any Riemann solver, this scenario is also considered as a numerical validation of its applicability, where the CWENO3 scheme with Riemann solver at the junction serves as reference.
Within the second example (section 4.2) we briefly demonstrate the differences resulting from various pressure functions, which are all covered by our theoretical results above.
The third example (section 4.3) considers a more complex scenario: An increasing power demand within the power grid leads to an increasing fuel demand of a gas-to-power generator and further to a significant pressure drop in the gas network.
4.1 Validation
We consider the isentropic Euler equations with pressure law and parameters , , and a Riemann problem with left state and right state . Further we assume a gas demand at the coupling point of the two states (here ). Then, from table 2, we get the following solution structure:
- •
s-s solution for ,
- •
r-s solution for ,
- •
r-r solution for .
Further, one can easily compute , , and therewith and maximum gas demand . We will consider the numerical simulation of the described setting until time for and the following discretization parameters:
- •
CWENO3: , ,
- •
IBOX: , .
The different choices result from the (usual) CFL condition the explicit CWENO3 scheme has to obey, in contrast to the inverse CFL condition of the IBOX scheme. Figures 5 to 7 show the computed densities at the final time. Both schemes show the correct solution structure (shock/rarefaction waves), where CWENO3 expectably achieves the sharper resolution.
4.2 Different pressure laws
In our second test case, we apply various pressure laws, which are all covered by our theoretical study, and are interested in the different dynamics one may observe even on a single pipeline. Therefore, we consider a single pipe with length and the following pressure laws:
- •
with (“gamma law”),
- •
(“inverse”, corresponding to ),
- •
(“logarithmic”),
- •
(“sum of gamma laws”).
Note that all considered pressure functions are scaled in such a way that . Initially, we have and in the whole pipe. Further, we fix on the left-hand boundary, whereas at the right-hand boundary linearly increases from [math] to until time and stays constant afterwards until the final time . We approximate the solution to this problem by CWENO3 with discretization parameters and . The variety of the resulting dynamics is demonstrated in figures 8 and 9, which show the density in the pipeline at times and , respectively.
4.3 Coupled gas and power grid
We consider the network(s) depicted in figure 10, containing a power grid from the example “case9” of the MATPOWER Matlab programming suite [26] and a small part of the GasLib-40 network [18], extended by a compressor station in front of node S17 and a gas-to-power generator between S4 and N1, providing the necessary power at the latter node. The parameters of the gas network are given in table 3, the parameters of the power grid in table 4.
Within each pipe of the gas network (with length , diameter , cross section , roughness ) we consider the isothermal Euler equations with acoustic speed . The source term in the momentum equation is given by
[TABLE]
with friction factor , which is determined by the Prandtl-Colebrook formula:
[TABLE]
with Reynolds number
[TABLE]
and dynamic viscosity .
Initially, the gas network is in a stationary state: The pressure at S5 is fixed at 60bar, the ouflow at S25 is with , and there is an additional gas consumption at S4 resulting from the gas to power transformation (, , ) due to the power demand at the slack bus N1. The initial (stationary) state of the power grid is determined by boundary conditions given in table 5.
In the course of the simulation, the power (and reactive power) demand at N5 is(/are) linearly increased between hour and hours from p.u. to p.u. (reactive power from p.u. to p.u.) - see also figure 11 (left). Accordingly, the power demand at the slack bus N1 increases (see figure 11 (right)) and therewith the gas consumption at S4, which also results in an increase of the inflow at S5 (see figure 12). Due to the increased flow values, the pressure in the gas network decreases (see figure 13 for the pressure at the nodes S20 and S25).
5 Conclusion and future work
We have presented a coupled model for gas and power allowing for a mathematically well-defined transition from gas to power. The framework involves also the consideration of non-standard pressure functions. Various simulation results show the properties of the presented approach.
Future work includes the investigation of optimal control problems for the coupled model as for example the control of compressor stations [14] or the inclusion of uncertain customer demands [10]. This will immediately lead to the class of nonlinear (stochastic) optimization problems and tailored solution techniques.
Acknowledgments
The authors gratefully thank the BMBF project ENets (05M18VMA) for the financial support.
Appendix A Proof of Lemma 3
The following two technical results are the key ingredients to prove Lemma 3.
Lemma 13**.**
Let be a non-negative function, , and let be given by . Then There holds
If , then . 2. 2.
If , then .
Proof.
By assumption . For choose such that for . Now choose so small that
[TABLE]
Then, for , there holds
[TABLE]
for small enough . Therefore for all . As , we also have . Summarizing, we get . 2. 2.
We prove by contradiction: Assume there are and such that for . Then for such . Therefore
[TABLE]
which contradicts .∎
Lemma 14**.**
Let , and . Let also . Then, .
Proof.
We prove by contradiction. Let . Then it is easily seen that resulting in a contradiction. ∎
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] M. Banda, M. Herty, and A. Klar , Coupling conditions for gas networks governed by the isothermal euler equations , Networks & Heterogeneous Media, 1 (2006), pp. 295–314.
- 2[2] , Gas flow in pipeline networks , Networks & Heterogeneous Media, 1 (2006), pp. 41–56.
- 3[3] D. Bienstock , Electrical Transmission System Cascades and Vulnerability , Society for Industrial and Applied Mathematics, Philadelphia, PA, 2015.
- 4[4] A. Bressan, S. Canic, M. Garavello, M. Herty, and B. Piccoli , Flow on networks: recent results and perspectives , European Mathematical Society-Surveys in Mathematical Sciences, 1 (2014), p. 47–111.
- 5[5] J. Brouwer, I. Gasser, and M. Herty , Gas pipeline models revisited: Model hierarchies, nonisothermal models, and simulations of networks , Multiscale Modeling & Simulation, 9 (2011), pp. 601–623.
- 6[6] M. Chertkov, S. Backhaus, and V. Lebedev , Cascading of fluctuations in interdependent energy infrastructures: Gas-grid coupling , Applied Energy, 160 (2015), pp. 541 – 551.
- 7[7] R. Colombo and M. Garavello , On the cauchy problem for the p-system at a junction , SIAM Journal on Mathematical Analysis, 39 (2008), pp. 1456–1471.
- 8[8] H. Egger , A robust conservative mixed finite element method for isentropic compressible flow on pipe networks , SIAM Journal on Scientific Computing, 40 (2018), pp. A 108–A 129.
