Open Access
This article is

- freely available
- re-usable

*Energies*
**2017**,
*10*(1),
102;
https://doi.org/10.3390/en10010102

Article

Modeling and Maximum Power Point Tracking Control of Wind Generating Units Equipped with Permanent Magnet Synchronous Generators in Presence of Losses

Department of Electrical, Electronic, Telecommunications Engineering and Naval Architecture, University of Genoa, Via Opera Pia 11a, I-16145 Genoa, Italy

^{*}

Author to whom correspondence should be addressed.

Academic Editor:
Paolo Mercorelli

Received: 27 September 2016 / Accepted: 3 January 2017 / Published: 15 January 2017

## Abstract

**:**

This paper focuses on the modeling of wind turbines equipped with direct drive permanent magnet synchronous generators for fundamental frequency power system simulations. Specifically, a procedure accounting for the system active power losses to initialize the simulation starting from the load flow results is proposed. Moreover, some analytical assessments are detailed on typical control schemes for fully rated wind turbine generators, thereby highlighting how active power losses play a fundamental role in the effectiveness of the wind generator control algorithm. Finally, the paper proposes analytical criteria to design the structure and the parameters of the regulators of the wind generator control scheme. Simulations performed with Digsilent Power Factory validated the proposed procedure, highlighting the impact of active power losses on the characterization of the initial steady state and that the simplifying assumptions done in order to synthesize the controllers are consistent with the complete modeling performed by the aforementioned power system simulator.

Keywords:

power systems modeling; renewable power generation; wind power## 1. Introduction

The evolution of the electricity production scenario changed the operating conditions of the electricity system itself providing, on one side, benefits related to distributed generation from renewables [1,2] but, on the other, issues in terms of quality, security and reliability of power generation and delivery related to the stochastic behavior of the prime energy source [3,4,5]. The strong presence of power electronic devices in renewable energy sources (RES) like photovoltaic or wind power plants makes them suitable and flexible enough to act as supporters for the electricity system operation [6,7], as they can provide some of the ancillary services that in the past needed the installation of dedicated devices [8,9]. For these reasons, numerous grid code requirements of various electricity system operators all over the world are beginning to require large renewable plants to act as providers of ancillary services. Examples of this can be found in the Italian, German, French and Canadian technical regulations [10,11,12,13]. As a consequence, both the increasing number of RES installations integrated into large-scale electrical power systems and the necessity of enhancing their performances in order to meet the standard requirements illustrate the need for the development of adequate modeling of such units and effective control systems [14].

From this point of view, wind turbine generator (WTG) controllers are much more demanding, due to the presence of many different devices (turbine, gearbox, shaft, electric machine, power electronic converters, controllers and so on) and configurations.

From a power system modeling point of view, to evaluate the impact of high wind power penetrations on electrical power systems, there is the necessity to incorporate WTG models into already existing software packages that perform all the typical power system analyses (e.g., load flow calculation, root mean square (RMS) transients, electromagnetic (EMT) transients, short circuit analysis and so on). To reach this goal, many different papers have been published in the literature specifying the assumptions that have to be made in order to make such models effective with respect to the results one wants to obtain and consistent with the modeling of the remaining part of the power system (see [15,16,17] for details). To this extent, the first problem to be solved is related to the calculation of the initial conditions for a dynamic simulation starting from the load flow results of the power system. This aspect has been addressed in [18], under the hypothesis of a lossless system, but, to the best of our knowledge, the initialization problem is still unsolved if active power losses occur. The losses issue has been addressed in [19] and more recently in [20]. In [19], a control scheme for a back-to-back supplied induction generator is proposed in order to minimize the overall system losses, whereas in [20], the authors focused on evaluating how the maximum power point moves if one accounts for them and proposed a new maximum power point tracking (MPPT) iterative method.

However, neither [19] nor [20] discussed the problem of the dynamic system initial condition calculation in the presence of active power losses.

From the control system standpoint, different solutions have been studied in the literature accounting for both traditional and innovative approaches. In this last case, two of the most widely employed nonlinear control techniques, i.e., feedback linearization (FBL) and sliding modes (SM) have been employed respectively in [21,22,23]. In [22], the attention is concentrated on the control of the machine side converter (MSC) and the application of the particle swarm optimization for the MPPT, while in [21] a unified control scheme for both the machine and grid side converter (GSC) is presented. The problem of model and parametric uncertainties typical of model-based control techniques like FBL is overcome in [23] with a method able to handle disturbances. However, whereas references [21,22] suffer from robustness problems, the control strategy proposed in [23] is very demanding in terms of the design of the WTG controller.

For this reason, in many applications, WTGs are still equipped with controllers designed on the basis of classical, proportional integral derivative (PID)-based controllers. In particular, modeling and control concepts for the doubly fed induction generator (DFIG) are presented in [24,25]; both of them propose a nested control structure where each controller consists of a classical proportional integral (PI) structure, but they do not give evidence of the impact of the losses in the control scheme. Furthermore, while reference [24] does not provide any guidelines on how to choose the controller parameters, reference [25] states that an analytical derivation of the transfer function required to assign the system closed loop poles is not practical and so moves toward a reduced order model.

The other widely employed wind turbine concept is the direct drive synchronous generator (DDSG) consisting of either a permanent magnet synchronous generator (PMSG) or an electrically excited one. Such a structure is addressed in [26,27,28], but, again, no reference is made to the losses problem both from the steady-state modeling and from the controller design point of view. Moreover, reference [26] focuses on the supervisory reactive power control that produces the reference signals for the lower hierarchical level controller, reference [27] provides a small signal stability analysis and reference [28] presents three possible control strategies according to three different control aims, i.e., the unity power factor, the constant stator voltage and the maximum torque. However, in all the cases, a criterion to choose the controller parameters is missing. This aspect has been addressed for the only case of the GSC controller in [29] and some numerical tests appear in [30], but without a comprehensive dissertation related to the PMSG model.

As a consequence of this very complex and varied literature framework, the aim of the present paper is that of filling the following gaps:

- Defining a methodology to manage the initialization of WTG models in the presence of power system losses;
- Proposing a control scheme that allows tracking the maximum power point even in the presence of losses;
- Providing a detailed analyses on the structure of the controllers and analytical criteria to choose their parameters according to the system’s desired dynamic behavior.

The paper is organized as follows. Section 2 proposes a review of the power system model of a fully rated WTG equipped with a PMSG, while Section 3 is dedicated to the problem of the system initialization in the presence of active power losses. Section 4 proposes an application of the procedure defined in Section 3 and provides some analytical results to highlight the error committed by neglecting active power losses. In Section 5, a detailed description of the overall machine control scheme is proposed, while in Section 6 criteria to properly define the parameters of the different unit controllers are detailed. Finally, Section 7 is dedicated to the validation of the procedure described in Section 6, followed by some conclusive remarks in Section 8.

## 2. Power System Model

One of the two most employed strategies to integrate the power coming from a wind plant into the electric system is that of using a PMSG connected to the grid by means of two power electronic converters (as depicted in Figure 1) [15,16].

The first one (from now on MSC) is typically adopted in order to extract the maximum power from the wind turbine and to control the voltage (V

_{m}) at the machine terminals. The second one (from now on GSC) controls the voltage on the DC link (v_{DC}) and the reactive power (Q_{g}) delivered to the distribution network.In order to define a suitable control architecture to follow the abovementioned goals, it is necessary to derive a mathematical model of the system to be controlled.

#### 2.1. Wind Turbine Model

As is well known, in power system simulations wherein the electrical behavior of the wind system is the main point of interest, a simplified modeling of the wind turbine rotor is normally used. Such a model consists of the following algebraic relation between wind speed and the extracted mechanical power:
where P
where R is the rotor radius. The performance coefficient’s typical shape is depicted in Figure 2 [31].

$${P}_{WT}\left(\mathsf{\omega},{v}_{w},\mathrm{q}\right)=\frac{1}{2{S}_{b}}\mathsf{\rho}A{c}_{p}\left[\mathsf{\lambda}\left(\mathsf{\omega},{v}_{w}\right),\mathsf{\theta}\right]{v}_{w}^{3}$$

_{WT}is the power extracted from the wind in p.u. on the electric machine base S_{b}; $\mathsf{\rho}$ is the air density (kg/m^{3}); A is the area covered by the rotor (m^{2}), θ is the pitch angle of rotor blades (deg), v_{w}is the wind speed at hub height upstream the rotor (m/s); and ω is the turbine angular speed in p.u. on the base of the rated machine speed ω_{n}. c_{p}is the performance coefficient or power coefficient depending on the pitch angle θ and on the tip speed ratio, defined as:
$$\mathsf{\lambda}=\frac{R\mathsf{\omega}}{{v}_{w}}$$

From Figure 2 it can be observed that for an assigned value of the pitch angle, there exists only one value of the tip speed ratio that maximizes the performance coefficient. As a consequence, for any wind speed, there exists only one turbine angular speed ω* that allows extracting the maximum power P
where ${\mathsf{\lambda}}_{p,opt}$ is the optimal tip speed ration at null pitch angle corresponding to the maximum performance coefficient (${c}_{p,opt}$).

_{WT}* from the wind. Therefore, to maximize the unit power production, the following control curve (MPPT curve) can be defined as [32]:
$${P}_{WT}*=\{\begin{array}{c}0\text{\hspace{1em}}\mathsf{\omega}<{\mathsf{\omega}}_{min}\\ \frac{\mathsf{\rho}A{c}_{p,opt}R}{2{S}_{b}{\mathsf{\lambda}}_{p,opt}}{\mathsf{\omega}}^{*3}\text{\hspace{1em}}{\mathsf{\omega}}_{min}\le \mathsf{\omega}<{\mathsf{\omega}}_{max}\\ {P}_{max}\text{\hspace{1em}}\mathsf{\omega}\ge {\mathsf{\omega}}_{max}\end{array}$$

Moreover, increasing the pitch angle will result in a reduction of the power extracted from the wind. As a consequence, this feature is typically used to avoid over-synchronous speeds and is implemented in the so-called pitch angle controller (see [15,16] for details). The working principle of the pitch controller is the following: when the electric machine angular speed exceeds a specified threshold, the controller changes the value of the pitch angle in order to reduce the power extracted from the wind. Since the pitch control works only for over-synchronous speeds, an anti-wind up limiter locks the pitch angle to 0 for sub-synchronous speeds.

The machine stator voltage amplitude, V

_{m}, is set according to the desired machine speed in the so-called “constant V/f” regulation mode. In other words, the per unit stator voltage amplitude is equal to the per unit machine speed until the stator rated voltage (1 p.u.). For speed values higher than 1 p.u., the stator voltage reference is kept to 1 p.u. To summarize, the machine stator voltage reference can be defined as:
$${V}_{m}^{*}=\mathrm{min}\left\{{\mathsf{\omega}}^{*},1\right\}$$

In accordance with Equations (3) and (4), for a given wind speed the machine angular speed, the power extracted from the primary source and the machine voltage amplitude are uniquely defined.

#### 2.2. Permanent Magnet Synchronous Generator Model

Describing the machine in a Park-oriented frame [33] with the passive sign convention from a mechanical point of view and the active sign convention from the electrical one, the stator electric equations (in p.u. on the machine basis) are as follows [3]:
where R
where x
and the motion equation states that:
where H is the WTG inertia constant.

$$\{\begin{array}{l}{v}_{md}=-{R}_{s}{i}_{sd}-\frac{1}{{\mathsf{\omega}}_{n}}\frac{d{\mathsf{\varphi}}_{sd}}{dt}-\mathsf{\omega}{\mathsf{\varphi}}_{sq}\\ {v}_{mq}=-{R}_{s}{i}_{sq}-\frac{1}{{\mathsf{\omega}}_{n}}\frac{d{\mathsf{\varphi}}_{sq}}{dt}+\mathsf{\omega}{\mathsf{\varphi}}_{sd}\end{array}$$

_{s}is the stator resistance, v_{md}_{(q)}is the direct (quadrature) axis component of the machine voltage, i_{sd}_{(q)}is the direct (quadrature) axis component of the current outgoing from the machine (see Figure 1) and φ_{sd}_{(q)}is the direct (quadrature) axis component of the machine linkage. The magnetic stator equations are the following:
$$\{\begin{array}{l}{\mathsf{\varphi}}_{sd}={x}_{d}{i}_{sd}+\mathsf{\psi}\\ {\mathsf{\varphi}}_{sq}={x}_{q}{i}_{sq}\end{array}$$

_{d}, x_{q}and ψ are the stator direct and quadrature axis reactances at rated frequency and the permanent magnet flux respectively. Finally, the electromagnetic torque (T_{e}) is given by:
$${T}_{e}=-{i}_{sd}{\mathsf{\varphi}}_{sq}+{i}_{sq}{\mathsf{\varphi}}_{sd}=\left({x}_{d}-{x}_{q}\right){i}_{sd}{i}_{sq}+\mathsf{\psi}{i}_{sq}$$

$$\frac{{P}_{WT}}{\mathsf{\omega}}-{T}_{e}=2H\frac{d\mathsf{\omega}}{dt}$$

#### 2.3. Machine Side Converter Model

The MSC can be considered as a voltage source V
where R and L are the connection cable resistance and inductance. Finally, the PWM modulating index m
where V

_{s}, whose axis components v_{sd}and v_{sq}can be adjusted acting on the pulse width modulation (PWM) inverter parameters. This voltage is related to the machine one according to the following relationships:
$$\{\begin{array}{l}{v}_{sd}={v}_{md}-R{i}_{sd}-\left(\frac{L}{{\mathsf{\omega}}_{n}}\right)\frac{d{i}_{sd}}{dt}-\mathsf{\omega}L{i}_{sq}\\ {v}_{sq}={v}_{mq}-R{i}_{sq}-\left(\frac{L}{{\mathsf{\omega}}_{n}}\right)\frac{d{i}_{sq}}{dt}+\mathsf{\omega}L{i}_{sd}\end{array}$$

_{a}and phase angle δ can be obtained as follows:
$$\{\begin{array}{l}{m}_{a}=\frac{2}{{V}_{DC}}\sqrt{{{v}_{sd}}^{2}+{{v}_{sq}}^{2}}\\ \mathsf{\delta}=arctg\left(\frac{{v}_{sq}}{{v}_{sd}}\right)\end{array}$$

_{DC}is the DC link voltage.#### 2.4. Grid Side Converter Model

Assuming that the GSC can be modeled as an ideal voltage source (i.e., with no delays and no switching and state losses) and that the connection between the converter and the main network is represented as an R-L series impedance (accounting for cables, transformer and the series section of the filters), then, the system portion between the GSC and the network can be represented with the equivalent circuit of Figure 3.

Describing the system in a Park reference frame [33] rotating at the network angular frequency ω
where (in p.u. on the machine basis):

_{e}(expressed in p.u. on the rated angular frequency ω_{g}), the Kirchhoff voltage law applied to the mesh depicted in Figure 3 states that:
$$\{\begin{array}{l}{v}_{gd}={v}_{ed}-{R}_{T}{i}_{gd}-\frac{{L}_{T}}{{\mathsf{\omega}}_{g}}\frac{d}{dt}{i}_{gd}-{\mathsf{\omega}}_{e}{L}_{T}{i}_{gq}\\ {v}_{gq}={v}_{eq}-{R}_{T}{i}_{gq}-\frac{{L}_{T}}{{\mathsf{\omega}}_{g}}\frac{d}{dt}{i}_{gq}+{\mathsf{\omega}}_{e}{L}_{T}{i}_{gd}\end{array}$$

- R
_{T}and L_{T}are the connection resistance and the inductance, respectively; - v
_{ed}_{(q)}is the direct (quadrature) axis components of the voltage at the AC terminals of the GSC; - v
_{gd}_{(q)}is the direct (quadrature) axis components of the grid voltage and - i
_{gd}_{(q)}is the direct (quadrature) axis components of the current flowing in the connection.

## 3. Initialization of Fundamental Frequency Simulations Starting from Load-Flow Calculation

All the fundamental frequency simulations start from an equilibrium point deriving from a load flow calculation. As a consequence, it is necessary to derive a procedure that allows finding out the system equilibria starting from the load flow output, i.e., to initialize the variables of a wind power plant. Such a procedure has been studied in [18] for a lossless system.

Calculating the initial conditions of a dynamic model from load flow data means obtaining the inputs and the states of the system starting from the system outputs. Therefore, the description and modeling of the components of the wind power plant have to start from the grid connection point. Moreover, when calculating the initial conditions, the system is assumed to be at steady state. Therefore, the equations presented in the previous sections will be used for zeroing all the time derivatives. However, the procedure derived in [18] assumes that the system losses (i.e., electrical machine, transformer, cables and so on) are negligible. This means that if one applies this algorithm to a system where such losses are different from zero, the calculated solution will not result in an equilibrium point from which the simulation can start.

The present section proposes a modification of the initialization procedure described in [18] in order to account for the system losses.

With reference to the notations of Figure 3, the load flow calculation exposes the initial values (indicated with the subscript “0”) of the grid active power P

_{g}_{0}, of the reactive power Q_{g}_{0}and of the voltage phasor V_{g}_{0}at the machine bus. Starting from these values, the initialization problem can be split into two parts regarding the portion of the system between the AC terminals of the GSC and the external network connection (from now on network side portion) and the one between the wind turbine and the AC terminals of the MSC (from now on machine side portion).#### 3.1. Network Side Portion

For the network side portion, the initialization problem consists of finding the values of v
and:
which allows finding the initial values of the current axis components, as:

_{gd}_{0}, i_{gd}_{0}, i_{gq}_{0}, v_{ed}_{0}, v_{eq}_{0}. Choosing the Park initial angle such that the network voltage V_{g}has only a direct axis component [33], it thus follows that:
$$\{\begin{array}{l}{v}_{gd0}={V}_{g0}\\ {v}_{gq0}=0\end{array}$$

$$\{\begin{array}{l}{P}_{g0}={v}_{gd0}{i}_{gd0}\\ {Q}_{g0}={v}_{gd0}{i}_{gq0}\end{array}$$

$$\{\begin{array}{l}{i}_{gd0}=\frac{{P}_{g0}}{{V}_{g}}\\ {i}_{gq0}=\frac{{Q}_{g0}}{{V}_{g}}\end{array}$$

Inserting now Equations (12) and (14) into Equation (11) and nullifying the time derivatives, one can finally calculate the initial values of the axis components of the voltage at the AC terminals of the GSC.

#### 3.2. Machine Side Portion

For the machine side portion, the initialization problem consists of finding the values of v

_{sd}_{0}, v_{sq}_{0}, i_{sq}_{0}, i_{sd}_{0}, ω_{0}, P_{WT}_{0}, v_{w}_{0}. Neglecting the two converter losses, the active power P_{s}_{0}delivered at the AC terminals of the MSC can be calculated as:
$${P}_{s0}=[{P}_{g0}+{R}_{T}({{i}_{gd0}}^{2}+{{i}_{gq0}}^{2})]$$

It should be observed that, if one wants to account also for the converter losses, an empirical correction to the resistances R and R
and, if one inserts Equation (6) into Equation (5) and Equation (5) into Equation (9) and nullifies all the time derivatives (to account for the steady-state condition), it is possible to write the following steady state equations:

_{T}can be done without affecting the procedure (see [34] for details). The power P_{s}_{0}can be expressed as:
$${P}_{s0}={v}_{sd0}{i}_{sd0}+{v}_{sq0}{i}_{sq0}$$

$$\{\begin{array}{l}{v}_{sd0}=-\left({R}_{S}+R\right){i}_{sd0}-{\mathsf{\omega}}_{0}{x}_{q}{i}_{sq0}\\ {v}_{sq0}=-\left({R}_{S}+R\right){i}_{sq0}+{\mathsf{\omega}}_{0}{x}_{d}{i}_{sd0}+{\mathsf{\omega}}_{0}\mathsf{\psi}\end{array}$$

Moreover, assuming that the initial point is characterized by a speed belonging to the range $\left[{\mathsf{\omega}}_{min},{\mathsf{\omega}}_{max}\right]$, the MPPT curve coincides with the second of Equation (3), therefore:

$${P}_{WT0}=\frac{\mathsf{\rho}A{c}_{p,opt}R}{2{S}_{b}{\mathsf{\lambda}}_{p,opt}}{\mathsf{\omega}}_{0}^{3}$$

The active power balance between the wind turbine and the AC terminals of the MSC allows writing:

$${P}_{WT0}-(R+{R}_{S})({{i}_{sd0}}^{2}+{{i}_{sq0}}^{2})={P}_{s0}$$

Finally, after some algebraic manipulations, Equation (4) becomes:

$${{V}_{m0}}^{2}={{v}_{md0}}^{2}+{{v}_{mq0}}^{2}={({v}_{sd0}+R{i}_{sd0}+{\mathsf{\omega}}_{0}L{i}_{sq0})}^{2}+{({v}_{sq0}+R{i}_{sq0}-{\mathsf{\omega}}_{0}L{i}_{sd0})}^{2}=\mathrm{min}\{{{\mathsf{\omega}}_{0}}^{2},1\}$$

Equations (16), (17), (19) and (20) originate an algebraic nonlinear system of five equations in five unknown variables (${v}_{sd0},{v}_{sq0},{i}_{sd0},{i}_{sq0},{\mathsf{\omega}}_{0}$) that can be solved numerically.

Finally, the application of Equation (18) provides the initial value of the wind turbine power, while the corresponding wind speed can be defined by solving Equation (1). If the initial value of the machine angular speed falls out of the range $\left[{\mathsf{\omega}}_{min},{\mathsf{\omega}}_{max}\right]$, then Equation (18) is no longer valid; as a consequence, the procedure has to be modified setting P

_{WT}_{0}equal to P_{max}and assigning v_{w}_{0}independently (as described in [18]).In this case, the set of equations that allows the discovery of the solution is Equations (16), (17), (19) and (20) simply by substituting P

_{WT}_{0}with P_{max}.## 4. Application of the Proposed Initialization Procedure

In order to provide an application of the proposed methodology and to highlight the impact of power losses on the system equilibrium point, an initial condition calculation is proposed on two MVA wind generating units. The electrical machine main parameters are reported in Table 1 [20].

Moreover, the following numerical data are assumed (see Figure 1):

- The connection between the machine and the machine side converter is characterized by resistance R = 0.05 p.u. and an inductance L = 0.05 p.u. (on the machine basis)
- The connection between the GSC and the external network has an equivalent resistance R
_{t}= 0.005 p.u. and an equivalent inductance L_{t}= 0.05 p.u. (on the machine basis).

The power system is assumed to be operated in a load flow condition characterized by unitary voltage magnitude on the grid side bus-bar, a power production equal to 1.6 MW (0.8 p.u. on machine power base) and null reactive power production at the point of interconnection with the grid (i.e., V

_{g}= 1 p.u., P_{g}= 0.8 p.u. and Q_{g}= 0 p.u.). The results obtained applying the proposed methodology to the present test case are summarized in Table 2. The comparison of the proposed approach with the one described in [18] is presented in Table 2 which also reports the results of the lossless initial conditions calculations.As one can notice, active power losses affect all the variables characterizing the system steady state. In particular, the error on the wind speed evaluation is around 3%, while the error on the wind power is around 6.9%. Moreover, the most important result is that the loss-accounted system is initialized with a wind speed equal to 8.66 m/s (obtained by the lossless initialization), and the maximum power produced by the wind turbine is equal to 0.8 p.u., which is not consistent with the load flow results, as the active power delivered at the grid bus is going to be lower than 0.8 p.u. due to the losses. This means that using a lossless initialization as the starting point for a dynamic simulation will result in an undesired initial transient.

## 5. Fully Rated Converter Wind Generator Unit Control Scheme

As outlined in [28], the controllers of both MSC and GSC normally have a nested-loop structure with a fast inner current loop, controlling the stator d- or q-axis currents, combined with outer slower loops that pursue the control aims described in the previous section (i.e., extracting the maximum power from the wind turbine and controlling the voltage at the machine terminals for the MSC controller and regulating the voltage on the DC link and the reactive power delivered to the main network for the GSC one). The aim of this section is to describe the overall wind generator architecture that accounts for the system power losses before detailing an effective regulator synthesis in Section 6.

#### 5.1. Machine Side Converter Controller

The voltage channel takes its reference signal from Equation (4) and typically implements a structure of the kind depicted in Figure 4, where the output of the machine voltage regulator R

_{Vm}becomes the reference signal for the direct axis stator current regulator (the block MIN is the minimum selector representing Equation (4)).The torque channel aims at extracting the maximum power from the wind source. This is achieved by means of the MPPT function described in Equation (3); it should be noted that, once that curve is available, there is no need to measure the wind speed in order to know the optimal power that can be extracted from the wind for each turbine speed. In the literature, two main possible uses for this curve have been proposed:

In Type II configuration, the output of the speed controller feeds an active power controller R

_{P}; in both cases, the output of the power controller becomes the reference signal for the quadrature axis current regulator.Nevertheless, in both Type I and Type II configurations, the system is obliged to work at a point whereby the active power P

_{s}produced by the PMSG follows the MPPT curve, which is not feasible, unless one neglects the losses in the electric machine. This section details how to account for power system losses by introducing some corrections in the classical control scheme. Inserting now Equation (6) into Equation (5), and Equation (5) into Equation (9), one obtains:
$$\{\begin{array}{l}{v}_{sd}=-\left({R}_{s}+R\right){i}_{sd}-\frac{L+{x}_{d}}{{\mathsf{\omega}}_{n}}\frac{d{i}_{sd}}{dt}-\mathsf{\omega}\left(L+{x}_{q}\right){i}_{sq}\\ {v}_{sq}=-\left({R}_{s}+R\right){i}_{sq}-\frac{L+{x}_{q}}{{\mathsf{\omega}}_{n}}\frac{d{i}_{sq}}{dt}+\mathsf{\omega}\left(L+{x}_{d}\right){i}_{sd}+\mathsf{\omega}\mathsf{\psi}\end{array}$$

Then, the following power balance can be easily obtained:

$${P}_{s}={v}_{sd}{i}_{sd}+{v}_{sq}{i}_{sq}=-\left({R}_{s}+R\right)({{i}_{sd}}^{2}+{{i}_{sq}}^{2})-\frac{\left(L+{x}_{d}\right)}{{\mathsf{\omega}}_{n}}{i}_{sd}\frac{d{i}_{sd}}{dt}-\frac{\left(L+{x}_{q}\right)}{{\mathsf{\omega}}_{n}}{i}_{sq}\frac{d{i}_{sq}}{dt}+\mathsf{\omega}{i}_{sq}\mathsf{\psi}+\mathsf{\omega}{i}_{sq}{i}_{sd}\left({x}_{d}-{x}_{q}\right)$$

This balance can be written at a steady state, neglecting the rotor saliency as:

$$\begin{array}{l}{P}_{s}={v}_{sd}{i}_{sd}+{v}_{sq}{i}_{sq}=-{R}_{tot}({{i}_{sd}}^{2}+{{i}_{sq}}^{2})+\mathsf{\omega}{i}_{sq}\mathsf{\psi}=-\left({R}_{s}+R\right)({{i}_{sd}}^{2}+{{i}_{sq}}^{2})+\mathsf{\omega}{T}_{e}\\ ={P}_{WT}-\left({R}_{s}+R\right)({{i}_{sd}}^{2}+{{i}_{sq}}^{2})\end{array}$$

Equation (23) means that the power coming from the wind equals the active power available at the machine terminals plus the losses in the stator windings and in the cable connection. Both the control schemes appearing in Figure 5 and Figure 6 imply that P

_{s}follows the MPPT curve; thus, assuming that the desired working point is in the range in which the MPPT curve is increasing (i.e., the pitch controller is not active), with the same notations used in Section 2, it is possible to write the following power balance:
$$\frac{\mathsf{\rho}A{c}_{p,opt}R}{2{S}_{b}{\mathsf{\lambda}}_{p,opt}}{\mathsf{\omega}}^{3}={P}_{WT}(\mathsf{\omega},{v}_{w},0)-\left({R}_{s}+R\right)\left({{i}_{sd}}^{2}+{{i}_{sq}}^{2}\right)$$

The only solution for Equation (24) is in the case that the term $\left({R}_{s}+R\right)$ is equal to zero since the meaning of the left-hand side of Equation (24) is, by definition, the maximum value of the wind power ${P}_{WT}$.

From a physical point of view, this means that it is not possible to deliver to the AC terminals of the electric machine the maximum power that can be extracted from the wind, as this would imply that the original source (the wind) generates a greater amount of power in order to compensate for the losses.

A possible solution to this problem consists in modifying the control system to account also for power losses, as depicted in Figure 7 (a Type II scheme is presented as an example). However, it is not possible to know exactly the loss amount, due to possible errors in the current measurements, imperfect knowledge of the machine stator winding and cable resistances and impossibility to estimate properly eventual losses due to friction or air resistance. The meaning of Equation (24) suggests that what is necessary is to provide an upper bound for such losses, in order to avoid the situation in which the controller requires the wind turbine to produce more than what is physically possible.

#### 5.2. Grid Side Converter Controller

As far as the GSC is concerned, it is necessary to characterize the DC link transients. The DC link voltage v

_{DC}dynamic equation states that:
$$\frac{C}{2}\frac{d{v}_{DC}^{2}}{dt}={P}_{s}-{R}_{T}({{i}_{gd}}^{2}+{{i}_{gq}}^{2})-{P}_{g}$$

As the power coming from the PMSG tracks, the maximum power point, Equation (25), suggests the possibility of using the power injected into the grid to regulate the DC link voltage. As a consequence, one can set up a regulator that accepts as input the error on this voltage and produces the reference signal for the power P

_{g}*. Now, recalling Equation (13), this signal can be translated into a request for the direct axis current i_{gd}* simply by dividing by the amplitude of the point of interconnection voltage V_{g}. The reactive power channel is much simpler as the set point for the reactive power to be delivered to the grid; it can be translated into a request for the quadrature axis current i_{gq}*, recalling again Equation (13). The architecture of the GSC regulators is depicted in Figure 8.## 6. Criteria for the Synthesis of the Wind Turbine Generator Regulators

In this section, some guidelines will be provided in order to support the choice of the structure and parameters of the controllers for both the MSC (Section 6.1) and the GSC (Section 6.2). From now on, the Laplace transform of any time domain quantity will be indicated with the same symbol as the time domain function for the sake of readability.

#### 6.1. Machine Side Converter Regulator Synthesis

As outlined in the previous section, the MSC controller presents a nested structure, whose inner (and faster) loop is the current one, which consists of two regulators accepting as input the error on the direct (quadrature) axis current and producing as output the suitable values of the MSC AC side voltages. In order to derive structure and parameters of such regulators, it is possible recalling Equation (21); defining now two fictitious inputs w

_{sd}and w_{sq}as follows:
$$\{\begin{array}{l}{w}_{sd}=-{v}_{sd}-\mathsf{\omega}{x}_{q}{i}_{sq}\\ {w}_{sq}=-{v}_{sq}+\mathsf{\omega}{x}_{d}{i}_{d}+\mathsf{\omega}\mathsf{\psi}\end{array}$$

This implies that two decoupled relationships hold between such inputs and the axis currents:

$$\{\begin{array}{l}{w}_{sd}=\left({R}_{s}+R\right){i}_{sd}+\frac{L+{x}_{d}}{{\mathsf{\omega}}_{n}}\frac{d{i}_{sd}}{dt}\\ {w}_{sq}=\left({R}_{s}+R\right){i}_{sq}+\frac{L+{x}_{q}}{{\mathsf{\omega}}_{n}}\frac{d{i}_{sq}}{dt}\end{array}$$

This way it is possible to construct two scalar regulators R
where k
whose poles are the solution of:

_{d}and R_{q}that accept as input the error on the direct and quadrature axis current, respectively, and produce as output the signals w_{sd}and w_{sq}, as follows:
$$\{\begin{array}{l}{w}_{sd}\left(t\right)={k}_{P}\left({{i}_{sd}}^{*}\left(t\right)-{i}_{sd}\left(t\right)\right)+{k}_{I}{\displaystyle \underset{0}{\overset{t}{\int}}\left({{i}_{sd}}^{*}\left(\mathsf{\tau}\right)-{i}_{sd}\left(\mathsf{\tau}\right)\right)d\mathsf{\tau}}\\ {w}_{sq}\left(t\right)={k}_{P}\left({{i}_{sq}}^{*}\left(t\right)-{i}_{sq}\left(t\right)\right)+{k}_{I}{\displaystyle \underset{0}{\overset{t}{\int}}\left({{i}_{sq}}^{*}\left(\mathsf{\tau}\right)-{i}_{sq}\left(\mathsf{\tau}\right)\right)d\mathsf{\tau}}\end{array}$$

_{P}and k_{I}are their proportional and integral gains, respectively. As a consequence, the dynamic properties of the resulting system can be investigated by examining the following transfer function:
$${F}_{d(q)}(s)=\frac{\left({\mathrm{k}}_{P}+\frac{{k}_{I}}{s}\right)\frac{1}{{R}_{s}+R+\frac{L+{x}_{d(q)}}{{\mathsf{\omega}}_{n}}s}}{1+\left({\mathrm{k}}_{P}+\frac{{k}_{I}}{s}\right)\frac{1}{{R}_{s}+R+\frac{L+{x}_{d(q)}}{{\mathsf{\omega}}_{n}}s}}$$

$$\frac{L+{x}_{d(q)}}{{\mathsf{\omega}}_{n}}{s}^{2}+\left({R}_{s}+R+{k}_{P}\right)s+{k}_{I}=0$$

The solution of Equation (30) belongs to the left half plane for any positive value of k

_{P}and k_{I}, thus guaranteeing the stability of the current loop. Moreover, the solution of Equation (30) allows to choose k_{P}and k_{I}according to the desired transient behavior of the axis currents (i.e., placing the poles). The real inputs v_{sd}and v_{sq}can be obtained starting from w_{sd}and w_{sq}, thereby solving Equation (26), as shown in Figure 9.The reference signal for the quadrature axis current is provided by an active power regulator R

_{P}, as shown in Figure 5 and Figure 6; in order to define an effective structure for such a regulator, one has to consider the scheme depicted in Figure 10.As the inner current control loop is typically faster, to synthesize a possible active power regulator, one can assume that the action of the quadrature axis current controller is instantaneous, i.e.,

$${i}_{sq}\left(t\right)={{i}_{sq}}^{*}\left(t\right)$$

Moreover, neglecting the rotor saliency and recalling Equation (7), ${T}_{e}=\mathsf{\psi}{i}_{sq}$, in the hypothesis of no active power losses in Equations (16) and (17), the active power ${P}_{s}$ can be written as:

$${P}_{s}=\mathsf{\omega}\mathsf{\psi}{i}_{sq}$$

Finally, supposing that the angular speed transient is much slower than the active power one, the scheme depicted in Figure 10 can be simplified into the one of Figure 11; choosing a PI structure for the active power controller, the closed loop transfer function becomes:
where k

$${F}_{p}(s)=\frac{\mathsf{\omega}\mathsf{\psi}[{k}_{PP}s+{k}_{PI}]}{s+\mathsf{\omega}\mathsf{\psi}({k}_{PP}s+{k}_{PI})}$$

_{PP}and k_{PI}are the proportional and integral gains of the active power controller, respectively. In accordance with Equation (33), any positive value of k_{PP}and k_{PI}will lead the system to be asymptotically stable. It is also possible to place the pole of Equation (33) acting on the proportional and integral gains.The reference signal for the active power can be provided either by the MPPT block (Type I) or by a speed controller (Type II); in this latter case, the synthesis of such a controller can be achieved assuming negligible active power losses and instantaneous action of the active power controller, i.e.,

$${P}_{s}\left(t\right)={P}_{s}^{*}\left(t\right)$$

In this case, the control scheme depicted in Figure 6 becomes the one of Figure 12, whose closed loop transfer function is:
where k

$$\mathsf{\omega}(s)=\frac{{k}_{Pw}s+{k}_{Iw}}{2H{s}^{2}+{k}_{Pw}s+{k}_{Iw}}{\mathsf{\omega}}^{*}(s)+\frac{s}{2H{s}^{2}+{k}_{Pw}s+{k}_{Iw}}{P}_{WT}(s)$$

_{Pw}and k_{Iw}are the proportional and integral gains of the PI speed controller respectively. Once again, any positive value of k_{Pw}and k_{Iw}will provide an asymptotically stable closed loop system, while the prescribed transient behavior can be achieved by tuning k_{Pw}and k_{Iw}in order to obtain the desired values for the poles of Equation (35).Let us now summarize the procedure to define the control parameters of the MSC regulator: (i) choose the values of k

_{P}and k_{I}using Equation (30); (ii) choose the values of k_{PP}and k_{PI}by means of Equation (33) accounting for assumption Equation (31) (i.e., the amplitude of the pole of Equation (33) must be much smaller than the amplitudes of the poles of Equation (30); (iii) define the values of k_{Pw}and k_{Iw}in accordance with Equation (35), ensuring that the dynamics of the power loop are faster than the dynamics of the speed one (to meet condition of Equation (34)).The reference signal for the direct axis current is provided by a voltage regulator R
where the axis components are related to the axis currents by means of Equation (5). Nevertheless, Equation (36) defines a nonlinear function, it is possible to consider a first-order Taylor expansion centered in the initial balance point defined in the initialization procedure. To this extent, in the following for any quantity y the variation ∆y with respect to the initial equilibrium point y
and, recalling Equations (5) and (6), it is possible to obtain:
which, in the Laplace domain, becomes:
having defined:

_{Vm}, as shown in Figure 4; in order to define an effective structure for this regulator, one has to consider the scheme depicted in Figure 10. The amplitude of the machine voltage is given by:
$${{v}_{m}}^{2}={{v}_{md}}^{2}+{{v}_{mq}}^{2}$$

_{0}will be considered. As a consequence, Equation (36) becomes:
$$\Delta {{v}_{m}}^{2}=2{v}_{md0}\Delta {v}_{md}+2{v}_{mq0}\Delta {v}_{mq}$$

$$\{\begin{array}{l}\Delta {v}_{md}=-{R}_{s}\Delta {i}_{sd}-\frac{{x}_{d}}{{\mathsf{\omega}}_{n}}\frac{d\Delta {i}_{sd}}{dt}-{\mathsf{\omega}}_{0}{x}_{q}\Delta {i}_{sq}-{x}_{q}{i}_{sq0}\Delta \mathsf{\omega}\\ \Delta {v}_{mq}=-{R}_{s}\Delta {i}_{sq}-\frac{{x}_{q}}{{\mathsf{\omega}}_{n}}\frac{d\Delta {i}_{sq}}{dt}+{\mathsf{\omega}}_{0}{x}_{d}\Delta {i}_{sd}+{x}_{d}{i}_{sd0}\Delta \mathsf{\omega}+\mathsf{\psi}\Delta \mathsf{\omega}\end{array}$$

$$\Delta {{v}_{m}}^{2}(s)={\mathrm{G}}_{d}(s)\Delta {i}_{sd}(s)+{\mathrm{G}}_{q}(s)\Delta {i}_{sq}(s)+{\mathrm{G}}_{w}(s)\Delta \mathsf{\omega}(s)$$

$$\{\begin{array}{c}{\mathrm{G}}_{d}(s)=[2{v}_{mq0}{\mathsf{\omega}}_{0}{x}_{d}-2{v}_{md0}({R}_{s}+\frac{{x}_{d}s}{{\mathsf{\omega}}_{n}})]\\ {\mathrm{G}}_{q}(s)=[-2{v}_{mq0}({R}_{s}+\frac{{x}_{q}s}{{\mathsf{\omega}}_{n}})-2{v}_{md0}{\mathsf{\omega}}_{0}{x}_{q}]\\ {\mathrm{G}}_{w}(s)=[2{v}_{mq0}({x}_{d}{i}_{sd0}+\mathsf{\psi})-2{v}_{md0}{i}_{sq0}{x}_{q}]\end{array}$$

The equivalent block scheme of the simplified machine voltage dynamics is depicted in Figure 13.

Supposing that the direct axis current loop is instantaneous, (i.e., ${i}_{sd}\left(t\right)={{i}_{sd}}^{*}\left(t\right)$) it is possible to derive:

$$\Delta {{v}_{m}}^{2}(s)=\frac{{\mathrm{G}}_{d}(s){R}_{vm}(s)}{1+{\mathrm{G}}_{d}(s){R}_{vm}(s)}\Delta {{v}_{m}^{*}}^{2}(s)+\frac{{\mathrm{G}}_{q}(s)}{1+{\mathrm{G}}_{d}(s){R}_{vm}(s)}\Delta {i}_{sq}(s)+\frac{{\mathrm{G}}_{w}(s)}{1+{\mathrm{G}}_{d}(s){R}_{vm}(s)}\Delta \mathsf{\omega}(s)$$

Now choosing ${R}_{vm}(s)=\frac{s{k}_{Pvm}+{k}_{Ivm}}{s}$, the closed loop transfer function poles are the solutions of:

$$2{v}_{md0}\frac{{x}_{d}}{{\mathsf{\omega}}_{n}}{k}_{Pvm}{s}^{2}+[{k}_{Ivm}2{v}_{md0}\frac{{x}_{d}}{{\mathsf{\omega}}_{n}}+{k}_{Pvm}(2{v}_{md0}{R}_{s}-2{v}_{mq0}{\mathsf{\omega}}_{0}{x}_{d})-1]s+{k}_{Ivm}(2{v}_{md0}{R}_{s}-2{v}_{mq0}{\mathsf{\omega}}_{0}{x}_{d})=0$$

The parameters of the machine voltage regulator have to be defined in order to guarantee the asymptotic stability of the system for any initial working point. It should be observed that, given the wind power P

_{WT}_{0}, the solution of the nonlinear algebraic system consisting of Equations (16), (17), (19) and (20) allows to uniquely define the initial working point; as a consequence, the following algorithm can be set up:- Choose a couple of parameters k
_{Pvm}and k_{Ivm}; - For any value of P
_{WT}_{0}belonging to the range [P_{WTmin}, P_{WTmax}], determine the corresponding initial working point; - Evaluate v
_{md}_{0}and v_{mq}_{0}with Equations (5) and (6) having nullified the time derivatives; - Solve Equation (42);
- Adjust the values of k
_{Pvm}and k_{Ivm}s.t. for all the values of P_{WT}_{0}: (i) the solutions of Equation (42) have a negative real part; (ii) the solution of Equation (42) with smaller amplitude (i.e., the one that dictates the dynamic behavior of the voltage loop) is (in modulus) sufficiently smaller than the roots of Equation (30) to guarantee that the current loop is much faster than the voltage one.

To illustrate the proposed procedure, one can refer again to the machine with the data appearing in Table 1. Choosing k

_{P}= 0.1 and k_{I}= 10, the current loop has two complex conjugate poles s_{1,2}= −27 ± 45j. Now, selecting k_{Pvm}= 5 and k_{Ivm}= 2.5, the real part of the voltage loop poles are plotted in Figure 14 as a function of P_{WT}, highlighting both the stability of the system and the different timeframe of the two loops’ action.#### 6.2. Grid Side Converter Regulator Synthesis

Also, the GSC controller present a nested structure with an inner current control loop whose regulators can be designed in the same way as for the MSC.

Recalling Equation (11), two scalar regulators can be defined, one for i
and:
and indicating with x
and:

_{gd}and one for i_{gq}; furthermore, defining the following two quantities:
$${x}_{gd}={v}_{ed}-{v}_{gd}-{\mathsf{\omega}}_{e}{L}_{T}{i}_{gq}$$

$${x}_{gq}={v}_{eq}-{v}_{gq}+{\mathsf{\omega}}_{e}{L}_{T}{i}_{gd}$$

_{gd}and x_{gq}the regulator outputs, the system to be controlled is described by the following decoupled equations:
$${x}_{gd}={R}_{T}{i}_{gd}+\frac{{L}_{T}}{{\omega}_{g}}\frac{d}{dt}{i}_{gd}$$

$${x}_{gq}={R}_{T}{i}_{gq}+\frac{{L}_{T}}{{\mathsf{\omega}}_{g}}\frac{d}{dt}{i}_{gq}$$

This way it is possible to construct two PI regulators R
whose poles have a negative real part for any positive value of k

_{gd}and R_{gq}that accept as input the error on the direct and quadrature axis current, respectively, and produce as output the signals x_{sd}and x_{sq}, as for the MSC controller. As a consequence, indicating with k_{Pg}and k_{Ig}the proportional and integral gains of R_{gd}and R_{gq}, the dynamic properties of the resulting system can be investigated by examining the following transfer function:
$${F}_{gd(q)}(\mathrm{s})=\frac{\left({\mathrm{k}}_{Pg}+\frac{{k}_{Ig}}{s}\right)\frac{1}{{R}_{T}+\frac{{L}_{T}}{{\mathsf{\omega}}_{g}}s}}{1+\left({\mathrm{k}}_{Pg}+\frac{{k}_{Ig}}{s}\right)\frac{1}{{R}_{T}+\frac{{L}_{T}}{{\mathsf{\omega}}_{g}}s}}$$

_{Pg}and k_{Ig}. The reactive power control can be addressed simply by recalling Equation (14), which allows to transform the reference signal for the reactive power exchange into a request of quadrature axis current (see Figure 8).The DC link voltage v

_{DC}regulator synthesis can be done recalling Equation (25); in neglecting the active power losses, it is clear that for any change in wind speed, and therefore in the power P_{s}, it is possible to keep the DC link voltage constant acting on the power P_{g}. Completing the scheme of Figure 8 it is possible to achieve the control scheme of Figure 15.Supposing that the current loop is instantaneous and a PI controller for R
where k

_{VDC}is chosen, it is possible to obtain the following transfer function:
$$\Delta {{V}_{DC}}^{2}(\mathrm{s})=\frac{\frac{2}{Cs}\Delta {P}_{s}(\mathrm{s})+\frac{2}{Cs}({k}_{PDC}+\frac{{k}_{IDC}}{s})\Delta {{V}_{DC}^{*}}^{2}(\mathrm{s})}{1+({k}_{PDC}+\frac{{k}_{IDC}}{s})\frac{2}{Cs}}$$

_{PDC}and k_{IDC}are respectively the proportional and integral gains of the DC voltage PI controller. The examination of Equation (48) leads to the conclusion that for any step variation of P_{s}, it is possible to keep the DC voltage constant for any value of the gains, as:
$$\underset{s\to 0}{\mathrm{lim}}\frac{\frac{2}{Cs}}{1+({k}_{PDC}+\frac{{k}_{IDC}}{s})\frac{2}{Cs}}=0$$

Once again, it is possible to choose the parameters of the current controllers assigning the poles of Equation (47) and then the parameters of the DC voltage regulator using Equation (49), thus ensuring that the voltage loop is sufficiently slower than the current one.

#### 6.3. Overall Control System Structure and Summary of the Developed Criteria

The WTG overall control scheme is depicted in Figure 16, also including the pitch angle controller and the shaft model (see [15,16] for details). The GSC and its controller are depicted in the block “inverter DC/AC including V

_{DC}control and Q control”, whose detailed structure appears in Figure 8. As far as the MSC controller is concerned, details on the voltage and power controllers are provided respectively in Figure 4 and Figure 7, while the inner current control loops are depicted in Figure 9.The power channel of the MSC controller can be designed as follows:

- Place the poles of the inner control loop according to Equation (30);
- Place the poles of the active power control loop zeroing the denominator of Equation (33) such that the power dynamics are sufficiently slower than the current one in order to meet Equation (31);
- Place the poles of the speed control loop zeroing the denominator of Equation (35) such that the speed dynamics are sufficiently slower than the active power one in order to meet Equation (34).

The voltage channel of the MSC controller can be designed as follows:

- Place the poles of the inner control loop according to Equation (30);
- Place the pole voltage control loop with the procedure described in Section 6.1.

The GSC controller parameters can be chosen as follows:

- Place the poles of the inner control loop zeroing the denominator of Equation (47).
- Place the poles of the DC voltage control loop zeroing the denominator of Equation (49) such that the DC voltage dynamics are sufficiently slower than the current one.
- The choice of the Park reference frame such that the network voltage V
_{g}has only a direct axis component [33] creates an algebraic link between the reactive power and the quadrature axis current; therefore, the reactive power dynamics are the same as the quadrature axis current.

## 7. Simulations to Validate the Controller Synthesis and the Proposed Simplified Schemes

The aim of the present section is to provide some simulative support to the regulator design provided in the previous sections. In order to account for a detailed and reliable representation of the power system, the PMSG model has been implemented in Digsilent Power Factory

^{®}(14.1, DigSILENT Gmbh, Gomaringen, Germany) [35]. For this purpose, the dynamic models of the MSC and GSC controllers have been implemented in Power Factory, in accordance with the equations detailed in Section 5. Therefore, the validation is performed by comparing the results provided by the Digsilent Power Factory full model and the ones obtained applying the simplified schemes that have allowed the derivation of analytical criteria for the choice of the controller parameters. The simplified linear scheme has also been implemented in Power Factory and its run supplied by the same references of the complete model.Table 3 summarizes the parameters used for the regulators, defined on the basis of the criteria described in the previous section.

The numerical values of the machine voltage and current controllers have been specified in the previous section, while the parameters of the grid side current controllers are the same as the machine current ones. This choice means the following:

- The poles of the machine currents loop are −27 ±45j; while the poles of the active power and of the speed loops are respectively −1.6 and −0.017 ±0.05j. With these values, the dynamics of the three loops act on different time frames, thus meeting the requirements of Equations (31) and (34).
- The poles of the grid current loops are −544 and −115, while the poles of the DC voltage one are −0.02 ±0.02j, which ensures that its dynamics are much slower than the current one.

The model is initialized with a wind speed corresponding to an active power production equal to 0.55 p.u. (1.1 MW). Then, two consecutive wind speed variations are provided (Figure 17): the first one is triggered at 5 s and increases the wind speed up to 8.4 m/s, while the second one occurs at 300 s and brings the wind speed to 15 m/s, activating the pitch controller.

In accordance with this wind speed profile, the machine undertakes a dynamic that involves all the regulators designed in the previous section. The wind speed variation provokes a variation of the rotational speed of the turbine with a corresponding activation of the speed regulator. The speed is changed acting on the power regulator that correctly provides an increase of the wind generator active power production. Finally, the power dynamics on the MSC activate the DC voltage regulator that allows for an increase in the active power delivered to the grid. The speed dynamic is reported in Figure 18, where the speed reference variation is provided by the MPPT block of the system. The blue curve is the speed profile obtained by the complete model of the system, while the red one is the one provided by the simplified block scheme proposed in Figure 12.

The first transient is characterized by a final steady state within the limits of the MPPT speed curve, while the second is associated with the activation of the speed limitation at 1.2 p.u. As one can notice, the simplified dynamics are very close to the real one in both conditions, stating that the control scheme of Figure 12 can be used to synthesize the speed regulator parameters. Figure 19 compares the dynamics of active power P

_{s}considering the complete control scheme, blue line, the simplified one of Figure 11, red line, and the time evolution of the power reference signal as dictated by the speed controller, black line (the three curves are basically overlapping so that it is almost impossible to distinguish them). The fact that the blue line is coincident with the red one leads to the conclusion that the equivalent scheme of Figure 11 is a good approximation of the real model. Moreover, as it is not possible to distinguish between the power time profile and its reference signal in a timeframe of about 500 s, one can conclude that the active power loop dynamics are much faster than the speed one. This can be confirmed through examining Figure 18 where the speed dynamics are much slower. This is consistent with previous assumptions. The current waveform is not reproduced here since it is much faster than the power one.Another verification that has been performed is related to the machine voltage regulation loop, comparing the time profile obtained by the simplified linear scheme of Figure 13 with the actual machine voltage time profile obtained by the complete model. Figure 20 depicts the simplified and real machine voltage profile as well as the machine voltage reference provided to the controllers. As one can notice, the two profiles are slightly different but similar enough to provide a good approximation to apply the criteria for the regulator synthesis.

Finally, Figure 21 reports the dynamics of the DC link voltage obtained with the full model and with the simplified linear block scheme of Figure 12. Once again, there are some deviations between the simplified dynamic and the real one; nevertheless, the settling time and the overall behavior are acceptable for considering the simplified scheme as valuable in providing the criteria for the regulator synthesis.

## 8. Conclusions

The aim of the present study was to provide an analytical procedure for the calculation of the initial condition of a wind generator unit provided with a permanent magnet DDSG accounting for power system losses and to define some analytical criteria for the definition of the various parameters of the wind generator regulators necessary for its proper operation. In the literature, the problem of the initialization of a wind generating unit is discussed and developed under the assumption of a lossless system, since power losses increase the complexity of the resulting algebraic system. Nevertheless, power losses can have a sensible impact on the system initial conditions and also on the design of an effective control strategy. In the paper, a detailed model of the wind generator has been proposed and the solution of the initial condition problem has been fully described. The impact of power system losses on the results obtained were evaluated in comparison with a traditional lossless approach. Furthermore, the problem of providing analytical criteria to choose both the structures and the parameters of the system controllers has not been widely discussed in the literature. For this reason, the present paper has proposed a detailed characterization of the control strategy of a WTG equipped with a PMSG and provided a simplified representation of the system useful to design the parameters of the various system regulators.

Simulations performed with Digsilent Power Factory software highlighted the good response of the defined regulation system, thus assessing the effectiveness of the approximations done to synthesize the controllers. Further development of this research will include the possible application of nonlinear and decoupled control techniques to the WTG in order to provide a more effective and robust control of the system also capable to integrate frequency support logics (such as synthetic inertial controllers) and active power curtailment.

## Author Contributions

Marco Invernizzi and Renato Procopio developed the theoretical approaches Section 3 implemented and tested by Andrea Bonfiglio in Section 3. Federico Delfino and Renato Procopio made the definition of the control scheme of Section 5 and together with Andrea Bonfiglio defined the simplified structure for the regulator design. Dynamic simulation were carried out by Andrea Bonfiglio.

## Conflicts of Interest

The authors declare no conflict of interest.

## References

- Chiradeja, P. Benefit of distributed generation: A line loss reduction analysis. In Proceedings of the 2005 IEEE/PES Transmission and Distribution Conference and Exhibition: Asia and Pacific, Dalian, China, 15–18 August 2005; pp. 1–5.
- Momoh, J.A.; Xia, Y.; Boswell, G.D. An approach to determine distributed generation (DG) benefits in power networks. In Proceedings of the 40th North American Power Symposium, NAPS ‘08, Calgary, AB, Canada, 28–29 September 2008; pp. 1–7.
- Conka, Z.; Hocko, P.; Novak, M.; Kolcun, M.; Gyorgy, M. Impact of renewable energy sources on stability of ewis transmission system. In Proceedings of the 14th International Conference on Environmental and Electrical Engineering, Kraków, Poland, 10–12 May 2014; pp. 75–79.
- Amarasekara, H.W.K.M.; Meegahapola, L.; Agalgaonkar, A.P.; Perera, S. Impact of renewable power integration on VQ stability margin. In Proceedings of the 22nd Australasian Universities Power Engineering Conference, AUPEC 2013, Hobart, Australia, 29 September–3 October 2013; pp. 1–6.
- Davda, A.T.; Parekh, B.R. System impact analysis of renewable distributed generation on an existing radial distribution network. In Proceedings of the 2012 IEEE Electrical Power and Energy Conference (EPEC), Halifax, NS, Canada, 10–12 October 2012; pp. 128–132.
- Delfino, F.; Denegri, G.B.; Invernizzi, M.; Procopio, R. Feedback linearisation oriented approach to Q-V control of grid connected photovoltaic units. IET Renew. Power Gener.
**2012**, 6, 324–339. [Google Scholar] [CrossRef] - Bonfiglio, A.; Brignone, M.; Delfino, F.; Invernizzi, M.; Pampararo, F.; Procopio, R. A technique for the optimal control and operation of grid-connected photovoltaic production units. In Proceedings of the 2012 47th International Universities Power Engineering Conference (UPEC), London, UK, 4–7 September 2012.
- Fornari, F.; Procopio, R.; Bollen, M.H.J. SSC compensation capability of unbalanced voltage sags. IEEE Trans. Power Deliv.
**2005**, 20, 2030–2037. [Google Scholar] [CrossRef] - Delfino, B.; Fornari, F.; Procopio, R. An effective SSC control scheme for voltage sag compensation. IEEE Trans. Power Deliv.
**2005**, 20, 2100–2107. [Google Scholar] [CrossRef] - CEI 0-16 Reference Technical Rules for the Connection of Active and Passive Consumers to the HV and MV Electrical Networks of Distribution Company; Comitato Elettrotecnico Italiano (CEI): Milano, Italy, 2012.
- BWE Technical Guidelines—Generating Plants Connected to the Medium Voltage Network; Bundesverband der Energie- und Wasserwirtschaft (BDEW): Berlin, Germany, 2008.
- RTE Requirements Regulatory Text (Decree 2008-386 dated 23 April 2008). Available online: https://www.legifrance.gouv.fr/affichTexte.do?cidTexte=JORFTEXT000018698004 (accessed on 27 September 2016).
- Power to Ontario on Demand Market Rules—Chapter 4 Grid Connection Requirements; Independent Electricity System Operator (IESO): Toronto, ON, Canada, 2013.
- Gonzalez-Longatt, F.; Bonfiglio, A.; Procopio, R.; Verduci, B. Evaluation of inertial response controllers for full-rated power converter wind turbine (Type 4). In Proceedings of the IEEE PES General Meeting 2016, Boston, MA, USA, 7–21 July 2016.
- Slootweg, J.G.; de Haan, S.W.H.; Polinder, H.; Kling, W.L. General model for representing variable speed wind turbines in power system dynamics simulations. IEEE Trans. Power Syst.
**2003**, 18, 144–151. [Google Scholar] [CrossRef] - Slootweg, J.G.; Polinder, H.; Kling, W.L. Representing Wind turbine electrical generating systems in fundamental frequency simulations. IEEE Trans. Energy Convers.
**2003**, 18, 516–524. [Google Scholar] [CrossRef] - Margaris, I.D.; Hatziargyriou, N.D. direct drive synchronous generator wind turbine models for power system studies. In Proceedings of the 7th Mediterranean Conference and Exhibition Power Generation, Transmission, Distribution and Energy Conversion (MedPower 2010), Agia Napa, Cyprus, 7–10 November 2010; pp. 1–7.
- Slootweg, J.G.; Polinder, H.; Kling, W.L. Initialization of wind turbine models in power system dynamics simulations. In Proceedings of the 2001 IEEE Porto Power Tech Proceedings (Cat. No.01EX502), Porto, Portugal, 10–13 September 2001; Volume 4.
- Abo-Khalil, A.G.; Kim, H.-G.; Lee, D.-C.; Seok, J.-K. Maximum output power control of wind generation system considering loss minimization of machines. In Proceedings of the 30th Annual Conference of IEEE Industrial Electronics Society, IECON 2004, Busan, Korea, 2–6 November 2004; Volume 2, pp. 1676–1681.
- De Kooning, J.D.M.; Vandoorn, T.L.; van de Vyver, J.; Meersman, B.; Vandevelde, L. Displacement of the maximum power point caused by losses in wind turbine systems. Renew. Energy
**2016**, 85, 273–280. [Google Scholar] [CrossRef] - Delfino, F.; Pampararo, F.; Procopio, R.; Rossi, M. A feedback linearization control scheme for the integration of wind energy conversion systems into distribution grids. IEEE Syst. J.
**2012**, 6, 85–93. [Google Scholar] [CrossRef] - Soufi, Y.; Kahla, S.; Bechouat, M. Feedback linearization control based particle swarm optimization for maximum power point tracking of wind turbine equipped by PMSG connected to the grid. Int. J. Hydrog. Energy
**2016**, 41, 20950–20955. [Google Scholar] [CrossRef] - Mozayan, S.M.; Saad, M.; Vahedi, H.; Fortin-Blanchette, H.; Soltani, M. Sliding mode control of PMSG wind turbine based on enhanced exponential reaching law. IEEE Trans. Ind. Electron.
**2016**, 63, 6148–6159. [Google Scholar] [CrossRef] - Tapia, A.; Tapia, G.; Ostolaza, J.X.; Saenz, J.R. Modeling and control of a wind turbine driven doubly fed induction generator. IEEE Trans. Energy Convers.
**2003**, 18, 194–204. [Google Scholar] [CrossRef] - Ko, H.S.; Yoon, G.G.; Kyung, N.H.; Hong, W.P. Modeling and control of DFIG-based variable-speed wind-turbine. Electr. Power Syst. Res.
**2008**, 78, 1841–1849. [Google Scholar] [CrossRef] - Kim, H.-W.; Kim, S.-S.; Ko, H.-S. Modeling and control of PMSG-based variable-speed wind turbine. Electr. Power Syst. Res.
**2010**, 80, 46–52. [Google Scholar] [CrossRef] - Wu, F.; Zhang, X.P.; Ju, P. Small signal stability analysis and control of the wind turbine with the direct-drive permanent magnet generator integrated to the grid. Electr. Power Syst. Res.
**2009**, 79, 1661–1667. [Google Scholar] [CrossRef] - Li, S.; Haskew, T.A.; Xu, L. Conventional and novel control designs for direct driven PMSG wind turbines. Electr. Power Syst. Res.
**2010**, 80, 328–338. [Google Scholar] [CrossRef] - Constantin, A. Advanced Modeling and Control of Wind Power Systems. Master’s Thesis, Aalborg University, Aalborg, Denmark, June 2010. [Google Scholar]
- Hansen, M.H.; Hansen, A.; Larsen, T.J.; Øye, S.; Sørensen, P.; Fuglsang, P. Control Design for a Pitch-Regulated, Variable Speed Wind Turbine; Risø National Laboratory: Roskilde, Denmark, 2005. [Google Scholar]
- Liu, H. Grid Integration of Offshore Wind Farms via VSC-HVDC—Dynamic Stability Study. Ph.D. Thesis, Aalborg University, Aalborg, Denmark, June 2014. [Google Scholar]
- Milano, F. Power System Modeling and Scripting; Springer: London, UK, 2010. [Google Scholar]
- Kundur, P. Power System Stability and Control; McGraw-Hill: New York, NY, USA, 1994. [Google Scholar]
- Delfino, F.; Procopio, R.; Rossi, M.; Ronda, G. Integration of large-size photovoltaic systems into the distribution grids: A P–Q chart approach to assess reactive support capability. IET Renew. Power Gener.
**2010**, 4, 329. [Google Scholar] [CrossRef] - DIgSILENT PowerFactory Application Guide; DIgSILENT GmbH: Gomaringen, Germany, 2016.

**Figure 1.**Direct drive synchronous generator (DDSG) wind turbine layout. MSC: machine side converter; and GSC: grid side converter.

**Figure 2.**Performance coefficient behavior in accordance with the pitch angle and the tip speed ratio.

**Figure 3.**Equivalent circuit of the grid side converter, the connection system and the main network.

Description | Value | Unit |
---|---|---|

Rated Power | 2 | MVA |

Rated voltage | 690 | V |

Stator resistance | 0.042 | p.u. |

Direct axis reactance | 1.05 | p.u. |

Quadrature axis reactance | 0.75 | p.u. |

Permanent magnet flux | 1.25 | p.u. |

**Table 2.**Comparison of the initialization results for the traditional lossless initialization and the proposed one (that accounts for the WTG losses).

Section | Variable | Initial Value with Losses | Initial Value without Losses |
---|---|---|---|

GSC | v_{gd}_{0} | 1.00 p.u. | 1.00 p.u. |

i_{gd}_{0} | 0.80 p.u. | 0.80 p.u. | |

i_{gq}_{0} | 0.00 p.u. | 0.00 p.u. | |

v_{ed}_{0} | 1.004 p.u. | 1.00 p.u. | |

v_{eq}_{0} | −0.04 p.u. | −0.04 p.u. | |

MSC | v_{sd}_{0} | −0.58 p.u. | −0.57 p.u. |

v_{sq}_{0} | 0.76 p.u. | 0.81 p.u. | |

i_{sq}_{0} | 0.68 p.u. | 0.64 p.u. | |

i_{sd}_{0} | −0.48 p.u. | −0.47 p.u. | |

Wind | P_{wind}_{0} | 0.86 p.u. | 0.80 p.u. |

v_{w}_{0} | 8.90 p.u. | 8.66 p.u. | |

ω_{0} | 1.14 p.u. | 1.11 p.u. |

Regulator | Symbol | Value |
---|---|---|

DC Voltage Regulator | k_{PDC} | 10.0 |

k_{IDC} | 2.0 s^{−1} | |

Active Power regulator | k_{pp} | 4.0 |

k_{ip} | 8.0 s^{−1} | |

Speed regulator | k_{Pw} | 1.0 p.u. |

k_{Iw} | 0.1 s^{−1} |

© 2017 by the authors; licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC-BY) license (http://creativecommons.org/licenses/by/4.0/).