1 Introduction

The integration of type-3 or DFIG-based WTS is high in present-day power systems. High efficiency, less stress on mechanical components, and the potential of reactive power delivery to grid make DFIG a viable alternative to include in the power system network. On the other hand, the penetration of these converter interfaced machines (CIM) into the power system needs to be thoroughly investigated in stability point-of-view. Negative consequences if any, arising from these CIM needs to be addressed by appropriate control mechanism. Eigenvalue analysis and time-domain simulations are utilized to observe the change in dynamics of overall system, caused by these CIM. Before studying the dynamics of DFIG-connected power system, steady-state initial values must be calculated. Accurate steady-state values aid in properly initializing dynamic investigations before the occurrence of the actual fault, and also to avoid numerical instability [1, 2].

Steady-state initialization of a DFIG-based WTS can be carried out by using basic circuit laws [3], by iterative methods [4,5,6,7,8,9], or by using non-iterative methods [10,11,12,13]. The methods available for steady-state initialization of a DFIG-based WTS are broadly classified as electromagnetic transient programme (EMTP)-based approach and load flow-based approach. EMTP-based approaches use phasor-based technique [14], which deals with non-linear and time-variant systems for small, linear with lumped component networks. However, for a large system, the EMTP-type approach becomes inefficient due to high computational burden and solution may not converge to desirable operating points. On the other hand, load flow programmes are suitable for large systems using minimal mathematical effort. Load flow approach is not suitable for time-variant systems. However, is suitable for both balanced and unbalanced systems. Steady-state model of the DFIG reflects the operation of the DFIG during non-transient state. It should properly represent the power flows and losses. The final steady-state values derived from the steady-state model considered should initialize the DFIG without any initial oscillations.

Fig. 1
figure 1

Schematic of DFIG

Various models representing the steady-state behaviour of a DFIG are available in the literature. The steady-state model is represented as two-port circuit either in T model [15] or \(\pi \) model [16]. Numerous steady-state equivalent circuits of DFIG like PQ model [17], RX model [18] are available in the literature. The equivalent circuit of the DFIG should also consider the GS filter circuit so that filter losses also be taken into account. Calculation of initial values begins with the assumption that DFIG is operating at known active and reactive power at its terminals or wind power and reactive power assumed to be known parameters.

In [10] describes how to initialize various types of wind turbines, including type-3-based wind turbines, but the generator losses are ignored and the flow of reactive power flow through the GSC is assumed to be zero. Concept of torque balancing is used by the author of [11] to initialize full and lower-order models of DFIG. Calculation of initial values including unknown parameters within initialization procedure is shown in [4], but this method is complicated and tedious. Reference [5] uses as PV, PQ and \(V_w-Q\) method and uses the Newton–Raphson (NR) algorithm to calculate initial values without using d-q terms. The author of [13] considered the rotor of DFIG as a current source and calculates the initial values by a non-repetitive method. A direct method to calculate the initial values of DFIG-based WTS is shown in [12].

In most of these works, losses of GS filter are ignored. This paper considers the GS filter loss in the initialization procedure and also considers non-zero reactive power flow through GSC (\(Q_{gsc} \ne 0\)) in the two initialization methods employed. A procedure to calculate steady-state values of other subsystems of DFIG-WTS is also given. Finally, steady-state values are evaluated by eigenvalue analysis and time-domain simulations to examine effectiveness of the initialization methods employed.

The objectives of this paper are: (a) To perform steady-state initialization of a DFIG considering losses of machine and grid-side filter. (b) Utilizing both iterative and non-iterative methods for steady-state initialization, and to compare the performance of both the methods. (c). To calculate steady-state initial values of other subsystems of WTS like turbine, controller, network and DC link capacitor. (d) To validate the steady-state values obtained from eigenvalue analysis and time-domain simulations.

The organization of paper is as follows: Sect. II discusses the steady-state modelling and initialization of a DFIG-based WTS for two different cases. In Sect. III, dynamic modelling of a DFIG-based WTS is shown. In Sect. IV, case studies are conducted on a DFIG connected to a infinite bus system to validate the steady-state values obtained in Sect. II by performing modal analysis and time-domain simulations. In Sect. V, concluding remarks of the present work are given.

2 Steady-state modelling of DFIG

2.1 DFIG-based WTS

In Fig. 1, the block diagram representation of the DFIG-based WTS is shown where the turbine is coupled to the generator through a gear-box. Stator of the DFIG is directly connected to grid, and the rotor is interfaced to grid via a partial rated back-to-back converter. The converters are controlled by their respective controllers which help in smooth operation of the system [19]. RSC controller coordinates with the wind turbine control to extract maximum power by tracking optimum power points and also help in limiting the mechanical power generated by the turbine system by controlling its pitch angle. The generated mechanical power of wind turbine can be expressed as [20]

$$\begin{aligned} P_m = \frac{1}{ 2 }{\rho AC{_p} V_w^3} \end{aligned}$$
(1)

where \(\rho \) = density of air in \(\textrm{kg}/{\textrm{m}^3}\), A = area of turbine blades in \({m^2}\), \(C_p\) = performance co-efficient, \(V_w\) = wind velocity in m/s, \(S_{b}\) = MVA base, \(\omega _{rt}\)= rotor speed of the turbine. Details of \(C_p\) and other turbine parameters are referred from [10] and are provided in appendix A.

$$\begin{aligned} P_m = k{_\textrm{opt}}(1-s){^3} \end{aligned}$$
(2)

Apart from controlling the electromagnetic torque, RSC controller has to control reactive power supplied to the grid through stator, by supplying necessary rotor currents into the generator. The objective of a GSC controller is to maintain a constant terminal voltage and to keep voltage across DC-link capacitor constant by which rotor active power will be equal to GSC active power (\(P_{r}\) = \(P_{gsc}\)).

Fig. 2
figure 2

Steady-state model of DFIG including filter

2.2 Modelling of DFIG in steady-state

The steady-state model of a DFIG including the GS filter is shown in Fig. 2.

$$\begin{aligned} \begin{aligned} \vec {V_s}&= (R_s + jX_s) \vec {I_s} + jX_m (\vec {I_r} + \vec {I_s}) \end{aligned} \end{aligned}$$
(3a)
$$\begin{aligned} \begin{aligned} \frac{\vec {V_r}}{s}&= \left( \frac{R_r}{s} + jX_r\right) \vec {I_r} + jX_m(\vec {I_r} +\vec {I_s}) \end{aligned} \end{aligned}$$
(3b)

where \(\vec {V_s} = v_s \angle \delta _s\) and \(\vec {V_r} = v_r\angle \delta _r\) are stator and rotor voltage phasors, respectively. \(\vec {I_s} = i{_s}\angle \gamma _s, \vec {I_r} = i_r\angle \gamma _r, \vec {I_g} = i_g\angle \gamma _g\) are stator, rotor and grid-side current phasors, respectively. The total current is given as

$$\begin{aligned} -\vec {I_l} = \vec {I_s} + \vec {I_g} \end{aligned}$$
(4)

The reactive power flow through GSC is

$$\begin{aligned} Q_{gsc} = V_s I_g \sin (\delta _s - \gamma _g) \end{aligned}$$
(5)

Here, the line current \(I_l\) is assumed to be negative, due to motoring convention followed.

The losses of the GS filter are given as

$$\begin{aligned} I_g^2R_g = P_r - P_{gsc} \end{aligned}$$
(6)

2.3 Steady-state initialization in PQ method

The set of non-linear equations of PQ method can be solved by both iterative and non-iterative methods. NR procedure is used to calculate initial values iteratively. To solve these equations by non-iterative method, the set of non-linear DFIG equations are rearranged into solvable quadratic equation. Both iterative and non-iterative methods are discussed in following subsections.

Fig. 3
figure 3

Flowchart depicting PQ initialization procedure

2.3.1 Steady-state initialization using iterative method

Equations related to NR method for initialization are shown as follows.

Iterative function at \(k^{th}\) iteration for NR method is given as

$$\begin{aligned} {\underline{x}}_{k+1} = {\underline{x}}_k - [J]_k^{-1} F({\underline{x}}_k) \end{aligned}$$
(7)

where \(F({\underline{x}})=[f_1, f_2,\ldots , f_8]^\top \), is a set of n equations corresponding to (8a)–(11) which are functions of unknown variable, \({\underline{x}}\) and \([J]_k\) is the \((n \times n)\) Jacobian matrix which contains partial derivatives of the functions \(F({\underline{x}})\) with respect to the variables in \({\underline{x}}\).

The unknown variables are \({\underline{x}} = [i_{sQ}, i_{sD}, i_{rQ}, i_{rD}, v_{rQ}, v_{rD}, i_{gQ}, i_{gD}]^\top \)

The initial values of vector \({\underline{x}}\) are taken as

\({\underline{x}}_0 = [ 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5]^\top \)

The functions \(f_1\) - \(f_8\) correspond to Eqs. (8a)–(11),

$$\begin{aligned} f_1&= v_{sQ} - R_si_{sQ}+(X_{s}+X_m)i_{sD}+X_mi_{rD} \end{aligned}$$
(8a)
$$\begin{aligned} f_2&= v_{sD} - R_si_{sD}-(X_{s}+X_m)i_{sQ}-X_mi_{rQ} \end{aligned}$$
(8b)
$$\begin{aligned} f_3&= v_{rQ} - R_ri_{rQ}+s(X_{r}+X_m)i_{rD}+sX_mi_{sD} \end{aligned}$$
(8c)
$$\begin{aligned} f_4&= v_{rD} - R_ri_{rD}-s(X_{r}+X_m)i_{rQ}-sX_mi_{sQ} \end{aligned}$$
(8d)

The total current supplied by DFIG is equal to sum of stator current and current supplied by GSC

$$\begin{aligned} f_5 = i_{lQ} + i_{sQ} + i_{gQ} \end{aligned}$$
(9a)
$$\begin{aligned} f_6 = i_{lD} + i_{sD} + i_{gD} \end{aligned}$$
(9b)

In this work, the reactive power supplied by GSC is assumed to be non-zero

$$\begin{aligned} f_7 = Q_{gsc} - v_{gD}i_{gQ} +v_{gQ}i_{gD} \end{aligned}$$
(10)

The power loss occurring at the grid-side filter is the difference between rotor active power and grid-side active power, i.e. \(P_{r}\) - \(P_{gsc}\)

$$\begin{aligned} f_8= & {} v_{rQ}i_{rQ} + v_{rD}i_{rD} - v_{sQ}i_{gQ} - v_{sD}i_{gD} \nonumber \\{} & {} - i_{gD}^2R_g - i_{gQ}^2R_g \end{aligned}$$
(11)

The values of unknown vector \({\underline{x}}\) are obtained by solving (7), with initial values assumed in \({\underline{x}}_0\). Figure 3 shows the flow chart defining iterative-based PQ initialization method.

2.3.2 Initialization using non-iterative method

The initial values are calculated non-iteratively using substitution method. The DFIG bus is treated as PQ bus where active and reactive power at DFIG terminals is known. From P and Q, stator voltage, i.e. (\(v_{sQ}\) and \(v_{sD}\)) is calculated by applying fixed point iterative method [9]. The active power (P) is assumed to be equal to input mechanical power \((P_m)\). The slip s corresponding to \((P_m)\) is calculated from (2). Values of Q and \(Q_{gsc}\) are assumed to be known. Other variables, i.e. stator current (\(i_{sQ}\), \(i_{sD}\)), rotor voltage (\(v_{rQ}\), \(v_{rD}\)), rotor current (\(i_{rQ}\), \(i_{rD}\)), and GSC currents (\(i_{gQ}\), \(i_{gD}\)), are calculated by procedure shown as follows:

Referring equation (10), the \(i_{gQ}\) is given as

$$\begin{aligned} i_{gQ} = \frac{Q_{gsc}}{v_{sD}} + \frac{v_{sQ}}{v_{sD}} i_{gD} \end{aligned}$$
(12)

Substituting (12) in (9a), \(i_{sQ}\) is written as

$$\begin{aligned} i_{sQ} = -i_{lQ} -\frac{Q_{gsc}}{v_{sD}} - \frac{v_{sQ}}{v_{sD}} i_{gD} \end{aligned}$$
(13)

From (9b) \(i_{sD}\) is written as

$$\begin{aligned} i_{sD} = -i_{lD} - i_{gD} \end{aligned}$$
(14)

Substituting (13) and (14) in (8a), the \(i_{rD}\) is written as

$$\begin{aligned}&\begin{aligned} i_{rD}&= \left( \frac{-R_s}{X_m} \frac{v_{sQ}}{v_{sD}} + \frac{X_s + X_m}{X_m} \right) i_{gD}\\&+ \left( -\frac{R_s}{X_m} i_{lQ} - \frac{R_s}{X_m} \frac{Q_{gsc}}{v_{sD}} + \frac{X_s + X_m}{X_m} i_{lD} - \frac{v_{sQ}}{X_m}\right) \end{aligned} \end{aligned}$$
(15a)
$$\begin{aligned}&\begin{aligned} i_{rD} = a_1i_{gD} + b_1 \end{aligned} \end{aligned}$$
(15b)

Substituting (13) and (14) in (8b), the \(i_{rQ}\) is written as

$$\begin{aligned}&\begin{aligned} i_{rQ}&= \left( \frac{R_s}{X_m} + \frac{X_s + X_m}{X_m} \frac{v_{sQ}}{v_{sD}} \right) i_{gD} \\&+ \left( \frac{R_s}{X_m} i_{lD} + \frac{X_m + X_m}{X_m} \frac{Q_{gsc}}{v_{sD}} \right) \\ {}&+ \left( \frac{X_s + X_m}{X_m} i_{lQ} + \frac{v_{sD}}{X_m}\right) \end{aligned} \end{aligned}$$
(16a)
$$\begin{aligned}&\begin{aligned} i_{rQ}&= a_2i_{gD} + b_2 \end{aligned} \end{aligned}$$
(16b)

Substituting (14), (15b) and (16b) in (8c)

$$\begin{aligned}&\begin{aligned} v_{rQ}&= \left( R_r a_2 - s(X_r + X_m)a_1 + sX_m \right) i_{gD} \\&+ \left( R_rb_2 -s(X_r + X_m)b_1 + sX_mi_{lD}\right) \end{aligned} \end{aligned}$$
(17a)
$$\begin{aligned}&\begin{aligned} v_{rQ} = a_3i_{gD} + b_3 \end{aligned} \end{aligned}$$
(17b)

Substituting (14), (15b) and (16b) in (8d)

$$\begin{aligned}&\begin{aligned} v_{rD}&= \left( R_ra_1 + s(X_r + X_m)a_2 - sX_m \frac{v_{sQ}}{v_{sD}}\right) i_{gD} \\&+ \left( R_rb_1 + s(X_r + X_m)b_2 - sX_mi_{lQ}- sX_m\frac{Q_{gsc}}{v_{sD}}\right) \end{aligned} \end{aligned}$$
(18a)
$$\begin{aligned}&\begin{aligned} v_{rD} = a_4i_{gD} + b_4 \end{aligned} \end{aligned}$$
(18b)

Substituting (12)–(21d) in (11) we get \(i_{gD}\) as

$$\begin{aligned} a_5i_{gD}^2 + b_5i_{gD} +c_5 = 0 \end{aligned}$$
(19)

where

\(a_5 = \frac{v_{sQ}^2}{v_{sD}^2} R_g-a_3a_2-a_4a_1 + R_g\)

\(b_5 = v_{sD} + 2 \frac{v_{sQ}}{v_ {sD}^2} Q_{gsc} R_g +\frac{v_{sQ}^2}{v_{sD}}-a_3b_2-a_2b_3-a_4b_1-a_1b_4\)

\(c_5 = \frac{Q_{gsc}^2}{v_{sD}^2} R_g -b_2b_3 - b_1b_4 + \frac{v_{sQ}}{v_{sD}} Q_{gsc} \) The quadratic solution of \(i_{gD}\) is obtained by solving (19)

$$\begin{aligned} i_{gD}=\frac{-b_5\pm \sqrt{b_5^2-4a_5c_5}}{2a_5} \end{aligned}$$
(20)
Table 1 Comparison of steady-state values calculated from iterative and non-iterative method for PQ case

Solving Eq. (20) results in two values of \(i_{gD}\); however, only one value of \(i_{gD}\) results in stable operating point. By substituting the stable \(i_{gD}\) in (12)–(18b), the steady-state parameters of the DFIG are obtained.

In Table 1, comparison of the initial values obtained from both iterative and non-iterative method for \(P = 0.68\), \(Q=0.2\), \(Q_{gsc} = 0.1\) is made, all values are in per unit (pu). It is seen that steady-state values are not exactly equal but are close. Steady-state values computed from non-iterative approach do not have rounding-off errors as for iterative methods. Also, an accurate initial guess is needed for iterative methods to prevent system from non-convergence, while in non-iterative method, no initial guess is needed. It can be concluded that initial values calculated from non-iterative methods are accurate and have faster convergence. The advantages of non-iterative methods make it preferable for computing steady initial operating points of DFIG.

2.4 Steady-state initialization in \(V_{w}\)-Q method

Another method of solving initialization problem of DFIG is to consider wind speed (\(V_{w}\)) to be known. Mechanical power developed by wind turbine depends on the speed of the wind. As wind speed is variable in nature, assuming wind speed as constant value makes the initialization method more accurate. The equations considered for \(V_{w} - Q\) method can be solved only by iterative methods and cannot be rearranged such that these equations can be solved linearly. From the wind speed mechanical power developed is calculated. In this method apart from wind speed Q and \(Q_{gsc}\) are assumed to be known parameters.

After calculating mechanical power developed from wind speed, corresponding slip is calculated from Eq. (2). Unknown parameters of DFIG, i.e. stator voltage and current (\(v_{sQ}, v_{sD}, i_{sQ}, i_{sD}\)), rotor voltage and current (\(v_{rQ}, v_{rD}, i_{rQ}, i_{rD}\)) and GSC currents and voltages (\(i_{gQ}, i_{gD}, v_{gQ}, v_{gD}\)), are calculated by applying NR-based iterative method in Eqs. (21a)–(21l).

Fig. 4
figure 4

Flowchart depicting \(V_{w}-Q\) initialization procedure

Figure 4 depicts the flow chart depicting initialization procedure for \(V_w-Q\) case.

$$\begin{aligned} f_1&= v_{sQ} - R_si_{sQ}+(X_{s}+X_m)i_{sD}+X_mi_{rD} \end{aligned}$$
(21a)
$$\begin{aligned} f_2&= v_{sD} - R_si_{sD}-(X_{s}+X_m)i_{sQ}-X_mi_{rQ} \end{aligned}$$
(21b)
$$\begin{aligned} f_3&= v_{rQ} - R_ri_{rQ}+s(X_{r}+X_m)i_{rD}+sX_mi_{sD} \end{aligned}$$
(21c)
$$\begin{aligned} f_4&= v_{rD} - R_ri_{rD}-s(X_{r}+X_m)i_{rQ}-sX_mi_{sQ} \end{aligned}$$
(21d)
$$\begin{aligned} f_5&= Q -v_{sQ}i_{sD} +v_{sD}i_{sQ} - v_{gQ}i_{gD} +v_{gD}i_{gQ} \end{aligned}$$
(21e)
$$\begin{aligned} f_6&= P_m -P - (i_{sQ}^2+i_{sD}^2)R_s- (i_{rQ}^2+i_{rD}^2)R_r \nonumber \\&\quad -(i_{gQ}^2+i_{gD}^2)R_g \end{aligned}$$
(21f)
$$\begin{aligned} f_7&=Q_{gsc} - v_{gD}i_{gQ} +v_{gQ}i_{gD} \end{aligned}$$
(21g)
$$\begin{aligned} f_8&= v_{sQ} - v_{1Q} - \frac{Pa+Qb}{v_{sQ}^2 + v_{sD}^2 } \end{aligned}$$
(21h)
$$\begin{aligned} f_9&= v_{sD} - v_{1D}- \frac{Pb-Qa}{v_{sQ}^2 + v_{sD}^2 } \end{aligned}$$
(21i)
$$\begin{aligned} f_{10}&= v_{rQ}i_{rQ} + v_{rD}i_{rD} -v_{gQ}i_{gQ} - v_{gD}i_{gD} \end{aligned}$$
(21j)
$$\begin{aligned} f_{11}&= v_{sQ} - v_{gQ} - R_gi_{gQ} - L_gi_{gD} \end{aligned}$$
(21k)
$$\begin{aligned} f_{12}&= v_{sD} - v_{gD} - R_gi_{gD} - L_gi_{gQ} \end{aligned}$$
(21l)

where

$$\begin{aligned} P= & {} -((v_{sQ}i_{sQ}+v_{sD}i_{sD})+(v_{rQ}i_{rQ}+v_{rD}i_{rD})) \\ a= & {} (v_{sQ}Z_{lQ}-v_{sD}Z_{lD}) \\ b= & {} (v_{sQ}Z_{lD}+v_{sD}Z_{lQ}) \end{aligned}$$
Table 2 Index of case studies of \(V_w-Q\) method
Table 3 Steady-state values of DFIG for \(V_w\)-Q case at various operating points

Due to the motoring convention employed in this work, mechanical power developed by wind turbine is assumed as negative, i.e. \(-P_m\). NR-based iterative method is used to solve the set of 12 non-linear equations to obtain 12 unknown parameters of the DFIG.

Table 3 lists DFIG steady-state values in pu calculated employing iterative method for case index listed in Table 2. In case A of Table 2, \(V_{w}\) is assumed to be 12.5 m/s, corresponding to supersynchronous speeds and Q, \(Q_{gsc}\) are assumed zero. In case B wind speed \(V_{w}\) corresponds to supersynchronous and Q, \(Q_{gsc}\) are assumed to be non-zero. Case C corresponds to subsynchronous speed with wind speed 7.5 m/s and Q, \(Q_{gsc}\) are made zero. Case D corresponds to subsynchronous speed with Q, \(Q_{gsc}\) are assumed to be non-zero.

The reactive power flow from rotor side to grid is given as

$$\begin{aligned} Q_{gsc} = v_{gD}i_{gQ}-v_{gQ}i_{gD} \end{aligned}$$
(22)

2.5 Initialization of other models of WTS

After computing the steady-state initial values of the DFIG, initialization of various other models in WTS is carried out using approach followed.

Wind turbine initialization:

Wind turbine initial values are calculated starting with known steady-state value of s obtained from Eq. 2 for a particular operating condition.

$$\begin{aligned} \omega _{r}&= 1-s \end{aligned}$$
(23a)
$$\begin{aligned} \omega _{rt}&= \omega _{r} \end{aligned}$$
(23b)
$$\begin{aligned} \lambda&=\frac{ \omega _{rt}\omega _{rtmB}R}{V_w} \end{aligned}$$
(23c)
$$\begin{aligned} \lambda _{i}&= \frac{(\beta ^3\lambda +\lambda +0.08\beta ^4+0.08\beta )}{(\beta ^3+1-0.035\lambda -0.0028\beta )} \end{aligned}$$
(23d)
$$\begin{aligned} C_{p}&= c1(\frac{c2}{\lambda _{i}}-c3\beta -c4)e^{(-c5/\lambda _{i})} \end{aligned}$$
(23e)
$$\begin{aligned} T_{tg}&=(D_g\omega _{r}-T_e) \end{aligned}$$
(23f)

Network parameters initialization:

$$\begin{aligned}&\begin{aligned} i_{lQ} = (v_{sQ}/R_L) + i_{sQ} + i_{gQ} \end{aligned} \end{aligned}$$
(24a)
$$\begin{aligned}&\begin{aligned} i_{lD} = (v_{sD}/R_L) + i_{sD} + i_{gD} \end{aligned} \end{aligned}$$
(24b)

DFIG controller initialization:

$$\begin{aligned}&\begin{aligned} i_{rQF}&= i_{rQ}-K_{pT}({k_\textrm{opt}}\omega _{r}^2+T_{e}) \end{aligned} \end{aligned}$$
(25a)
$$\begin{aligned}&\begin{aligned} v_{rQ1}&= v_{rQ} - K_{pq}(i_{rQF}+K_{pT}k_\textrm{opt}\omega _{r}^2+K_{pT}T_e-i_{rQ}) \end{aligned} \end{aligned}$$
(25b)
$$\begin{aligned}&\begin{aligned} i_{gDF}&= i_{rD}-K_{pQ}(Q_{s,\textrm{ref}}-Q_{s}) \end{aligned} \end{aligned}$$
(25c)
$$\begin{aligned}&\begin{aligned} v_{rD1}&= v_{rD} - K_{pd}(i_{rDF}+K_{pQ}(Q_{s,\textrm{ref}}-Q_{s})-i_{rD}) \end{aligned} \end{aligned}$$
(25d)
$$\begin{aligned}&\begin{aligned} Q_{s}&= v_{sD}i_{sQ} -v_{sQ}i_{sD} \end{aligned} \end{aligned}$$
(25e)
$$\begin{aligned}&\begin{aligned} i_{gQF}&= i_{gQ}-K_{p4}(v_{\textrm{d}c,\textrm{ref}}-v_{\textrm{d}c}) \end{aligned} \end{aligned}$$
(25f)
$$\begin{aligned}&\begin{aligned} v_{gQ1}&= v_{gQ} - K_{p3}(i_{gQF}+K_{p4}(v_{\textrm{d}c,\textrm{ref}}-v_{\textrm{d}c})-i_{gQ}) \end{aligned} \end{aligned}$$
(25g)
$$\begin{aligned}&\begin{aligned} i_{gDF}&= i_{gD}-K_{p4}(v_{t,\textrm{ref}}-v_{t}) \end{aligned} \end{aligned}$$
(25h)
$$\begin{aligned}&\begin{aligned} v_{gD1}&= v_{gD} - K_{p3}(i_{gDF}+K_{p4}(v_{t,\textrm{ref}}-v_{t})-i_{gD}) \end{aligned} \end{aligned}$$
(25i)
$$\begin{aligned}&\begin{aligned} Q_{g}&= v_{sD}i_{gQ} -v_{sQ}i_{gD} \end{aligned} \end{aligned}$$
(25j)

DC-link capacitor initialization:

$$\begin{aligned} v_{\textrm{d}c0} = v_{\textrm{d}c} \end{aligned}$$
(26)

Steady-state values of turbine, DFIG controller, network and filter are used for eigenvalue analysis and time-domain simulations.

3 Dynamic modelling of DFIG-based WTS

3.1 Drive train model

The two-mass model is used to represent dynamic model of the drive train. Three equations corresponding to shaft, turbine and generator used are [21].

$$\begin{aligned}&\begin{aligned} 2H_t\frac{\textrm{d}\omega _{rt}}{\textrm{d}t}&= T_w - T_{tg} -D_{tg}(\omega _{rt}-\omega _r)-D_t(\omega _{rt}) \end{aligned} \end{aligned}$$
(27a)
$$\begin{aligned}&\begin{aligned} 2H_g\frac{\textrm{d}\omega _r}{\textrm{d}t}&= T_{tg} +D_{tg}(\omega _{rt}-\omega _{r}) - D_g(\omega _r)+T_e \end{aligned} \end{aligned}$$
(27b)
$$\begin{aligned}&\begin{aligned} \frac{\textrm{d}T_{tg}}{\textrm{d}t}&= K_{tg} (\omega _{rt}-\omega _{r}) \omega _B \end{aligned} \end{aligned}$$
(27c)

3.2 DFIG dynamic modelling

Dynamic equations of full order model of DFIG are expressed as follows [22].

$$\begin{aligned}&\begin{aligned} \frac{1}{\omega _B} \frac{\textrm{d}\psi _{sQ}}{\textrm{d}t}&= v_{sQ}-R_si_{sQ}+\omega _0\psi _{sD} \end{aligned} \end{aligned}$$
(28a)
$$\begin{aligned}&\begin{aligned} \frac{1}{\omega _B} \frac{\textrm{d}\psi _{sD}}{\textrm{d}t}&= v_{sD}-R_si_{sD}-\omega _0\psi _{sQ} \end{aligned} \end{aligned}$$
(28b)
$$\begin{aligned}&\begin{aligned} \frac{1}{\omega _B} \frac{\textrm{d}\psi _{rQ}}{\textrm{d}t}&= v_{rQ}-R_ri_{rQ}+(\omega _0-\omega _r)\psi _{rD} \end{aligned} \end{aligned}$$
(28c)
$$\begin{aligned}&\begin{aligned} \frac{1}{\omega _B} \frac{\textrm{d}\psi _{rD}}{\textrm{d}t}&= v_{rD}-R_ri_{rD}-(\omega _0-\omega _r)\psi _{rQ} \end{aligned} \end{aligned}$$
(28d)

The developed torque by DFIG is given as

$$\begin{aligned} T_e = \psi _{rD}i_{rQ}-\psi _{rQ}i_{rD} \end{aligned}$$
(29)

The currents of DFIG are related to stator and rotor flux as follows:

$$\begin{aligned} \begin{bmatrix} i_{sD} \\ i_{sQ} \\ i_{rD} \\ i_{rQ} \\ \end{bmatrix} = \begin{bmatrix} X_{ss} &{} \quad 0 &{}\quad X_m &{}\quad 0 \\ 0 &{}\quad X_{ss} &{}\quad 0 &{}\quad X_m \\ X_m &{} \quad 0 &{}\quad X_{rr} &{} \quad 0 \\ 0 &{} \quad X_m &{}\quad 0 &{}\quad X_{rr} \end{bmatrix}^{-1} \begin{bmatrix} \psi _{sD} \\ \psi _{sQ} \\ \psi _{rD} \\ \psi _{rQ} \\ \end{bmatrix} \end{aligned}$$

where \(X_{ss} = X_{s} +X_m, X_{rr} = X_{r} + X_m\).

3.3 Interface equations of DFIG to network

The equations for interfacing the DFIG to network are expressed in synchronous reference frame as

$$\begin{aligned}&\begin{aligned} v_{sD}&= [i_{lD}-(i_{sD}+{ {i_{gD}}})]R_L \end{aligned} \end{aligned}$$
(30a)
$$\begin{aligned}&\begin{aligned} v_{sQ}&= [i_{lQ}-(i_{sQ}+{ {i_{gQ}}})]R_L \end{aligned} \end{aligned}$$
(30b)

A high resistance \(R_L\) with value of 100 pu is connected at DFIG terminals to avoid redundant states.

3.4 Grid-side filter dynamic model

The dynamic equations of the GS filter are written as

$$\begin{aligned}&\begin{aligned} \frac{\textrm{d}i_{gQ}}{\textrm{d}t}&= -\frac{\omega _BR_g}{L_g} i_{gQ} + \omega _Bi_{gD} + \frac{\omega _B}{L_g} v_{gQ} -\frac{\omega _B}{L_g} v_{sQ} \end{aligned} \end{aligned}$$
(31a)
$$\begin{aligned}&\begin{aligned} \frac{\textrm{d}i_{gD}}{\textrm{d}t}&= -\frac{\omega _BR_g}{L_g} i_{gD} -\omega _Bi_{gQ} + \frac{\omega _B}{L_g} v_{gD} -\frac{\omega _B}{L_g} v_{sD} \end{aligned} \end{aligned}$$
(31b)

3.5 Network model

The dynamic equations of the line connecting DFIG and infinite bus are shown as [23]

$$\begin{aligned}&\begin{aligned} \frac{\textrm{d}i_{lD}}{\textrm{d}t}&= \frac{1}{L_{lt}} [e_D -R_li_{lD}-L_{lt}\omega _Bi_{lQ} - v_{sD}] \end{aligned} \end{aligned}$$
(32a)
$$\begin{aligned}&\begin{aligned} \frac{\textrm{d}i_{lQ}}{\textrm{d}t}&= \frac{1}{L_{lt}} [e_Q -R_li_{lQ}+L_{lt}\omega _Bi_{lD} - v_{sQ}] \end{aligned} \end{aligned}$$
(32b)
Fig. 5
figure 5

Control structure of DFIG

Fig. 6
figure 6

Eigenvalues comparison for iterative and non-iterative case

Fig. 7
figure 7

Eigenvalue plot for \(V_{w}-Q\) case

Fig. 8
figure 8

DFIG interfaced to infinite bus

3.6 Controller dynamic equations

Cascade structure-based controller shown in Fig. 5 is used in this work. Fast inner loop controls the currents. Slower outer loop of both RSC and GSC controls the parameters defined by the control objective. In this case, RSC controller is set to control electromagnetic torque and stator reactive power. The GSC controller has to control DC-link voltage and voltage at the DFIG terminals by supplying appropriate reactive power to grid via GSC. The equations corresponding to RSC and GSC controllers are listed as follows [24].

3.6.1 Dynamic model of RSC controller

Electric torque controller

$$\begin{aligned}&\begin{aligned} \frac{\textrm{d}i_{rQF}}{\textrm{d}t}&= K_{iT}(T_{e,\textrm{ref}}-(-T_e)) = K_{iT}({k_\textrm{opt}} \omega ^2_{r}+ T_e) \end{aligned} \end{aligned}$$
(33a)
$$\begin{aligned}&\begin{aligned} \frac{\textrm{d}v_{rQ1}}{\textrm{d}t}&= K_{iq} i_{rQF} + K_{iq} K_{pT}(k_\textrm{opt}\omega ^2_{r}+T_e) - K_{iq}i_{rQ} \end{aligned} \end{aligned}$$
(33b)
$$\begin{aligned}&\begin{aligned} v_{rQ}&= v_{rQ1}+K_{pq}i_{rQF}+K_{pq}K_{pT}k_\textrm{opt}\omega ^2_{r}\\&+ K_{pq}K_{pT}T_e-K_{pq}i_{rQ} \end{aligned} \end{aligned}$$
(33c)

Stator reactive power controller

$$\begin{aligned}&\begin{aligned} \frac{\textrm{d}i_{rDF}}{\textrm{d}t}&= K_{iQ}(Q_{s,\textrm{ref}}-Q_s) \end{aligned} \end{aligned}$$
(34a)
$$\begin{aligned}&\begin{aligned} \frac{\textrm{d}v_{rD1}}{\textrm{d}t}&= K_{id} i_{rDF} + K_{id} K_{pQ}(Q_{s,\textrm{ref}}-Q_s) - K_{id}i_{rD} \\ v_{rD}&= v_{rD1} + K_{pd}i_{rDF} + K_{pd}K_{pQ}Q_{s,\textrm{ref}} \\&\quad -K_{pd}K_{pQ}Q_{s}-K_{pd}i_{rD} \end{aligned} \end{aligned}$$
(34b)

Reactive power flow from stator of DFIG to grid is given as

$$\begin{aligned} Q_s = v_{sD}i_{sQ} - v_{sQ}i_{sD} \end{aligned}$$
(35)

3.6.2 Dynamic model of GSC controller

DC-link capacitor voltage controller

$$\begin{aligned}&\begin{aligned} \frac{\textrm{d}i_{gQF}}{\textrm{d}t}&= K_{i4}(v_{\textrm{d}c,\textrm{ref}}-v_{\textrm{d}c}) \end{aligned} \end{aligned}$$
(36a)
$$\begin{aligned}&\begin{aligned} \frac{\textrm{d}v_{gQ1}}{\textrm{d}t}&= K_{i3} i_{gQF} + K_{i3} K_{p4}(v_{\textrm{d}c,\textrm{ref}}-v_{\textrm{d}c}) - K_{i3}i_{gQ} \\ v_{gQ}&= v_{gQ1}+K_{p3}i_{gQF}+K_{p3}K_{p4}v_{\textrm{d}c,\textrm{ref}}\\&- K_{p3}K_{p4}v_{\textrm{d}c}-K_{p3}i_{gQ} \end{aligned} \end{aligned}$$
(36b)

Terminal voltage controller

$$\begin{aligned}&\begin{aligned} \frac{\textrm{d}i_{gDF}}{\textrm{d}t}&= K_{i4}(v_{t,\textrm{ref}}-v_{t}) \end{aligned} \end{aligned}$$
(37a)
$$\begin{aligned}&\begin{aligned} \frac{\textrm{d}v_{gD1}}{\textrm{d}t}&= K_{i3} i_{gDF} + K_{i3} K_{p4}(v_{t,\textrm{ref}}-v_{t}) - K_{i3}i_{gD} \\ v_{gD}&= v_{gD1} + K_{p3}i_{gDF} + K_{p3}K_{p4}v_{t,\textrm{ref}} \\&-K_{p3}K_{p4}v_{t}-K_{p3}i_{gD} \end{aligned} \end{aligned}$$
(37b)

3.7 Modelling of DC-link capacitor voltage controller

The DC-link capacitor which is a source of reactive power helps in supplying magnetizing currents to the DFIG [1]. The corresponding dynamic equation of DC-link capacitor is

$$\begin{aligned} \frac{\textrm{d}v_{\textrm{d}c}}{\textrm{d}t} = \frac{1}{Cv_{dc}} (P_r - P_{gsc}) \end{aligned}$$
(38)

where C, \(v_{dc}\) are DC-link capacitance and its voltage, respectively, and their values are given in appendix. The active power flow from GSC to grid is given as

$$\begin{aligned} P_{gsc} = v_{gD}i_{gD}+v_{gQ}i_{gQ} \end{aligned}$$
(39)

4 Case studies

The initial values calculated from iterative and non-iterative methods are tested on a 2 MW DFIG interfaced to an infinite bus (see Fig. 8). The initial values calculated are utilized to carry out eigenvalue analysis by linearizing dynamic equations around these steady-state values. Steady-state values also act as initial values for integrator blocks in time-domain simulation model. Filter resistance and reactance values are given in appendix. For parameters of other subsystems of a DFIG-based WTS refer [25]. For gains of GSC controller refer [26]. For eigenvalues the dynamic equations are linearized around a steady-state value obtained from Sect. II. Time-domain simulations are conducted to complement results of eigenvalue analysis. Modal analysis and time-domain simulations are performed in MATLAB/Simulink software.

Table 4 List of eigenvalues, damping factors (\(\zeta \)) and dominant states (DS ) for PQ and \(V_w-Q\) case

4.1 Eigenvalue analysis

Table 4 compares the eigenvalues obtained for PQ case with both iterative and non-iterative methods. It is seen that all the eigenvalues are on the left-half of the s-plane, which indicates the system is stable. Eigenvalues corresponding to iterative case are indicated with circle. Eigenvalues corresponding to non-iterative case are indicated with cross. As two of the eigenvalues are very large in magnitude, remaining eigenvalues are close to imaginary axis. In order to observe these eigenvalues a zoomed-in plot of eigenvalues which are close to imaginary axis is plotted within the main plot.

Figure 7 shows the eigenvalues for \(V_w-Q\) case. It is seen that all the eigenvalues are on the left-half of s-plane, which indicates the considered system is stable. Also indicating that the steady-state values calculated are accurate as it maintains the system stable. For analysis with \(V_w-Q\) method, the operating point is deliberately chosen as \(V_w = 11 m/s, Q = 0.1, Q_{gsc} = 0.05.\), from the chosen wind speed, P calculated is 0.6801, which is almost equal to the P defined in PQ method. However, final initial values obtained from \(V_w-Q\) method slightly differ to that of PQ method. This difference in initial values would reflect as variation in final eigenvalues as observed from Table 4. However, to complement the eigenvalue results, time-domain simulation plots are needed to accurately judge the effectiveness of the initialization approach used. The time-domain plots should have a flat start without any initial oscillations and should not destabilize the system when a small disturbance is introduced. From Figs. 6 and 7, it is concluded that the steady-state values computed are accurate as eigenvalue plot shows that the system is stable. Table 4 lists all the eigenvalues for PQ and \(V_w-Q\) cases, for PQ procedure eigenvalues are listed for both iterative and non-iterative methods. Apart from eigenvalues, damping factors and dominant states in each mode are also listed. Participation factor analysis is performed to identify the dominant states in each mode. It is to be noted that dominant states in each mode are same in all the cases considered.

Fig. 9
figure 9

Simulation plots of currents for PQ case with iterative method

Fig. 10
figure 10

Simulation plots of currents for PQ case with non-iterative method

Fig. 11
figure 11

Simulations plot of currents for \(V_w- Q\) case

4.2 Time-domain simulations

The time-domain simulations are shown in Fig. 9 to Fig. 13. Figure 9 shows time-domain simulation plots for the case PQ using iterative method. Plots of \(i_{sD}\), \(i_{sQ}\) that is stator currents are shown, with a small disturbance introduced at 0.5 s of simulation time. The currents plots shown are starting as a straight line without any oscillations and settling to steady-state value after a disturbance is cleared at 0.01 s of the fault occurrence.

Figure 10 shows plots of currents \(i_{sD}\), \(i_{sQ}\) with case PQ for non-iterative method (using initial conditions obtained from non-iterative method). A small disturbance is introduced at 0.5 s by perturbing voltage at infinite bus for 0.01 s. From the simulations plots, it is observed that currents are settling to a steady-state value after the disturbance and also has a flat start initially, equal to the value calculated from non-iterative initialization method.

In Fig. 11, time-domain simulation plots are shown for case \(V_w-Q\). Same disturbance is considered as of above two cases. Similar to the above plots there are no initial oscillations and the current values are starting at the initial values obtained from the steady-state calculation procedure. Also, the currents are settling to the steady-state after the disturbance, which indicates the initial values calculated are accurate and the system is dynamically stable.

Figures 12 and 13 compare the rotor speed and electromagnetic trajectories for the various initialization methods considered. A fault of duration 0.5 s is initiated at 2 s to observe behaviour of rotor speed and electromagnetic torque following a fault for different initialization methods. It is seen from the plots that both rotor speed and electromagnetic torque in PQ method have flat start trajectories following same path in both iterative and non-iterative cases. However, trajectory obtained using \(V_w\)-Q method has slight variation in the initial values with small oscillations. To observe the difference a zoomed-in plot is shown within the main plot for both rotor speed and electromagnetic torque within the main plots. The variation for initial values in \(V_w\) can be attributed to variation in the initial values calculated from different initialization methods.

Fig. 12
figure 12

Comparison of rotor speed trajectories for different initialization methods

Fig. 13
figure 13

Comparison of electromagnetic torque trajectories for different initialization methods

5 Conclusion

Two different methods to initialize the DFIG-based WTS are employed in this paper. The first method that is, PQ approach is solved by both iterative and non-iterative methods and steady-state results are compared. The second approach, i.e. \(V_{w}-Q\) approach is solved by iterative approach. Eigenvalue analysis is performed on a full-order DFIG model to see the dynamic performance of the considered system. Time-domain simulations are performed by introducing a small disturbance to see accuracy of the steady-state values computed. From eigenvalue results, it is seen that all the poles are on left half of the s-plane which indicates the system is stable. From simulation results, it is observed that the currents are having a flat start and are settling to the stable values without destabilization after the fault, which shows the system is stable.

The approaches discussed in this paper help in accurate initialization of the DFIG-based WTS. The approaches employed in this work are flexible to consider non-zero reactive power flow from rotor to grid and filter losses. Apart from DFIG initialization, steady-state initialization of other subsystems of WTS is also discussed in this paper. Validation of steady-state values is performed on a grid-connected DFIG-based WTS by eigenvalue analysis and time-domain simulations. GSC controller states and DC-link voltage controller states are also considered in the analysis.