1 Introduction

With the progress of economic development and increase in power demand, the electrical power system has also evolved continuously. Accordingly, the demand for new eco-friendly and economically competitive methods of electrical energy production has increased. Thus, renewable energy has recently become a large area of research. Wind is currently the most promising among several green energetic resources. Wind turbine technology has been dominant owing to its favorable technical and economic features.

One of the most commonly used wind turbine generators is a variable-speed wind turbine with a doubly fed induction generator (DFIG). The latter part can be easily connected to the grid as it provides reactive power compensation and excellent speed control [1]. Nevertheless, the continuous integration of wind power energy into the grid might affect the overall behavior of the power system [2]. Inherently, wind power fluctuations could severely alter many aspects of the operation and control of the power system such as small-signal, transient, and voltage stabilities, and frequency control. Moreover, wind power injected into the power system would redistribute the power flow of the synchronous generators (SGs), affecting the primary oscillation modes. Consequently, the power system is subjected to significant interferences and its stability is hardly maintained. Therefore, this issue must be thoroughly examined, particularly for the interconnection of wind farms.

Accordingly, several studies were conducted. Grid connection point, wind power penetration, and control schemes were reported in [3] to study the undesirable effects on the small-signal stability. In the same context, several studies were conducted to investigate the impact of wind power on the stability of the power system [3,4,5]. The authors in [6] studied the influence of the increase in load, the length of transmission lines, and penetration levels of wind energy on the stability of the power system. The impact of large solar and wind power resources on small-signal stability was analyzed in [7]. In [8], the small-signal stability of the Western System Coordinating Council (WSCC) power system associated with a permanent magnet synchronous generator (PMSG)-based wind farm was investigated. The obtained results show that, when the wind farm capacity changes, the type of transmission line between the PMSG-based wind farm and the power grid affects the stability of the system. A comparative analysis of three different types of wind turbines interconnected with the IEEE 9-bus system was performed in [9]. The study based on the analysis of eigenvalues proves that the isolation of the converter reduces the small-signal stability. In [10], the impact of the high penetration of wind energy on the oscillatory stability of the rotor is discussed. This reference shows that an increase in the wind energy penetration enhances the damping of the inter-area oscillations and reduces the weak tie-line stress. The dynamic behavior of DFIG was examined in [11, 12]. These studies focused on the determination of the impact of DFIG on power system dynamics, the response to grid disturbances, and the control strategies to assimilate the behavior of a DFIG to an SG [13, 14].

In [15], the stability issue of the grid for a DFIG-based wind farm was analyzed. The impact of power system stabilizer (PSS) and a static series synchronous compensator (SSSC) on the stability of wind power systems was studied. The investigations performed show that, with the coordinated control of PSS and SSSC, power system oscillations are minimized, whereas transient and small-signal stabilities are enhanced. Furthermore, the capabilities of an SG and DFIG under extreme disturbances are intensified. The influence of a DFIG-based wind turbine on the rotor angle stability was reported in [16]. A control strategy for both DFIG rotor-side converter (RSC) and grid-side converter (GSC) was proposed to mitigate the impact of DFIG on the system stability. The GSC control scheme is analogous to a static compensator. The latter part provides reactive power support during grid faults. Moreover, the PSS was implemented in the reactive power control loop of DFIG-RSC to enhance the rotor angle stability. These propositions were verified using an IEEE 9-bus test system during both small and large disturbances. In [17], the authors proposed a predictive control scheme to enhance the stability of the modified IEEE 39-bus test system along with a DFIG-based wind farm considering both the supercapacitor energy storage system and SSSC. The PSS and SSSC controllers ensure the minimization of the power system oscillations. However, if these oscillations are not controlled, they might lead to deviations in the speed and angle of the rotor and variations of the tie-line flow of the power. The impact of a DFIG-based wind turbine generator on transient and small-signal stabilities was examined in [18]. Numerical simulations prove that the integration of DFIG improves the transient and small-signal stabilities. Moreover, the presence of PSS in both DFIG and SG reduces the oscillation and improves the damping torque. The authors in [19] proposed a simple and systematic approach to investigate the impact of DFIG integration on the stability of the power system using damping ratio sensitivity to inertia. The impact of this approach could be positive or negative depending on the location of the DFIG. The negative impact might be improved using power oscillation dampers. Diverse issues related to the integration of DFIG into the power system were surveyed in [20].

The aforementioned overviews mainly focused on the analysis of transient and small-signal stabilities with the integration of DFIG-based wind farms for a single-machine infinite-bus system. However, less attention was paid to multi-machine systems. Moreover, for automatic voltage regulator (AVR) and PSS controllers, the most commonly used types are the IEEE type 1 for the AVR and the lead-lag-based structure for the PSS. However, other existing types could provide better results in terms of damping of power oscillations.

The investigations in this study are performed on a multi-machine system using combinations of several types of AVR and PSS controllers. The impact of DFIG on the small-signal stability of an IEEE 39-bus power system with and without controllers is verified. The impact of replacing the conventional SGs with equivalent DFIG wind farms on the oscillation modes of the power system and their damping characteristics are analyzed. Different types of AVR and PSS controllers are considered and the best combination that improves the stability of the power system in the presence of wind farms is selected.

2 Small-signal stability analysis

The stability of an electric power system is defined as its ability to maintain an equilibrium state both under normal conditions and when subjected to a physical disturbance. Small-signal rotor angle stability is defined as the ability of a power system to remain in synchronism mode under small load variations or decoupled generators. In this case, the disturbances are considered sufficiently small to linearize the system equations. The instability results in rotor oscillations with increased amplitude owing to the lack of damping torque and an aperiodic mode resulting from the lack of synchronizing torque.

2.1 Oscillatory modes

Small-signal stability analysis is substantial for electromechanical oscillation modes. It concerns individual generator rotor or generator groups swinging against each other. Electromechanical oscillation modes might be classified into inter-area modes with a frequency range from 0.16 to 0.7 Hz and local-area modes with a frequency range from 0.7 to 2 Hz [21].

To achieve small-signal stability, these modes should be properly damped. The integration of control devices such as AVR and PSS is of great importance for the damping of these modes. This can be evaluated using eigenvalue analysis.

2.2 Eigenvalue computation

The behavior of a dynamical system is given by:

$$\left\{ {\begin{array}{l} {\dot{{\varvec{x}}} = {\varvec{f}}({\varvec{x}},{\varvec{z}},{\varvec{u}})}\\ {{\mathbf{0}} = {\varvec{g}}({\varvec{x}},{\varvec{z}},{\varvec{u}})} \end{array}} \right.$$
(1)

where \({\varvec{x}}=[ x_1, x_2, ..., x_n ]\) is the state vector of the system, n is the order of the system; \({\varvec{z}}\) is the vector of algebraic output variables (i.e. \({\varvec{V}}\) and \({\varvec{\theta }}\)); and \({\varvec{u}}\) is the vector of algebraic input variables. The linearization of (1) is an important step to study the power system response under small variations. At equilibrium, all state derivatives are null. The differential equations are arranged in a state-space form and the resulting linear system is given as:

$$\left\{ {\begin{array}{l} {\Delta \dot{{\varvec{x}}} = {\varvec{A}} \Delta {\varvec{x}} + {\varvec{B}} \Delta {\varvec{z}}}\\ {{\mathbf{0}} = {\varvec{C}} \Delta {\varvec{x}} + {\varvec{D}} \Delta {\varvec{z}}} \end{array}} \right.$$
(2)

where \({\varvec{A}}\), \({\varvec{B}}\), \({\varvec{C}}\), \({\varvec{D}}\) are the state, input, output and coefficient matrices, respectively.

For the perturbation model of the small signal, \(\Delta {\varvec{x}}\) and \(\Delta {\varvec{z}}\) are given by:

$${\left\{ \begin{array}{l} \Delta {\varvec{x}} = \left[ {\Delta {\varvec{\delta }} } \quad {\Delta {\varvec{\omega }} } \quad {\Delta {\varvec{e}}} \right] ^{{{\mathrm {T}}}} \\ \Delta {\varvec{z}} = \mathrm{{ }}\left[ {\Delta {{\varvec{\theta }} _1}} \quad {\Delta {{\varvec{\theta }} _2}} \quad {\Delta {{\varvec{\theta }} _3}} \quad {\Delta {{\varvec{V}}_1}} \quad {\Delta {{\varvec{V}}_2}} \quad {\Delta {{\varvec{V}}_3}} \right] ^{\mathrm {T}} \end{array}\right. }$$
(3)

where \({\Delta {\varvec{\delta }} }\) and \({\Delta {\varvec{\omega }} }\) are the vectors of variation of rotor angluar position and rotor speed of SGs, respectively; \({\Delta {\varvec{e}}}\) is the vector of other state variables of SGs; \({\Delta {{\varvec{\theta }} _1}}, {\Delta {{\varvec{\theta }} _2}}\) and \({\Delta {{\varvec{\theta }} _3}}\) are the vectors of variation of SGs voltage phase; and \({\Delta {{\varvec{V}}_1}}, {\Delta {{\varvec{V}}_2}}\) and \({\Delta {{\varvec{V}}_3}}\) are the vectors of variation of SGs voltage amplitude.

Laplace transform is subsequently applied to (3) and the linearized state equation is computed. Finally, by solving (4), the eigenvalues \({\lambda _i}\) are obtained.

$$\det ({\varvec{A}}- \lambda _i {\varvec{I}} ) = 0$$
(4)

where \({\varvec{I}}\) is the identity matrix. The damping ratio \({\zeta _i}\) and the oscillation frequency \(f_i\) for each mode i are computed from

$$\left\{{\begin{array}{l} {\lambda _i} = {\sigma _i} \pm {{\mathrm {j}}}{\omega _i}\\ {\zeta _i} = \frac{{ - {\sigma _i}}}{{\sqrt{\sigma _i^2 + \omega _i^2} }}\\ {f_i} = \frac{{{\omega _i}}}{{2\pi }} \end{array}} \right.$$
(5)

The analysis of eigenvalues allows us to draw conclusions about the stability of the system. Real eigenvalues are related to the non-oscillatory mode, whereas complex eigenvalues are related to the oscillatory mode. Indeed, the negative real parts of eigenvalues denote that the systems are stable. A low positive value of damping ratio denotes that the system is stable but sensitive to instability compared with other systems with higher damping ratios. Thus, eigenvalues with the lowest damping ratios are considered for the small-signal stability analysis.

3 DFIG

The commonly used structure of a variable-speed wind turbine based on DFIG is illustrated in Fig. 1. The steady-state electrical equations of the DFIG are given as [22]:

  1. 1)

    Stator voltage equation

    $$\left\{ {\begin{array}{l} {v_{ds}} = - {R_s}{i_{ds}} + \left( {{x_s} + {x_m}} \right) {i_{qs}} + {x_m}{i_{qr}}\\ {v_{qs}} = - {R_s}{i_{qs}} + \left( {{x_s} + {x_m}} \right) {i_{ds}} + {x_m}{i_{dr}} \end{array}} \right.$$
    (6)
  2. 2)

    Rotor voltage equation

    $$\left\{ { \begin{array}{l} {v_{dr}} = - {R_r}{i_{dr}} + \left( {1 - \omega _m } \right) \left[ {\left( {{x_r} + {x_m}} \right) {i_{qr}} + {x_m}{i_{qs}}} \right] \\ {v_{qr}} = - {R_r}{i_{qr}} + \left( {1 - \omega _m } \right) \left[ {\left( {{x_r} + {x_m}} \right) {i_{dr}} + {x_m}{i_{ds}}} \right] \end{array}} \right.$$
    (7)

where \(v_{ds}\) and \(v_{qs}\) are the dq-axes stator voltages; \(i_{ds}\) and \(i_{qs}\) are the dq-axes stator currents; \(v_{dr}\) and \(v_{qr}\) are the dq-axes rotor voltages; \(i_{dr}\) and \(i_{qr}\) are the dq-axes rotor currents; \(R_s\) and \(R_r\) are the stator and rotor resistances; \(x_s\), \(x_r\), \(x_m\) are the stator and rotor self-reactances and mutual reactance, respectively; and \(\omega _m\) is the relative rotor speed.

Fig. 1
figure 1

Wind energy conversion system (WECS) using DFIG structure

The active and reactive powers (P and Q) injected into the grid depend on the stator currents and the grid-side currents (\(i_{dg}\) and \(i_{qg}\)) of the converter. These currents are given by:

$$\begin{aligned} \begin{aligned} \left\{ {\begin{array}{l} P = {v_{ds}}{i_{ds}} + {v_{qs}}{i_{qs}} + {v_{dg}}{i_{dg}} + {v_{qg}}{i_{qg}}\\ Q = {v_{qs}}{i_{ds}} - {v_{ds}}{i_{qs}} + {v_{qg}}{i_{dg}} - {v_{dg}}{i_{qg}} \end{array}}\right. \end{aligned} \end{aligned}$$
(8)

where \(v_{dg}\) and \(v_{qg}\) are the grid-side voltages.

These equations can be rewritten using the power equations of the converter, as shown below. The powers of the converter on the grid side are given by:

$$\begin{aligned} \begin{aligned} \left\{ {\begin{array}{l} {P_g} = {v_{dg}}{i_{dg}} + {v_{qg}}{i_{qg}}\\ {Q_g} = {v_{dg}}{i_{dg}} - {v_{dg}}{i_{qg}} \end{array}}\right. \end{aligned} \end{aligned}$$
(9)

whereas, on the rotor side, they are given by:

$$\begin{aligned} \begin{aligned} \left\{ {\begin{array}{l} {{\mathop {P}\nolimits } _r} = {v_{dr}}{i_{dr}} + {v_{qr}}{i_{qr}}\\ {Q_r} = {v_{qr}}{i_{dr}} - {v_{dr}}{i_{qr}} \end{array}}\right. \end{aligned} \end{aligned}$$
(10)

Assuming a lossless converter model and a unity power factor on the converter grid side:

$$\left\{ {\begin{array}{l} {{P_g} = {P_r}}\\ {{Q_g} = 0} \end{array}} \right.$$
(11)

Therefore, the powers injected into the grid are obtained as:

$$\left\{ {\begin{array}{l} P= {v_{ds}}{i_{ds}} + {v_{qs}}{i_{qs}} + {v_{dr}}{i_{dr}} + {v_{qr}}{i_{qr}}\\ Q= {v_{qs}}{i_{ds}} - {v_{ds}}{i_{qs}} \end{array}}\right.$$
(12)

The effects of wind penetration on this system are examined by replacing one of the SGs at a time with an equivalent wind farm of the same power capacity. The DFIG-based wind turbine connection in power system analysis foolbox (PSAT) is shown in Fig. 2. The wind speed model associated with the DFIG is the Weibull distribution [23], as illustrated in Fig. 3.

Fig. 2
figure 2

Wind farm connection system in PSAT

Fig. 3
figure 3

Weibull distribution wind speed

Fig. 4
figure 4

IEEE 39-bus test system in PSAT

4 Test system description

4.1 System characteristics

The 39-bus system shown in Fig. 4 is used for the small-signal stability analysis associated with DFIG. This system consists of 39 buses with 10 SGs, 12 transformers, 34 transmission lines and 19 loads. The total active and reactive powers in the basic configuration are 6145.97 MW and 1363.41 Mvar, respectively. The voltage levels of the test system are 20 kV, 115 kV and 345 kV indicated in Fig. 4 with red, blue and black colors, respectively. The numerical investigations were performed using PSAT MATLAB/Simulink and Simulation tools used for power system analysis [24]. All the data used for the implementation of the system in PSAT are given in [25].

4.2 Dynamic modeling

In this section, the dynamic models of SGs, exciters, and power stabilizers for the IEEE 39-bus system are described.

4.2.1 Generators

The link between the network phasors and the SG voltages is given by:

$$\left\{ {\begin{array}{l} {v_d} = V\sin (\delta - \theta )\\ {v_q} = V\cos (\delta - \theta ) \end{array}}\right.$$
(13)

where \(v_d\) and \(v_q\) are the dq-axes voltages; \(\delta\) and is the rotor angular position; and \(\theta\) is the phase voltage.

The expressions of dq-axes currents depend on the chosen model. In this study, a fourth-order model is adopted where \(\delta ,\;\omega ,\;e_d'\) and \(e_q'\) are the state variables. Lead-lag transfer functions are used to model the dq-axes inductances. The differential algebraic equations (DAEs) are given by:

$$\begin{aligned} \begin{aligned} \left\{ {\begin{array}{l} \frac{{{{\mathrm {d}}}\delta }}{{{\mathrm {d}t}}}={\varOmega _b}(\omega - 1)\\ \frac{{{{\mathrm {d}}}\omega }}{{{\mathrm {d}t}}} = [{p_{m}} - {p _{e}} - D(\omega - 1)]/M\\ \frac{{{{\mathrm {d}}} e_q'}}{{{\mathrm {d}t}}} = [ - {f_s}e_{q}' - ({x_{d}} - x_{d}'){i_{d}} + v_f^*]/T_{d0}'\\ \frac{{{{\mathrm {d}}} e_d'}}{{{\mathrm {d}t}}} = [ - e_{d}' + ({x_{q}} - x_{q}'){i_{q}}]/T_{q0}' \end{array}}\right. \end{aligned} \end{aligned}$$
(14)

where \(i_{d}\) and \(i_{q}\) are the dq-axes currents; \(e'_d\) and \(e'_q\) are the dq-axes transient voltages; \(x_{d}\) and \(x_{q}\) are the dq-axes synchronous reactances; \(x'_{d}\) and \(x'_{q}\) are the dq-axes transient reactances; \(T'_{d0}\) and \(T'_{q0}\) are the dq-axes open-circuit time constants; D is the damping coefficient; \(M=2H\) is the mechanical starting time, H is the inertia constant; \(\omega\) is the rotor speed; \({\varOmega _b}\) is the relative rotor speed; \(f_s\) is the frequency rating; and \({v_f^*}\) is the modified field voltage.

The electrical power \(p_e\) and the field voltage are defined as follows:

$$\begin{aligned} {p_{e}}= & {} ({v_{q}} + {r_a}{i_{q}}){i_{q}} + ({v_{d}} + {r_a}{i_{d}}){i_{d}} \end{aligned}$$
(15)
$$\begin{aligned} v_f^*= & {} {v_f} + {K_\omega }(\omega - 1) + {K_p}({P_m} - P({\varvec{x}},{\varvec{V}},{\varvec{\theta }} )) \end{aligned}$$
(16)

where \(P_{m}\) is the mechanical power; \({r_{a}}\) is the armature resistance; \(v_f\) is the field voltage; P is the active power produced by the machine; and \(K_{\omega }\) and \(K_p\) are the speed and active power feedback gains. The voltage and current relationships are described by the following equations:

$$\begin{aligned} \begin{aligned} \left\{ {\begin{array}{l} {0 = {v_d} + {r_a}{i_d} - {e_{d}'} - ({x_{q}'} - {x_l}){i_q}}\\ {0 = {v_q} + {r_a}{i_q} - {e_{q}'} + ({x_{d}'} - {x_l}){i_d}} \end{array}} \right. \end{aligned} \end{aligned}$$
(17)

where \({x_{l}}\) is the leakage reactance.

Considering (14) to (17), the electrical power is obtained as:

$$\begin{aligned} {p_e} = ({e'_q}- {x'_d}{i_d}){i_q} + ({e'_d} + {x'_q}{i_q}){i_d} \end{aligned}$$
(18)

The DAEs for each machine are thus expressed as:

$$\begin{aligned} \begin{aligned} \left\{ {\begin{array}{l} \frac{{{{\mathrm {d}}} \delta _i }}{{{\mathrm {d}t}}}={\varOmega _b}(\omega _i - 1)\\ \frac{{{{\mathrm {d}}}{\omega _i}}}{{{\mathrm {d}t}}} = \frac{{{p_{mi}}}}{{{M_i}}} - {\frac{{{{e}_{qi}'} - {{x}_{di}'}{i_{di}}}}{{{M_i}}}} {i_{qi}} - {\frac{{{{e}_{di}'} + {x_{qi}'}{i_{qi}}}}{{{M_i}}}} {i_{di}} - \frac{{{D_i}({\omega _i} - 1)}}{{{M_i}}}\\ \frac{{{{\mathrm {d}}}{e_{qi}'}}}{{{\mathrm {d}t}}} = - \frac{{{f_s}e_{qi}}'}{{{T_{d0i}'}}} - \frac{{{x_{di}} - x_{di}'}}{{{T_{d0i}'}}}{i_{di}} + \frac{{v_{fi}^*}}{{{T_{d0i}'}}} \\ \frac{{{{\mathrm {d}}}{e_{di}'}}}{{{\mathrm {d}t}}} = - \frac{{{{e}_{di}'}}}{{{{T}_{q0i}'}}} + \frac{{{i_{qi}}}}{{{{T}_{q0i}'}}}({x_{qi}} - x_{qi}') \\ \end{array}}\right. \end{aligned} \end{aligned}$$
(19)

The linearization of the differential system (19) yields:

$$\begin{aligned} \left\{ {\begin{array}{l} {\frac{{\mathrm {d}\Delta {\delta _i}}}{{{\mathrm {d}t}}} = {\varOmega _b}\Delta {\omega _i}} \\ \frac{{\mathrm {d}\Delta {\omega _i}}}{{{\mathrm {d}t}}} = \frac{1}{{{M_i}}}\Delta {p_{mi}} - \frac{{{{e}_{qi0}'}}}{{{M_i}}}\Delta {i_{qi}} + \frac{{{{x}_{di}'}{i_{di0}}}}{{{M_i}}}\Delta {i_{qi}} + \frac{{{{x}_{di}'}{i_{qi0}}}}{{{M_i}}}\Delta {i_{di}}-\frac{{{i_{qi0}}}}{{{M_i}}}\Delta {{e}_{qi}'} \\\quad\quad - \frac{{{i_{di0}}}}{{{M_i}}}\Delta {{e}_{di}'} -\frac{{{{e}_{di0}'}}}{{{M_i}}}\Delta {i_{di}}- \frac{{{{x}_{qi}'}{i_{qi0}}}}{{{M_i}}}\Delta {i_{di}} -\frac{{{{x}_{qi}'}{i_{di0}}}}{{{M_i}}}\Delta {i_{qi}} - \frac{{{D_i}}}{{{M_i}}}\Delta {\omega _i} \\ {\frac{{\mathrm {d}\Delta {e_{q{i }}'}}}{{\mathrm {d}t}} = - \frac{{{f_s} \Delta {e_{q{i }}'}}}{{{{T}_{d0i}'}}} - \frac{{{x_{di}} - {x_{d{i }}'}}}{{{{T}_{d0i}'}}}\Delta {i_{di}} + \frac{{\Delta v_{fi}^*}}{{{{T}_{d0i}'}}}} \\ {\frac{{\mathrm {d}\Delta {{e}_{di}'}}}{{\mathrm {d}t}} = - \frac{{ \Delta {{e}_{di}'}}}{{{{T}_{q0i}'}}} + \frac{{\Delta {i_{qi}}}}{{{{T}_{q0i}'}}}({x_{qi}} - {{x}_{qi}'})} \\ \end{array}} \right. \end{aligned}$$
(20)

Writing (20) in matrix notation, we obtain the state matrix \({\varvec{A}}\) as follows:

$$\begin{aligned} \left[\begin{array}{l} \Delta {{\dot{\delta }}_i} \\\Delta{{\dot{\omega }}_i} \\ \Delta {\dot{e}}'_{qi} \\ \Delta{\dot{e}}'_{di} \\ \end{array} \right] = \underbrace{\left[{\begin{array}{cccc} 0&\quad {{\varOmega _b}}&\quad 0&\quad 0 \\0&\quad {-\frac{{{D_i}}}{{{M_i}}}}&\quad {-\frac{{{i_{qi0}}}}{{{M_i}}}}&\quad {-\frac{{{i_{di0}}}}{{{M_i}}}} \\0&\quad \frac{{{K_\omega}}}{{T'_{d0i}}}&\quad {-\frac{{{f_s}}}{{T'_{d0i}}}}&\quad 0 \\0&\quad 0&\quad 0&\quad {- \frac{1}{{T'_{q0i}}}} \end{array}} \right] }_{\varvec{A}}\left[ \begin{array}{l} \Delta {\delta _i} \\ \Delta {\omega _i} \\ \Delta {e'_{qi}} \\ \Delta {e'_{di}} \\ \end{array} \right] \quad 1 \le i \le 10 \end{aligned}$$
(21)

As already mentioned, each SG is defined by four state variables; thus, for a power system with 10 SGs, the dimensions of the state matrix \({\varvec{A}}\) are \(40 \times 40\).

4.2.2 AVR

It defines the primary voltage regulation of the SG. AVR measures the bus terminal voltage of the machine, compares it with the reference voltage, and then uses the error signal to modify the field voltage of the rotor. In this work, three types of AVRs are considered. The best amongst them is then chosen based on a comparative study.

  1. 1)

    AVR type 1

    The structure of this AVR type is depicted in Fig. 5a and is expressed by:

    $$\begin{aligned} \begin{aligned} \left\{ \begin{array}{l} {{\dot{v}}_m} = \frac{V - {v_m}}{T_r}\\ {{\dot{v}}_{r1}} = \frac{1}{T_1}\left[ {\mu _0}\left( 1 - \frac{{{T_2}}}{{{T_1}}}\right) \left( {v_{ref}} - {v_m}\right) - {v_{r1}}\right] \\ {{\dot{v}}_{r2}} = \frac{1}{T_4}\left[ \left( 1 - \frac{{{T_3}}}{{{T_4}}}\right) ({v_{r1}} + {\mu _0}\frac{{{T_2}}}{{{T_1}}}({v_{ref}} - {v_m}) - {v_{r2}}\right] \\ v_r^* = {v_{r2}} + \frac{{{T_3}}}{{{T_4}}}\left[ {v_{r1}} + {\mu _0}\frac{{{T_2}}}{{{T_1}}}({v_{ref}} - {v_m}) - {v_{r1}}\right] \\ {{\dot{v}}_f} =-\frac{1}{T_e}[v_f(1+S_e(v_f))-v_r] \end{array} \right. \end{aligned} \end{aligned}$$
    (22)

    where \(v_{ref}\) is the reference voltage of the AVR; \(v_m\), \(v_r\) and \(v_f\) are the outputs of the measurement circuit, AVR, and excitation system stabilizer (feedback), respectively; \(\mu _0\) is the regulator gain; \(T_1, T_2, T_3\) and \(T_4\) are the AVR time constants; \(T_e\) and \(T_r\) are the field circuit and measurement time constants, respectively; \(v_{r,\mathrm{min}}\) and \(v_{r,\mathrm{max}}\) are the lower and upper limits of \(v_r\) (the exciter ceiling voltages), respectively; \(v_{r1}\) and \(v_{r2}\) are the amplifier state variable and stabilizer state variable; and \(S_e\) is the saturation function of the exciter defined as:

    $$\begin{aligned} \begin{aligned} \begin{array}{l} {S_e}({v_f}) = {A_e}({{\mathrm {e}}^{{B_e}\left| {{v_f}} \right| }} - 1) \end{array} \end{aligned} \end{aligned}$$
    (23)

    where \(A_e\) and \(B_e\) are constants chosen to match the open-circuit magnetization curve at two points, usually \({v_{f,\max }}\) and 0.75 \({v_{f,\max }}\) [24, 26].

  2. 2)

    AVR type 2

    This excitation model is expressed by the following equations:

    $$\begin{aligned} \begin{aligned} \left\{ {\begin{array}{l} \frac{{{{\mathrm {d}}}{v_{r1}}}}{{{\mathrm {dt}}}} = \frac{1}{T_a}\left[ {K_a}\left( {v_{ref}} - {v_m} - {v_{r2}} - \frac{{{K_f}}}{{{T_f}}}{v_f}\right) - {v_{r1}}\right] \\ \frac{{{{\mathrm {d}}}{v_m}}}{{{\mathrm {dt}}}} = \frac{V - {v_m}}{T_r} \\ \frac{{{{\mathrm {d}}}{v_f}}}{{{\mathrm {dt}}}} = - \frac{1}{T_e}\left[ {v_f}(1 + {S_e}({v_f})) - {v_r}\right] \\ \frac{{{{\mathrm {d}}}{v_{r2}}}}{{{\mathrm {dt}}}} = - \frac{1}{T_f}\left( \frac{{{K_f}}}{{{T_f}}}{v_f} + {v_{r2}}\right) \end{array}}\right. \end{aligned} \end{aligned}$$
    (24)

    where \(K_a\), \(K_f\), \(T_f\) are the amplifier gain, stabilizer gain and stabilizer time constant.

    Its structure is depicted in Fig. 5b.

  3. 3)

    AVR type 3

    The last type of AVR is shown in Fig. 5c and its descriptive equations are given as:

    $$\begin{aligned} \begin{aligned} \left\{ \begin{array}{l} {{\dot{v}}_m} = \frac{V - {v_m}}{T_r}\\ {{\dot{v}}_{r}} = \frac{1}{T_2}\left[ {\mu _0}\left( 1 - \frac{{{T_1}}}{{{T_2}}}\right) ({v_{ref}} - {v_m}) - {v_{r}}\right] \\ {{\dot{v}}_f} =\frac{1}{T_e}\left[ \left( v_r+{\mu _0}\frac{{{T_1}}}{{{T_2}}}(v_{ref}-v_m)+v_{f0}\right) \frac{V}{V_0}-v_f\right] \end{array} \right. \end{aligned} \end{aligned}$$
    (25)

    where \(v_{f0}\) is the initial field voltage; and \(V_0\) is the bus voltage offset.

Fig. 5
figure 5

Different AVR types

4.2.3 PSS

They are supplementary control devices installed at the generator excitation systems. Their main function is to improve the stability by damping power system oscillations [27]. Three PSS types are considered in this study. The best type among them is chosen using the following tests.

  1. 1)

    PSS type 1

    The first PSS type depicted in Fig. 6a is expressed by the following equations:

    $$\begin{aligned} \begin{aligned} \left\{ \begin{array}{l} {{\dot{v}}_1} = - ({K_\omega }\omega + {K_p}{P_g} + {K_v}{V_g} + {v_1})/{T_\omega }\\ {{\dot{v}}_s} = ({K_\omega }\omega + {K_p}{P_g} + {K_v}{V_g} + {v_1} - {v_s})/{T_e} \end{array} \right. \end{aligned} \end{aligned}$$
    (26)

    where \(v_1\) and \(v_s\) are the washout circuit and PSS output signals, respectively; \(P_g\) and \(V_g\) are the active power and voltage magnitude of the SG to which the PSS is connected, respectively; \(K_v\) is the voltage gain; and \(T_{\omega }\) and \(T_e\) are the wash-out and anti-windup limiter time constants, respectively.

  2. 2)

    PSS type 2

    The second type of PSS shown in Fig. 6b is expressed by the following equations:

    $$\begin{aligned} \begin{aligned} \left\{ \begin{array}{l} {{\dot{v}}_1} = - \frac{{K_\omega }V_{SI} +v_1}{T_\omega }\\ {{\dot{v}}_2} = \frac{1}{T_2}\left[ \left( 1-\frac{T_1}{T_2}\right) \left( {K_\omega }V_{SI}+v_1\right) -v_2\right] \\ {{\dot{v}}_3} = \frac{1}{T_4}\left\{ \left( 1-\frac{T_3}{T_4}\right) \left[ v_2+\frac{T_1}{T_2}(K_{\omega }V_{SI}+v_1)\right] -v_3\right\} \\ {{\dot{v}}_s} = \frac{1}{T_e}\left\{ v_3+\frac{T_3}{T_4}\left[ v_2+\frac{T_1}{T_2}({K_\omega }V_{SI}+v_1)\right] -v_s\right\} \end{array} \right. \end{aligned} \end{aligned}$$
    (27)

    where \(V_{SI}\) is the power system stabilizer input signal.

  3. 3)

    PSS type 3

    The third type of PSS presented in Fig. 6c is expressed by the following equations:

    $$\begin{aligned} \begin{aligned} \left\{ \begin{array}{l} {{\dot{v}}_1} = - \frac{{K_\omega }V_{SI} +v_1}{T_\omega }\\ {{\dot{v}}_2} =\frac{1}{T_4}v_3+\frac{1}{T_4}\left( T_1-T_2\frac{T_3}{T_4}\right) \left( {K_\omega }V_{SI}+v_1\right) \\ {{\dot{v}}_3} = -v_2-\frac{T_2}{T_4}v_3+\left[ 1-\frac{T_3}{T_4} -\frac{T_2}{T_4}\left( T_1-T_2\frac{T3}{T4}\right) \right] (K_{\omega }V_{SI}+v_1)\\ {{\dot{v}}_s} = \frac{1}{T_e}\left[ v_2+\frac{T_3}{T_4}({K_\omega }V_{SI}-v_1)-v_s\right] \end{array} \right. \end{aligned} \end{aligned}$$
    (28)
Fig. 6
figure 6

Different PSS types

5 Results and discussion

5.1 Test scenarios

Five different scenarios were considered in this study.

  1. 1)

    Case 1: all the power system generators are equivalent to SGs without any control devices.

  2. 2)

    Case 2: different combinations of AVR and PSS types are integrated in the SGs. The combination yielding the best results in terms of the damping of rotor angle oscillations is chosen.

  3. 3)

    Case 3: one of the SGs is replaced by a DFIG of the same power capacity and the remaining SGs are operated without controllers.

  4. 4)

    Case 4: one of the SGs is replaced by a DFIG and the remaining SGs are equipped with the chosen combination of AVR and PSS.

  5. 5)

    Case 5: two SGs are replaced by two DFIGs at bus 34 and bus 39.

5.2 Case 1

The small-signal stability analysis is performed for the considered system by adopting the first scenario and eigenvalues are extracted. Among these values, 37 have negative real parts, two are null (represented by green circle), and one has a positive real part (represented by red star) as shown in Fig. 7. These results demonstrate that the system is unstable as an eigenvalue with a positive real part exists and contributes to a negative damping ratio. The system oscillatory modes, oscillation frequency, damping ratio, and other associated states are summarized in Appendix A Table A1. Based on the oscillation frequency, the dynamic modes are classified as follows:

  1. 1)

    Modes 1 to 8 correspond to a local area mode with a frequency range 0.95934–1.49 Hz.

  2. 2)

    Mode 9 corresponds to an inter-area mode with a frequency equal to 0.63033 Hz.

  3. 3)

    Mode 10 corresponds to an eigenvalue with a positive real part. Therefore, this mode is linearly unstable.

Fig. 7
figure 7

Eigenvalue plot for case 1

5.3 Case 2

The voltage magnitude of the power system is adjusted through the addition of the excitation control system (AVRs) providing good reaction over the terminal voltage of the SGs. Consequently, the generator damping torque will be reduced at the grid oscillation frequencies. This problem can be resolved by inserting a PSS loop into the excitation system. Therefore, all the power system SGs should be equipped with AVR and PSS. The performances of three different AVR and PSS combinations were examined and compared based on the maximum rotor angle deviation and the oscillation period. A three-phase short-circuit fault disturbance appears at bus 2 at \(t=2\) s and lasts for 0.2 s. The transient response of the SG rotor angle for different AVR and PSS types is depicted in Fig. 8.

Fig. 8
figure 8

Transient response of SG rotor angle \(\delta _{ref}-\delta _2\) against a three-phase fault under different combinations of AVR and PSS types

This figure indicates that the oscillations are damped out quickly from the case of AVR type 1 and type 3 to the case of AVR type 2 for different PSS models. Comparing Fig. 8a, b, and e, we conclude that AVR type 3 shows the lowest rotor angle deviation value for all PSS models. The summary of maximum rotor angle deviation rate (MRADR) and oscillation period for different AVR and PSS models is provided in Table 1. MRADR is defined as:

$$\begin{aligned} \begin{aligned} MRADR={\frac{|D_{ref}-D_{con}|}{D_{ref}}}\times 100\% \end{aligned} \end{aligned}$$
(29)

where \(D_{ref}\) and \(D_{con}\) are the maximum rotor angle deviation under normal condition and fault condition with SG controllers.

Table 1 Error rates of different AVR and PSS types

Table 1 demonstrates that the combination of AVR type 3 and PSS type 1 yields the best oscillation damping results within the lowest period. Therefore, this controller combination is applied to all power system SGs for the following cases.

The eigenvalues plot for this case is shown in Fig. 9a and different network oscillatory mode characteristics are tabulated in Appendix A Table A1. The obtained results prove that the power system becomes stable when using AVRs and PSSs providing the best damping and an increased oscillation frequency for different modes compared with the first case. Thus, the oscillatory modes for case 2 are classified as follows: \(\textcircled {1}\) modes 1–8 correspond to a local area mode; \(\textcircled {2}\) mode 9 corresponds to an inter-area mode.

As shown in Fig. 9, for the initial operation condition, the power system is transiently unstable when it is subjected to a three-phase short-circuit fault. However, with the integration of controller devices, rotor angle transient oscillations are eliminated. Moreover, the voltage and active power at bus 2 remain within tolerable limits after the fault becomes cleared for case 2, thus preserving the stability of the system, reinforcing the eigenvalue results obtained in Fig. 9a.

Fig. 9
figure 9

Small-signal and transient responses of IEEE 39-bus system subject to a three-phase short-circuit fault for cases 1 and 2

5.4 Case 3

The SGs are replaced one at a time by a DFIG and only four cases with reference to DFIG power rates are presented. Figure 10 shows the system eigenvalues plots for each case. The results reveal that the replacement of SG by DFIG affects the power system stability. This conclusion is drawn from the positive real parts of eigenvalues, which contributes to a negative damping ratio. The oscillatory characteristics of the inter-area modes are provided in Appendix A Table A2. From this table, we conclude that wind energy penetration has a considerable impact in reducing the damping ratio, oscillation frequency, and mode characteristics change. Figure 11 shows the transient response of the power system to a three-phase short-circuit fault in the presence of DFIG. These plots prove that the negative effect of high-level wind generation results in a loss of synchronism for all cases. It can be concluded that the transient stability performance of SGs worsens as the share of power generation increases.

Fig. 10
figure 10

Eigenvalues plots for cases 3 and 4

5.5 Case 4

As observed in the preceding case, the integration of wind power in the test system exhibits a critical unstable condition owing to low damping. Thus, the addition of the chosen AVR and PSS controllers to the SGs provides better damping and stabilizes the system in the presence of a wind generator. Figure 10 illustrates the eigenvalues plots and Appendix A Table A3 summarizes the oscillatory response characteristics for the three significant modes; the highest and lowest frequency oscillation local modes and the inter-area mode. These results show that the real parts of all the eigenvalues are negative. Therefore, the system is dynamically stable. Furthermore, the damping ratio and oscillation frequency increase when inserting AVR and PSS compared with those in the other cases. Moreover, the transient response of the rotor angle depicted in Fig. 11 demonstrates the robustness of AVR and PSS controls for the damping of system oscillations in the presence of high wind generation levels.

The active output power of the wind generator, voltage, and active power characteristics at bus 2 are presented in Fig. 12. During the pre-fault, the voltage at bus 2 is estimated to be 0.99 p.u. This value falls to 0.09 p.u. during the fault. After the fault, the voltage shows some oscillations, but always lies within the stability limits for the fourth case. However, for the third case, in the absence of control devices, the voltage, active power at bus 2, and DFIG output power continue to drop, leading to power system instability.

Fig. 11
figure 11

Transient response of rotor angle \(\delta _{ref}-\delta _2\) for Cases 3 and 4

Fig. 12
figure 12

Response of IEEE 39-bus system to a three-phase short-circuit fault in the presence of DFIG at bus 35 for cases 3 and 4

5.6 Case 5

In this case, the SG at bus 34 and the one at bus 39 are replaced by two DFIGs of the same power capacity with a total power generation share of 1508 MW. Figures 13 and 14 illustrate the eigenvalues plots and the transient response of the IEEE 39-bus system in the presence of two DFIGs with and without SG controllers, respectively. The results have further shown the efficacy of the coordinated control of AVR and PSS in preserving the small-signal and transient stabilities of the power system under high wind energy penetration levels.

Fig. 13
figure 13

Eigenvalues plot for cases of two DFIGs

Fig. 14
figure 14

Transient response of IEEE 39-bus power system for cases of two DFIGs with and without AVR and PSS control

6 Conclusion

This paper discussed the impacts of wind power penetration by DFIG on the low-frequency oscillation modes for the IEEE 39-bus New England power system. The following conclusions were drawn. The wind farm generators considerably affect the stability of the power system, leading to poor damping of the oscillatory modes. Initially, the power system is dynamically unstable and the integration of wind farms worsens this instability. Thus, SG control devices are used to provide additional damping oscillations and improve the voltage performances of the power system. Several combinations of AVRs and PSSs are investigated. The best performances are obtained with the combination of AVR type 3 and PSS type 1 in terms of oscillation damping compared with the other controller types. The integration of SG control devices allows safe penetration of high wind energy levels, thus ensuring the damping of local and inter-area modes.