SAInt – A novel quasi-dynamic model for assessing security of supply in coupled gas and electricity transmission networks
엔지니어링 플라스틱 · (23) 컴파운드
기본 정보
- 저자
- DOI
- 10.1016/j.apenergy.2017.05.142
- 저널
- Applied Energy
- 발행년도
- 2017
- 발행기관
- Elsevier BV
- 피인용수
- 101
- 라이선스
- cc-by-nc-nd
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1016/j.apenergy.2017.05.142
- 토픽
- Hybrid Renewable Energy Systems
- OpenAlex ID
- W2730683613
평가 내용
- 관련도
- 사업분야
- 엔지니어링 플라스틱 · (23) 컴파운드
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '엔지니어링 플라스틱 > 컴파운드' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
본문 181,371자
본문 펼치기
섹션 본문 262문단 · 170,530자
Introduction
2The ongoing integration of renewable energy sources (RES) into existing energy supply systems is connected with an increased coupling between natural gas and electric power transmission systems.
3On the power side, the installation of variable RES, such as wind and solar, is increasing, which require flexible and reliable back up generation units with short start-up and shut down times and large ramping rates in order to provide the flexibility needed in the electricity system to cover the variability and uncertainty provided by wind and solar power. Gas fired power plants (GFPP) connected to gas and electricity networks, which are known for their reliability, short start-up time and shut down time can provide such flexibility to the electric power system [1].
4On the gas side, an increased use of electric power to operate facilities in the gas system such as liquefied natural gas (LNG) terminals and electric driven compressors installed in gas compressor stations and underground gas storage (UGS) facilities, can be noticed [2]. Electric drivers outperform traditional gas turbines with a higher mechanical efficiency, lower maintainance costs and less impact on the environment [3].
5In addition to these interconnections, the power to gas (P2G) technology will significantly contribute to the coupling between both systems [4,5], where excess electric energy production (e.g. during variable RES curtailment) is used in an electro-chemical process to produce hydrogen and synthetic natural gas (SNG), which can be injected and stored in gas pipelines or UGS facilities for later use at peak electricity demand periods. As more P2G facilities are installed, the dependence of electric power systems on gas network systems as a provider for energy storage will increase.
6These developments stress the need to (1) examine the depth and scope of these interdependencies, (2) how they may affect the operation of both systems and (3) how to proactively approach the bottlenecks and challenges that may emerge.
7The traditional co-simulation approach, where the physical equations for the gas and electric power system are solved in independent time frames [6][7][8][9][10] and/or a steady state model is used for the gas system [8][9][10][11][12], can only give qualitative information on how a contingency may affect security of supply in coupled gas and electric power systems. For instance, a steady state approach for the gas system cannot quantify appropriately the time evolution of the quantity of gas stored in pipelines, also referred to as linepack, which is a key indicator [6] for how much flexibility the gas system can provide to GFPPs for electric power generation (e.g. available ramping capacity for fuel gas extraction at start-up of spinning reserves, which have to deliver electric energy within 10-30 [min] in case of a contingency [13]).
8Furthermore, the co-simulation approach cannot estimate accurately the grace period for gas and power transmission system operators (TSOs) to coordinate and deploy counter measures to mitigate a contingency. In order to examine the issues raised in (1)-(3) in a quantitative way, a dynamic model of the coupled gas and electric power system is needed, that can reflect appropriately how disruptions triggered in one system propagate to the other system and affect the operation of facilities in both systems. This will allow gas and power system stakeholders to suggest modifications, that may help prevent and/or mitigate the consequences (a) The curtailment of gas and electric power loads at specific locations and times to reduce the stress on the system and to prevent insufficient pipeline pressures (b) The installation of UGS facilities at strategic locations to increase the flexibility to react to loss or shortage of gas supply (c) The increase of withdrawal capacity of existing UGS facilities, (d) The shut-down of specific power plants to maintain the operation of the system in degraded mode, (e) The expansion of the network to increase transmission capacities and line pack (f) The availability of reverse flow at cross-border-points to increase the flexibility and resilience of the gas system Recent publications [4,6,7,[13][14][15][16][17][18][19] demonstrate the growing interest in analysing the interconnection between gas and electric power systems. While most publications address the issue with a steady state model for the gas system integrated into a cosimulation environment, where both systems are solved in independent time frames [7][8][9]11,19,20], there is currently no publication addressing the issue with a combined model that includes the full set of the following important model requirements for assessing security of supply in interconnected gas and electric power systems:
9(i) Dynamic model for the gas pipeline system (i.e. imbalance between gas supply and gas demand resulting in fluctuations in linepack), in order to reflect appropriately the changes in pressure and linepack. (ii) AC model for the electric power system, in order to capture line losses, reactive power flow, voltage levels etc., which are neglected in DC models. (iii) Simultaneous solution of the physical equations and coupling equations for the interconnected gas and electric power system for each simulation time step, in order to capture the direct impact of control changes or disruptions originating from one system and cascading to the other system. (iv) Consideration of the bidirectional interconnection between both systems (i.e. gas offtake for power generation in GFPPs and power supply to EDCS and LNG terminals), in order to give a full picture of the interdependence between both systems. (v) Generic sub models for the most important gas and power system facilities (e.g. compressor stations, UGS, LNG terminals, generation units, electric substations etc.) and their technical and legal constraints (e.g. pressure limits, operating envelope of compressors, voltage limits, generator capability curves, transmission line capacity limits etc.), in order to reflect adequately the flexibility and operation of both systems in scenarios, where both system operate close to their limits. (vi) Possibility to implement conditional control changes, i.e. changing the set points in one system in respect to the conditions in the other system (e.g. the start up of a GFPP for power generation depends on the available linepack and pressure in the gas system), in order to model the coordination between both systems and how they may improve the combined operation. (vii) Estimation of consequences of supply disruptions, in order to quantify how disruptions affect security of supply and to analyse the effectiveness of countermeasures to mitigate the impact of disruptions.
10Studies in the literature that use combined simulation to examine the interconnection between gas and power systems for planning purposes mainly focus on single or multi-time period operational optimisation methods based on steady state conditions [7,16,17,[21][22][23][24]. In [22], the authors investigate the short-term optimal operation of the integrated gas and electricity network with wind power and P2G facilities. The authors use a securityconstraint bi-level ED model with an objective function that minimizes the day ahead costs of electricity and natural gas consumption, respectively. In [23], a multi-stage co-planning model is developed to identify the optimal expansion planning of integrated gas and electricity networks. In [16], a coupled steady state model is proposed to analyse the mitigation effects of integrated gas and electricity systems using a succession of steady states approach with time varying power demand and wind generation profiles. The authors use a steady state gas system model to address a dynamic problem. In [7], a unit commitment and ED model that considers the technical characteristics of power generation units is proposed. The authors include an energy flow model for the gas system taking into account pressure constraints. An interval optimisation strategy for short-term scheduling of coupled gas and electricity system is proposed in [24], where demand response and wind uncertainty are considered. In [17], the authors propose a multi-linear probabilistic energy flow framework for investigating the impacts of uncertainties on the operation of both systems using Monte-Carlo simulations. The authors use a combined steady state model for describing the gas and electric power system. Moreover, they consider the bi-directional coupling between both systems taking into account the voltage and frequency dependency of electric power system loads. Additional stochastic optimisation models are proposed in [11,25,26] in order to address the uncertainties of the integrated gas and electricity networks.
11In the above studies, the dynamic behaviour of the gas system is neglected, which, however, is relevant when studying the combined operation of gas and electric power systems [6,13]. The time evolution of linepack determines the level of flexibility the gas system can provide to the electric power system. In a steady state gas model the time derivative of the linepack is inherently zero, since total gas inflow and outflow are at equilibrium. Thus, the time evolution of the linepack cannot be captured appropriately by steady state gas models.
12To account for this aspect, researchers have developed models for combined optimisation of gas and electricity networks considering the dynamics in gas pipeline systems [6,13,18,27,28]. In [27], a multi-time period optimisation model is proposed for analysing the coupling between the gas and power system network in Great Britain. The authors model key gas system facilities such as compressor stations and UGS facilities and their constraints. The power system model used in the study is based on a simplified DC-OPF model, where important power system constraints, such as thermal capacity limits of transmission lines and reactive power limits of generation units are disregarded. Moreover, the authors consider the ramping limits of generation units, but neglect their start-up and shut down time limits, which may restrict the availability and flexibility of these units. Furthermore, the bidirectional coupling between the gas and electric power system is neglected, since only the coupling through GFPPs is considered. In [28], the authors present a detailed optimal control model to capture spatio-temporal interactions between gas and electricity systems. The proposed model couples a dynamic gas model with an economic dispatch model for the power grid in order to investigate the economic and flexibility gains resulting from coordinating the dispatch of both systems. Similar to the previous study [27] the power system model is based on a simplified DC model, which is connected with the limitations explained above.
13In [18,13], the authors introduce a coupled optimisation model for the combined simulation of gas and electric power systems, where both systems are coupled through gas fired power plants solely. The model is intended to assist gas and power TSOs in coordinating the scheduling of gas offtakes for power generation in GFPPs. Similar to the other studies the authors use a DC-OPF approach to model the electric power system. In a previous publication [15], we proposed a coupled multi-time period model for simulating the operation of gas and electric power systems by solving the physical equations and coupling equations in a single time frame and for multiple simulation time steps. We used a transient hydraulic model for the gas system and a steady state model for the electric power system based on AC-power flow (AC-PF), with a distributed slack bus approach for balancing power demand and power losses. By assigning a participation factor to each GFPP, we used the flexibility offered by these units to balance the electric power system. While the model is able to capture basic interdependencies between both systems, its practical use is limited, since key electric power system constraints such as maximum transmission line capacities, upper and lower limits on power generation and voltages are not considered. In addition, the distributed slack bus approach does not reflect adequately the real time power dispatch in electric power system operation, which is typically scheduled by solving a unit commitment (UC), economic dispatch (ED) and reserve allocation (RA) problem. These problems are typically described by mixed integer linear programs or (non)-linear constrained optimisation models [13].
14In this paper, we cover the gaps in the available literature by extending the simulation tool SAInt (Scenario Analysis Interface for Energy Systems) [14,15,29] by a novel combined quasidynamic model composed of a transient hydraulic simulation model for the gas system, which considers the constraints and control of the most important facilities in the gas system, such as compressor stations and UGS facilities, and a steady state model for the electric power system based on AC-optimal power flow (AC-OPF), where the operational costs and key electric power system constraints such as transmission line capacity limits, active and reactive power generation limits and upper and lower limits on bus voltage magnitudes are considered. The bi-directional coupling between both systems is established by synchronising the fuel gas offtake from the gas system for power generation in GFPP and the electric power supply to electric driven compressors installed in gas transport systems. Moreover, the power supply to LNG terminals is also modelled as an additional gas system dependence on the electric power system. The scope of the proposed model is primarily on the technical operation of the integrated energy system in a contingency scenario, assuming that market based measures have been fully exploited but were insufficient to mitigate the impact of a disruption. Therefore, aspects related to the energy market are only considered partly in this studies. 1 Furthermore, in order to reduce the complexity of the combined model, we do not consider the dynamic behaviour of the electric power system, which may have an influence on the combined operation of both systems. We assume that the automatic generation control (AGC) system is capable of returning the power system to a balanced and stable steady state within a short time frame (less than 5 [min]) after a disturbance [30].
15To the best of our knowledge, there is currently no commercial or open source simulation software on the market, that allows the coupled simulation of gas and electric power systems in a single time frame and simulation environment. Thus, SAInt is the first published software tool to offer this type of functionality.
16The model presented in this paper and implemented into SAInt is intended to assist governments, gas and power TSOs, regulatory agencies and researchers to address the challenges connected with the ongoing transformation of critical energy infrastructures (CEIs). In particular, SAInt can be used to examine potential threats to security of energy supply and to develop strategies to prevent and mitigate the consequences of undesired disruption events in multi-vector energy systems with high penetrations of variable RES. Moreover, the capability of SAInt to quantify the impact of a disruption on security of supply can be utilised to perform a full risk assessment of CEIs as postulated by EU Regulation 994/2010 [31], which involves, the identification of critical scenarios, the probability of their occurrence and the impact of the identified scenarios on security of supply, which can be estimated by SAInt [29].
17To achieve these goals, the paper follows the following structure. In Section 2.1 and 2.2, we develop the mathematical models for the gas and electric power system independently. In Section 2.3, we discuss the interconnections between both systems and derive the coupling equations for the combined system. Next, we describe the algorithm for solving the resulting system of equations for the combined energy system, followed by the definition of parameters to evaluate and quantify the impact of disruptions on security of energy supply in Section 3. Finally in Section 4, the functionality of the simulation tool and the capability of the implemented simulation model are demonstrated in a case study of a sample combined gas and electric power transmission network.
Methodology
18The operation of gas and electric power systems is increasingly interdependent, due to an increased physical interconnection between the facilities installed in both systems. A change in one system may propagate to the other system and even back to the triggering system. For instance, an increase in power generation from a GFPP, will cause the gas offtake from the gas grid to increase. This, in turn, may result in an increased power offtake of electric driven compressor stations (EDCS) to recover the pressure and line pack level in the area affected by the gas offtake. The additional power offtake, again, will have to be balanced by the power generation units including GFPPs, by increasing the power output. This cycle may continue until an equilibrium dynamic state is reached. The equilibrium state in such a bidirectionally coupled system cannot be captured appropriately with the traditional co-simulation approach, where both systems are analysed in independent time frames, rather an integrated simultaneous solution of the physical equations describing the operation of the coupled multi-vector energy system at each simulation time step is needed.
19The first challenge that arises when modelling the coupled power-gas system is to find a simulation model that describes the dynamic behaviour of the individual systems appropriately.
20The dynamics in gas transport systems, for instance, are much slower than the ones in electric power systems. Electricity travels almost instantaneously (with speed of light 3 Á 10 8 [m/s]) and cannot be stored economically in large quantities in current electric power systems 2 [8]. In case of a disruption, the response time of the electric power system is quite fast and basically the transmission line flows satisfy the steady-state algebraic equations. On the contrary, natural gas pipeline flow is a much slower process, with gas flow velocities typically below 10 [m/s] and the propagation of pressure and flow changes around 350 [m/s] (typical value for the speed of sound), resulting in a longer response time in case of a large fluctuation. In particular, high-pressure transmission pipelines have much slower dynamics due to the large sums of natural gas stored in the pipelines.
21In order to consider the different characteristics of both systems, we propose a transient model for the gas system and a steady state AC model for the electric power system.
22The steady state of an electric power system is described by the active and reactive power balance equations, which are typically solved with a power flow model, where the power system loads at load buses and voltage magnitude and active power control settings at generation buses are prescribed as inputs except for one generation bus, which serves as a slack bus to balance power system loads and line losses. The constraints of the power system are not included in the power flow model, but are checked after each power flow calculation. In case a constraint violation is detected the control settings for the load and generation buses are adjusted manually and the power flow model is recomputed. The adjustments are made based on experience or a predefined protocol. This iterative process is repeated until a feasible solution that satisfies all constraints is obtained. The advantage of this approach is that the feasible operating region of the power system is kept as wide as the constraints permit and the obtained solution is a realistic state of the network. The disadvantage, however, is that the iterative solution process may be time consuming and the final solution obtained may not provide the most economical power dispatch schedule for the given constraints. Moreover some constraints of the power system, such as the thermal capacity limits of transmission lines are difficult to implement mathematically, since the corresponding variables (current, apparent and active power flows in lines) are not given explicitly in the power balance equations. For security of supply studies, where the power system operates close to its limits it is extremely important to reflect appropriately the constraints of the power system at reasonable computational costs. Therefore, we propose an optimal power flow (OPF) model, which determines in a single simulation run the most economical control settings for load and generation buses and at the same time respects key power system constraints such us thermal capacity limits of transmission lines, reactive and active power and ramping limits of generation units and voltage limits of load buses. The solution obtained by the AC-OPF model is an ideal steady state of the power system network based on the objective function and constraints provided to the model.
23The proposed gas and power system model are coupled to a combined simulation model by defining coupling equations reflecting the physical interlink between both systems at each simulation time step.
24In the following, we derive the gas and electric power system models independently. Next, we describe mathematically the most important interconnections between both systems and integrate the coupling equations into the individual models. Finally, we propose a method for solving the resulting system of equations describing the operation and interdependencies of the combined gas and electric power system.
Gas system model
25A gas network can be described by a directed graph G ¼ ðV; EÞ composed of nodes V and branches E. Facilities with an inlet, outlet and flow direction are modelled as branches, while connection points between these branches as well as entry and exit stations are represented by nodes. Branches, in turn, can be distinguished between active and passive branches. Active branches represent controlled facilities, which can change their state or control during operation, such as compressor stations, regulator stations and valves, while passive branches represent facilities or components which state is fully described by the physical equations derived from the conservation laws, such as pipelines and resistors. 3 The gas flow in transport pipelines is inherently dynamic. Supply and demand are constantly changing and the reactions of the system to these changes are relatively slow, due to the small flow velocities (typically below 10 [m/s]) and the large volume of gas stored in transport pipelines.
26The dynamic behaviour of a gas system is predominately determined by the gas flow in pipelines. In general, a gas pipeline has four basic properties, namely, capacity (i.e. the ability to store a certain volume of gas, which depends on the geometric volume and the maximum design pressure of the pipeline), resistance (i.e. force acting opposite to the gas flow direction, caused by friction between the gas and the inner walls of the pipeline), inertia (force acting opposite to the gas flow acceleration) and gravity (gravitational force acting on the gas volume in sloped pipelines). Capacity and resistance are the predominant properties, while in most cases gravity and inertia play a secondary role. A gas pipeline can be segmented into N nodal control volumes V i and M pipe sections (see Fig. 1), assuming each section inherits a fraction of the basic properties of the original pipeline (e.g. pipe length l, diameter D, roughness r and inclination a). According to the mass conservation law, the gas density q i of a nodal control volume V i may change in time, if there is an imbalance between total gas inflow and outflow to V i . If we assume isothermal 4 flow conditions, the mass conservation law can be expressed by the following integral form of the continuity equation:
27The continuity equation can be expressed for each nodal control volume in the network, thus, we obtain N set of equations with N þ M unknown state variables (p i ; Q i;j ). If we perform an implicit time integration on this set of equations for a time step Dt ¼ t nþ1 À t n and sort the equation in terms of known variables Fig. 1. Pipeline discretization. 3 Any device that causes a local pressure drop, such as filters, scrubbers, heaters, metering devices can be modelled as a resistor. The difference between a resistor and a pipe is that the pipe has the capability to store a specific quantity of gas referred to as linepack. 4 Isothermal flow means the gas temperature T is constant in time and space and equal to the ground temperature. Hence, the time and space derivatives of the temperature can be neglected. In reality the gas temperature may change along the pipeline due to the Joule-Thompson effect (i.e. temperature drop of real gases caused by an expansion of the gas) and heat exchange between the gas and the environment. While the impact of these changes on the gas pressure is marginal [32], neglecting temperature changes can have an influence on the value of the linepack. However, to capture this influence adequately requires a good knowledge of the heat resistance of the ground and the heat transfer coefficients between the gas, the pipeline and the ground, which is typically not available. Thus, the assumption of isothermal flow is reasonable and well accepted in the scientific community [33][34][35][36][37].
28at time t n (right hand side) and unknown variables at time t nþ1 (left hand side), we obtain the following set of linear finite difference equations for the total network:
29In order to close and solve eq. (3) for the entire network including non-pipe facilities, M additional independent equations are needed, which correlate the state variables p i ; Q ij and L i . These equations are provided by the pressure drop equation for each pipe section and the equations describing the control modes and constraints of non-pipe facilities, such as compressor stations, UGS facilities and LNG terminals. The pressure drop equation for a pipe section is derived from the law of conservation of momentum, which yields the following momentum equation:
30Eq. (5) can be reduced to the following non-linear hyperbolic partial differential equation (PDE), if we assume isothermal flow conditions and neglect the convective term. 5
31Eq. (6) can be discretized using a fully implicit finite difference scheme, where the state variables ðp; Q Þ and their partial derivatives are approximated as follows:
32The resulting non-linear finite difference equation for each pipe section is linearised in each step of the iterative solution process using the solution from the preceding time step n as an initial guess. The quantity of gas stored in gas pipelines at simulation time t n , which is also referred to as linepack LPðt n Þ is an important parameter for the flexibility the gas network can provide to GFPPs in the electricity network. The start-up of a GFPP or the ramping of an active GFPP depends on the availability of sufficient fuel gas pressure and linepack in the upstream hydraulic area. A gas network can be separated into hydraulic areas, which are controlled by active elements. A hydraulic area is a subsystem of interconnected pipelines, which are bounded by controlled facilities, such as compressor stations, regulator stations and closed valves. The linepack in a gas pipeline can be expressed as follows [14]:
33with p m ðt n Þ ¼ 2 3
34where p m is the mean pressure in the pipe section and p 1 and p 2 are the inlet and outlet gas pressure, respectively. We account for the availability of linepack for operating GFPPs by assigning conditional expressions for the operation of a GFPP, which we explain further in Sections 3 and 4. The integration of non pipe facilities such as compressor stations, UGS facilities and LNG terminals into the gas model requires the consideration of the control modes and constraints imposed by such facilities. Compressor stations, for instance, are typically flow or outlet pressure controlled and have a limited operating region, which is limited by, for example, the maximum compression ratio (or adiabatic head) and the maximum available shaft power, while UGS facilities have a maximum withdrawal rate, which depends on the available working gas inventory. For each non-pipe facility we add an additional (non-linear) equation describing its control mode or active constraint. Tables 1 & 2 give an overview of different control modes and constraints for non-pipe facilities, while Table 3 lists the mathematical formulation of the control modes and constraints in Table 1.
35The system of equations describing the behaviour of the total gas system can be expressed by the following matrix equation:
36where the set of equations in the first row describe the continuity equation, the second row the linearised equation for pipe and non-pipe elements (compressor stations, regulator stations, valves etc.) and the third row the control or active costraint of non-pipe facilities modelled as single nodes, such as LNG terminals, UGS and GFPPs (see Tables 1-3). The simulation grid is generated by using a dynamic time step method, where the time step Dt is set between 60-900 [s] depending on the control changes of nonpipe facilities. The space size Dx, however, remains unchanged during the time integration process and is chosen such that the ratio between the pipe length l and diameter D does not exceed 30,000 [39]. The algorithm for solving the gas model and for managing the control and constraints of non-pipe facilities is detailed in previous publications [29,38]. Moreover, the accuracy of the presented gas model has been confirmed in previous publications [15,38], where it was benchmarked against a commercial gas simulation software.
Electric power system model
37Similar to a gas network, a power transmission system can be described by a directed graph G ¼ ðV; EÞ consisting of a set of nodes V and a set of branches E, where each branch e 2 E represent a transmission line or a transformer and each node i 2 V a connection point between two or more electrical components, also referred to as bus. At some of the buses power is injected into the network by generation units, while at others power is consumed by system loads.
38In contrast to gas systems, electric power systems are predominantly in steady state operation or in a state that could, with sufficient accuracy, be regarded as steady state [30]. Thus, the 3-phase transmission system is typically modelled as a balanced per phase equivalent system using linear models for the elements involved in the transport process. Fig. 2 and Table 4 give an overview of the most important elements comprising an electric power system and their mathematical representation.
39Transmission lines and transformers, for instance, can be described by their branch admittance matrix derived from the generic branch model (p-circuit) depicted in Fig. 2. The elements of the branch admittance matrix can be used to compose the bus admittance matrix Y bus for the entire network, which correlates the vector of complex bus current injections I to the vector of complex bus voltages V as follows:
40The steady state of an electric power system is described by the following set of non-linear algebraic equations, describing the active and reactive power balance derived from Kirschhoff's current law (KCL) and applied to each bus i, which basically means that all incoming and outgoing active and reactive power flows at each bus must sum up to zero.
41where P i ðVÞ and Q i ðVÞ are the active and reactive branch flows entering or leaving bus i, respectively, P G;i and Q G;i the active and reactive power injections into bus i by power generation units, respectively, and P D;i and Q D;i the active and reactive power extractions at bus i by large industrial customers directly served from the transmission grid or by the local distribution system delivering electric power to households, businesses and small industries. Similar to the gas system, the operation of an electric power system is restricted by a number of constraints, which if violated can lead to severe contingencies. Transmission lines, for instance, have a maximum transmission capacity S max , which if exceeded can lead to outages. Generation units, in turn, can only operate within a specific operating envelope (generator capability curve), which is restricted by the upper and lower limits on active and reactive power generation P max G ; P min G ; Q max G and Q min G , respectively.
42Moreover, electric power delivered to directly served customers and local distribution systems must satisfy a contracted minimum voltage level jV min j, to avoid legal penalties and outages in the subsystems connected to the transmission grid.
43In order to operate the electric power system in an economic and secure way power TSOs are equipped with a number of simulation models to schedule the operation and control of generation units, in order to minimize total operation costs and to ensure security of supply, taking into account the changes in the electricity market and the legal and technical constraints imposed by stakeholders and power system components. The determination of an optimal generation schedule usually involves a successive solution of three different optimisation problems, namely, the unit commitment (UC), economic dispatch (ED) and reserve allocation (RA) [13,18,40]. The UC, which is described by a mixed integer linear optimisation model, determines a cost optimal schedule of when to operate which generation unit, taking into account its fixed and marginal operating costs, its ramp rate and its start-up and shut-down times and costs. The solution of the UC is used as input to the ED to compute the cost-optimal power dispatch schedule for each committed unit. The ED typically involves solving a (non-) linear constrained optimisation problem, where the objective is to find a solution for the state variables (voltage angle d, voltage magnitude jVj, active and reactive power generation P G and Q G ) that satisfies the electric power system constraints and minimizes the operational costs, which is typically expressed as a function of the active power generation P G;i for each committed unit i. The UC and ED are complemented by the RA, which ensures that a minimum amount of generation capacity is reserved and available to mitigate any unexpected contingency in the electric power system. The UC and ED are typically solved one day ahead of the actual operating day as well as in real-time intra-day operation, while the spinning reserves are only allocated in the dayahead scheduling. In real-time operation the UC is normally computed every 15 [min], while the real time power dispatch is executed every 5-15 [min] [13]. Thus, the ED reflects reasonably well the operation of the electric power system, in particular, the real-time power generation dispatch. Therefore, we will use the ED to determine the changes of the state variables to the time varying electric power system loads for each simulation time step. In order to keep the complexity of the combined simulation model at a moderate level, we assume that all generation units in the model are involved in the real-time power dispatch. Thus, we omit solving the UC. However, for the transition between two consecutive simulation time steps t nþ1 and t n we consider key parameters that are typically included in the UC model, such as the ramp rate x r and the start-up T s and shut-down T d time for each generation unit, which we integrate into the ED model. Table 3 Control modes for non-pipe facilities and their mathematical implementation.
Control mode Equation
44Coefficients The basic ED model can be expressed by the following nonlinear constraint optimisation problem:
45where the decision variables expressed by vector X
46are the set of bus voltage angles D, bus voltage magnitudes V m and active and reactive power generation at generation buses P G and Q G , respectively. Eq. (17) is a scalar quadratic objective function, which describes the total operating costs for each generation unit in terms of its active power generation, while the non-linear equality constraints expressed by eq. The basic ED can be solved for each simulation time step t n to capture the behaviour of the electric power system. However, for the scope of this paper, namely, the assessment of security of supply in coupled gas and electric power systems in scenarios where both systems operate close to their limits, the basic formulation of the ED described above may not be suitable. For instance, in a contingency scenario, where total power demand exceeds total available power generation capacity, due to a disruption in a major power plant, the basic ED would not converge to a feasible solution. However, in practice in such a situation the power TSO will deploy demand side measures, like for instance, load shedding at Table 4 Basic components in an electric network model.
Facility
47Function Constraints
Connection point between transmission lines, transformers, generation units, loads, capacitors & reactors
48Upper and lower limits on voltage magnitude jV min j 6 jVj 6 jV max j Injects electric power into the power system, by converting primary energy sources (oil, gas, coal, wind, hydro etc.) to electric energy; bus voltage V i and frequency f i at buses connected to generation units are typically controlled at a specific set point V G ; f G Upper and lower limit on reactive power Q G and active power P G restricted by reactive power capability curve of generation unit P G;min 6 P G 6 P G;max & Q G;min 6 Q G 6 Q G;max (i.e. operating region is restricted by field current heating limit, stator current heating limit & end region heating limit)
49Represents consumption of electric power by large customers directly served from the transmission grid or the total power consumption from the local distribution grid connected to the transmission system at the respective substation Shunt reactors are placed locally to control the steady state overvoltages at buses under light load conditions, while shunt capacitors are used to boost a bus voltage in a stressed system specific locations based on a contingency protocol, 6 in order to maintain a secure operation of the electric power system. To account for such scenarios, we introduce the concept of dispatchable loads [41] as depicted in Fig. 3. The set of active power demand P D at buses is added to the vector of decision variables X for the basic ED (see eq. (27)) as follows:
50In addition, the objective function in eq. (17) is extended by a linear penalty function with respect to P D;i and the upper and lower limits on the new decision variables are added to the linear inequality constraints of the basic ED:
51P min D;i 6 P D;i 6 P set D;
52The penalty function for dispatchable loads is subtracted from the total active power generation costs f ðP G Þ which are always greater than zero, thus, the solution for P D;i will tend to fulfil the scheduled electric power demand P set D;i if generation and transmission capacities are sufficient to balance the power system loads and if bus voltage limits are not active. P set D;i is set as the upper limit for the active power load P D;i , while the lower limit P min D;i can be set according to the contractual agreement with the customer (e.g. agreement on firm capacity and interruptible loads). As illustrated in Fig. 3 the slope of the linear penalty curve is represented by the penalty factor p i , which we define as follows:
53where k i is the priority factor for the corresponding load P D;i , which can be used to assign different priority levels to each individual customer connected to the power grid. This way, in cases where load shedding is required to balance the power system, customers with high priority factors are less likely to be affected by such demand side measures than customers with low priority factors. The priority factor is multiplied with the largest possible absolute value of the first derivative of the cost function for active power generation, in order to ensure that the solution for dispatchable loads converges to the scheduled load P set D;i as long as power system constraints are not active (e.g. generation capacity covers scheduled loads and power losses and minimum voltage limits are not active).
54The solution of the extended ED for a time step t n is independent of the solution of a previous or future time step t nÀ1 or t nþ1 , respectively. However, in real time power system operation there are specific transitional constraints between consecutive time steps, which restrict the operation and flexibility of the power system. In this studies, we consider the following three transitional constraints, which are key constraints in the UC model, namely, the ramp rate, the start-up time and the shut-down time, which we define similar to [42] and integrate into the extended ED model, as follows:
55(1) Ramp rate (x r ):
56The ramp rate is the average speed in [MW/min] at which the active power generation P nþ1 G;i at simulation time t nþ1 can be increased or decreased between the minimum and maximum active power generation limit P min G;i and P max G;i , respectively. Hence, the upper (P max;nþ1 G;i ) and lower limit (P min;nþ1 G;i ) on active power generation of plant i at each simulation time step t nþ1 can be expressed as follows:
57P min;nþ1
58(2) Start-up time (T s ):
59The start-up time is the time span between activating the power plant and the time after which the power plant reaches its minimum active power generation level P min G;i . The start-up time depends on the plant type and the time duration between the last shut-down time and the requested start-up time (i.e. cold start, warm start or hot start [42]). To account for this characteristic, we assume the following exponential function to determine the start-up time in respect to the last offline time t o and the time t n at which the start-up of the power plant is requested:
60where T min s is the minimum start-up time for a hot start, T max s the maximum start-up time for a cold start and T o is the time duration after which a station is offline and thus regarded as in cold start state. Similar to [42] we set
61We define the shut-down time as the time for the power plant to reduce its active power generation to minimum active power generation P min G;i before finally going offline. The shut-down time depends on the ramp rate and the active power generation at the time the shut-down is requested.
62The presented power system model can be solved with an interior point method, which is explained briefly in Appendix A. The Fig. 3. Linear penalty function f ðP D;i Þ and constraints for dispatchable loads. The active power load can vary between the scheduled load P set D;i , which is typically given by the load profile, and the minimum load P set D;i which is greater or equal zero. The coefficient pi of the penalty function is the slope of the penalty curve and is referred to as the penalty factor. The penalty factor can be used to assign priority levels to the different customers connected to the power grid. The higher the penalty factor the less likely a facility will be affected by demand side measures.
63interior point method and the algorithm for solving the power system model is implemented into the simulation tool SAInt.
64In the next section, we elaborate the coupling equations describing the interconnections between gas and power systems and integrate these equations into the presented gas and power system models. Moreover, we explain the algorithm for solving the resulting combined energy system.
Interdependence of gas and electric power systems
65Gas and electric power systems are physically interconnected at a number of facilities. In this paper, we consider the most significant interconnections between both systems as follows:
66(1) Fuel gas demand for power generation in GFPPs connected to the gas and electric power system:
67The required fuel gas L GFPP;i for active power generation P G;i at plant i can be expressed in terms of the heat rate HR i ðP G;i Þ of the GFPP and the gross calorific value GCV of the fuel gas, as follows [17]:
68The heat rate describes the amount of heat needed in [MJ] to generate and inject 1 [kW h] of electric energy into the power transmission grid. It is an indicator of the efficiency of the power plant to convert chemical energy stored in natural gas into electrical energy. It is typically expressed as a quadratic function of the active power generation P G;i , as follows [17,43]:
69The heat rate is the reciprocal of the thermal efficiency g T , thus, HR ¼ 3:6 [MJ/kW h] corresponds to g T ¼ 100 ½%.
70(2) Electric power demand of EDCSs and UGS facilities:
71The electric power consumed by electric drivers can be described by the following expression 7 describing the required driver power P CS D;i for compressing the gas flow Q from inlet pressure p 1 to outlet pressure p 2 [44]:
72where f is a factor describing the fraction of total driver power provided by electric drivers. (3) Electric power supply to LNG terminals for cooling LNG stored in tanks and for operating low and high pressure pumps required for the vaporisation process [45]: We capture this interaction by assuming a generic quadratic function in terms of the regasification rate L reg :
73The above coupling equations can be integrated into the gas and electric power system model by extending the external nodal load L i in the integral continuity Eq. (1) to
74and the active power demand P D;i in the active power balance Eq. . The coupling equations are treated as boundary conditions, which are adapted after each iteration step k until a converged integrated solution is obtained. Moreover, we make use of the sparsity of the Jacobian matrices in eq. (3) & (5) by applying a (un-) symmetric sparse direct solver, which has been implemented into SAInt and is especially optimised for solving large sparse (un-) symmetric linear systems. We refer to [46] for more details on the sparse direct solver implemented into SAInt.
75In order to start the combined dynamic gas and electric power system simulation, an initial state for the coupled system at time step t 0 is required, which can be obtained from the solution of a combined steady state simulation or from the terminal state of a combined dynamic simulation. The algorithm for solving the coupled system is described in the flow chart depicted in Fig. 4. It contains three major loops, namely, the time integration loop with the step variable t n , the iterative loop with step variable k and the constraints and control handling (CCH) loop with step variable k c . The CCH loop is entered, if a constraint in a gas system facility is violated (e.g. minimum pressure, maximum compression ratio violation etc.) after exiting the iterative loop. The control of the affected facility is set to the active constraint and the iterative loop is repeated.
76The ramp rate for each power plant is considered by adapting the value of the upper and lower limits of the active power generation (see eq. (24)) for each simulation time step t n such that the change in active power generation between two consecutive time steps does not exceed the ramping limits. Furthermore, we make use of the simulation control object (SCO) introduced in a previous publication [29] to control the start-up and shut down of a power plant in the course of the time integration. The SCO enables the control of a facility until a specified simulation time and/or until a specified condition is fulfilled.
77The combined simulation is terminated successfully if a converged and feasible solution is obtained for each simulation time step t n .
Security of energy supply parameters
78The algorithm for the combined model is designed for assessing the impact of disruptions on security of energy supply in combined gas and electric power systems. In order to estimate quantitatively. how a disruption affected the operation of a facility or the total system, to compare the impact of different contingency scenarios and to evaluate different mitigation measures and their effectiveness, 7 Derived from the first and second law of thermodynamics for an isentropic compression process.
79we define the following parameters that serve as indicators for quantifying the impact of contingencies on security of supply:
80(1) Quantity of gas or (electric) energy not supplied (GNS/ ENS):
81In case of a disruption, the quantity of gas or (electric) energy demanded by customers may not be available, due to insufficient fuel gas pressure, line pack, voltage magnitude or limited transmission capacity. The difference between the scheduled or demanded quantity of gas or (electric) energy and the actual quantity delivered to a customer (see Fig. 5) can be utilised as a quantitative indicator for the impact of a disruption on security of energy supply for a group of customers connected to the affected facility. We refer to this quantity as gas or (electric) energy not sup-plied (GNS/ENS), respectively. The total GNS and ENS for a gas offtake station (CGS,IND, CBE) or an electric load bus i at simulation time t n can be determined by the following integral equations:
82The ENS is reflected by the size of the red area depicted in Fig. 5. L set i ðtÞ and P set D;i ðtÞ correspond to the load profiles pre- The GNS and ENS of a facility gives an absolute value of the energy or gas not supplied, respectively. To evaluate the severity of the supply disruption for a facility or the total network we set the GNS/ENS in relation to the scheduled or expected energy supply and define an additional parameter referred to as percentage of scheduled energy not supplied due to a contingency, which we denote PENS. The PENS of a facility can be expressed as follows:
83PENS e i ðt n Þ ¼
84The PENS can be graphically interpreted as the ratio between the red area and the sum of the red and blue area depicted in The indicators defined so far do not provide information on the propagation and timing of contingencies, which may be crucial for the coordination between gas and power TSOs. For instance, the time between the start time of a disruption and the time of an undesired shut down of a GFPP due to insufficient fuel gas pressure, is a good indicator of the grace period for a TSO to react and deploy counter measures to mitigate and to avoid cascading effects. Hence, a generic indicator for the resilience and the grace period to react to a contingency can be defined as the time span between the occurrence of the initial disruption t d and the point in time at which a facility i is affected, i.e. the time t a at which the ENS or PENS of the affected facility is greater than a predefined tolerance svt . We refer to this indicator as the survival time (SVT). (4) Time span of energy not supplied (TSP):
85The survival time indicates how long it takes until a facility is affected by a disruption, but not how long the disruption affected the facility. To account for this crucial information, we define the parameter time span of energy not supplied (TSP), which is the sum of all time intervals, where the ENS of a facility is greater zero (see Fig. 5). The TSP is an indicator of how severe a facility is affected by a contingency in terms of time.
(5) Energy not supplied per time span (ENSTSP):
86The TSP can be interpreted wrongly if a facility is affected by a disruption for a long time period, but the ENS in this time period is relatively small. To avoid this misinterpretation, we define an additional indicator for security of supply, which we refer to as energy not supplied per time span (ENSTSP), which is the ratio between ENS and TSP of a facility. The ENSTSP is the average rate of energy not supplied per time during the time intervals the facility is affected by the disruption.
87The indicators presented in this section have been implemented into SAInt and are defined for each demand facility and for the total network system. In a previous publication [29], we implemented into SAInt the functionality to group the facilities in the network model into subsystems, which can then be analysed independently. 8 Thus, we can use this option to determine the value of each indicator for a specific area or group of facilities or customers, such as GFPPs and protected customers [31] (e.g. households, public services) connected to the gas or power grid. Moreover, the parameters of the subsystem can be used to declare conditional expressions for a specific action or event during the simulation. For instance, we can invoke the shut-down of a GFPP if the minimum pressure in a specific subsystem is below a certain pressure threshold or if the total ENS of the subsystem is greater zero. In the next section, we apply the developed models to a case study of a sample combined energy system.
Model application
88The algorithm explained in Fig. 4 has been implemented into SAInt, a novel simulation software designed for analysing security of supply in (coupled) critical energy infrastructures. SAInt was developed in MS Visual Studio using the object oriented programming languages Visual Basic, Visual C#, Visual C++ and IronPython. 9 The software can be used as a standalone or combined gas and electric power system simulator. It is divided into two separate modules, namely, SAInt-API (Application Programming Interface) and SAInt-GUI (Graphical User Interface). The API is the main library of the software and contains all solvers and classes for instantiating the different objects comprising a gas and electric power system. The API is independent of the GUI and can be used separately in any other .NET environment (e.g. MS Excel, IronPython etc.).
89In this section, we apply SAInt to perform a case study on the sample coupled gas and electric power system model depicted in Figs. 6 and 7, respectively. By doing this, we intend to demonstrate the functionality of the simulation software and capabilities of the developed model to estimate and quantify.
90(1) how disruptions triggered in one system affected the operation of facilities in both systems, (2) how disruptions propagate from one system to the other, (3) the grace period for gas and power TSOs to coordinate and react to contingencies, and (4) how effective are specific counter measures to mitigate the impact of disruptions.
91Due to the scope of this study, the model cannot capture how a disruption may affect the gas or electricity market or how market based measures may help mitigate the impact of contingencies.
92The gas and electric network used in the case study are bidirectionally coupled through three GFPPs (NO.4 <-> GEN. 12 Table 5. 10 The simulation time window for all studied scenarios is set to T max ¼ 24 [h] (one operating day, from 6:00 AM to 6:00 AM) for the sake of keeping the result data and discussion at a moderate size. However, the time window can be extended as desired in order to study long-term contingency scenarios. The reference time step is set to Dt ¼ 15 [min], however, the time resolution may be adapted by the dynamic time step adaptation (DTA) method in case of control changes or changes in active constraints during the time integration process. The DTA is explained in detail in a previous publication [29].
93In order to run a combined quasi-dynamic simulation, an initial state of the combined network is required, which can either be the solution of a combined steady state or the terminal state of a combined quasi-dynamic simulation. For the case study, we compute initially a combined steady state scenario and use the solution as an initial state for the combined quasi-dynamic scenarios studied in this paper. The results of the combined steady state simulation Table B.14), were chosen according to the data provided by [42,47]. are plotted in Fig. 8 and listed in Tables C.15-C. 18. The simulation protocol, which includes information of the residual for the gas model, power model and coupling equations for each step of the sequential linearisation is attached to the electronic version of this paper (SAInt-Log-SteadyState).
94In the following sections, we simulate three scenarios and discuss their results. All three scenarios were computed on an Intel Core i7-3630QM 2.4 GHz CPU with 8 GB RAM and a 64-Bit Windows 10 Operating System.
Case 0 -Base case scenario with intermittent wind power generation and backup by spinning reserve GFPP
95In case 0, we study a base case scenario, where wind power generation at bus GEN.22 is not available for some time intervals, due to insufficient wind velocity. We use the functionality to define conditional scenario parameters in SAInt to enforce the start-up of the backup GFPP connected to bus GEN.12 in case wind power generation at bus GEN.22 falls below 1 [MW] within two consecutive simulation time steps (see Fig. 4). However, the start-up of the backup GFPP, is only possible if there is enough linepack in subsystem GSUB.EAST and if the pressure in the corresponding fuel gas node (NO.23) is above 35 [bar-g], in order to avoid a minimum pressure violation at start-up (p min ¼ 30 [bar-g]). For all CGSs in the gas network, we assign the relative load profile depicted in the left plot of Fig. 9 and scale the value with the computed steady state loads. For all active and reactive loads at substations connected to the local distribution system (LDC) we factor the relative load profile depicted in the right plot of Fig. 9 with the steady state power system loads. All other loads in both networks are assumed constant (i.e. loads of IND & CBE). The relative profile for wind generation visualised in Fig. 10 is assigned to the wind power generator connected to bus GEN. 22 and is scaled with the steady state active wind power generation (60 [MW]). Fig. 11 shows a snapshot of the SAInt -electric network scenario table, where the boundary conditions and the implementation of the start-up and shut down of GFPPs is illustrated.
96For the given settings in case 0, we do not expect any significant impact on security of supply for both networks, since the available generation capacity provided by the backup GFPP should be which, in turn is needed for computing the friction factor k using Hofer's equation as described in [38]. b The critical pressure and temperature of the gas is needed for calculating the compressibility factor based on the equation developed by Papay as described in [38].
97sufficient to cover the system loads at times of missing wind power generation.
98The results for case 0 are illustrated in the time plots depicted in Figs. 12 & 15 and in the animation video SAInt_Case0 generated with SAInt and attached to the electronic version of this paper. The simulation protocol for case 0 SAInt-Log-Case0, which contains information on the residual for each simulation time step and the changes in control and active constraints of active gas facilities, is also available in the electronic version of the paper. The computation for case 0 took approximately 10 [sec] for 96 time steps. Fig. 12 shows the time evolution of the active power generation (P G ) at buses GEN.22 (blue curve, wind generation) and GEN.12 (green curve, backup GFPP). As can be seen, the GFPP starts-up whenever wind power generation is zero and shuts down whenever it is above zero. The start-up of the GFPP, however, is always delayed by approx. 30 [min] after loss of wind power generation, due to the transitional constraints (limit for start-up time is P15 [min] for GFPPs, see Table B.14) explained in Section 2.2 and defined in Table B.14 and the conditional expression for startingup and shutting down GFPPs after the active power generation is below or above 1 [MW] for two consecutive time steps, respectively. The impact of the delay in backup power on security of energy supply is visible in the time plot for ENS and PENS for the total gas and total electric power system depicted in Figs. 13 & 14. While the ENS and PENS for the gas system remain zero, security of supply in the electric power system is affected exactly at times, where there is a delay in backup power generation by the backup GFPP connected to GEN.12. The power system implements load shedding in order to balance the reduced generation capacity, which is visible by the increase in ENS and PENS at approx. 10:45 and 18:15. However, the impact of the load shedding is relatively small, since the PENS is less than 1 [%]. One way to avoid load shedding would be to set the wind power generation threshold for starting-up the GFPP to a higher value. However, this may also result in an increased number of start-up and shut down cycles, which, in turn, is connected to higher operational costs. Fig. 11. SAInt scenario definition table showing the defined boundary conditions for the electric network for case 0 and the conditional expression for the shut-down and, start-up of GFPPs in respect to their corresponding nodal gas pressure and linepack in the corresponding subsystem. Each boundary condition is composed of a simulation time (i.e. time at which the boundary condition is evaluated by the solver for the first time), a reference object, a parameter and its value (the value can also be an IronPython expression referring to properties of objects in the model) and a conditional expression and its evaluation type (choice of how often the condition should be evaluated by the solver in the course of the simulation). For some parameters a profile can be assigned by specifying the profile name, after the profile is created in the SAInt -profile editor introduced in [29]. The variable ''time" in the conditional IronPython expression denotes the elapsed simulation time in hours at which the expression is evaluated, while the variable ''dt" denotes the time duration in hours between the last two consecutive simulation time steps, i.e. dt ¼ tn À tnÀ1. Besides, without the extension of the basic ED by the dispatchable load model derived in Section 2.2, the combined model would not have converged to a feasible solution, due to insufficient generation capacity to balance the power system loads. The ramping of the backup GFPP is possible, because there is enough pressure at the corresponding fuel gas offtake node in the gas system and sufficient linepack in the corresponding subsystem GSUB.EAST, as can be seen in Fig. 15, where the time plot of the unit state at GEN.12, the fuel gas offtake and pressure at gas node NO.23 and the linepack in subsystem GSUB.EAST is illustrated.
Case 1 -Disruption in compressor station CS.1
99In this section, we examine how a disruption in compressor station CS.1 affects security of supply in the combined system. The gas flow through CS.1 is interrupted completely (OFF) at 14:00 for 8 [h], due to a failure in the compressor station. 11 At 22:00, the failure in the station is remedied, but the start-up of the station is delayed for another 4 [h]. However, in this time the flow can bypass (BP) the station without gas compression until the station returns to its original control set point at 02:00 (outlet pressure control of 60 [bar-g]). The described events are visualised in Fig. 16, where the time evolution of the control of compressor station CS.1 is depicted. All boundary conditions and settings from case 0 are carried over to case 1.
100We expect a stronger impact of the disruption on security of supply in the gas network than in the electricity network. For the gas network, the disruption in CS.1 may cause the pressure and line pack in the downstream hydraulic area to drop, therefore, the scheduled gas demand in the area may not be covered due to insufficient gas pressure. This in turn, may also influence the start-up of the backup GFPP for balancing the missing wind power generation, which requires a specific fuel gas pressure and available linepack to operate.
101The results for case 1 are illustrated in the time plots depicted in Figs. 16 & 23 and in the animation video SAInt_Case1 attached to the electronic version of this paper. The simulation protocol for case 1 (SAInt-Log-Case1 is also available in the electronic version of the paper. The computation for case 1 took approximately 22 [sec] for 100 time steps. Fig. 17 shows the reaction of the inlet and outlet pressure to the disruption and the control changes at compressor station CS.1. The interruption of gas flow through the station at 14:00 caused a rapid decrease in outlet pressure and a slight increase in inlet pressure. The inlet pressure stabilizes to a constant pressure due to the pressure control at the CBI station connected to node NO.0. As can be seen in the animation video for case 1 (SAInt_Case1), the gas supply from NO.0 decreases right after the interruption of gas flow at CS.1 to avoid an overpressure in the subsystem GSUB.NORTH. The reduction of the outlet pressure is a result of an imbalance between gas offtake (IND at NO.16 & CGS at NO.24) and gas supply (UGS at NO.22) to the downstream hydraulic area (area in GSUB.EAST separated by the outlet node of CS.1 and the pressure controlled UGS node NO.22), thus, the linepack and the average pressure in the hydraulic area decreases rapidly (the flow imbalance between NO.16, NO.24 and NO.22 right after the disruption can be seen in the animation video for case 1 SAInt_Case1). The pressure and linepack in the hydraulic area decreases to an extend that at a certain simulation time the gas offtake at NO.16 and NO.24 are curtailed in order to maintain the minimum operating pressure of 25 [bar-g] and 16 [bar-g], respectively (see simulation protocol SAInt-Log-Case1 and animation video SAInt_Case1 for more details). The simulation time at which the curtailment of gas demand is initiated is shown in the time plot of the TSP for the gas network depicted in Fig. 21 (blue curve). The TSP starts increasing linearly at approx. 20:00, 6 [h] after the disruption in CS.1. This is the grace period for the gas TSO to react to the contingency, by deploying an emergency plan to mitigate or avoid the impact of the disruption on security of supply. A counter measure could be, for instance, to set the withdrawal from the UGS facility connected to node 11 Case 1 is a hypothetical scenario to demonstrate the capability of the developed model to simulate and estimate the impact of supply disruptions. In practice, a failure in a compressor station would not necessarily result in a complete shut-down and stop of flow, but rather the flow will bypass the station without compression through a designated bypass valve system. However, in this case study, we assume the bypass valve cannot be opened, due to a technical failure.
102NO.23 to maximum withdrawal capacity. The information obtained for the grace period would not be available if instead of a dynamic model a steady state gas model was used, since the imbalance between supply and demand, thus, the change in pressure and linepack cannot be reflected with the steady state approach.
103The disruption in the gas system propagates also to the electric power system and affects security of supply in the power system, as can be seen in Figs Fig. 12-12), due to insufficient fuel gas pressure at node NO.23 and linepack in subsystem GSUB.EAST. Because of this delay, the generation capacity in the electricity system is insufficient to balance the power system loads, thus, some loads in the power system are curtailed in respect to the priority factors assigned to the different load buses in Table B.12.
104The impact of the disruption on security of supply for the total gas and electricity network is depicted in Figs. 19-22. In absolute terms, the gas system is more affected by the disruption than the electricity system (see Fig. 19), since the ENS for the gas network is significantly higher than the ENS for the electricity network (ca. 2 [GW h] compared to ca 0.1 [GW h]), while in relative terms, the impact is slightly higher for the electricity network than for the gas network as can be seen in Fig. 20. Furthermore, the survival time for the total gas system is 6 [h] and for the electricity system Fig. 20), assuming a survival time tolerance of svt ¼ 1 ½% for the PENS of the total system. This means, the time span between the disruption event and the point in time at which the total ENS is about to exceed 1 [%] of the expected or scheduled total energy supply is 6 [h] or 8 [h], respectively. This crucial time information can be regarded as the grace period for gas and power TSOs to coordinate and react to the contingency.
105Figs. 21 & 22 show how long the disruption affected the total gas and electricity system (TSP) and the average rate of energy not supplied per time span (ENSTSP). As can be seen, the power system was affected by the disruption for a longer time period than the gas system (6.3 [h] compared to 3.75 [h]). However, due to the relatively large magnitude of the ENS for the gas system compared to that for the electric power system (see Fig. 19) the ENSTSP for the gas system is significantly greater than the one for the power system.
Case 2 -Full withdrawal capacity at gas storage facility to mitigate the impact of compressor station disruption
106In this section, we investigate the effectiveness of a countermeasure to mitigate the impact of the disruption in compressor station CS.1, by enforcing the UGS facility connected to node NO.23 to increase its pressure set point to maximum operating pipeline pressure of 60 [bar-g], if the linepack in subsystem GSUB.EAST is below 3.3 [Msm 3 ]. All boundary conditions and events defined in case 1 a carried over to case 2.
107We expect this countermeasure to reduce the impact on security of supply in the gas and electricity system. However, we expect the gas system to benefit more from the countermeasure than the however, this set point cannot be maintained at all time, due to the maximum withdrawal capacity limit of 300 [ksm 3 /h] illustrated in the operating envelope of the UGS facility. The increased withdrawal from storage has a positive effect on security of supply in the gas and electricity network, which is visible, if we compare the time plots from case 1 for ENS, PENS, TSP and ENSTSP (s. Figs. [19][20][21][22] to the time plots for case 2 shown in Figs. 25-28. The values of the security of supply parameters at the end of the simulation (T max ) are summarised in Tables 6 & 7. The ENS for the gas system is reduced by more than 35 [%] and for the electricity system by almost 48 [%]. In addition, the SVT for both systems is increased to unlimited, since the total PENS for case 2 is always lower than the survival time tolerance of 1 [%]. Moreover, the TSP for the gas system is reduced by almost 30 [%] and for the electricity system by more than 13 [%]. Finally, the ENSTSP for both systems is reduced by roughly 26 [%]. Therefore, we can conclude that the countermeasure deployed in the gas system reduced the impact of the disruption triggered in compressor station CS.1 on security of supply in the combined gas and electric power system. Moreover, the countermeasure was more effective for the electricity network than for the gas network, even though, it was deployed in the gas network.
Conclusion
108In this paper, we presented a novel quasi-dynamic simulation model for assessing security of supply in interconnected gas and electric transmission networks. The model consists of a transient hydraulic model for the gas system, which includes sub models of all important facilities and an extended ED for the electric power system, which contains a model for dispatchable loads and considers time transitional constraints such as the ramp rate and the start-up time of generation units. The models for the individual energy systems were combined through coupling equations describing the power supply to EDCSs and LNG terminals and the fuel gas offtake for power generation in GFPPs. The resulting system of equations describing the state change of the combined system between two consecutive time steps is solved iteratively by a sequential linearisation method, which updates the boundary conditions expressed by the coupling equations at each iteration step. In order to quantify the impact of contingencies on security of supply, we proposed five security of supply parameters, namely, (1) the energy not supplied, (2) the percentage of energy not supplied, (3) the survival time, (4) the time span of energy not supplied, and (5) the energy not supplied per time span. The security of supply parameters together with the algorithm for the combined energy system were implemented into a novel simulation software named SAInt, the first published simulation tool that allows the combined simulation of interconnected gas and electric power systems in a single time frame and simulation environment. The capabilities of the combined model and the functionality of the software tool were demonstrated in a case study of a sample combined gas and electric power system. The case studies were composed of three scenarios with supply disruptions triggered by the loss of wind power generation in the electric network (in all three cases 0, 1 & 2) and loss of gas compression and interruption of gas flow at a major compressor station (in case 1 and 2). In case 0 the loss of wind power generation is compensated by a backup GFPP, however, due to the start-up time limits, which causes a short delay in power generation from GFPPs after the loss of wind power generation, some power system loads are curtailed, in order to balance the reduced generation capacity. The curtailment of the power system loads was enabled by the dispatchable load model added to the basic ED. In case 1, the disruption in a compressor station affected gas offtake stations in the gas system and active power demand at load buses in the electric power system. The disruption caused the nodal gas pressure at the GFPP node and the linepack in the hydraulic area downstream the disrupted compressor station to fall below the threshold for starting-up and operating the GFPP. Thus, the start-up of the reserve GFPP to backup the loss of wind power generation is delayed a couple of hours. During this time period the generation capacity in the electric network was insufficient to balance the scheduled or expected power system loads. Thus, the loads at a number of power system buses were curtailed based on a priority factor assigned to each load bus, in order to balance supply and demand in the electric network. Finally, in the last case, we demonstrated how a countermeasure can be implemented to mitigate the impact of the disruption triggered in the compressor station and how the developed security of supply parameters can be utilised to evaluate the effectiveness of this countermeasure. The countermeasure consisted of increasing the withdrawal rate from a neighbouring UGS facility to full withdrawal capacity by setting the pressure control set point of the facility to maximum operating pipeline pressure if the linepack in the affected hydraulic area goes below a certain threshold. The results for case 2 show that the countermeasure helped mitigate the impact of the disruption on security of supply in both networks, since all security of supply parameters were significantly reduced. Remarkably, the countermeasure had a stronger effect on the electric power system than on the gas system, though it was deployed in the gas system.
109In summary, the case study demonstrate the very detailed level of information that can be obtained from the presented combined model implemented into SAInt. Due to the size of the paper, we limited the discussion to the most important observations, however, there are many more observations that can be analysed further using the supplementary data added to this paper. The type of information provided in this paper, cannot be obtained by a steady state approach for the gas system or by the co-simulation approach adopted in previous scientific papers, due to their limitations. The provided information cannot only be used to analyse the propagation of contingencies, but also to develop and test strategies to react to contingencies, such as those described in the preventive action and emergency plan postulated in Regulation 994/2010 [31]. This may help gas and power TSOs, energy research institutes, policy makers, such as, competent authorities of EU-Member States, regulatory agencies etc. to take the right decisions on how to increase the resilience and security of supply in critical energy infrastructures. Furthermore, the security of supply parameters developed in this paper, can be used for further analysis of gas and electric power networks, such as sensitivity analysis, risk assessment or Monte Carlo simulation.
110In the coming future, we intend to extend the simulation tool by a heat dynamics and gas quality tracking model, which will allow a better estimation of linepack and an impact assessment of hydrogen and/or SNG injections into the gas system by P2G facilities.
111FðX; Z; k; lÞ ¼ L X ; L Z ; L k ; L l  à T ¼ 0 ðA:4Þ
112which yields a non-linear equation system eq. (A.4) that can be solved for the solution variables W ¼ X; Z; k; l ½ T using a Newton-Raphson approach
113where the Newton updates for the primal (X; Z) and dual (k; l) variables are truncated as follows, in order to maintain feasibility of the solution:
114The optimal solution obtained for the augmented ED coincides with the optimal solution of the initial extended ED if the perturbation factor c converges to zero during the iterative solution process. Thus, at each Newton step k the perturbation factor c is modified using the average primal dual distance as follows:
115; 0 6 r 6 1
ðA:12Þ
116The Newton-Raphson iterations are completed successfully, if the infinity norm of the residual vector F k and the perturbation factor c are below a specified tolerance f and c , respectively. The process is aborted if after a specified number of iterations k max a converged solution is not reached. The presented PDIPM is designed for solving large scale problems with reasonable computation times [41], however, the method belongs to the class of Newton methods, which are known to be not globally convergent, i.e. convergence depends on the initial guess for the solution variables. However, results show good convergence [41] if a flat start (d i ¼ 0 & jU i j ¼ 1) or an available solution from a previous time step is chosen as an initial guess, as it is done in the algorithm for the combined gas and electric power system simulation (see Fig. 4) explained in Section 2.3.
117The presented PDIPM has been implemented into SAInt using the complex matrix notations for the derivatives of the Langrangian function (see eq. (A.4)-(A.7)) given in [50]. The accuracy of the implemented model has been confirmed by benchmarking the results against the Matlab-based power system library MAT-POWER [41]. The results of an AC-OPF simulation conducted with SAInt and MATPOWER for the sample electric network are attached as supplementary data to the electronic version of this paper (see Appendix D.4).
118Appendix B. Data for sample gas and power network used in the case study
119The gas and electric network data used for the case study are given in Tables B.8-B.14. The actual native input files used in SAInt for the computations are available in the electronic version of this paper and are explained further in Appendix D.1. Appendix C. Simulation results for combined steady state simulation
120The results for the combined steady state simulation are given in Tables C.15-C.18.
Appendix D. Description of supplementary data available in the electronic version
121All supplementary files are available in Appendix E. In the following sections, we give a description of the different files.
D.1. SAInt project files
122The input files provided as supplementary data to the electronic version of this paper include all input data used for the network and for the case studies. All files are original SAInt input files and are provided in xml format. A SAIntproject is generally divided into the following four types of files:
123(1) SAInt -Network files (with extensions ⁄.net, ⁄.enet):
124Network files contain all topological information of the individual network and its static properties, which typically do not change in the course of a simulation (e.g. transmission line and pipeline properties). Each network in a project has its own file and the network type is expressed by its file extension (e.g. ⁄.net for gas network, ⁄.enet for electric network). (2) SAInt -Scenario files (with extensions ⁄.sce, ⁄.esce):
125For each network file, we can define an unlimited number of scenarios or cases, which include all boundary conditions, conditional expressions, load profiles etc. Each scenario file is associated to a network (file). The type of network a scenario is connected to is expressed by its file extension, analogous to the network file extensions (e.g. ⁄.sce for gas network, ⁄.esce for electric network). (3) SAInt -State or condition files (with extensions ⁄.con, ⁄.econ):
126The network and scenario files are both input files generated by SAInt. The state or condition files, in contrast, are result files generated after each simulation run. The state file contains the solution for all state variables for the terminal state of a simulation. It can be regarded as a snapshot of the network at the end of the simulation. The state file is needed as a initial state of the network for computing a (combined) dynamic simulation. Each state file is associated to a sce- nario (file). The type of network a state is connected to is expressed by its file extension, analogous to the network file extensions (e.g. ⁄.con for gas network state file, ⁄.econ for electric network state file). (4) and SAInt -Solution files (with extensions ⁄.sol, ⁄.esol):
127The simulation results for a scenario are saved in a solution file. The result of a dynamic simulation is a sequence of network states (snapshots) for each simulation time step. To limit the size of the solution files the result for each state contains only fundamental parameters that cannot be calcu-lated or derived from a combination of other parameters such as nodal gas pressure, voltage angle and magnitude.
128The type of network a solution file is connected to is expressed by its file extension, analogous to the network file extensions (e.g. ⁄.sol for gas network solution file, ⁄.esol for electric network solution file).
129In the following, we list all network, scenario, state and solution files used for the case study and provided as supplementary data and give a short description of their content: (1) GNET25.net -Gas network file for sample 25 Node gas network (2) ENET30.enet -Electric network file for sample 30 Bus IEEE power network (3) CMBSTEOPF.sce -Gas network scenario file for the combined steady state scenario (4) CMBSTEOPF.esce -Electric network scenario file for the combined steady state scenario (5) CMBSTEOPF.con -Gas network state file for the combined steady state scenario (6) CMBSTEOPF.econ -Electric network state file for the combined steady state scenario (7) Case0.sce -Gas network scenario file for the combined dynamic scenario for case 0 (8) Case0.esce -Electric network scenario file for the combined dynamic scenario for case 0 (9) Case0.sol -Gas network solution file for the combined dynamic scenario for case 0 (10) Case0.esol -Electric network solution file for the combined dynamic scenario for case 0 (11) Case1.sce -Gas network scenario file for the combined dynamic scenario for case 1 (12) Case1.esce -Electric network scenario file for the combined dynamic scenario for case 1 (13) Case1.sol -Gas network solution file for the combined dynamic scenario for case 1 (14) Case1.esol -Electric network scenario file for the combined dynamic scenario for case 1 (15) Case2.sce -Gas network scenario file for the combined dynamic scenario for case 2 (16) Case2.esce -Electric network scenario file for the combined dynamic scenario for case 2 (17) Case2.sol -Gas network solution file for the combined dynamic scenario for case 2 (18) Case2.esol -Electric network solution file for the combined dynamic scenario for case 2
D.2. Animation videos for the case studies generated with SAInt
130The animation videos for the three cases were generated by SAInt and are provided as animated GIF-files, which can be played in any web browser. The videos show the time evolution of the state variables, the direction of gas flow and electric current, and the state changes of controlled facilities in the gas and power system. The description of the different symbols in the video are given in the caption of Fig. 8. The digital clock in the bottom mid-section indicates the current simulation time.
D.3. Simulation protocol for the case studies generated with SAInt
131The simulation protocols were exported from the SAInt-log window and contain information on the total simulation time, the number of iterations in the successive linearisation loop, time integration loop, and the CCH-loop (as explained in Section 2.3 and the flow chart depicted in Fig. 4), the residual for the gas and power system equations and the residual for the value of the coupling equations for the last two consecutive steps of the successive linearisation loop. Furthermore, the protocol contains a number of actions implemented by the solver to avoid constraints violations in the gas network.
D.4. Comparison between SAInt & MATPOWER [50] for AC-OPF
132The comparison between SAInt and MATPOWER were conducted for a single AC-OPF simulation for the sample electric network used in the case study. The input data and results obtained with SAInt are included in the Excel file ComparisonSAInt.xls while the ones for MATPOWER are given in ComparisonMat-powerResult.log. A comparison of the results confirms the accuracy of the AC-OPF model implemented into SAInt.
Introduction
133The ongoing integration of renewable energy sources (RES) into existing energy supply systems is connected with an increased coupling between natural gas and electric power transmission systems.
134On the power side, the installation of variable RES, such as wind and solar, is increasing, which require flexible and reliable back up generation units with short start-up and shut down times and large ramping rates in order to provide the flexibility needed in the electricity system to cover the variability and uncertainty provided by wind and solar power. Gas fired power plants (GFPP) connected to gas and electricity networks, which are known for their reliability, short start-up time and shut down time can provide such flexibility to the electric power system [1].
135On the gas side, an increased use of electric power to operate facilities in the gas system such as liquefied natural gas (LNG) terminals and electric driven compressors installed in gas compressor stations and underground gas storage (UGS) facilities, can be noticed [2]. Electric drivers outperform traditional gas turbines with a higher mechanical efficiency, lower maintainance costs and less impact on the environment [3].
136In addition to these interconnections, the power to gas (P2G) technology will significantly contribute to the coupling between both systems [4,5], where excess electric energy production (e.g. during variable RES curtailment) is used in an electro-chemical process to produce hydrogen and synthetic natural gas (SNG), which can be injected and stored in gas pipelines or UGS facilities for later use at peak electricity demand periods. As more P2G facilities are installed, the dependence of electric power systems on gas network systems as a provider for energy storage will increase.
137These developments stress the need to (1) examine the depth and scope of these interdependencies, (2) how they may affect the operation of both systems and (3) how to proactively approach the bottlenecks and challenges that may emerge.
138The traditional co-simulation approach, where the physical equations for the gas and electric power system are solved in independent time frames [6][7][8][9][10] and/or a steady state model is used for the gas system [8][9][10][11][12], can only give qualitative information on how a contingency may affect security of supply in coupled gas and electric power systems. For instance, a steady state approach for the gas system cannot quantify appropriately the time evolution of the quantity of gas stored in pipelines, also referred to as linepack, which is a key indicator [6] for how much flexibility the gas system can provide to GFPPs for electric power generation (e.g. available ramping capacity for fuel gas extraction at start-up of spinning reserves, which have to deliver electric energy within 10-30 [min] in case of a contingency [13]).
139Furthermore, the co-simulation approach cannot estimate accurately the grace period for gas and power transmission system operators (TSOs) to coordinate and deploy counter measures to mitigate a contingency. In order to examine the issues raised in (1)-(3) in a quantitative way, a dynamic model of the coupled gas and electric power system is needed, that can reflect appropriately how disruptions triggered in one system propagate to the other system and affect the operation of facilities in both systems. This will allow gas and power system stakeholders to suggest modifications, that may help prevent and/or mitigate the consequences (a) The curtailment of gas and electric power loads at specific locations and times to reduce the stress on the system and to prevent insufficient pipeline pressures (b) The installation of UGS facilities at strategic locations to increase the flexibility to react to loss or shortage of gas supply (c) The increase of withdrawal capacity of existing UGS facilities, (d) The shut-down of specific power plants to maintain the operation of the system in degraded mode, (e) The expansion of the network to increase transmission capacities and line pack (f) The availability of reverse flow at cross-border-points to increase the flexibility and resilience of the gas system Recent publications [4,6,7,[13][14][15][16][17][18][19] demonstrate the growing interest in analysing the interconnection between gas and electric power systems. While most publications address the issue with a steady state model for the gas system integrated into a cosimulation environment, where both systems are solved in independent time frames [7][8][9]11,19,20], there is currently no publication addressing the issue with a combined model that includes the full set of the following important model requirements for assessing security of supply in interconnected gas and electric power systems:
140(i) Dynamic model for the gas pipeline system (i.e. imbalance between gas supply and gas demand resulting in fluctuations in linepack), in order to reflect appropriately the changes in pressure and linepack. (ii) AC model for the electric power system, in order to capture line losses, reactive power flow, voltage levels etc., which are neglected in DC models. (iii) Simultaneous solution of the physical equations and coupling equations for the interconnected gas and electric power system for each simulation time step, in order to capture the direct impact of control changes or disruptions originating from one system and cascading to the other system. (iv) Consideration of the bidirectional interconnection between both systems (i.e. gas offtake for power generation in GFPPs and power supply to EDCS and LNG terminals), in order to give a full picture of the interdependence between both systems. (v) Generic sub models for the most important gas and power system facilities (e.g. compressor stations, UGS, LNG terminals, generation units, electric substations etc.) and their technical and legal constraints (e.g. pressure limits, operating envelope of compressors, voltage limits, generator capability curves, transmission line capacity limits etc.), in order to reflect adequately the flexibility and operation of both systems in scenarios, where both system operate close to their limits. (vi) Possibility to implement conditional control changes, i.e. changing the set points in one system in respect to the conditions in the other system (e.g. the start up of a GFPP for power generation depends on the available linepack and pressure in the gas system), in order to model the coordination between both systems and how they may improve the combined operation. (vii) Estimation of consequences of supply disruptions, in order to quantify how disruptions affect security of supply and to analyse the effectiveness of countermeasures to mitigate the impact of disruptions.
141Studies in the literature that use combined simulation to examine the interconnection between gas and power systems for planning purposes mainly focus on single or multi-time period operational optimisation methods based on steady state conditions [7,16,17,[21][22][23][24]. In [22], the authors investigate the short-term optimal operation of the integrated gas and electricity network with wind power and P2G facilities. The authors use a securityconstraint bi-level ED model with an objective function that minimizes the day ahead costs of electricity and natural gas consumption, respectively. In [23], a multi-stage co-planning model is developed to identify the optimal expansion planning of integrated gas and electricity networks. In [16], a coupled steady state model is proposed to analyse the mitigation effects of integrated gas and electricity systems using a succession of steady states approach with time varying power demand and wind generation profiles. The authors use a steady state gas system model to address a dynamic problem. In [7], a unit commitment and ED model that considers the technical characteristics of power generation units is proposed. The authors include an energy flow model for the gas system taking into account pressure constraints. An interval optimisation strategy for short-term scheduling of coupled gas and electricity system is proposed in [24], where demand response and wind uncertainty are considered. In [17], the authors propose a multi-linear probabilistic energy flow framework for investigating the impacts of uncertainties on the operation of both systems using Monte-Carlo simulations. The authors use a combined steady state model for describing the gas and electric power system. Moreover, they consider the bi-directional coupling between both systems taking into account the voltage and frequency dependency of electric power system loads. Additional stochastic optimisation models are proposed in [11,25,26] in order to address the uncertainties of the integrated gas and electricity networks.
142In the above studies, the dynamic behaviour of the gas system is neglected, which, however, is relevant when studying the combined operation of gas and electric power systems [6,13]. The time evolution of linepack determines the level of flexibility the gas system can provide to the electric power system. In a steady state gas model the time derivative of the linepack is inherently zero, since total gas inflow and outflow are at equilibrium. Thus, the time evolution of the linepack cannot be captured appropriately by steady state gas models.
143To account for this aspect, researchers have developed models for combined optimisation of gas and electricity networks considering the dynamics in gas pipeline systems [6,13,18,27,28]. In [27], a multi-time period optimisation model is proposed for analysing the coupling between the gas and power system network in Great Britain. The authors model key gas system facilities such as compressor stations and UGS facilities and their constraints. The power system model used in the study is based on a simplified DC-OPF model, where important power system constraints, such as thermal capacity limits of transmission lines and reactive power limits of generation units are disregarded. Moreover, the authors consider the ramping limits of generation units, but neglect their start-up and shut down time limits, which may restrict the availability and flexibility of these units. Furthermore, the bidirectional coupling between the gas and electric power system is neglected, since only the coupling through GFPPs is considered. In [28], the authors present a detailed optimal control model to capture spatio-temporal interactions between gas and electricity systems. The proposed model couples a dynamic gas model with an economic dispatch model for the power grid in order to investigate the economic and flexibility gains resulting from coordinating the dispatch of both systems. Similar to the previous study [27] the power system model is based on a simplified DC model, which is connected with the limitations explained above.
144In [18,13], the authors introduce a coupled optimisation model for the combined simulation of gas and electric power systems, where both systems are coupled through gas fired power plants solely. The model is intended to assist gas and power TSOs in coordinating the scheduling of gas offtakes for power generation in GFPPs. Similar to the other studies the authors use a DC-OPF approach to model the electric power system. In a previous publication [15], we proposed a coupled multi-time period model for simulating the operation of gas and electric power systems by solving the physical equations and coupling equations in a single time frame and for multiple simulation time steps. We used a transient hydraulic model for the gas system and a steady state model for the electric power system based on AC-power flow (AC-PF), with a distributed slack bus approach for balancing power demand and power losses. By assigning a participation factor to each GFPP, we used the flexibility offered by these units to balance the electric power system. While the model is able to capture basic interdependencies between both systems, its practical use is limited, since key electric power system constraints such as maximum transmission line capacities, upper and lower limits on power generation and voltages are not considered. In addition, the distributed slack bus approach does not reflect adequately the real time power dispatch in electric power system operation, which is typically scheduled by solving a unit commitment (UC), economic dispatch (ED) and reserve allocation (RA) problem. These problems are typically described by mixed integer linear programs or (non)-linear constrained optimisation models [13].
145In this paper, we cover the gaps in the available literature by extending the simulation tool SAInt (Scenario Analysis Interface for Energy Systems) [14,15,29] by a novel combined quasidynamic model composed of a transient hydraulic simulation model for the gas system, which considers the constraints and control of the most important facilities in the gas system, such as compressor stations and UGS facilities, and a steady state model for the electric power system based on AC-optimal power flow (AC-OPF), where the operational costs and key electric power system constraints such as transmission line capacity limits, active and reactive power generation limits and upper and lower limits on bus voltage magnitudes are considered. The bi-directional coupling between both systems is established by synchronising the fuel gas offtake from the gas system for power generation in GFPP and the electric power supply to electric driven compressors installed in gas transport systems. Moreover, the power supply to LNG terminals is also modelled as an additional gas system dependence on the electric power system. The scope of the proposed model is primarily on the technical operation of the integrated energy system in a contingency scenario, assuming that market based measures have been fully exploited but were insufficient to mitigate the impact of a disruption. Therefore, aspects related to the energy market are only considered partly in this studies. 1 Furthermore, in order to reduce the complexity of the combined model, we do not consider the dynamic behaviour of the electric power system, which may have an influence on the combined operation of both systems. We assume that the automatic generation control (AGC) system is capable of returning the power system to a balanced and stable steady state within a short time frame (less than 5 [min]) after a disturbance [30].
146To the best of our knowledge, there is currently no commercial or open source simulation software on the market, that allows the coupled simulation of gas and electric power systems in a single time frame and simulation environment. Thus, SAInt is the first published software tool to offer this type of functionality.
147The model presented in this paper and implemented into SAInt is intended to assist governments, gas and power TSOs, regulatory agencies and researchers to address the challenges connected with the ongoing transformation of critical energy infrastructures (CEIs). In particular, SAInt can be used to examine potential threats to security of energy supply and to develop strategies to prevent and mitigate the consequences of undesired disruption events in multi-vector energy systems with high penetrations of variable RES. Moreover, the capability of SAInt to quantify the impact of a disruption on security of supply can be utilised to perform a full risk assessment of CEIs as postulated by EU Regulation 994/2010 [31], which involves, the identification of critical scenarios, the probability of their occurrence and the impact of the identified scenarios on security of supply, which can be estimated by SAInt [29].
148To achieve these goals, the paper follows the following structure. In Section 2.1 and 2.2, we develop the mathematical models for the gas and electric power system independently. In Section 2.3, we discuss the interconnections between both systems and derive the coupling equations for the combined system. Next, we describe the algorithm for solving the resulting system of equations for the combined energy system, followed by the definition of parameters to evaluate and quantify the impact of disruptions on security of energy supply in Section 3. Finally in Section 4, the functionality of the simulation tool and the capability of the implemented simulation model are demonstrated in a case study of a sample combined gas and electric power transmission network.
Methodology
149The operation of gas and electric power systems is increasingly interdependent, due to an increased physical interconnection between the facilities installed in both systems. A change in one system may propagate to the other system and even back to the triggering system. For instance, an increase in power generation from a GFPP, will cause the gas offtake from the gas grid to increase. This, in turn, may result in an increased power offtake of electric driven compressor stations (EDCS) to recover the pressure and line pack level in the area affected by the gas offtake. The additional power offtake, again, will have to be balanced by the power generation units including GFPPs, by increasing the power output. This cycle may continue until an equilibrium dynamic state is reached. The equilibrium state in such a bidirectionally coupled system cannot be captured appropriately with the traditional co-simulation approach, where both systems are analysed in independent time frames, rather an integrated simultaneous solution of the physical equations describing the operation of the coupled multi-vector energy system at each simulation time step is needed.
150The first challenge that arises when modelling the coupled power-gas system is to find a simulation model that describes the dynamic behaviour of the individual systems appropriately.
151The dynamics in gas transport systems, for instance, are much slower than the ones in electric power systems. Electricity travels almost instantaneously (with speed of light 3 Á 10 8 [m/s]) and cannot be stored economically in large quantities in current electric power systems 2 [8]. In case of a disruption, the response time of the electric power system is quite fast and basically the transmission line flows satisfy the steady-state algebraic equations. On the contrary, natural gas pipeline flow is a much slower process, with gas flow velocities typically below 10 [m/s] and the propagation of pressure and flow changes around 350 [m/s] (typical value for the speed of sound), resulting in a longer response time in case of a large fluctuation. In particular, high-pressure transmission pipelines have much slower dynamics due to the large sums of natural gas stored in the pipelines.
152In order to consider the different characteristics of both systems, we propose a transient model for the gas system and a steady state AC model for the electric power system.
153The steady state of an electric power system is described by the active and reactive power balance equations, which are typically solved with a power flow model, where the power system loads at load buses and voltage magnitude and active power control settings at generation buses are prescribed as inputs except for one generation bus, which serves as a slack bus to balance power system loads and line losses. The constraints of the power system are not included in the power flow model, but are checked after each power flow calculation. In case a constraint violation is detected the control settings for the load and generation buses are adjusted manually and the power flow model is recomputed. The adjustments are made based on experience or a predefined protocol. This iterative process is repeated until a feasible solution that satisfies all constraints is obtained. The advantage of this approach is that the feasible operating region of the power system is kept as wide as the constraints permit and the obtained solution is a realistic state of the network. The disadvantage, however, is that the iterative solution process may be time consuming and the final solution obtained may not provide the most economical power dispatch schedule for the given constraints. Moreover some constraints of the power system, such as the thermal capacity limits of transmission lines are difficult to implement mathematically, since the corresponding variables (current, apparent and active power flows in lines) are not given explicitly in the power balance equations. For security of supply studies, where the power system operates close to its limits it is extremely important to reflect appropriately the constraints of the power system at reasonable computational costs. Therefore, we propose an optimal power flow (OPF) model, which determines in a single simulation run the most economical control settings for load and generation buses and at the same time respects key power system constraints such us thermal capacity limits of transmission lines, reactive and active power and ramping limits of generation units and voltage limits of load buses. The solution obtained by the AC-OPF model is an ideal steady state of the power system network based on the objective function and constraints provided to the model.
154The proposed gas and power system model are coupled to a combined simulation model by defining coupling equations reflecting the physical interlink between both systems at each simulation time step.
155In the following, we derive the gas and electric power system models independently. Next, we describe mathematically the most important interconnections between both systems and integrate the coupling equations into the individual models. Finally, we propose a method for solving the resulting system of equations describing the operation and interdependencies of the combined gas and electric power system.
Gas system model
156A gas network can be described by a directed graph G ¼ ðV; EÞ composed of nodes V and branches E. Facilities with an inlet, outlet and flow direction are modelled as branches, while connection points between these branches as well as entry and exit stations are represented by nodes. Branches, in turn, can be distinguished between active and passive branches. Active branches represent controlled facilities, which can change their state or control during operation, such as compressor stations, regulator stations and valves, while passive branches represent facilities or components which state is fully described by the physical equations derived from the conservation laws, such as pipelines and resistors. 3 The gas flow in transport pipelines is inherently dynamic. Supply and demand are constantly changing and the reactions of the system to these changes are relatively slow, due to the small flow velocities (typically below 10 [m/s]) and the large volume of gas stored in transport pipelines.
157The dynamic behaviour of a gas system is predominately determined by the gas flow in pipelines. In general, a gas pipeline has four basic properties, namely, capacity (i.e. the ability to store a certain volume of gas, which depends on the geometric volume and the maximum design pressure of the pipeline), resistance (i.e. force acting opposite to the gas flow direction, caused by friction between the gas and the inner walls of the pipeline), inertia (force acting opposite to the gas flow acceleration) and gravity (gravitational force acting on the gas volume in sloped pipelines). Capacity and resistance are the predominant properties, while in most cases gravity and inertia play a secondary role. A gas pipeline can be segmented into N nodal control volumes V i and M pipe sections (see Fig. 1), assuming each section inherits a fraction of the basic properties of the original pipeline (e.g. pipe length l, diameter D, roughness r and inclination a). According to the mass conservation law, the gas density q i of a nodal control volume V i may change in time, if there is an imbalance between total gas inflow and outflow to V i . If we assume isothermal 4 flow conditions, the mass conservation law can be expressed by the following integral form of the continuity equation:
158The continuity equation can be expressed for each nodal control volume in the network, thus, we obtain N set of equations with N þ M unknown state variables (p i ; Q i;j ). If we perform an implicit time integration on this set of equations for a time step Dt ¼ t nþ1 À t n and sort the equation in terms of known variables Fig. 1. Pipeline discretization. 3 Any device that causes a local pressure drop, such as filters, scrubbers, heaters, metering devices can be modelled as a resistor. The difference between a resistor and a pipe is that the pipe has the capability to store a specific quantity of gas referred to as linepack. 4 Isothermal flow means the gas temperature T is constant in time and space and equal to the ground temperature. Hence, the time and space derivatives of the temperature can be neglected. In reality the gas temperature may change along the pipeline due to the Joule-Thompson effect (i.e. temperature drop of real gases caused by an expansion of the gas) and heat exchange between the gas and the environment. While the impact of these changes on the gas pressure is marginal [32], neglecting temperature changes can have an influence on the value of the linepack. However, to capture this influence adequately requires a good knowledge of the heat resistance of the ground and the heat transfer coefficients between the gas, the pipeline and the ground, which is typically not available. Thus, the assumption of isothermal flow is reasonable and well accepted in the scientific community [33][34][35][36][37].
159at time t n (right hand side) and unknown variables at time t nþ1 (left hand side), we obtain the following set of linear finite difference equations for the total network:
160In order to close and solve eq. (3) for the entire network including non-pipe facilities, M additional independent equations are needed, which correlate the state variables p i ; Q ij and L i . These equations are provided by the pressure drop equation for each pipe section and the equations describing the control modes and constraints of non-pipe facilities, such as compressor stations, UGS facilities and LNG terminals. The pressure drop equation for a pipe section is derived from the law of conservation of momentum, which yields the following momentum equation:
161Eq. (5) can be reduced to the following non-linear hyperbolic partial differential equation (PDE), if we assume isothermal flow conditions and neglect the convective term. 5
162Eq. (6) can be discretized using a fully implicit finite difference scheme, where the state variables ðp; Q Þ and their partial derivatives are approximated as follows:
163The resulting non-linear finite difference equation for each pipe section is linearised in each step of the iterative solution process using the solution from the preceding time step n as an initial guess. The quantity of gas stored in gas pipelines at simulation time t n , which is also referred to as linepack LPðt n Þ is an important parameter for the flexibility the gas network can provide to GFPPs in the electricity network. The start-up of a GFPP or the ramping of an active GFPP depends on the availability of sufficient fuel gas pressure and linepack in the upstream hydraulic area. A gas network can be separated into hydraulic areas, which are controlled by active elements. A hydraulic area is a subsystem of interconnected pipelines, which are bounded by controlled facilities, such as compressor stations, regulator stations and closed valves. The linepack in a gas pipeline can be expressed as follows [14]:
164with p m ðt n Þ ¼ 2 3
165where p m is the mean pressure in the pipe section and p 1 and p 2 are the inlet and outlet gas pressure, respectively. We account for the availability of linepack for operating GFPPs by assigning conditional expressions for the operation of a GFPP, which we explain further in Sections 3 and 4. The integration of non pipe facilities such as compressor stations, UGS facilities and LNG terminals into the gas model requires the consideration of the control modes and constraints imposed by such facilities. Compressor stations, for instance, are typically flow or outlet pressure controlled and have a limited operating region, which is limited by, for example, the maximum compression ratio (or adiabatic head) and the maximum available shaft power, while UGS facilities have a maximum withdrawal rate, which depends on the available working gas inventory. For each non-pipe facility we add an additional (non-linear) equation describing its control mode or active constraint. Tables 1 & 2 give an overview of different control modes and constraints for non-pipe facilities, while Table 3 lists the mathematical formulation of the control modes and constraints in Table 1.
166The system of equations describing the behaviour of the total gas system can be expressed by the following matrix equation:
167where the set of equations in the first row describe the continuity equation, the second row the linearised equation for pipe and non-pipe elements (compressor stations, regulator stations, valves etc.) and the third row the control or active costraint of non-pipe facilities modelled as single nodes, such as LNG terminals, UGS and GFPPs (see Tables 1-3). The simulation grid is generated by using a dynamic time step method, where the time step Dt is set between 60-900 [s] depending on the control changes of nonpipe facilities. The space size Dx, however, remains unchanged during the time integration process and is chosen such that the ratio between the pipe length l and diameter D does not exceed 30,000 [39]. The algorithm for solving the gas model and for managing the control and constraints of non-pipe facilities is detailed in previous publications [29,38]. Moreover, the accuracy of the presented gas model has been confirmed in previous publications [15,38], where it was benchmarked against a commercial gas simulation software.
Electric power system model
168Similar to a gas network, a power transmission system can be described by a directed graph G ¼ ðV; EÞ consisting of a set of nodes V and a set of branches E, where each branch e 2 E represent a transmission line or a transformer and each node i 2 V a connection point between two or more electrical components, also referred to as bus. At some of the buses power is injected into the network by generation units, while at others power is consumed by system loads.
169In contrast to gas systems, electric power systems are predominantly in steady state operation or in a state that could, with sufficient accuracy, be regarded as steady state [30]. Thus, the 3-phase transmission system is typically modelled as a balanced per phase equivalent system using linear models for the elements involved in the transport process. Fig. 2 and Table 4 give an overview of the most important elements comprising an electric power system and their mathematical representation.
170Transmission lines and transformers, for instance, can be described by their branch admittance matrix derived from the generic branch model (p-circuit) depicted in Fig. 2. The elements of the branch admittance matrix can be used to compose the bus admittance matrix Y bus for the entire network, which correlates the vector of complex bus current injections I to the vector of complex bus voltages V as follows:
171The steady state of an electric power system is described by the following set of non-linear algebraic equations, describing the active and reactive power balance derived from Kirschhoff's current law (KCL) and applied to each bus i, which basically means that all incoming and outgoing active and reactive power flows at each bus must sum up to zero.
172where P i ðVÞ and Q i ðVÞ are the active and reactive branch flows entering or leaving bus i, respectively, P G;i and Q G;i the active and reactive power injections into bus i by power generation units, respectively, and P D;i and Q D;i the active and reactive power extractions at bus i by large industrial customers directly served from the transmission grid or by the local distribution system delivering electric power to households, businesses and small industries. Similar to the gas system, the operation of an electric power system is restricted by a number of constraints, which if violated can lead to severe contingencies. Transmission lines, for instance, have a maximum transmission capacity S max , which if exceeded can lead to outages. Generation units, in turn, can only operate within a specific operating envelope (generator capability curve), which is restricted by the upper and lower limits on active and reactive power generation P max G ; P min G ; Q max G and Q min G , respectively.
173Moreover, electric power delivered to directly served customers and local distribution systems must satisfy a contracted minimum voltage level jV min j, to avoid legal penalties and outages in the subsystems connected to the transmission grid.
174In order to operate the electric power system in an economic and secure way power TSOs are equipped with a number of simulation models to schedule the operation and control of generation units, in order to minimize total operation costs and to ensure security of supply, taking into account the changes in the electricity market and the legal and technical constraints imposed by stakeholders and power system components. The determination of an optimal generation schedule usually involves a successive solution of three different optimisation problems, namely, the unit commitment (UC), economic dispatch (ED) and reserve allocation (RA) [13,18,40]. The UC, which is described by a mixed integer linear optimisation model, determines a cost optimal schedule of when to operate which generation unit, taking into account its fixed and marginal operating costs, its ramp rate and its start-up and shut-down times and costs. The solution of the UC is used as input to the ED to compute the cost-optimal power dispatch schedule for each committed unit. The ED typically involves solving a (non-) linear constrained optimisation problem, where the objective is to find a solution for the state variables (voltage angle d, voltage magnitude jVj, active and reactive power generation P G and Q G ) that satisfies the electric power system constraints and minimizes the operational costs, which is typically expressed as a function of the active power generation P G;i for each committed unit i. The UC and ED are complemented by the RA, which ensures that a minimum amount of generation capacity is reserved and available to mitigate any unexpected contingency in the electric power system. The UC and ED are typically solved one day ahead of the actual operating day as well as in real-time intra-day operation, while the spinning reserves are only allocated in the dayahead scheduling. In real-time operation the UC is normally computed every 15 [min], while the real time power dispatch is executed every 5-15 [min] [13]. Thus, the ED reflects reasonably well the operation of the electric power system, in particular, the real-time power generation dispatch. Therefore, we will use the ED to determine the changes of the state variables to the time varying electric power system loads for each simulation time step. In order to keep the complexity of the combined simulation model at a moderate level, we assume that all generation units in the model are involved in the real-time power dispatch. Thus, we omit solving the UC. However, for the transition between two consecutive simulation time steps t nþ1 and t n we consider key parameters that are typically included in the UC model, such as the ramp rate x r and the start-up T s and shut-down T d time for each generation unit, which we integrate into the ED model. Table 3 Control modes for non-pipe facilities and their mathematical implementation.
Control mode Equation
175Coefficients The basic ED model can be expressed by the following nonlinear constraint optimisation problem:
176where the decision variables expressed by vector X
177are the set of bus voltage angles D, bus voltage magnitudes V m and active and reactive power generation at generation buses P G and Q G , respectively. Eq. (17) is a scalar quadratic objective function, which describes the total operating costs for each generation unit in terms of its active power generation, while the non-linear equality constraints expressed by eq. The basic ED can be solved for each simulation time step t n to capture the behaviour of the electric power system. However, for the scope of this paper, namely, the assessment of security of supply in coupled gas and electric power systems in scenarios where both systems operate close to their limits, the basic formulation of the ED described above may not be suitable. For instance, in a contingency scenario, where total power demand exceeds total available power generation capacity, due to a disruption in a major power plant, the basic ED would not converge to a feasible solution. However, in practice in such a situation the power TSO will deploy demand side measures, like for instance, load shedding at Table 4 Basic components in an electric network model.
Facility
178Function Constraints
Connection point between transmission lines, transformers, generation units, loads, capacitors & reactors
179Upper and lower limits on voltage magnitude jV min j 6 jVj 6 jV max j Injects electric power into the power system, by converting primary energy sources (oil, gas, coal, wind, hydro etc.) to electric energy; bus voltage V i and frequency f i at buses connected to generation units are typically controlled at a specific set point V G ; f G Upper and lower limit on reactive power Q G and active power P G restricted by reactive power capability curve of generation unit P G;min 6 P G 6 P G;max & Q G;min 6 Q G 6 Q G;max (i.e. operating region is restricted by field current heating limit, stator current heating limit & end region heating limit)
180Represents consumption of electric power by large customers directly served from the transmission grid or the total power consumption from the local distribution grid connected to the transmission system at the respective substation Shunt reactors are placed locally to control the steady state overvoltages at buses under light load conditions, while shunt capacitors are used to boost a bus voltage in a stressed system specific locations based on a contingency protocol, 6 in order to maintain a secure operation of the electric power system. To account for such scenarios, we introduce the concept of dispatchable loads [41] as depicted in Fig. 3. The set of active power demand P D at buses is added to the vector of decision variables X for the basic ED (see eq. (27)) as follows:
181In addition, the objective function in eq. (17) is extended by a linear penalty function with respect to P D;i and the upper and lower limits on the new decision variables are added to the linear inequality constraints of the basic ED:
182P min D;i 6 P D;i 6 P set D;
183The penalty function for dispatchable loads is subtracted from the total active power generation costs f ðP G Þ which are always greater than zero, thus, the solution for P D;i will tend to fulfil the scheduled electric power demand P set D;i if generation and transmission capacities are sufficient to balance the power system loads and if bus voltage limits are not active. P set D;i is set as the upper limit for the active power load P D;i , while the lower limit P min D;i can be set according to the contractual agreement with the customer (e.g. agreement on firm capacity and interruptible loads). As illustrated in Fig. 3 the slope of the linear penalty curve is represented by the penalty factor p i , which we define as follows:
184where k i is the priority factor for the corresponding load P D;i , which can be used to assign different priority levels to each individual customer connected to the power grid. This way, in cases where load shedding is required to balance the power system, customers with high priority factors are less likely to be affected by such demand side measures than customers with low priority factors. The priority factor is multiplied with the largest possible absolute value of the first derivative of the cost function for active power generation, in order to ensure that the solution for dispatchable loads converges to the scheduled load P set D;i as long as power system constraints are not active (e.g. generation capacity covers scheduled loads and power losses and minimum voltage limits are not active).
185The solution of the extended ED for a time step t n is independent of the solution of a previous or future time step t nÀ1 or t nþ1 , respectively. However, in real time power system operation there are specific transitional constraints between consecutive time steps, which restrict the operation and flexibility of the power system. In this studies, we consider the following three transitional constraints, which are key constraints in the UC model, namely, the ramp rate, the start-up time and the shut-down time, which we define similar to [42] and integrate into the extended ED model, as follows:
186(1) Ramp rate (x r ):
187The ramp rate is the average speed in [MW/min] at which the active power generation P nþ1 G;i at simulation time t nþ1 can be increased or decreased between the minimum and maximum active power generation limit P min G;i and P max G;i , respectively. Hence, the upper (P max;nþ1 G;i ) and lower limit (P min;nþ1 G;i ) on active power generation of plant i at each simulation time step t nþ1 can be expressed as follows:
188P min;nþ1
189(2) Start-up time (T s ):
190The start-up time is the time span between activating the power plant and the time after which the power plant reaches its minimum active power generation level P min G;i . The start-up time depends on the plant type and the time duration between the last shut-down time and the requested start-up time (i.e. cold start, warm start or hot start [42]). To account for this characteristic, we assume the following exponential function to determine the start-up time in respect to the last offline time t o and the time t n at which the start-up of the power plant is requested:
191where T min s is the minimum start-up time for a hot start, T max s the maximum start-up time for a cold start and T o is the time duration after which a station is offline and thus regarded as in cold start state. Similar to [42] we set
192We define the shut-down time as the time for the power plant to reduce its active power generation to minimum active power generation P min G;i before finally going offline. The shut-down time depends on the ramp rate and the active power generation at the time the shut-down is requested.
193The presented power system model can be solved with an interior point method, which is explained briefly in Appendix A. The Fig. 3. Linear penalty function f ðP D;i Þ and constraints for dispatchable loads. The active power load can vary between the scheduled load P set D;i , which is typically given by the load profile, and the minimum load P set D;i which is greater or equal zero. The coefficient pi of the penalty function is the slope of the penalty curve and is referred to as the penalty factor. The penalty factor can be used to assign priority levels to the different customers connected to the power grid. The higher the penalty factor the less likely a facility will be affected by demand side measures.
194interior point method and the algorithm for solving the power system model is implemented into the simulation tool SAInt.
195In the next section, we elaborate the coupling equations describing the interconnections between gas and power systems and integrate these equations into the presented gas and power system models. Moreover, we explain the algorithm for solving the resulting combined energy system.
Interdependence of gas and electric power systems
196Gas and electric power systems are physically interconnected at a number of facilities. In this paper, we consider the most significant interconnections between both systems as follows:
197(1) Fuel gas demand for power generation in GFPPs connected to the gas and electric power system:
198The required fuel gas L GFPP;i for active power generation P G;i at plant i can be expressed in terms of the heat rate HR i ðP G;i Þ of the GFPP and the gross calorific value GCV of the fuel gas, as follows [17]:
199The heat rate describes the amount of heat needed in [MJ] to generate and inject 1 [kW h] of electric energy into the power transmission grid. It is an indicator of the efficiency of the power plant to convert chemical energy stored in natural gas into electrical energy. It is typically expressed as a quadratic function of the active power generation P G;i , as follows [17,43]:
200The heat rate is the reciprocal of the thermal efficiency g T , thus, HR ¼ 3:6 [MJ/kW h] corresponds to g T ¼ 100 ½%.
201(2) Electric power demand of EDCSs and UGS facilities:
202The electric power consumed by electric drivers can be described by the following expression 7 describing the required driver power P CS D;i for compressing the gas flow Q from inlet pressure p 1 to outlet pressure p 2 [44]:
203where f is a factor describing the fraction of total driver power provided by electric drivers. (3) Electric power supply to LNG terminals for cooling LNG stored in tanks and for operating low and high pressure pumps required for the vaporisation process [45]: We capture this interaction by assuming a generic quadratic function in terms of the regasification rate L reg :
204The above coupling equations can be integrated into the gas and electric power system model by extending the external nodal load L i in the integral continuity Eq. (1) to
205and the active power demand P D;i in the active power balance Eq. . The coupling equations are treated as boundary conditions, which are adapted after each iteration step k until a converged integrated solution is obtained. Moreover, we make use of the sparsity of the Jacobian matrices in eq. (3) & (5) by applying a (un-) symmetric sparse direct solver, which has been implemented into SAInt and is especially optimised for solving large sparse (un-) symmetric linear systems. We refer to [46] for more details on the sparse direct solver implemented into SAInt.
206In order to start the combined dynamic gas and electric power system simulation, an initial state for the coupled system at time step t 0 is required, which can be obtained from the solution of a combined steady state simulation or from the terminal state of a combined dynamic simulation. The algorithm for solving the coupled system is described in the flow chart depicted in Fig. 4. It contains three major loops, namely, the time integration loop with the step variable t n , the iterative loop with step variable k and the constraints and control handling (CCH) loop with step variable k c . The CCH loop is entered, if a constraint in a gas system facility is violated (e.g. minimum pressure, maximum compression ratio violation etc.) after exiting the iterative loop. The control of the affected facility is set to the active constraint and the iterative loop is repeated.
207The ramp rate for each power plant is considered by adapting the value of the upper and lower limits of the active power generation (see eq. (24)) for each simulation time step t n such that the change in active power generation between two consecutive time steps does not exceed the ramping limits. Furthermore, we make use of the simulation control object (SCO) introduced in a previous publication [29] to control the start-up and shut down of a power plant in the course of the time integration. The SCO enables the control of a facility until a specified simulation time and/or until a specified condition is fulfilled.
208The combined simulation is terminated successfully if a converged and feasible solution is obtained for each simulation time step t n .
Security of energy supply parameters
209The algorithm for the combined model is designed for assessing the impact of disruptions on security of energy supply in combined gas and electric power systems. In order to estimate quantitatively. how a disruption affected the operation of a facility or the total system, to compare the impact of different contingency scenarios and to evaluate different mitigation measures and their effectiveness, 7 Derived from the first and second law of thermodynamics for an isentropic compression process.
210we define the following parameters that serve as indicators for quantifying the impact of contingencies on security of supply:
211(1) Quantity of gas or (electric) energy not supplied (GNS/ ENS):
212In case of a disruption, the quantity of gas or (electric) energy demanded by customers may not be available, due to insufficient fuel gas pressure, line pack, voltage magnitude or limited transmission capacity. The difference between the scheduled or demanded quantity of gas or (electric) energy and the actual quantity delivered to a customer (see Fig. 5) can be utilised as a quantitative indicator for the impact of a disruption on security of energy supply for a group of customers connected to the affected facility. We refer to this quantity as gas or (electric) energy not sup-plied (GNS/ENS), respectively. The total GNS and ENS for a gas offtake station (CGS,IND, CBE) or an electric load bus i at simulation time t n can be determined by the following integral equations:
213The ENS is reflected by the size of the red area depicted in Fig. 5. L set i ðtÞ and P set D;i ðtÞ correspond to the load profiles pre- The GNS and ENS of a facility gives an absolute value of the energy or gas not supplied, respectively. To evaluate the severity of the supply disruption for a facility or the total network we set the GNS/ENS in relation to the scheduled or expected energy supply and define an additional parameter referred to as percentage of scheduled energy not supplied due to a contingency, which we denote PENS. The PENS of a facility can be expressed as follows:
214PENS e i ðt n Þ ¼
215The PENS can be graphically interpreted as the ratio between the red area and the sum of the red and blue area depicted in The indicators defined so far do not provide information on the propagation and timing of contingencies, which may be crucial for the coordination between gas and power TSOs. For instance, the time between the start time of a disruption and the time of an undesired shut down of a GFPP due to insufficient fuel gas pressure, is a good indicator of the grace period for a TSO to react and deploy counter measures to mitigate and to avoid cascading effects. Hence, a generic indicator for the resilience and the grace period to react to a contingency can be defined as the time span between the occurrence of the initial disruption t d and the point in time at which a facility i is affected, i.e. the time t a at which the ENS or PENS of the affected facility is greater than a predefined tolerance svt . We refer to this indicator as the survival time (SVT). (4) Time span of energy not supplied (TSP):
216The survival time indicates how long it takes until a facility is affected by a disruption, but not how long the disruption affected the facility. To account for this crucial information, we define the parameter time span of energy not supplied (TSP), which is the sum of all time intervals, where the ENS of a facility is greater zero (see Fig. 5). The TSP is an indicator of how severe a facility is affected by a contingency in terms of time.
(5) Energy not supplied per time span (ENSTSP):
217The TSP can be interpreted wrongly if a facility is affected by a disruption for a long time period, but the ENS in this time period is relatively small. To avoid this misinterpretation, we define an additional indicator for security of supply, which we refer to as energy not supplied per time span (ENSTSP), which is the ratio between ENS and TSP of a facility. The ENSTSP is the average rate of energy not supplied per time during the time intervals the facility is affected by the disruption.
218The indicators presented in this section have been implemented into SAInt and are defined for each demand facility and for the total network system. In a previous publication [29], we implemented into SAInt the functionality to group the facilities in the network model into subsystems, which can then be analysed independently. 8 Thus, we can use this option to determine the value of each indicator for a specific area or group of facilities or customers, such as GFPPs and protected customers [31] (e.g. households, public services) connected to the gas or power grid. Moreover, the parameters of the subsystem can be used to declare conditional expressions for a specific action or event during the simulation. For instance, we can invoke the shut-down of a GFPP if the minimum pressure in a specific subsystem is below a certain pressure threshold or if the total ENS of the subsystem is greater zero. In the next section, we apply the developed models to a case study of a sample combined energy system.
Model application
219The algorithm explained in Fig. 4 has been implemented into SAInt, a novel simulation software designed for analysing security of supply in (coupled) critical energy infrastructures. SAInt was developed in MS Visual Studio using the object oriented programming languages Visual Basic, Visual C#, Visual C++ and IronPython. 9 The software can be used as a standalone or combined gas and electric power system simulator. It is divided into two separate modules, namely, SAInt-API (Application Programming Interface) and SAInt-GUI (Graphical User Interface). The API is the main library of the software and contains all solvers and classes for instantiating the different objects comprising a gas and electric power system. The API is independent of the GUI and can be used separately in any other .NET environment (e.g. MS Excel, IronPython etc.).
220In this section, we apply SAInt to perform a case study on the sample coupled gas and electric power system model depicted in Figs. 6 and 7, respectively. By doing this, we intend to demonstrate the functionality of the simulation software and capabilities of the developed model to estimate and quantify.
221(1) how disruptions triggered in one system affected the operation of facilities in both systems, (2) how disruptions propagate from one system to the other, (3) the grace period for gas and power TSOs to coordinate and react to contingencies, and (4) how effective are specific counter measures to mitigate the impact of disruptions.
222Due to the scope of this study, the model cannot capture how a disruption may affect the gas or electricity market or how market based measures may help mitigate the impact of contingencies.
223The gas and electric network used in the case study are bidirectionally coupled through three GFPPs (NO.4 <-> GEN. 12 Table 5. 10 The simulation time window for all studied scenarios is set to T max ¼ 24 [h] (one operating day, from 6:00 AM to 6:00 AM) for the sake of keeping the result data and discussion at a moderate size. However, the time window can be extended as desired in order to study long-term contingency scenarios. The reference time step is set to Dt ¼ 15 [min], however, the time resolution may be adapted by the dynamic time step adaptation (DTA) method in case of control changes or changes in active constraints during the time integration process. The DTA is explained in detail in a previous publication [29].
224In order to run a combined quasi-dynamic simulation, an initial state of the combined network is required, which can either be the solution of a combined steady state or the terminal state of a combined quasi-dynamic simulation. For the case study, we compute initially a combined steady state scenario and use the solution as an initial state for the combined quasi-dynamic scenarios studied in this paper. The results of the combined steady state simulation Table B.14), were chosen according to the data provided by [42,47]. are plotted in Fig. 8 and listed in Tables C.15-C. 18. The simulation protocol, which includes information of the residual for the gas model, power model and coupling equations for each step of the sequential linearisation is attached to the electronic version of this paper (SAInt-Log-SteadyState).
225In the following sections, we simulate three scenarios and discuss their results. All three scenarios were computed on an Intel Core i7-3630QM 2.4 GHz CPU with 8 GB RAM and a 64-Bit Windows 10 Operating System.
Case 0 -Base case scenario with intermittent wind power generation and backup by spinning reserve GFPP
226In case 0, we study a base case scenario, where wind power generation at bus GEN.22 is not available for some time intervals, due to insufficient wind velocity. We use the functionality to define conditional scenario parameters in SAInt to enforce the start-up of the backup GFPP connected to bus GEN.12 in case wind power generation at bus GEN.22 falls below 1 [MW] within two consecutive simulation time steps (see Fig. 4). However, the start-up of the backup GFPP, is only possible if there is enough linepack in subsystem GSUB.EAST and if the pressure in the corresponding fuel gas node (NO.23) is above 35 [bar-g], in order to avoid a minimum pressure violation at start-up (p min ¼ 30 [bar-g]). For all CGSs in the gas network, we assign the relative load profile depicted in the left plot of Fig. 9 and scale the value with the computed steady state loads. For all active and reactive loads at substations connected to the local distribution system (LDC) we factor the relative load profile depicted in the right plot of Fig. 9 with the steady state power system loads. All other loads in both networks are assumed constant (i.e. loads of IND & CBE). The relative profile for wind generation visualised in Fig. 10 is assigned to the wind power generator connected to bus GEN. 22 and is scaled with the steady state active wind power generation (60 [MW]). Fig. 11 shows a snapshot of the SAInt -electric network scenario table, where the boundary conditions and the implementation of the start-up and shut down of GFPPs is illustrated.
227For the given settings in case 0, we do not expect any significant impact on security of supply for both networks, since the available generation capacity provided by the backup GFPP should be which, in turn is needed for computing the friction factor k using Hofer's equation as described in [38]. b The critical pressure and temperature of the gas is needed for calculating the compressibility factor based on the equation developed by Papay as described in [38].
228sufficient to cover the system loads at times of missing wind power generation.
229The results for case 0 are illustrated in the time plots depicted in Figs. 12 & 15 and in the animation video SAInt_Case0 generated with SAInt and attached to the electronic version of this paper. The simulation protocol for case 0 SAInt-Log-Case0, which contains information on the residual for each simulation time step and the changes in control and active constraints of active gas facilities, is also available in the electronic version of the paper. The computation for case 0 took approximately 10 [sec] for 96 time steps. Fig. 12 shows the time evolution of the active power generation (P G ) at buses GEN.22 (blue curve, wind generation) and GEN.12 (green curve, backup GFPP). As can be seen, the GFPP starts-up whenever wind power generation is zero and shuts down whenever it is above zero. The start-up of the GFPP, however, is always delayed by approx. 30 [min] after loss of wind power generation, due to the transitional constraints (limit for start-up time is P15 [min] for GFPPs, see Table B.14) explained in Section 2.2 and defined in Table B.14 and the conditional expression for startingup and shutting down GFPPs after the active power generation is below or above 1 [MW] for two consecutive time steps, respectively. The impact of the delay in backup power on security of energy supply is visible in the time plot for ENS and PENS for the total gas and total electric power system depicted in Figs. 13 & 14. While the ENS and PENS for the gas system remain zero, security of supply in the electric power system is affected exactly at times, where there is a delay in backup power generation by the backup GFPP connected to GEN.12. The power system implements load shedding in order to balance the reduced generation capacity, which is visible by the increase in ENS and PENS at approx. 10:45 and 18:15. However, the impact of the load shedding is relatively small, since the PENS is less than 1 [%]. One way to avoid load shedding would be to set the wind power generation threshold for starting-up the GFPP to a higher value. However, this may also result in an increased number of start-up and shut down cycles, which, in turn, is connected to higher operational costs. Fig. 11. SAInt scenario definition table showing the defined boundary conditions for the electric network for case 0 and the conditional expression for the shut-down and, start-up of GFPPs in respect to their corresponding nodal gas pressure and linepack in the corresponding subsystem. Each boundary condition is composed of a simulation time (i.e. time at which the boundary condition is evaluated by the solver for the first time), a reference object, a parameter and its value (the value can also be an IronPython expression referring to properties of objects in the model) and a conditional expression and its evaluation type (choice of how often the condition should be evaluated by the solver in the course of the simulation). For some parameters a profile can be assigned by specifying the profile name, after the profile is created in the SAInt -profile editor introduced in [29]. The variable ''time" in the conditional IronPython expression denotes the elapsed simulation time in hours at which the expression is evaluated, while the variable ''dt" denotes the time duration in hours between the last two consecutive simulation time steps, i.e. dt ¼ tn À tnÀ1. Besides, without the extension of the basic ED by the dispatchable load model derived in Section 2.2, the combined model would not have converged to a feasible solution, due to insufficient generation capacity to balance the power system loads. The ramping of the backup GFPP is possible, because there is enough pressure at the corresponding fuel gas offtake node in the gas system and sufficient linepack in the corresponding subsystem GSUB.EAST, as can be seen in Fig. 15, where the time plot of the unit state at GEN.12, the fuel gas offtake and pressure at gas node NO.23 and the linepack in subsystem GSUB.EAST is illustrated.
Case 1 -Disruption in compressor station CS.1
230In this section, we examine how a disruption in compressor station CS.1 affects security of supply in the combined system. The gas flow through CS.1 is interrupted completely (OFF) at 14:00 for 8 [h], due to a failure in the compressor station. 11 At 22:00, the failure in the station is remedied, but the start-up of the station is delayed for another 4 [h]. However, in this time the flow can bypass (BP) the station without gas compression until the station returns to its original control set point at 02:00 (outlet pressure control of 60 [bar-g]). The described events are visualised in Fig. 16, where the time evolution of the control of compressor station CS.1 is depicted. All boundary conditions and settings from case 0 are carried over to case 1.
231We expect a stronger impact of the disruption on security of supply in the gas network than in the electricity network. For the gas network, the disruption in CS.1 may cause the pressure and line pack in the downstream hydraulic area to drop, therefore, the scheduled gas demand in the area may not be covered due to insufficient gas pressure. This in turn, may also influence the start-up of the backup GFPP for balancing the missing wind power generation, which requires a specific fuel gas pressure and available linepack to operate.
232The results for case 1 are illustrated in the time plots depicted in Figs. 16 & 23 and in the animation video SAInt_Case1 attached to the electronic version of this paper. The simulation protocol for case 1 (SAInt-Log-Case1 is also available in the electronic version of the paper. The computation for case 1 took approximately 22 [sec] for 100 time steps. Fig. 17 shows the reaction of the inlet and outlet pressure to the disruption and the control changes at compressor station CS.1. The interruption of gas flow through the station at 14:00 caused a rapid decrease in outlet pressure and a slight increase in inlet pressure. The inlet pressure stabilizes to a constant pressure due to the pressure control at the CBI station connected to node NO.0. As can be seen in the animation video for case 1 (SAInt_Case1), the gas supply from NO.0 decreases right after the interruption of gas flow at CS.1 to avoid an overpressure in the subsystem GSUB.NORTH. The reduction of the outlet pressure is a result of an imbalance between gas offtake (IND at NO.16 & CGS at NO.24) and gas supply (UGS at NO.22) to the downstream hydraulic area (area in GSUB.EAST separated by the outlet node of CS.1 and the pressure controlled UGS node NO.22), thus, the linepack and the average pressure in the hydraulic area decreases rapidly (the flow imbalance between NO.16, NO.24 and NO.22 right after the disruption can be seen in the animation video for case 1 SAInt_Case1). The pressure and linepack in the hydraulic area decreases to an extend that at a certain simulation time the gas offtake at NO.16 and NO.24 are curtailed in order to maintain the minimum operating pressure of 25 [bar-g] and 16 [bar-g], respectively (see simulation protocol SAInt-Log-Case1 and animation video SAInt_Case1 for more details). The simulation time at which the curtailment of gas demand is initiated is shown in the time plot of the TSP for the gas network depicted in Fig. 21 (blue curve). The TSP starts increasing linearly at approx. 20:00, 6 [h] after the disruption in CS.1. This is the grace period for the gas TSO to react to the contingency, by deploying an emergency plan to mitigate or avoid the impact of the disruption on security of supply. A counter measure could be, for instance, to set the withdrawal from the UGS facility connected to node 11 Case 1 is a hypothetical scenario to demonstrate the capability of the developed model to simulate and estimate the impact of supply disruptions. In practice, a failure in a compressor station would not necessarily result in a complete shut-down and stop of flow, but rather the flow will bypass the station without compression through a designated bypass valve system. However, in this case study, we assume the bypass valve cannot be opened, due to a technical failure.
233NO.23 to maximum withdrawal capacity. The information obtained for the grace period would not be available if instead of a dynamic model a steady state gas model was used, since the imbalance between supply and demand, thus, the change in pressure and linepack cannot be reflected with the steady state approach.
234The disruption in the gas system propagates also to the electric power system and affects security of supply in the power system, as can be seen in Figs Fig. 12-12), due to insufficient fuel gas pressure at node NO.23 and linepack in subsystem GSUB.EAST. Because of this delay, the generation capacity in the electricity system is insufficient to balance the power system loads, thus, some loads in the power system are curtailed in respect to the priority factors assigned to the different load buses in Table B.12.
235The impact of the disruption on security of supply for the total gas and electricity network is depicted in Figs. 19-22. In absolute terms, the gas system is more affected by the disruption than the electricity system (see Fig. 19), since the ENS for the gas network is significantly higher than the ENS for the electricity network (ca. 2 [GW h] compared to ca 0.1 [GW h]), while in relative terms, the impact is slightly higher for the electricity network than for the gas network as can be seen in Fig. 20. Furthermore, the survival time for the total gas system is 6 [h] and for the electricity system Fig. 20), assuming a survival time tolerance of svt ¼ 1 ½% for the PENS of the total system. This means, the time span between the disruption event and the point in time at which the total ENS is about to exceed 1 [%] of the expected or scheduled total energy supply is 6 [h] or 8 [h], respectively. This crucial time information can be regarded as the grace period for gas and power TSOs to coordinate and react to the contingency.
236Figs. 21 & 22 show how long the disruption affected the total gas and electricity system (TSP) and the average rate of energy not supplied per time span (ENSTSP). As can be seen, the power system was affected by the disruption for a longer time period than the gas system (6.3 [h] compared to 3.75 [h]). However, due to the relatively large magnitude of the ENS for the gas system compared to that for the electric power system (see Fig. 19) the ENSTSP for the gas system is significantly greater than the one for the power system.
Case 2 -Full withdrawal capacity at gas storage facility to mitigate the impact of compressor station disruption
237In this section, we investigate the effectiveness of a countermeasure to mitigate the impact of the disruption in compressor station CS.1, by enforcing the UGS facility connected to node NO.23 to increase its pressure set point to maximum operating pipeline pressure of 60 [bar-g], if the linepack in subsystem GSUB.EAST is below 3.3 [Msm 3 ]. All boundary conditions and events defined in case 1 a carried over to case 2.
238We expect this countermeasure to reduce the impact on security of supply in the gas and electricity system. However, we expect the gas system to benefit more from the countermeasure than the however, this set point cannot be maintained at all time, due to the maximum withdrawal capacity limit of 300 [ksm 3 /h] illustrated in the operating envelope of the UGS facility. The increased withdrawal from storage has a positive effect on security of supply in the gas and electricity network, which is visible, if we compare the time plots from case 1 for ENS, PENS, TSP and ENSTSP (s. Figs. [19][20][21][22] to the time plots for case 2 shown in Figs. 25-28. The values of the security of supply parameters at the end of the simulation (T max ) are summarised in Tables 6 & 7. The ENS for the gas system is reduced by more than 35 [%] and for the electricity system by almost 48 [%]. In addition, the SVT for both systems is increased to unlimited, since the total PENS for case 2 is always lower than the survival time tolerance of 1 [%]. Moreover, the TSP for the gas system is reduced by almost 30 [%] and for the electricity system by more than 13 [%]. Finally, the ENSTSP for both systems is reduced by roughly 26 [%]. Therefore, we can conclude that the countermeasure deployed in the gas system reduced the impact of the disruption triggered in compressor station CS.1 on security of supply in the combined gas and electric power system. Moreover, the countermeasure was more effective for the electricity network than for the gas network, even though, it was deployed in the gas network.
Conclusion
239In this paper, we presented a novel quasi-dynamic simulation model for assessing security of supply in interconnected gas and electric transmission networks. The model consists of a transient hydraulic model for the gas system, which includes sub models of all important facilities and an extended ED for the electric power system, which contains a model for dispatchable loads and considers time transitional constraints such as the ramp rate and the start-up time of generation units. The models for the individual energy systems were combined through coupling equations describing the power supply to EDCSs and LNG terminals and the fuel gas offtake for power generation in GFPPs. The resulting system of equations describing the state change of the combined system between two consecutive time steps is solved iteratively by a sequential linearisation method, which updates the boundary conditions expressed by the coupling equations at each iteration step. In order to quantify the impact of contingencies on security of supply, we proposed five security of supply parameters, namely, (1) the energy not supplied, (2) the percentage of energy not supplied, (3) the survival time, (4) the time span of energy not supplied, and (5) the energy not supplied per time span. The security of supply parameters together with the algorithm for the combined energy system were implemented into a novel simulation software named SAInt, the first published simulation tool that allows the combined simulation of interconnected gas and electric power systems in a single time frame and simulation environment. The capabilities of the combined model and the functionality of the software tool were demonstrated in a case study of a sample combined gas and electric power system. The case studies were composed of three scenarios with supply disruptions triggered by the loss of wind power generation in the electric network (in all three cases 0, 1 & 2) and loss of gas compression and interruption of gas flow at a major compressor station (in case 1 and 2). In case 0 the loss of wind power generation is compensated by a backup GFPP, however, due to the start-up time limits, which causes a short delay in power generation from GFPPs after the loss of wind power generation, some power system loads are curtailed, in order to balance the reduced generation capacity. The curtailment of the power system loads was enabled by the dispatchable load model added to the basic ED. In case 1, the disruption in a compressor station affected gas offtake stations in the gas system and active power demand at load buses in the electric power system. The disruption caused the nodal gas pressure at the GFPP node and the linepack in the hydraulic area downstream the disrupted compressor station to fall below the threshold for starting-up and operating the GFPP. Thus, the start-up of the reserve GFPP to backup the loss of wind power generation is delayed a couple of hours. During this time period the generation capacity in the electric network was insufficient to balance the scheduled or expected power system loads. Thus, the loads at a number of power system buses were curtailed based on a priority factor assigned to each load bus, in order to balance supply and demand in the electric network. Finally, in the last case, we demonstrated how a countermeasure can be implemented to mitigate the impact of the disruption triggered in the compressor station and how the developed security of supply parameters can be utilised to evaluate the effectiveness of this countermeasure. The countermeasure consisted of increasing the withdrawal rate from a neighbouring UGS facility to full withdrawal capacity by setting the pressure control set point of the facility to maximum operating pipeline pressure if the linepack in the affected hydraulic area goes below a certain threshold. The results for case 2 show that the countermeasure helped mitigate the impact of the disruption on security of supply in both networks, since all security of supply parameters were significantly reduced. Remarkably, the countermeasure had a stronger effect on the electric power system than on the gas system, though it was deployed in the gas system.
240In summary, the case study demonstrate the very detailed level of information that can be obtained from the presented combined model implemented into SAInt. Due to the size of the paper, we limited the discussion to the most important observations, however, there are many more observations that can be analysed further using the supplementary data added to this paper. The type of information provided in this paper, cannot be obtained by a steady state approach for the gas system or by the co-simulation approach adopted in previous scientific papers, due to their limitations. The provided information cannot only be used to analyse the propagation of contingencies, but also to develop and test strategies to react to contingencies, such as those described in the preventive action and emergency plan postulated in Regulation 994/2010 [31]. This may help gas and power TSOs, energy research institutes, policy makers, such as, competent authorities of EU-Member States, regulatory agencies etc. to take the right decisions on how to increase the resilience and security of supply in critical energy infrastructures. Furthermore, the security of supply parameters developed in this paper, can be used for further analysis of gas and electric power networks, such as sensitivity analysis, risk assessment or Monte Carlo simulation.
241In the coming future, we intend to extend the simulation tool by a heat dynamics and gas quality tracking model, which will allow a better estimation of linepack and an impact assessment of hydrogen and/or SNG injections into the gas system by P2G facilities.
242FðX; Z; k; lÞ ¼ L X ; L Z ; L k ; L l  à T ¼ 0 ðA:4Þ
243which yields a non-linear equation system eq. (A.4) that can be solved for the solution variables W ¼ X; Z; k; l ½ T using a Newton-Raphson approach
244where the Newton updates for the primal (X; Z) and dual (k; l) variables are truncated as follows, in order to maintain feasibility of the solution:
245The optimal solution obtained for the augmented ED coincides with the optimal solution of the initial extended ED if the perturbation factor c converges to zero during the iterative solution process. Thus, at each Newton step k the perturbation factor c is modified using the average primal dual distance as follows:
246; 0 6 r 6 1
ðA:12Þ
247The Newton-Raphson iterations are completed successfully, if the infinity norm of the residual vector F k and the perturbation factor c are below a specified tolerance f and c , respectively. The process is aborted if after a specified number of iterations k max a converged solution is not reached. The presented PDIPM is designed for solving large scale problems with reasonable computation times [41], however, the method belongs to the class of Newton methods, which are known to be not globally convergent, i.e. convergence depends on the initial guess for the solution variables. However, results show good convergence [41] if a flat start (d i ¼ 0 & jU i j ¼ 1) or an available solution from a previous time step is chosen as an initial guess, as it is done in the algorithm for the combined gas and electric power system simulation (see Fig. 4) explained in Section 2.3.
248The presented PDIPM has been implemented into SAInt using the complex matrix notations for the derivatives of the Langrangian function (see eq. (A.4)-(A.7)) given in [50]. The accuracy of the implemented model has been confirmed by benchmarking the results against the Matlab-based power system library MAT-POWER [41]. The results of an AC-OPF simulation conducted with SAInt and MATPOWER for the sample electric network are attached as supplementary data to the electronic version of this paper (see Appendix D.4).
249Appendix B. Data for sample gas and power network used in the case study
250The gas and electric network data used for the case study are given in Tables B.8-B.14. The actual native input files used in SAInt for the computations are available in the electronic version of this paper and are explained further in Appendix D.1. Appendix C. Simulation results for combined steady state simulation
251The results for the combined steady state simulation are given in Tables C.15-C.18.
Appendix D. Description of supplementary data available in the electronic version
252All supplementary files are available in Appendix E. In the following sections, we give a description of the different files.
D.1. SAInt project files
253The input files provided as supplementary data to the electronic version of this paper include all input data used for the network and for the case studies. All files are original SAInt input files and are provided in xml format. A SAIntproject is generally divided into the following four types of files:
254(1) SAInt -Network files (with extensions ⁄.net, ⁄.enet):
255Network files contain all topological information of the individual network and its static properties, which typically do not change in the course of a simulation (e.g. transmission line and pipeline properties). Each network in a project has its own file and the network type is expressed by its file extension (e.g. ⁄.net for gas network, ⁄.enet for electric network). (2) SAInt -Scenario files (with extensions ⁄.sce, ⁄.esce):
256For each network file, we can define an unlimited number of scenarios or cases, which include all boundary conditions, conditional expressions, load profiles etc. Each scenario file is associated to a network (file). The type of network a scenario is connected to is expressed by its file extension, analogous to the network file extensions (e.g. ⁄.sce for gas network, ⁄.esce for electric network). (3) SAInt -State or condition files (with extensions ⁄.con, ⁄.econ):
257The network and scenario files are both input files generated by SAInt. The state or condition files, in contrast, are result files generated after each simulation run. The state file contains the solution for all state variables for the terminal state of a simulation. It can be regarded as a snapshot of the network at the end of the simulation. The state file is needed as a initial state of the network for computing a (combined) dynamic simulation. Each state file is associated to a sce- nario (file). The type of network a state is connected to is expressed by its file extension, analogous to the network file extensions (e.g. ⁄.con for gas network state file, ⁄.econ for electric network state file). (4) and SAInt -Solution files (with extensions ⁄.sol, ⁄.esol):
258The simulation results for a scenario are saved in a solution file. The result of a dynamic simulation is a sequence of network states (snapshots) for each simulation time step. To limit the size of the solution files the result for each state contains only fundamental parameters that cannot be calcu-lated or derived from a combination of other parameters such as nodal gas pressure, voltage angle and magnitude.
259The type of network a solution file is connected to is expressed by its file extension, analogous to the network file extensions (e.g. ⁄.sol for gas network solution file, ⁄.esol for electric network solution file).
260In the following, we list all network, scenario, state and solution files used for the case study and provided as supplementary data and give a short description of their content: (1) GNET25.net -Gas network file for sample 25 Node gas network (2) ENET30.enet -Electric network file for sample 30 Bus IEEE power network (3) CMBSTEOPF.sce -Gas network scenario file for the combined steady state scenario (4) CMBSTEOPF.esce -Electric network scenario file for the combined steady state scenario (5) CMBSTEOPF.con -Gas network state file for the combined steady state scenario (6) CMBSTEOPF.econ -Electric network state file for the combined steady state scenario (7) Case0.sce -Gas network scenario file for the combined dynamic scenario for case 0 (8) Case0.esce -Electric network scenario file for the combined dynamic scenario for case 0 (9) Case0.sol -Gas network solution file for the combined dynamic scenario for case 0 (10) Case0.esol -Electric network solution file for the combined dynamic scenario for case 0 (11) Case1.sce -Gas network scenario file for the combined dynamic scenario for case 1 (12) Case1.esce -Electric network scenario file for the combined dynamic scenario for case 1 (13) Case1.sol -Gas network solution file for the combined dynamic scenario for case 1 (14) Case1.esol -Electric network scenario file for the combined dynamic scenario for case 1 (15) Case2.sce -Gas network scenario file for the combined dynamic scenario for case 2 (16) Case2.esce -Electric network scenario file for the combined dynamic scenario for case 2 (17) Case2.sol -Gas network solution file for the combined dynamic scenario for case 2 (18) Case2.esol -Electric network solution file for the combined dynamic scenario for case 2
D.2. Animation videos for the case studies generated with SAInt
261The animation videos for the three cases were generated by SAInt and are provided as animated GIF-files, which can be played in any web browser. The videos show the time evolution of the state variables, the direction of gas flow and electric current, and the state changes of controlled facilities in the gas and power system. The description of the different symbols in the video are given in the caption of Fig. 8. The digital clock in the bottom mid-section indicates the current simulation time.
D.3. Simulation protocol for the case studies generated with SAInt
262The simulation protocols were exported from the SAInt-log window and contain information on the total simulation time, the number of iterations in the successive linearisation loop, time integration loop, and the CCH-loop (as explained in Section 2.3 and the flow chart depicted in Fig. 4), the residual for the gas and power system equations and the residual for the value of the coupling equations for the last two consecutive steps of the successive linearisation loop. Furthermore, the protocol contains a number of actions implemented by the solver to avoid constraints violations in the gas network.
D.4. Comparison between SAInt & MATPOWER [50] for AC-OPF
263The comparison between SAInt and MATPOWER were conducted for a single AC-OPF simulation for the sample electric network used in the case study. The input data and results obtained with SAInt are included in the Excel file ComparisonSAInt.xls while the ones for MATPOWER are given in ComparisonMat-powerResult.log. A comparison of the results confirms the accuracy of the AC-OPF model implemented into SAInt.
참고문헌 44건
- Direct methods for sparse matrices Automatica · Elsevier BV · 1990 10.1016/0005-1098(90)90146-9
- Application of augmented Lagrangian relaxation to coordinated scheduling of interdependent hydrothermal power and natural gas systems IET Generation Transmission & Distribution · Institution of Engineering and Technology · 2010 10.1049/iet-gtd.2010.0151
- Integrated Modeling and Assessment of the Operational Impact of Power-to-Gas (P2G) on Electrical and Gas Transmission Networks IEEE Transactions on Sustainable Energy · Institute of Electrical and Electronics Engineers · 2015 10.1109/tste.2015.2424885
- Long-term expansion planning of integrated electricity and natural gas transportation infrastructures 2015 10.1109/pesgm.2015.7286218
- Impact of natural gas system on short-term scheduling with volatile renewable energy 2015 10.1109/pesgm.2015.7285633
- Security constrained unit commitment with flexibility in natural gas transmission delivery Journal of Natural Gas Science and Engineering · Elsevier BV · 2015 10.1016/j.jngse.2015.09.011
- Operational flexibility and economics of power plants in future low-carbon power systems Applied Energy · Elsevier BV · 2015 10.1016/j.apenergy.2015.06.065
- Comparison of isothermal and non-isothermal pipeline gas flow models Chemical Engineering Journal · Elsevier BV · 2001 10.1016/s1385-8947(00)00194-7
- Multi-time period combined gas and electricity network optimisation Electric Power Systems Research · Elsevier BV · 2008 10.1016/j.epsr.2007.11.002
- Coordination of Interdependent Natural Gas and Electricity Infrastructures for Firming the Variability of Wind Energy in Stochastic Day-Ahead Scheduling IEEE Transactions on Sustainable Energy · Institute of Electrical and Electronics Engineers · 2015 10.1109/tste.2015.2399855
- Modeling, simulation and optimization of gas networks with compressors Networks and Heterogeneous Media · American Institute of Mathematical Sciences · 2007 10.3934/nhm.2007.2.81
- A Unified Gas and Power Flow Analysis in Natural Gas and Electricity Coupled Networks IEEE Transactions on Power Systems · Institute of Electrical and Electronics Engineers · 2012 10.1109/tpwrs.2012.2191984
- Multi-Stage Flexible Expansion Co-Planning Under Uncertainties in a Combined Electricity and Gas Market IEEE Transactions on Power Systems · Institute of Electrical and Electronics Engineers · 2014 10.1109/tpwrs.2014.2358269
- Hourly Electricity Demand Response in the Stochastic Day-Ahead Scheduling of Coordinated Electricity and Natural Gas Networks IEEE Transactions on Power Systems · Institute of Electrical and Electronics Engineers · 2015 10.1109/tpwrs.2015.2390632
- Direct Methods for Sparse Matrices Oxford University Press eBooks · Oxford University Press · 2017 10.1093/acprof:oso/9780198508380.001.0001
- An integrated simulation model for analysing electricity and gas systems International Journal of Electrical Power & Energy Systems · Elsevier BV · 2014 10.1016/j.ijepes.2014.03.052
- Simulation of transients in natural gas pipelines Journal of Natural Gas Science and Engineering · Elsevier BV · 2011 10.1016/j.jngse.2011.01.004
- Simulation model for natural gas transmission pipeline network system Simulation Modelling Practice and Theory · Elsevier BV · 2010 10.1016/j.simpat.2010.06.006
- Simulation and Analysis of Gas Networks 1987
- Modeling and simulation of a gas distribution pipeline network Applied Mathematical Modelling · Elsevier BV · 2008 10.1016/j.apm.2008.02.012
- MATPOWER: Steady-State Operations, Planning, and Analysis Tools for Power Systems Research and Education IEEE Transactions on Power Systems · Institute of Electrical and Electronics Engineers · 2010 10.1109/tpwrs.2010.2051168
- An optimization model for risk management in natural gas supply and energy portfolio of a generation company 2009 10.1109/tencon.2009.5396179
- On the computation and application of multi-period security-constrained optimal power flow for real-time electricity market operations 2007
- Security-Constrained Unit Commitment With Natural Gas Transmission Constraints IEEE Transactions on Power Systems · Institute of Electrical and Electronics Engineers · 2009 10.1109/tpwrs.2009.2023262
- An integrated transient model for simulating the operation of natural gas transport systems Journal of Natural Gas Science and Engineering · Elsevier BV · 2015 10.1016/j.jngse.2015.11.036
- Interval optimization based operating strategy for gas-electricity integrated energy systems considering demand response and wind uncertainty Applied Energy · Elsevier BV · 2015 10.1016/j.apenergy.2015.10.119
- Large-scale optimal control of interconnected natural gas and electrical transmission systems Applied Energy · Elsevier BV · 2016 10.1016/j.apenergy.2016.01.017
- Storing renewables in the gas network: modelling of power‐to‐gas seasonal storage flexibility in low‐carbon power systems IET Generation Transmission & Distribution · Institution of Engineering and Technology · 2015 10.1049/iet-gtd.2015.0439
- Integrated Electrical and Gas Network Flexibility Assessment in Low-Carbon Multi-Energy Systems IEEE Transactions on Sustainable Energy · Institute of Electrical and Electronics Engineers · 2015 10.1109/tste.2015.2497329
- Coordinated Operation of Natural Gas and Electricity Networks With Microgrid Aggregators IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2016 10.1109/tsg.2016.2547965
- Coordinated Scheduling for Interdependent Electric Power and Natural Gas Infrastructures IEEE Transactions on Power Systems · Institute of Electrical and Electronics Engineers · 2016 10.1109/tpwrs.2016.2545522
- An Integrated Simulation Tool for Analyzing the Operation and Interdependency of Natural Gas and Electric Power Systems 2016
- Impact of Regulatory Change to Coordinate Gas Pipelines and Power Systems OSTI OAI (U.S. Department of Energy Office of Scientific and Technical Information) · U.S. Department of Energy Office of Scientific and Technical Information · 2016
- Using Power Grid Schedules in Dynamic Optimization of Gas Pipelines PSIG Annual Meeting · 2016
- Steady-state analysis of the integrated natural gas and electric power system with bi-directional energy conversion Applied Energy · Elsevier BV · 2016 10.1016/j.apenergy.2016.05.060
- Computational Methods for Large Sparse Power Systems Analysis Springer eBooks · Springer Nature · 2002 10.1007/978-1-4615-0823-6
- Security-constrained bi-level economic dispatch model for integrated natural gas and electricity systems considering wind power and power-to-gas process Applied Energy · Elsevier BV · 2016 10.1016/j.apenergy.2016.07.077
- Multi-Linear Probabilistic Energy Flow Analysis of Integrated Electrical and Natural-Gas Systems IEEE Transactions on Power Systems · Institute of Electrical and Electronics Engineers · 2016 10.1109/tpwrs.2016.2597162
- A multi vector energy analysis for interconnected power and gas systems Applied Energy · Elsevier BV · 2016 10.1016/j.apenergy.2016.08.040
- Development of a Simulation Framework for Analyzing Security of Supply in Integrated Gas and Electric Power Systems Applied Sciences · Multidisciplinary Digital Publishing Institute · 2017 10.3390/app7010047
- Opportunities for Efficiency Improvements in the U.S. Natural Gas Transmission, Storage and Distribution System 2014
- Interdependence of the Electricity Generation System and the Natural Gas System and Implications for Energy Security 2013 10.21236/ada584764
- Coordinated scheduling for interdependent electric power and natural gas infrastructures 2017 10.1109/ptc.2017.7980823
- Grundlagen der Gastechnik 2017 10.1007/978-3-446-44966-4