1 Introduction

Wind energy generation is developing very quickly. Many large-scale wind farms (WFs) have been integrated into the power grid, and they have had significant impact on the operation of the power grid [1]. The model of the WF is a major factor in evaluation; however, it has been widely recognized that it is inefficient to model each wind turbine (WT) in the WF in the dynamic simulation of the power grid integrated with large scale WFs. Hence, the equivalent model of the WF needs to be built to improve the efficiency of the simulation [2].

Many studies have been carried out to build the equivalent model for the WF. A one-machine equivalent model was developed in [3, 4] to represent the WF. Simulations showed that the dynamic responses of the aggregated model were very close to those of the detailed model under the disturbances of wind speed change and grid fault and the computational complexity was reduced significantly, but the impact factors were not discussed. In [5], the parameter calibration was performed when WF was large, with variations in the wind speed received by the individual WTs, the type of WTs installed in the WF, and the impedance of the collector system. After calibration, the accuracy of the one-machine model was improved under different conditions. In [6], 150 WTs in an offshore WF were separated into three equal groups, and a three-machine equivalent model was proposed to represent WF. The WT cluster method is very simple, and it is also difficult to carry out the parameter estimation for three machines. For the equivalent models mentioned above, the details of the WTs, collector network, and control system must be known before the equivalence, which is very difficult for power system operators.

The recently developed WTs, such as the WT with the doubly fed induction generator (DFIG) or direct drive permanent magnet generator, are interfaced to the power grid through the back-to-back converters, which decouple the inertia dynamics of the WT from the power grid. Hence, from the power grid’s perspective, the dynamics of the WF are different from those of the traditional power plants, which are normally connected to the power grid directly. The converters and their controllers play important roles in the dynamic responses of the WTs under the conditions of power system faults and wind speed changes. For the installed WTs, it is difficult for the power grid operators to know the details of the WF, especially the structure of the controllers and their parameters. In this condition, the traditional equivalent modeling method based on the component models of the WT is not suitable to aggregate the dynamic models of the WF. Hence, it is necessary to study the equivalent modeling method for the WF [7].

The transfer function  based equivalent modeling method has been widely used in equivalent modeling for power systems. This model has been successfully used to aggregate the dynamics of the electrical load and excitation system of the synchronous generator in [8] and [9], respectively. When using the transfer function to build the equivalent model, the object is regarded as a “black box” or a “grey box.” The dynamics of the input and output of the object are used to build the equivalent model, while the details of its structure and parameters are not required. Hence, the transfer function based equivalent modeling method is suitable to be used to aggregate the dynamics of the WF.

In this paper, a transfer function based equivalent model is proposed to represent the dynamics of the WF under the power grid fault and wind speed variation. The coherence of the WTs in the WF are discussed to examine whether the conditions of the aggregation are satisfied. A decoupled parameter-estimation strategy is also developed, and particle-swarm optimization (PSO) is applied to estimate the parameters of the equivalent model of the WF. A WF consisting of 16 WTs with DFIG is built in MATLAB, and simulations are performed to test the proposed transfer function based equivalent model. The field-measured dynamics are also used to build the equivalent model for a real WF. The proposed equivalent model is hence validated.

2 Transfer function based equivalent model for WF

The output power of the WF changes under power system faults and variation of the wind speed. During a system fault, the terminal voltage drops sharply, and the output power of the WF changes quickly, which mainly depends on the control capability of the back-to-back converters and their controllers; when the wind speed varies, the output power of the WF changes with a short time delay because of the inertia of the WTs.

The equivalent model is built to describe the dynamics of the WF under both the system fault and wind speed variation. Because the output power of the WF changes quickly with the terminal voltage, the WF is regarded as a nonlinear equivalent impedance. Hence, the output power is proportional to the square of the terminal voltage. According to the aerodynamics of the WT, the output power is proportional to the cube of the wind speed. Hence, taking the terminal voltage and wind speed as the input, and the active power and reactive power of the WF as the output of the equivalent model, the transfer function based equivalent model for the WF is written as:

$$\left\{ \begin{aligned} P = P_{0} \left[ {H_{pu} (s)\left( {\frac{U}{{U_{0} }}} \right)^{2} } \right]\left[ {H_{pv} (s)\left( {\frac{v}{{v_{0} }}} \right)^{3} } \right] \hfill \\ Q = Q_{0} \left[ {H_{qu} (s)\left( {\frac{U}{{U_{0} }}} \right)^{2} } \right]\left[ {H_{qv} (s)\left( {\frac{v}{{v_{0} }}} \right)^{3} } \right] \hfill \\ \end{aligned} \right.$$
(1)

where P and Q are the output active power and reactive power of the WF, respectively; U and U0 are the terminal voltage of the WF and its initial value, respectively; v and v0 are the input wind speed and its initial value, respectively; Hpu, Hpv, Hqu and Hqv are the transfer functions, and the uniform of the transfer functions can be written as follows:

$$H(s) = \frac{{b_{m} s^{m} + b_{m - 1} s^{m - 1} + \cdots + b_{0} }}{{s^{n} + a_{n - 1} s^{n - 1} + \cdots + a_{0} }}$$
(2)

where bm, bm-1, …, b0, an-1, an-2, …, a0 are the constant coefficients; \(m \le n\); a0=b0.

The configuration of the active power model is shown in Fig. 1, and the configuration of the reactive power model is similar to that of the active power model.

Fig. 1
figure 1

Configuration of the equivalent model for active power

Compared to the traditional component-based equivalent modeling method, the transfer function modeling method treats the WF as a black box, and the equivalent model is an input/output (I/O) model, which does not have any explicit physical significance. Because the parameters of the WT in the WF are not required during the transfer function based equivalent modeling, its accuracy is lower than that of the model built by the component-based equivalent modeling method. Other similar methods, such as artificial neural network (ANN), can also be used to build the equivalent model for the WF. However, the ANN-based equivalent modeling method is difficult to be integrated into the commercial power system analysis software, whereas the transfer function based equivalent modeling method can be easily integrated into the commercial power system analysis software by the user definition function, including PSASP developed by China Electric Power Research Institute.

3 Coherence of WTs in WF

To aggregate the WTs in the WF into an equivalent model, the WTs in the WF must be coherent with each other [10]. For the synchronous generator, if the oscillations of the power angles between generators are coherent, these synchronous generators are coherent with each other, and can be aggregated into one equivalent synchronous generator. Meanwhile, the induction generators are usually used in the WTs and their inertias are decoupled by the power electronic devices. The power angle is no longer a suitable variable to determine the coherence of the WTs in the WF. However, the objective of the equivalent modeling is to minimize the error between the output power dynamics of equivalent model and the measurements. Under this condition, the dynamics of the output active power under the disturbance are used to study the coherence between the WTs in the WF.

A WF consisting of 16 WTs and interfaced into an infinite bus system via double transmission lines is built in MATLAB. The parameters of the simulation system are listed in the Appendix A. The configuration of the system is shown in Fig. 2. It is assumed that the wind flows into the WF from the left side of the WF. Considering the wake effect in the WF, the wind speeds flowing into different WTs are listed in Table 1. Simulations are carried out to obtain the dynamics of the output active power of the WTs under the system fault condition. Some of the dynamic responses of the WTs in the WF are shown in Fig. 3, and the dynamics of the WT under the system fault are close to each other. Applying the cluster analysis, the similarities among the different dynamic responses are analyzed using (3).

$$r_{ij} = 1 - \frac{{\sum {( {P_{i} ( t ) - P_{i} ( {t_{0} } )} )( {P_{j} ( t ) - P_{j} ( {t_{0} } )} )} }}{{\sqrt {\sum {( {P_{i} ( t ) - P_{i} ( {t_{0} } )} )^{2} } } \sqrt {\sum {( {P_{j} ( t ) - P_{j} ( {t_{0} } )} )^{2} } } }}$$
(3)

where Pi and Pj are the output active power of the ith and jth WT, respectively; t and t0 are the time of the sampling and its initial value; rij is the similarity index, which demonstrates the difference between dynamics responses of the ith WT and the jth one.

Fig. 2
figure 2

Configuration of simulation system

Table 1 Wind speeds of different WTs
Fig. 3
figure 3

Dynamic responses of different WTs

If rij is close to 0, these dynamic responses are similar, and the ith WT and jth WT are coherent with each other. The results of the cluster analysis shown in Fig. 4 illustrate that rij between the dynamic responses of different WTs in the WF are all lower than 0.01. Therefore, the WTs in the WF are coherent and can be aggregated to an equivalent model.

Fig. 4
figure 4

Result of cluster analysis

4 Decoupling parameter-estimation strategy for equivalent model

The parameters of the transfer function based equivalent model include the parameters Hpu(s), Hpv(s), Hqu(s) and Hqv(s). There are tens of parameters in the equivalent model to be estimated. If all these parameters are estimated simultaneously, it is difficult for the parameter-estimation method to converge. Hence, the decoupled parameter-estimation strategy must be developed to obtain the parameters of the equivalent model.

Fortunately, as mentioned in Section 2, the dynamics of the WF under the system fault are much faster than those under the variation of the wind speed. In other words, they are decoupled with each other between time scales. The decoupling parameter-estimation strategy is proposed as follows.

When the parameters of the voltage-related transfer function Hpu(s) and Hqu(s) are estimated, the wind speed is assumed to be constant; when the parameters of the wind speed-related transfer function Hpv(s) and Hqv(s) are estimated, the terminal voltage of the WF is assumed to be constant. Additionally, the active power-related transfer function and the reactive power-related transfer function are independent of each other because of the decoupling control strategy, and their parameters are estimated separately. Therefore, the number of simultaneously estimated parameters is decreased significantly, and the efficiency of the parameter estimation is improved.

The PSO is used in the parameter estimation, and its flow chart is shown in Fig. 5. The details of the steps of PSO are presented in [11, 12]. The steps of the parameter estimation for the voltage-related transfer function Hpu(s) in the active power model are taken as the example to be introduced as follows.

Fig. 5
figure 5

Flow chart of PSO

  • Step 1: Initialization. In this step, bounds for the parameters, initial particles, bounds for the velocities for position updating, and initial velocities are generated.

  • Step 2: Evaluation. The fitness values are calculated to evaluate the particles using the following fitness function:

    $$F = \hbox{min} \left\{ {\sum\limits_{l = 1}^{{c_{\text{c}} }} {\left( {P_{lm} - P_{lc} } \right)^{2} } } \right\}$$
    (4)

    where Plm is the measured output active power of the WF; Plc is the calculated output active power of the WF equivalent model; cc is the number of the sampling.

  • Step 3: Loop. Stopping criteria are checked. If the maximum number of iterations is reached or the fitness value is smaller than a specified value, the optimization stops, and the particle with the smallest fitness value is taken as the estimated parameter for the equivalent model; otherwise, it goes to Step 4.

  • Step 4: Updating velocities and positions. The detailed method for velocity and position updating can be found in [12, 13]. After the update, go to Step 2.

5 Effectiveness evaluation of equivalent modeling method

5.1 Model evaluated using the simulations in MATLAB

  1. 1)

    Parameter estimation of the voltage-related transfer function

When the parameters of the voltage-related transfer function are estimated, the wind speed is assumed to be constant. Using the simulation system mentioned in Section 3 and applying a three-phase short-circuit fault at the middle of transmission line, as shown in Fig. 2, the dynamics of the WF are simulated. Taking the simulated dynamics as the measurements of the WF, the parameters of the voltage-related transfer function with different orders are estimated. The errors between the simulated dynamics and the outputs of the equivalent models with different orders are listed in Table 2. From Table 2, it can be seen that the errors between the simulated dynamics and those of the outputs of the equivalent model decrease significantly from the 1st-order model to 3rd-order model, whereas the errors decrease slightly when the order of the transfer function is greater than 3. Hence, the 3rd-order transfer function is the most cost-efficient model for the voltage-related equivalent model, and it is used in the further study in this paper. The estimated parameters of the 3rd-order model are listed in Table 3. The dynamics of the outputs of the 3rd-order model are also shown in Fig. 6. The dynamics of the output of the 3rd-order model are very close to those simulated.

Table 2 Errors between simulated and calculated dynamics using voltage-related transfer-function model
Table 3 Parameters of 3rd-order voltage-related model
Fig. 6
figure 6

Dynamics of 3rd-order voltage-related model

  1. 2)

    Parameter estimation of the wind speed-related transfer function

When the parameters of the wind speed-related transfer function are estimated, the terminal voltage of the WF is assumed to be constant. The wind speed, consisting of basic wind, gusty wind, ramp wind, and noisy wind, is the input variable of the WF, as shown in Fig. 2. Considering the wake effect, the wind speed decreases by 5% after flowing through a WT. The simulations are performed. The input wind speed and the output active and reactive power of the WF are taken as the measurements to build the equivalent model.

Because the inertia of the WT is large and the dynamics of the output power are slightly delayed, bm in (2) of the wind speed-related transfer function is set to 0. The parameters of the wind speed-related transfer function with different orders are estimated. The errors between the simulated dynamics and the dynamics of the equivalent model with different orders are also listed in Table 4. From Table 4, it is concluded that the 3rd-order model is the most suitable one. Hence, the 3rd-order transfer function is used in the later works of this paper. The estimated parameters of the 3rd-order model are listed in Table 5, and the dynamics of the output active and reactive power of the 3rd-order model are also shown in Fig. 7. The dynamics of the output of the 3rd-order model and those simulated match very well.

Table 4 Errors between simulated and calculated dynamics using voltage-related transfer-function model
Table 5 Parameters of 3rd-order wind speed-related model
Fig. 7
figure 7

Dynamics of WF under variation of wind speed

  1. 3)

    Evaluation of the equivalent model

Based on the voltage-related and wind speed-related model, the transfer function based equivalent model of the WF is built as follows:

$$\left\{ \begin{aligned} P = P_{0} \left[ {\frac{{ - 1.5067s^{3} + 4.3238s^{2} - 5.7532s + 2.6132}}{{s^{3} + 36.01s^{2} + 40.81s + 2.6132}}\left( {\frac{U}{{U_{0} }}} \right)^{2} } \right] \hfill \\ \, \cdot \left[ {\frac{{1.6826s^{2} + 4.1659s + 0.3545}}{{s^{3} + 19.5s^{2} + 10.46s + 0.3545}}\left( {\frac{v}{{v_{0} }}} \right)^{3} } \right] \hfill \\ Q = Q_{0} \left[ {\frac{{ - 6.8280s^{3} + 175.68s^{2} + 4.2096s + 1.3083}}{{s^{3} + 4.9014s^{2} + 0.6332s + 1.3083}}\left( {\frac{U}{{U_{0} }}} \right)^{2} } \right] \hfill \\ \, \cdot \left[ {\frac{{7.4130s^{2} + 2.0827s + 0.0301}}{{s^{3} + 16.1s^{2} + 0.7027s + 0.0301}}\left( {\frac{v}{{v_{0} }}} \right)^{3} } \right] \hfill \\ \end{aligned} \right.$$
(5)

The model is built in MATLAB. To evaluate the robustness of the equivalent model, another wind speed shown in Fig. 8 is injected into the WF, and a three-phase short-circuit fault is applied to the middle of the transmission line at 11 s and cleared after 0.1 s. The simulations are carried out, and the dynamics of output active and reactive power during the entire simulation period and around the time of the fault are shown in Fig. 7. The dynamics of the equivalent model are very close to those of the detailed WF model. The errors in the active power and reactive power are 0.82 and 4.20%, respectively.

Fig. 8
figure 8

Dynamics of equivalent model and detailed model

5.2 Model evaluation using field measurements

The phasor measurement unit (PMU) is installed at the terminal of a WF, which is located in Northwest China. The WF comprises 20 WTs with DFIG. Because the capacity of each WT is 1.5 MW, the total capacity of the WF is 30 MW. A system fault happened on December 15, 2012, and the dynamics of the terminal voltage, output active power, and output reactive power are recorded and shown in Fig. 8. Using the recorded dynamics, the voltage-related transfer function of the equivalent model of the WF is built as follows:

$$\left\{ \begin{aligned} P &= P_{0} \left[ {\frac{{ - 3.42s^{3} + 45.34s^{2} + 5.18s + 2.24}}{{s^{3} + 38.37s^{2} + 25.23s + 2.24}}\left( {\frac{U}{{U_{0} }}} \right)^{2} } \right] \hfill \\ Q &= Q_{0} \left[ {\frac{{ - 14.32s^{3} - 273.92s^{2} + 14.18s + 4.24}}{{s^{3} + 48.37s^{2} + 43.78s + 4.24}}\left( {\frac{U}{{U_{0} }}} \right)^{2} } \right] \hfill \\ \end{aligned} \right.$$
(6)

The dynamics of the output active and reactive power of the equivalent model are also shown in Fig. 9. The output dynamics of the equivalent model are very close to the recorded dynamics. The errors between the measured dynamics and those of the equivalent model are 0.37 and 1.7% for active power and reactive power, respectively.

Fig. 9
figure 9

Dynamics of recorded output power and those of equivalent model under system fault

The measured dynamics of the output active power of the real WF under the variation of the wind speed is also chosen to build the wind speed-related equivalent model. The variations of the wind speed and active power are shown in Fig. 10. The equivalent model is built as follows:

$$P = P_{0} \left[ {\frac{{0.6023s^{3} + 0.0584s^{2} + 0.0301s + 0.0005}}{{s^{3} + 0.7808s^{2} + 0.0514s + 0.0005}}\left( {\frac{v}{{v_{0} }}} \right)^{3} } \right]$$
(7)
Fig. 10
figure 10

Dynamics of recorded output power and those of equivalent model under wind speed variation

The active power of the equivalent model is also shown in Fig. 10. The output power of the equivalent model is close to the recorded value. The error between the measured dynamics and the output of the equivalent model is 2.86%.

6 Conclusion

In this paper, an equivalent modeling method for the WF has been proposed. Because the equivalent model is based on the transfer function, the objective of the modeling is to describe the relation between the dynamics of the WF output and input variation. The detailed structure and parameters of the WF are not necessary, which is very convenient during the construction of the equivalent model. A decoupled parameter-estimation strategy has also been developed to estimate the parameters of the equivalent model, and the efficiency of the parameter estimation has been improved. The proposed equivalent modeling method has been employed to build the aggregated model for a simulation system and a real WF. The outputs of the equivalent models match well with those of the WF. The proposed equivalent model is confirmed to be effective to aggregate the dynamics of the WF using actual, real-time measurements.