Power flow modeling of islanded AC microgrids with hierarchical control

Power flow modeling of islanded AC microgrids with hierarchical control

Electrical Power and Energy Systems 105 (2019) 28–36 Contents lists available at ScienceDirect Electrical Power and Energy Systems journal homepage:...

1MB Sizes 0 Downloads 66 Views

Electrical Power and Energy Systems 105 (2019) 28–36

Contents lists available at ScienceDirect

Electrical Power and Energy Systems journal homepage: www.elsevier.com/locate/ijepes

Power flow modeling of islanded AC microgrids with hierarchical control a,⁎

a

a

T

b

Gibran Agundis-Tinajero , Juan Segundo-Ramírez , Nancy Visairo-Cruz , Mehdi Savaghebi , Josep M. Guerrerob, Emilio Barocioc a b c

Universidad Autónoma de San Luis Potosí, San Luis Potosí, S.L.P., Mexico Department of Energy Technology, Aalborg University, Aalborg, 9220 Denmark Universidad de Guadalajara, Guadalajara, Mexico

A R T I C LE I N FO

A B S T R A C T

Keywords: Hierarchical control AC microgrid Newton-Raphson method Power flow Steady-state solution

This paper presents the power flow modeling of droop-controlled distributed generation units with secondary frequency and voltage restoration control for hierarchically controlled islanded microgrids. These models are incorporated in the conventional Newton-Raphson power flow method as a new bus, without the necessity of a slack bus, and include the gains of the control systems that influence the steady-state solution. Two case studies are addressed. In the first case study, comparisons of the proposed models against the steady-state solutions obtained with PSCAD and Simscape Power System of Simulink, where the closed-loop controls are explicitly modeled, are presented. In the second case study, the proposed method is contrasted against the droop-based approach. The results obtained exhibit low computing effort, reliability, and effectiveness of the proposed models since quadratic convergence behavior is maintained independently of the size and topology of the microgrid. Besides, it is demonstrated that hierarchical and droop controllers lead to different solutions, which confirms the necessity of including the hierarchical control in the power flow model.

1. Introduction Microgrids (MGs) have been introduced as a groundbreaking technology to modernize the electric power systems [1–4]. Therefore, important research efforts are currently underway to develop mathematical models and techniques to evaluate and improve their performance, both in the transient and steady state [5,6]. Regarding the computation of the steady-state solution, this is not a simple task for nonlinear periodic switched networks. One way is to implement the system in professional time-domain simulation programs, such as PSCAD, Simulink, RSCAD, among others, and simulate until the transient disappears. Even though this is a direct method, it presents some drawbacks, i.e., the controller has to be stable, and the initial condition has to be within the attractor, but the controller tuning and the calculation of proper initial condition are already complicated problems in themselves. Some other techniques based on iterative processes can be used instead of only direct time domain simulation. Some of these techniques are in the time domain [7–9], frequency domain [10,11], extended harmonic domain [12,13] and hybrid domain [9]. These techniques present better convergence properties such as shorter computation time, the computation of unstable solutions, and those based on the Poincaré map give as byproduct the Floquet multipliers of the computed



solution; however, these methods also have drawbacks, such as, the computational burden, the sensitivity of the correct computation of the transition matrix, among others, for more details see these references [14,15]. In power systems industry, the common way to compute the steady-state is solving the power balance equation using the Newton method [16]. As compared with synchronous generators in conventional power systems, the injected active and reactive power by the distributed generation (DG) units in microgrids are not usually known at the starting of the Newton iterations since they depend on their specific control systems [17–19]. Additionally, in the islanded operation mode, the frequency of the system can be different from the nominal and the so-called slack bus is missing [20,21]. Despite that the slack bus could be reassigned or distributed in an islanded situation, the DG unit selected as slack bus should be able to provide all the missing active and reactive power, but it could not always be possible due to their limited and not dispatchable capacity [2,22]. Microgrids control requirements and strategies to perform local balancing and to maximize their benefits have led the MGs to fulfill a wide range of functionalities, such as power flow control to avoid exceeding line capacities, voltage and frequency regulation, energy balance, among others [18,23–26]. In this way, practical MGs include hierarchical control schemes to achieve the desired operational

Corresponding author. E-mail address: [email protected] (G. Agundis-Tinajero).

https://doi.org/10.1016/j.ijepes.2018.08.002 Received 9 May 2018; Received in revised form 24 July 2018; Accepted 8 August 2018 0142-0615/ © 2018 Elsevier Ltd. All rights reserved.

Electrical Power and Energy Systems 105 (2019) 28–36

G. Agundis-Tinajero et al.

performed, and only uses linear loads. Additionally, the authors state that the algorithm convergence depends on the stability of the microgrid controllers. This paper presents the power flow modeling of the hierarchically controlled DG units with primary droop-based and secondary frequency and voltage restoration controls to cope with the problems mentioned above. The obtained models are represented as a new bus type embedded in the conventional Newton-Raphson power flow [16]. Therefore, the method maintains its quadratic convergence regardless of the microgrid topology, stability, control tunning, and its nonlinear loads. Furthermore, the method preserves explicitly the control gains that influence the steady-state solution. One of the main issues of islanded microgrids, in the context of the power flow formulation, is that the slack bus does not exist [2]. In this regard, it is demonstrated that the frequency restoration term is related to the bus phase angle where the secondary control regulates the voltage. Consequently, this phase angle becomes the reference angle for the DG units, thus, the slack bus is not needed, but all the units (gridforming units) participate in sharing the injected power according to the hierarchical control. This feature is a fundamental advantage because it avoids the use of an adaptive slack bus [34] or the fixing of a bus phase angle to zero [2]. The steady-state solutions obtained with the proposed Newton-Raphson based power flow are compared against the steady-state solutions obtained with time-domain implementations in industrial electromagnetic transient simulation programs. The paper is organized as follows: Section 2 describes the hierarchical control considered for the proposed power flow formulation. Section 3 introduces the formulation of the proposed power flow model which includes the primary droop control and the secondary frequency and voltage restoration control. Section 4 describes the microgrid used as the test system. Section 5 outlines the case studies and presents results obtained. Finally, Section 6 provides the conclusions of this work.

requirements. Consequently, since the hierarchical controls modify the steady-state operation of the MG, they have to be included in the methods for the computation of the steady-state. Hierarchical control systems increase the difficulty of the power flow modeling since their secondary and tertiary controls change the operating points of the MGs, such that, the active and reactive power injected by the DG units differ from those injected by DG units with only droop control. Keep in mind that the tertiary control level typically operates in the order of minutes [17]. Therefore, their outputs can be considered constant in the power flow modeling; however, the operation time of the secondary control, such as the frequency and voltage restoration control, is close to the primary control operation time. Hence, the outputs of the secondary control cannot be assumed as constant inputs to the primary control. For these reasons, the power flow model must include primary and secondary controllers. In the literature, it can be found that several authors have addressed the power flow problem for islanded droop-controlled microgrids [2,20,22,27–34]. For example, a three phase generalized power flow for islanded microgrids using a Newton trust region method is presented in [22], it takes into account the droop characteristics of the DG units and unbalances in the microgrid, furthermore, a comparison with PSCAD is performed using a six-bus MG, achieving maximum errors of 0.5% and 0.05% in phase and voltage magnitude, respectively. In [20], a modified interior point-based power flow for balanced droop based microgrids is developed, this method transforms the power flow problem into a nonlinear optimization problem increasing the size of the system to be solved due to the restrictions needed for the optimization, additionally, the algorithm does not have quadratic convergence rate. The method is compared against PSCAD using a six-bus MG, the maximum absolute error achieved is 1.689× 10−2 ; besides, the computing time needed by the method was 0.23748 s. Virtual impedances have been included in the power flow computation in [2]. A particle swarm optimization to solve the power flow problem in islanded microgrids is performed in [27], where the stability of the system is also ensured. In [28], the authors proposed the inclusion of the droop equations in the conventional power flow formulation, with the purpose of having a straightforward method that can be integrated into current commercially available power system software. Comparisons against PSCAD were presented in the paper, being the maximum voltage magnitude and phase angle error achieved of 2× 10−4 and 8.5× 10−3 , respectively. An AC/DC load flow algorithm for islanded microgrids taking into account the droop characteristics is presented in [29], the load flow is solved sequentially, having as subsystems the AC system and the DC system, using a modified directed forward-backward sweep method. In [30], a branch-based power flow for islanded microgrids is shown, a forwardreturn-forward-sweep method including droop controls is proposed in this work. In [31] a review of power flow methods for droop-based islanded microgrids is addressed, the authors compare the algorithms in terms of accuracy and convergence time, besides, a method based on particle swarm optimization is presented. Reference [33] presents a methodology to extend the conventional power flow method to islanded microgrids using a two-nested-loop iterative method. In this method, the frequency and active power are computed in the first loop, then in the second loop the reactive power and voltages are computed. This method does not report quadratic convergence rate, additionally, it only considers droop controls. The authors present a seven-bus case and the method converges in 2.065 s. A generic modeling approach for droop-controlled and isochronous MGs is presented in [32]; the authors develop models for different primary control operation schemes and unbalanced conditions; however, only includes primary controls. Recently, Ref. [34] presents a generalized microgrid power flow method for radial and weakly meshed topologies, which includes primary and secondary control schemes. The authors use a direct backward/forward sweep method, where the power flow problem is solved sequentially in a double-loop process deteriorating the convergence rate; a case study is presented, but no comparison results against other methods are

2. Hierarchical control In order to operate the microgrid in a controlled manner, a two-level hierarchical control scheme is included [18]. The scheme is composed by a local primary control, a secondary control for frequency and voltage restoration, and a synchronous reference frame phase-locked loop (SRF-PLL) [35] for measuring the voltage magnitude (|Vm |) and frequency (ωm ) of the m-th bus of the system, as seen in Fig. 1. The primary control level, which is modeled in the dq-reference frame, is responsible for performing the grid-forming function, and its structure is shown in Fig. 2. This level consists of a conventional droop control, in which, the active and reactive power contribution of the n-th DG unit depends on the frequency/active power (P-ω ) and voltage/reactive power (Q-V) droop characteristic curves, respectively, being expressed as [36],

ωn = ω∗−Knp Pn

(1)

|Vn | = |Vn∗ |−Knq Qn where

ω∗

(2)

is the nominal angular frequency of the system,

Primary Primary

Primary

Fig. 1. Hierarchical control scheme. 29

|Vn∗ |

is the

Electrical Power and Energy Systems 105 (2019) 28–36

G. Agundis-Tinajero et al.

objectives selected. For example, the modification of K p and K q changes the active and reactive power dispatch ratio among the DG units [18]. On the other hand, the reference voltage V ∗∗, which is used to restore the voltage deviations can be modified when the secondary voltage control is distributed to control the DG units reactive power injection [37]; in the case of a single PCC, the secondary voltage control is used to restore the voltage deviation due to the primary control. 3. Power flow modeling In the conventional power flow method [16], all buses fall within only three types: voltage controlled bus (PV), load bus (PQ), and slack bus. Using these bus models, the DG units operating in PV and PQ mode can be represented in the power flow problem [39]. However, the droop-controlled DG units cannot be modeled by any of the typical buses (PV, PQ, and slack). To cope with this problem, a new bus, called droop bus, was introduced [22]. Nevertheless, none of these bus types can represent the droop-controlled DG units with secondary control for frequency and voltage restoration. In this regard, this section presents the procedure for the incorporation of the hierarchically controlled DG units for islanded AC microgrids in the well-known power flow method [16].

Fig. 2. Hierarchical control block diagram.

voltage amplitude reference, and Knp and Knq are the P-ω and Q-V droop coefficients, respectively [36]. Additionally, this stage includes an inner current control loop and an outer voltage control loop which define the control signals for operating each DG unit with a given amplitude Vn and frequency ωn , as shown in Fig. 2 [19]. On the other hand, the secondary control level is responsible to compensate the MG frequency and voltage deviations [18]. This control measures the system frequency and bus voltage and compares them against the references ω∗ and |Vm∗∗ |, respectively. Keep in mind that, |Vn∗ | is the voltage reference for the primary control, and |Vm∗∗ | is the voltage reference for the secondary control. The error in each case of the secondary control is processed through a proportional-integral (PI) controller to obtain the output signals uωrest and u vrest , as follows,

uωrest = k pw (ω∗−ωm) + k iw

∫ (ω∗−ωm) dt

u vrest = k pv (|Vm∗∗ |−|Vm |) + k iv

∫ (|Vm∗∗ |−|Vm |) dt

3.1. Active power droop control and frequency restoration formulation The active power output of each DG unit is governed by Eq. (5), which in turn depends on the frequency restoration output of the secondary control. According to (5), with ωm = ω∗ and where the subscript m indicates the bus controlled by the secondary control, the active power reference of the n-th DG unit becomes,

Pnref =

uωint Knp

(7)

where uωint is the output of the frequency secondary control integrator (k iw ∫ (ω∗−ωm) dt ) in steady-state and it is calculated as follows. The bus phase angle θm , where the secondary control measures the frequency, is related with the angle δm in the following way,

(3)

θm = ω∗t + δm (4)

where t is the time. Observe that if (8) is derived with respect to the time, the following expression results,

where ωm and |Vm | are the angular frequency and the voltage magnitude measured in the m-th bus, respectively. In this bus, the secondary control restores the frequency and voltage magnitude. It is important to mention that the secondary frequency control works using the SRF-PLL measurements, and these influence the DG units output phase. The output signals uωrest and u vrest are sent to each DG unit to restore the frequency and voltage deviations after every change in the microgrid, therefore, Eqs. (1) and (2) are modified as follows,

ωn = ω∗−Knp Pn + uωrest

(5)

|Vn | = |Vn∗ |−Knq Qn + u vrest

(6)

(8)

dδm = ωm−ω∗ dt

(9)

Thus, (9) can be substituted in the integral part of (3); then by integrating uωint , the following expression is obtained,

uωint = −k iw (δm−δm0 )

(10)

δm0

is an initial condition. Note that, if the phase reference is where shifted due to the SRF-PLL measurements as mentioned in Section 2, the change is reflected in δm0 . In this work the SRF-PLL measures the q voltage component (vq ), therefore, the output will be shifted 90degr. Merging (7) and (10), it is observed that Pnref depends on the bus angle (δm ) where the bus is being controlled by the secondary control, the integration gain (k iw ), the droop gain (KnP ), and the initial constant value,

Observe that in a microgrid with a point of common coupling (PCC), both frequency and voltage restoration controllers are controlling the same bus; however, in the case of a multi-bus microgrid, the voltage restoration control can be distributed in the different buses of the DG units [37]. As mentioned in the Introduction, since the tertiary control level typically operates in the order of minutes [17], its outputs can be considered constant for the power flow modeling; therefore, the tertiary control is not included in the hierarchical control shown in this section. However, the function of this level concerns with the optimal operation of the microgrid subject to different objectives such as economic dispatch, power flow balance, stability, among others [18,25,37,38]. In this way, the tertiary control modifies the primary and secondary control references (V ∗∗, K p, K q ) depending on the operational

Pnref =

−k iw (δm−δm0 ) Knp

(11)

Therefore, using (11) and scaling it to p.u. using Sbase , the equation that has to be solved for the active power ΔPn is as follows,

ΔPn = Pn−Pnref = Pn−

−k iw (δm−δm0 ) 1 Knp Sbase

(12)

Note that in Eq. (12) only appears the control gains that modify the steady-state solution. Furthermore, it is shown that the secondary 30

Electrical Power and Energy Systems 105 (2019) 28–36

G. Agundis-Tinajero et al.

control sets the reference phase angle for all the DG units. This finding shows that, regarding power flow formulation, the slack bus is not needed, but instead, all the DG units share the injected power. Consequently, the use of an adaptive slack bus [34] or the fixing of a bus phase angle to zero [2] are avoided.

Fig. 4. Single-line diagram of a DG unit connected to the PCC bus.

3.2. Reactive power droop control and voltage amplitude restoration formulation

3.3. Reactive power droop control and voltage amplitude restoration: system reduction

According to (6), the power flow model for the reactive power of the n-th DG unit, can be written as follows,

Qnref

|V ∗ |−|Vn | + u vint = n Knq

Observe that, if the DG units are connected to the bus where the voltage is restored by the secondary control, a reduction of the system can be made. For explanation, Fig. 4 shows the single-line diagram of a DG unit connected through a feeder to the PCC where the secondary control restores the voltage. From Fig. 4, the reactive power flowing from the DG unit to the PCC, can be computed as,

(13)

where u vint is the integrator output of the secondary voltage control in steady-state. In this case, there is no equation related to the integral part of the secondary voltage control such as in the secondary frequency part; however, it is known that in steady-state, the voltage at the controlled bus is going to be fixed to the value of the secondary voltage control reference (|Vm | = |V ∗∗|), therefore, the reactive power equation related to the controlled bus is used to compute the value of u vint . In this way, there is no change in the formulation due to the secondary voltage control and the reactive power formulation ΔQn is as follows,

ΔQn = Qn−

|Vn∗ |−|Vn | + u vint Vbase Knq Sbase

Q = −(|V |2 |Y |sin(θ )−|V ||Vpcc ||Y |sin(−δ + β + γ ))

where |Vpcc | is known since it is a controlled voltage (|Vpcc | = |V ∗∗|), β is the phase angle of |Vpcc |, as seen in Fig. 4, and γ is the admittance angle. Merging Eqs. (13) and (16) yields to,

|V |2 |Y |sin(γ )−|V ||Vpcc ||Y |sin(−δ + β + γ ) +

iw

|V ∗|−|V | + u vint Vbase =0 Kq Sbase (17)

(14)

this equation can be rearranged as,

Finally, the mismatching equations of the new controlled bus needed by the power flow formulation, which will be called as hierarchically controlled PQ (HCPQ) bus from now on, can be summarized as follows,

1 V |V |2 |Y |sin(γ ) + |V | ⎛−|Vpcc ||Y |sin(−δ + β + γ )− q base ⎞ K Sbase ⎠ ⎝ |V ∗| + u vint Vbase + =0 Kq Sbase ⎜

0

⎡ Pn− −k (δmp − δm) 1 ⎤ Sbase ⎥ Kn ⎡ ΔPn ⎤ = ⎢ |Vn∗ | − | Vn | +uvint Vbase ⎥ ⎢ ΔQn ⎦ ⎥ ⎢ ⎣ ⎢Qn− Sbase ⎥ Knq ⎦ ⎣

(16)



(18)

Computing the roots of (18), the voltage |V | can be obtained. In this way, since the voltage of the new controlled bus HCPQ is already known, the mismatching equations needed in the power flow formulation are reduced as follows,

(15)

Now, each hierarchically controlled DG unit can be included in the power flow model in the form of the new HCPQ bus, shown schematically in Fig. 3. According to (13), the controlled reactive power is based on the measured capacitor voltage shown in Fig. 3, and this voltage is adjusted by the primary control; thus the LC filter is embedded in the HCPQ bus.

ΔPn = Pn−

−k iw (δm−δm0 ) 1 Knp Sbase

(19)

Finally, combining the model of HCPQ from Eq. (15), and the PV and PQ buses from the conventional power flow method, the power flow formulation of the whole system can be summarized as follows,

Fig. 3. HCPQ bus diagram. 31

Electrical Power and Energy Systems 105 (2019) 28–36

G. Agundis-Tinajero et al.

Fig. 6. Single-line diagram of the second case study microgrid. Table 1 Parameters of the case study microgrid and control. Parameter Nominal voltage

Fig. 5. Power flow method flowchart.

Pn−

0) −k iw (δm − δm

Knp

1 Sbase

|V ∗ | − | Vn | +uvaux Vbase Qn− n Sbase Knq

= 0⎫ ⎪ HCPQ bus = 0⎬ ⎪ ⎭

Pn−Pnsch = 0 ⎫ PQ bus Qn−Qnsch = 0 ⎬ ⎭ Pn−Pnsch = 0 } PV bus

M

Pn =



|Vn ||Vm ||Ynm |cos(γnm−δn + δm) for n = 1, …, N

m=1



|Vn ||Vm ||Ynm |sin(γnm−δn + δm) for n = 1, …, N

m=1

Current loop integral gain Voltage loop proportional gain

kic kpvo

Voltage loop integral gain Frec. rest. proportional gain Frec. rest. integral gain

kivo k pw k iw k pv k iv fc

50 Hz 1500 V 0.1 Ω 1.8 mH 27 μ F 0.1 Ω 1.25 mH 20 40

2.4 × 10−2 4.5 0.02 4 0.2 4 10 kHz

all the DG units; however, the droop characteristics are different for the DG units as shown in Fig. 6. Additionally, the line impedances and the voltage references for the restoration control (|V ∗∗|), are also shown in Fig. 6; the parameters of the line impedances were extracted from [41]. The proportional and integral gains were calculated based on stability constrains. This was performed based on a small-signal analysis previously proposed, and interested readers may refer to [42] in which a small-signal stability analysis is performed for an islanded microgrid. The nonlinear industrial load at bus 12 expressed as [20],

(21)

M

Qn = −

400 V

VDC R11, R12 , R21, R22 , R31, R32 L11, L21, L31 , C11, C21, C31 R13, R23, R33 L12 , L22 , L32 kpc

Switching frequency

where Pn and Qn are the injected active and reactive powers [40], respectively, and they are expressed as,

Value

VLRMS −L f∗

Nominal frequency Nominal DC voltage Filter resistance Filter inductance Filter capacitance Feeder resistance Feeder inductance Current loop proportional gain

Voltage rest. proportional gain Voltage rest. integral gain

(20)

Symbol

(22)

Note that the HCPQ bus can be replaced by Eq. (19) if the DG units are connected to the bus controlled by the secondary voltage control. In order to have a better understating of the power flow method, a flowchart is presented in Fig. 5.

α PL,12 = PL0,12 V12

(23)

QL,12 = QL0,12 V12β

4. Case study system

where α = 0.18, β = 6, kVA.

Fig. 6 shows the single-line diagram of the test system. The microgrid includes 5 DG units and an AC voltage source. The DG units and AC voltage source interact with each other through RL lines and share the AC common bus where the secondary frequency control acts; the secondary voltage control acts at the different PCCs [37]. The microgrid contains linear loads and a voltage-dependent non-linear load connected to the AC common bus. The HCPQ buses represent the DG units, the PQ buses represent the loads, and the PV bus represent the AC voltage source. Table 1 shows the parameters of LC filters, feeders, and primary controls. The case study considers the same PI control gains for

(24) 0 PL,12

= 0.5 p.u.,

0 QL,12

= 0.3 p.u., and Sbase = 10

5. Power flow model evaluation This section presents two evaluation cases of the proposed power flow model for hierarchically controlled islanded microgrids. In the first case, a comparison among the obtained steady-state solutions with the proposed models, and the steady-state solutions obtained with the complete time-domain models using two professional simulators, 32

Electrical Power and Energy Systems 105 (2019) 28–36

G. Agundis-Tinajero et al.

PSCAD and MATLAB/Simulink, is performed. Additionally, presents an analysis of the convergence behavior for different X/R transmission line ratios in resistive microgrids. In order to show the difference among the solutions obtained with the hierarchically-controlled MG and the droop-controlled MG, the second case study presents the differences between the power flow solutions obtained with the hierarchical control (HCPQ bus) and with the primary control (droop bus) against the variation of Load 4. The Load 4 is varied as follows,

PL,4 = PL0,4 (1 + λ )

QL,4 =

PL2,4 PFL2,4

(25)

−PL2,4

(26)

where λ is the loading factor, and PF is the power factor of the load. Additionally, in this case the secondary voltage control reference is 0 |V ∗∗| = 1 for all the DG units, and the nominal bus 4 load is PL,4 = 15 kW with a lagging power factor of 0.89. The power flow equations are solved using the Newton-Raphson method. The MATLAB/Simulink simulations are conducted using the fundamental frequency model, using the ode15s integration method with absolute and relative tolerances of 1× 10−6 . On the other hand, PSCAD enables the switching process of the power electronic interface of the DG units, using an integration time step of 0.05× 10−6 . The studies were performed in a MacBook Pro with a processor of 2.5 GHz Intel Core i5 and 16 GB of RAM. A convergence error tolerance of 1 × 10−8 was used.

Fig. 7. Comparison of the active and reactive powers injected by the DG units given by the power flow method, MATLAB/Simulink and PSCAD in Case I. Table 3 Convergence errors of the Case I.

5.1. Case Study I: meshed multi-bus microgrid Table 2 shows steady-state voltage magnitudes and phase angles given by the power flow solution, MATLAB/Simulink, and PSCAD. Observe that in the worst case, the proposed power flow gives errors of 5.112× 10−6 and 1.581× 10−3 as compared to MATLAB/Simulink and PSCAD, respectively. The errors are due to the different modeling approaches, the time steps, and the integration methods. In the case of PSCAD, the additional active and reactive power losses owing to the harmonic distortion generated by the power electronics inverters of each VSC increase the differences. Fig. 7 shows the active and reactive powers injected by the DG units, computed with the power flow method, MATLAB/Simulink, and PSCAD. The obtained results corroborate the effectiveness of the proposed power flow modeling to represent the hierarchical control of the MG. The salient features of the power flow are the computational speed and convergence rate, in this regard, Table 3 shows its convergence mismatches on three different operation conditions: nominal condition shown in Fig. 6, all loads increased by 50%, and all loads doubled.

Power Flow, P & Q loads increased by 50%

Power Flow, P & Q loads increased by 100%

Iteration

Power Flow, Nominal P & Q loads

1

1.644 × 10−2

2.355 × 10−2

3.061 × 10−2

2

1.449 × 10−3

1.410 × 10−3

1.450 × 10−3

3

4.813 × 10−6

6.830 × 10−6

1.068 × 10−5

4

8.519 × 10−11

1.591 × 10−10

4.207 × 10−10

Notice that the method has a quadratic convergence characteristic even with load increments and achieves the solution, in all cases, in only four iterations and 0.145 s. Table 3 also shows that the Newton-Raphsonbased power flow reduces its convergence rate as the load increases as expected [43]. As is shown in this case studies, the power flow method has a good performance regarding the execution time and convergence rate. Furthermore, the steady-state solution obtained with the proposed power flow model is as good as the one obtained with the professional time-domain simulation programs. To evaluate the convergence characteristic of the proposed power flow in a dominantly resistive MG, the transmission lines parameters of the microgrid of Fig. 6 were changed to reduce their X/R ratio 16 times. Line inductances were reduced four times, and line resistances were increased four times. Under this condition, the Newton-Raphson method converges in 6 iterations with an

Table 2 Case Study I: computed voltages with the proposed power flow method, simulink and PSCAD. Bus

Power Flow (PF)

Simulink (averaged model)

PSCAD (switched model)

Error of PF vs. Simulink

Error of PF vs. PSCAD

1

1.0585268 ∠88.176199°

1.0585276 ∠88.176313°

1.0569459 ∠88.173563°

2.252 × 10−6

1.581 × 10−3

2

1.0585268 ∠88.176199°

1.0585276 ∠88.176313°

1.0569459 ∠88.173563°

2.252 × 10−6

1.581 × 10−3

3

1.05 ∠88.103490°

1.0499999 ∠88.103605°

1.0484303 ∠88.099824°

2.109 × 10−6

1.571 × 10−3

4

1.0430266 ∠88.297780°

1.0430265 ∠88.297838°

1.0414725 ∠88.295259°

1.060 × 10−6

1.554 × 10−3

5

1.0405431 ∠88.483247°

1.0405448 ∠88.483304°

1.0390094 ∠88.486513°

1.990 × 10−6

1.534 × 10−3

6

1.03 ∠88.508686°

1.0300001 ∠88.508744°

1.0284684 ∠88.510806°

1.047 × 10−6

1.532 × 10−3

7

1.0240570 ∠95.913364°

1.0240571 ∠95.913650°

1.0224847 ∠95.918692°

5.112 × 10−6

1.575 × 10−3

8

1.0240570 ∠95.913364°

1.0240571 ∠95.913650°

1.0224847 ∠95.918692°

5.112 × 10−6

1.575 × 10−3

9

1.02 ∠95.463305°

1.0199999 ∠95.463592°

1.0184334 ∠95.467373°

5.110 × 10−6

1.568 × 10−3

10

1 ∠91.212589°

0.9999999 ∠91.212646°

0.9984393 ∠91.212646°

9.998 × 10−7

1.560 × 10−3

11

1.0021472 ∠90.733596°

1.0021462 ∠90.733539°

1.0005936 ∠90.733768°

1.412 × 10−6

1.553 × 10−3

12

1.0110652 ∠89.745931°

1.0110633 ∠89.745989°

1.0095279 ∠89.746447°

2.158 × 10−6

1.537 × 10−3

33

Electrical Power and Energy Systems 105 (2019) 28–36

G. Agundis-Tinajero et al.

Fig. 8. Differences of the steady-state buses voltage magnitudes and phase angles, solving the system with the power flow method using the HCPQ bus and the droop bus, for the bus 4 load variation.

error of 2.2297 × 10−13 , but still preserves its quadratic convergence feature. Additionally, it is worth mentioning that due to the numerical method used to solve the power flow problem is the Newton-Raphson, the microgrid can be meshed, radial, dominantly resistive or inductive [16].

being the droop-based approach the one that has more significant active power injections. Please notice that in the droop control case, the DG units inject more reactive power than in the hierarchically controlled case. This behavior is owing to the lack of voltage regulation, which also causes more power losses. The differences shown in this case study, exhibit the importance of using hierarchically controlled power flow models when the DG units include secondary controls for voltage and frequency restoration. Power flow based analyses are widely used in industry. Therefore, accurate modeling is essential to achieve reliable steady-state solutions. It is demonstrated that the proposed HCPQ bus enhances the reliability of power flow solution of hierarchically controlled islanded microgrids.

5.2. Case Study II: Power flow comparison, HCPQ bus against droop bus Fig. 8 shows the differences between the bus voltages obtained with the proposed HCPQ bus and the droop bus, versus load changes. Notice that the voltage magnitude differences (VHierar −VDroop ) are positive since the voltage drop with the droop-based control is larger in all buses, except bus 10 because it is a PV bus. This behavior is expected since the droop-based control does not restore the voltage deviations. Furthermore, the voltage drops with the droop-based control increase the currents, which provoke an increment of losses as compared with the hierarchical control. On the other hand, the phase angles differences show positive and negative evolutions, which also increase as the load increases. As mentioned before, the reference angle is imposed by the secondary control, therefore, as shown in Fig. 8, the phase angles achieved by the hierarchically controlled MG case are different to those obtained with the droop-based controlled MG case, in which case, a phase angle has to be fixed. Fig. 9 shows the differences between the powers injected by the hierarchically controlled MG and the droop-based controlled MG under variation of the load at bus 4. Observe that for light loads, the injected active powers by both control schemes are close each other; however, for larger loads, the differences increases, except for bus 10 because it is a PV bus. Note that the differences increase considerably for large loads,

6. Conclusion This paper has introduced a methodology to include the hierarchical control of islanded microgrids with a primary droop-based control and a secondary control for frequency and voltage restoration in the wellknown power flow method. The proposed power flow models have been validated against the steady-state solutions of the complete hierarchically controlled microgrid system obtained with two widely accepted time-domain simulators, MATLAB/Simulink, and PSCAD. The obtained results reveal the advantages of the proposed method, such as proper performance regarding the CPU time and quadratic convergence rate, even in dominantly resistive or meshed systems. The solutions computed with the introduced power flow models match with the timedomain steady-state with errors in the worst cases of 5.112× 10−6 and 1.581× 10−3 comparing the proposed approach against Simulink and PSCAD, respectively. The computational time used by the proposed approach was barely 0.145 s. 34

Electrical Power and Energy Systems 105 (2019) 28–36

G. Agundis-Tinajero et al.

Fig. 9. Differences of the steady-state active and reactive power, solving the system with the power flow method using the HCPQ bus and the droop bus, versus load 4 variation.

As an essential advantage, the proposed power flow models do not need a slack bus since the secondary frequency control fixes the phase angle reference, avoiding the use of an adaptive slack bus or the fixing of a phase angle to zero. Furthermore, the second case study showed that the power flow solutions obtained with the hierarchical control (HCPQ bus) differ significantly from the solutions obtained using only the primary control (droop bus). The results obtained with the proposed HCPQ bus correspond to the obtained in practical hierarchically controlled MGs. Therefore, the proposed power flow modeling is an useful and reliable tool for analyzes, planning, design, monitoring and control of microgrids.

[9]

[10]

[11]

[12]

[13]

References

[14] [15]

[1] Chowdhury S, Crossley P. Microgrids and active distribution networks, ser. IET renewable energy series, Institution of Engineering and Technology; 2009. [2] Li C, Chaudhary SK, Savaghebi M, Vasquez JC, Guerrero JM. Power flow analysis for low-voltage ac and dc microgrids considering droop control and virtual impedance. IEEE Trans Smart Grid 2017;8(6):2754–64. [3] Schiffer J, Zonetti D, Ortega R, Stankovic A, Sezi T, Raisch J. A survey on modeling of microgrids - from fundamental physics to phasors and voltage sources, ArXiv, May 2015. [4] Balamurugan K, Srinivasan D. Review of power flow studies on distribution network with distributed generation. In: Power electronics and drive systems (PEDS), 2011 IEEE ninth international conference on; Dec 2011. p. 411–7. [5] Guo X, Lu Z, Wang B, Sun X, Wang L, Guerrero J. Dynamic phasors-based modeling and stability analysis of droop-controlled inverters for microgrid applications. IEEE Trans Smart Grid 2014;5(6):2980–7. [6] Rana M, Xiang W, Wang E. Smart grid state estimation and stabilisation. Int J Elect Power Energy Syst 2018;102:152–9. [7] Aprille T, Trick T. A computer algorithm to determine the steady-state response of nonlinear oscillators. IEEE Trans Circuit Theory 1972;19(4):354–60. [8] Agundis-Tinajero G, Segundo-Ramírez J, Peña-Gallardo R, Visairo-Cruz N, NúñezGutiérrez C, Guerrero JM, et al. Harmonic issues assessment on pwm vsc-based

[16] [17] [18]

[19] [20] [21] [22]

[23]

35

controlled microgrids using newton methods. IEEE Trans Smart Grid 2018;9(2):1002–11. Semlyen A, Medina A. Computation of the periodic steady state in systems with nonlinear components using a hybrid time and frequency domain methodology. IEEE Trans Power Syst 1995;10(3):1498–504. Medina A, Segundo J, Ribeiro P, Xu W, Lian K, Chang G, Dinavahi V, Watson N, et al. Harmonic analysis in frequency and time domain. IEEE Trans Power Del 2013;28(3):1813–21. Arrillaga J, Medina A, Lisboa M, Cavia M, Sanchez P. The harmonic domain. a frame of reference for power system harmonic analysis. IEEE Trans Power Syst 1995;10(1):433–40. Esparza M, Segundo J, Núñez C, Wang X, Blaabjerg F. A comprehensive design approach of power electronic-based distributed generation units focused on powerquality improvement. IEEE Trans Power Del 2017;32(2):942–50. Rico JJ, Madrigal M, Acha E. Dynamic harmonic evolution using the extended harmonic domain. IEEE Trans Power Del 2003;18(2):587–94. Garcia N, Acha E. On the efficient calculation of the periodic steady-state response of grid-connected wind parks part i. IEEE Trans Sustain Energy 2017;8(2):458–67. Peña R, Núñez J, Medina A. Using a newton method and lapack libraries to initialize electromagnetic transient simulations in power systems. Simul Modell Pract Theory 2014;42:12–8. Tinney WF, Hart CE. Power flow solution by newton’s method. IEEE Trans Power Apparatus Syst 1967;PAS-86(11):1449–60. Olivares DE, Mehrizi-Sani A, Etemadi AH, Cañizares CA, Iravani R, Kazerani M, et al. Trends in microgrid control. IEEE Trans Smart Grid 2014;5(4):1905–19. Guerrero JM, Vasquez JC, Matas J, de Vicuna LG, Castilla M. Hierarchical control of droop-controlled ac and dc microgrids: a general approach toward standardization. IEEE Trans Ind Electron 2011;58(1):158–72. Rocabert J, Luna A, Blaabjerg F, Rodriguez P. Control of power converters in ac microgrids. IEEE Trans Power Electron 2012;27(11):4734–49. Vural AM. Interior point-based slack-bus free-power flow solution for balanced islanded microgrids. Int Trans Electr Energy Syst 2016;26(5):968–92. Abdelaziz MMA. Effect of detailed reactive power limit modeling on islanded microgrid power flow analysis. IEEE Trans Power Syst 2016;31(2):1665–6. Abdelaziz MMA, Farag HE, El-Saadany EF, Mohamed YARI. A novel and generalized three-phase power flow algorithm for islanded microgrids using a newton trust region method. IEEE Trans Power Syst 2013;28(1):190–201. Ziouani I, Boukhetala D, Darcherif A-M, Amghar B, Abbassi IE. Hierarchical control for flexible microgrid based on three-phase voltage source inverters operated in

Electrical Power and Energy Systems 105 (2019) 28–36

G. Agundis-Tinajero et al.

2018;PP(99):1. [34] Ren L, Zhang P. Generalized microgrid power flow. IEEE Trans Smart Grid 2018;PP (99):1. [35] Golestan S, Guerrero JM, Vasquez JC. Three-phase plls: a review of recent advances. IEEE Trans Power Electron 2017;32(3):1894–907. [36] Guerrero JM, de Vicuna LG, Matas J, Castilla M, Miret J. A wireless controller to enhance dynamic performance of parallel inverters in distributed generation systems. IEEE Trans Power Electron 2004;19(5):1205–13. [37] Shafiee Q, Guerrero JM, Vasquez JC. Distributed secondary control for islanded microgrids: a novel approach. IEEE Trans Power Electron 2014;29(2):1018–31. [38] Levron Y, Guerrero JM, Beck Y. Optimal power flow in microgrids with energy storage. IEEE Trans Power Syst 2013;28(3):3226–34. [39] Eajal AA, Abdelwahed MA, El-Saadany EF, Ponnambalam K. A unified approach to the power flow analysis of ac/dc hybrid microgrids. IEEE Trans Sustain Energy 2016;7(3):1145–58. [40] Stevenson W, Grainger J. Power System Analysis, ser. McGraw-Hill series in electrical and computer engineering: Power and energy. McGraw-Hill Education (India) Pvt Limited; 2003. [41] Katiraei F, Iravani M. Power management strategies for a microgrid with multiple distributed generation units. IEEE Trans Power Syst 2006;21(4):1821–31. [42] Díaz NL, Coelho EA, Vasquez JC, Guerrero JM. Stability analysis for isolated ac microgrids based on pv-active generators. In: 2015 IEEE energy conversion congress and exposition (ECCE); Sept 2015. p. 4214–21. [43] Parker T, Chua L. Practical numerical algorithms for chaotic systems. New York: Springer; 2012.

parallel. Int J Electr Power Energy Syst 2018;95:188–201. [24] Hirsch A, Parag Y, Guerrero J. Microgrids: a review of technologies, key drivers, and outstanding issues. Renew Sustain Energy Rev 2018;90:402–11. [25] Bidram A, Davoudi A. Hierarchical structure of microgrids control system. IEEE Trans Smart Grid 2012;3(4):1963–76. [26] Simpson-Porco JW, Shafiee Q, Dörfler F, Vasquez JC, Guerrero JM, Bullo F. Secondary frequency and voltage control of islanded microgrids via distributed averaging. IEEE Trans Ind Electron 2015;62(11):7025–38. [27] Elrayyah A, Sozer Y, Elbuluk ME. A novel load-flow analysis for stable and optimized microgrid operation. IEEE Trans Power Del 2014;29(4):1709–17. [28] Mumtaz F, Syed MH, Hosani MA, Zeineldin HH. A novel approach to solve power flow for islanded microgrids using modified newton raphson with droop control of dg. IEEE Trans Sustain Energy 2016;7(2):493–503. [29] Nassar ME, Hamad AA, Salama MMA, El-Saadany EF. A novel load flow algorithm for islanded ac/dc hybrid microgrids. IEEE Trans Smart Grid 2017;PP(99):1. [30] Nassar ME, Salama M. A novel branch-based power flow algorithm for islanded ac microgrids. Electric Power Syst Res 2017;146(Supplement C):51–62. [31] Moradi MH, Foroutan VB, Abedini M. Power flow analysis in islanded micro-grids via modeling different operational modes of dgs: a review and a new approach. Renew Sustain Energy Rev 2017;69(Supplement C):248–62. [32] Allam MA, Said A, Kazerani M. A generic modeling and power-flow analysis approach for isochronous and droop-controlled microgrids. IEEE Trans Power Syst 2018;PP(99):1. [33] Kryonidis GC, Kontis EO, Chrysochos AI, Oureilidis KO, Demoulias CS, Papagiannis GK. Power flow of islanded ac microgrids: Revisited. IEEE Trans Smart Grid

36