**1. Introduction**

Renewable energy power plants are growing at a spectacular rate all over the world. The International Energy Agency (IEA) states that, specifically in the electricity sector, renewable energies will undergo the fastest growth, providing approximately 30% of the total power demand in 2023 [1]. It also underlines that, although bioenergy will still be the largest source of renewable energy in the years to come, especially due to its consumption in heat and transport, its share will decline as a result of the expansion of both wind power and solar PV. Thus, forecasts for 2023 position wind energy as the third-largest renewable energy source in the world, only surpassed by bioenergy and hydropower [1]. Other entities such as the Global Wind Energy Council (GWEC) [2] or WindEurope annually publish statistics on new onshore and offshore wind power capacity installed across the countries. WindEurope has already uploaded the 2018 report [3], which informs that Europe installed 11.7 GW of new wind power capacity (up to a total of 189 GW), more than any other power generation source, covering 14% of the European Union's electricity demand.

In light of the above, it is highly important for countries to continue developing a clear strategy that allows the objectives set by the European Union with reference to the renewable energy production in 2030 [4] to be achieved. Among other tasks, countries need to foster economic stability in order to attract investment. Furthermore, there is a need to promote high participation of renewable energy in electricity mixes by seeking a broad consensus among the stakeholders in renewable energy production.

Focusing on wind power, it indisputably plays an increasingly important role in current power systems. However, despite all the advantages mentioned above, grid integration of the installed wind power capacity is regarded as a challenge mainly due to the unpredictable nature of wind. Moreover, fluctuations in wind power generation will lead conventional power plants to compensate for these variations, thus forcing them to operate under conditions for which they are not planned. Therefore, the integration of such a large number of wind turbines (WT) into power systems may increase voltage and frequency regulation problems, necessitating forward planning of network operation activities. Thus, optimizing the utilization of wind energy and securing the continuity of the electricity supply is a key issue. Transmission and Distribution System Operators (TSOs and DSOs, respectively) are the entities authorized to manage and maintain power systems and thus they require detailed operation plans to have advance knowledge of the behavior of the power systems. To carry out this work, transient stability analyses of WTs [5] and wind power plants (WPP) [6] dynamic models are required. These types of analyses will allow the electrical responses of the models, once connected to the grid, to be forecasted [7].

Under this scenario, in February 2015, the International Electrotechnical Commission (IEC) published Standard IEC 61400-27-1 [8], the first edition of which includes the description of both generic WT and WPP models. These models are referred to as 'generic' or 'standard' because they are intended to represent any commercial WT model, regardless of the vendor. They consist of a small number of blocks and parameters and may be implemented in any simulation software tool. Moreover, as detailed WT simulation models are technically complex and usually belong to private companies, in addition to being subject to confidential agreements, publicly available generic WT models developed by standard IEC 61400-27-1 [9] are intended to faithfully replicate the behavior of actual WTs when they are connected to the grid and submitted to electrical disturbances. Generic WT models are classified to represent the four main typologies of actual WTs available in the market, including their principal technical features: Type 1, which uses an asynchronous generator directly connected to the grid, Type 2, consisting of an asynchronous generator equipped with a variable rotor resistance; Type 3, which uses a doubly-fed induction generator (DFIG), where the stator is directly connected to the grid and the rotor is connected through a back-to-back power converter [10]; and Type 4, connected to the grid through a full-scale power converter. Therefore, the implementation and dynamic simulation of these WT models [11] will allow TSOs and DSOs to properly plan network operation and secure electricity supply. To fully achieve this objective and guarantee their effective operation, generic WT simulation models must be validated against field measurements of actual WTs [12]. Thus, it is necessary to compare and analyze their responses under the most critical conditions, i.e., under voltage dips [13]. Indeed, in order to conduct a quantitative comparison, specific validation guidelines have been specifically developed by the IEC [14].

IEC 61400-27-1 also states that the responses obtained from the dynamic simulation analyses of the models must be independent of the simulation software used. This study aims to show that, nevertheless, there exist slight deviations between simulation results depending on the implementation software. This is mainly due to differences in the integration algorithms or in the implementation processes of the dynamic sub-systems. The current work presents these differences and addresses the general implementation processes of the generic Type 3 WT model in two different software tools: MATLAB/Simulink (2018, MathWorks, Natick, MA, US) and DIgSILENT-PowerFactory [15]. Indeed, there is a lack of research works related to the study of the DFIG WT developed by Standard IEC 61400-27-1.

In particular, to the best of the authors' knowledge, there are few studies in the scientific literature regarding the implementation and simulation of the generic Type 3 WT model in specialized electrical engineering software tools such as DIgSILENT-PowerFactory. For instance, works such as [16] or [17] analyze the behavior of the active and reactive power control systems of the standard Type 3 WT and its transient response when subjected to voltage dips, respectively. In both cases, MATLAB is the only simulation tool used. Moreover, studies related to the validation of WTs are based on private, specific and detailed WT simulation models developed by specific vendors, such as the one carried out in [18]. Thus, also related to this topic are found works such as [11,13,19]. In [13], two voltage dips are conducted in a 2 MW DFIG WT, and its responses are compared to the simulation responses of a detailed WT simulation model (i.e., not RMS model). The authors in [11] analyzes the WT model that represents the technology used by a specific vendor, while the authors in [19] validate a 3 MW DFIG WT model by comparing its responses with the responses of a detailed DFIG vendor model. Finally, Reference [20] also performs validation tasks during faults, although they compare a WT model with an analytical method. Therefore, in view of the above, Reference [21] is the only work addressing the performance of generic Type 3 WT models using DIgSILENT-PowerFactory. However, although PF is the tool used, the responses at plant level during changes on the reference points are analyzed, so that no voltage dip tests at a WT model level are conducted.

The benefits of using specialized software tools are numerous, since they allow actual, larger and more complex power systems to be simulated, in addition to being tools with which TSOs and DSOs are used to working. On the other hand, simulation tools such as MATLAB/Simulink are highly attractive due to their versatility and ease of use. This work showcases the use of both types of software tools, presenting their advantages and particularities. In addition, it aims to define the modeling processes that must be followed, as well as demonstrating the differences when simulating the same generic WT dynamic model, despite claims for their non-existence.

Therefore, the present work addresses the implementation and validation process of the IEC 61400-27-1 generic Type 3 WT model when it is subjected to different voltage dips. The generic WT model is modeled and simulated in both MATLAB/Simulink and DIgSILENT-PowerFactory. The parametrization and validation are conducted using field data from the WT manufacturer Siemens-Gamesa Renewable Energy (Zamudio, Spain). The simulated active and reactive power responses are compared to the ones measured from the actual WT in operation. The validation error magnitudes—following IEC 61400-27-1 guidelines—are calculated in three different comparisons: (i) MATLAB/Simulink WT model vs. field measurements, (ii) DIgSILENT-PowerFactory WT model vs. field measurements, and (iii) MATLAB/Simulink WT model vs. DIgSILENT-PowerFactory WT model.

Summarizing, the main contributions of the present study are focused on: (i) providing feedback to Standard IEC 61400-27-1 regarding the assumption that the performance of the electrical simulation models are independent of any software simulation tool; (ii) conducting an in-depth analysis of the root causes that lead to the differences in the simulated responses; (iii) expanding the scope of application of the Standard; and (iv) providing the opportunity of conducting analyses involving large power systems that include generic WT models in specialized electrical engineering software tools such as DIgSILENT-PowerFactory.

The paper is structured as follows: Section 2 discusses the limitations of the generic WT models and the validation guidelines in Standard IEC 61400-27-1. Section 3 describes the modeling process of the generic Type 3 WT when implemented in both software tools, while Section 4 analyzes the research results. Finally, Section 5 summarizes the main conclusions obtained.

#### **2. IEC 61400-27-1 Generic Type 3 WT Model**

The generic Type 3 WT model can be divided into two sub-models: Type 3A and Type 3B. The main difference lies in the generator system, which includes a protection system in the case of the Type 3B WT. This protection system is modeled through a set of dynamic blocks that decreases the current signals to zero when a voltage dip occurs. In the present work, as the field measurements were recorded on an actual DFIG WT in operation, the generic Type 3B is the model studied.

The generic Type 3B WT model developed by Standard IEC 61400-27-1 (hereinafter referred to as Type 3) consists of several sub-models, as shown in Figure 1: aerodynamic control model [22], which provides the two-mass mechanical model with the aerodynamic power (paero) coming from wind; pitch control model [23], which calculates the value of the pitch angle (*θ*)-position angle of the WT blades—required to follow the rotor speed and power generation setpoint (pWTref); two-mass mechanical model [24], which models the actual gearbox representing both the low-speed and the high-speed sides and provides the wind turbine rotor and the generator rotational speed (*<sup>w</sup>*WTR and *<sup>w</sup>*gen, respectively); active power control model [16], which provides the generator system with the active current command (ipcmd) and also calculates both the reference rotational speed and the active power order; reactive power control model, which controls the reactive power injection through the calculation of the reactive current command (iqcmd) based on the user-defined reactive power reference (xWTref); reactive power limitation model, which provides the reactive power control model with the reactive power injection's maximum and minimum dynamic values allowed at the wind turbine terminals (WTT); current limitation model, which calculates the limit values of both the active and reactive currents (ipmax, iqmax and iqmin); and generator system, equipped with a crowbar model [25–27], which has as output signals the active and reactive currents injected into the grid through a current source (igen, and the generator air gap power (pag)). Measured values of voltage (ugen and uWT), as well as active and reactive power (pWT and qWT) at the test network are also required as input signals in some control models. The single-line diagram of the generic Type 3 WT model is available in [8].

**Figure 1.** Modular structure of the generic Type 3 WT adapted from [8].

As discussed in Section 1, International Standard IEC 61400-27-1 states that there should be no differences when studying the responses of generic WT models using different software tools. However, there may exist differences in the implementation and initialization processes, as well as in the algorithms used by the simulation tools. Moreover, although the time step used during the simulations may be set as fixed when conducting the comparison between models implemented in different software tools, some of them use variable-step solvers, adjusting the time step depending on the variability of the signals.

IEC 61400-27-1 also describes the limits of the accuracy of the generic WT models [8]. Since the model's accuracy is analyzed comparing simulation responses with measured data, errors in both cases may appear. On the one hand, regarding simulation responses, errors occur, as during the development of the standard, some simplifications were implemented in order to obtain technically simplified dynamic WT models, which are, nevertheless, accurate enough to represent the existing wide range of actual WTs. On the other hand, limits to possible model accuracy may also arise from the measurements. When performing transient stability analyses, electromagnetic phenomena are not of interest, and are thus not emulated and represented by the generic WT models. For instance, if the high voltage side of the transformer is chosen to perform the measurements, electromagnetic phenomena caused by the behavior of the transformer may be reflected in the measured data. The accuracy of the model will thus be lower. Furthermore, some errors and limitations are also generated when performing the measurements at actual WPPs or test benches. Deviations resulting from tolerances or bandwidth limitations of the measurement equipment, as well as errors derived from the measurements' conversion, lead to cumulative errors in some measured signals. When converting from instantaneous values to root mean square (RMS) values to perform the comparisons, some errors also occur.

In view of the above, it is clear that there will exist errors between measurements and simulated data. For this reason, they must be correctly assessed and calculated according to IEC 61400-27-1 guidelines. Deviations between the responses of the two simulated models (PowerFactory and MATLAB) will also be assessed during this work, with the aim of identifying the main factors that cause them. The following subsections describe, on the one hand, the calculation process of the validation errors established by IEC 61400-27-1, and, on the other, the general implementation process followed by both simulation software tools used, also showing some of the dynamic control models that are part of the generic Type 3 WT, highlighting the particularities and adaptations required in each case.

#### *2.1. Validation of Generic Models Based on IEC 61400-27-1 Guidelines*

The validation process of the generic models involves several steps. First, the definition of the dynamic simulation model must be performed. Second, field measurements are needed to measure the responses of actual WTs. Thus, in order to perform the field tests, a fault-ride through (FRT) mobile test unit was installed in a Spanish wind farm during a measurement campaign led by the manufacturer Siemens-Gamesa. The connection of the test unit was made between the switchgear and the high voltage side of the power transformer of the WT. Further information regarding the FRT mobile test unit can be found in [25,28], since similar units have been used to analyze the FRT capability of WTs. Once the voltage dips were applied to the WT, the rate of the measurement sample was set to 10 kHz, and the measurements composing each data set began 10 s before the voltage dip was applied and ended 15 s after this point in time. This period is enough to carry out the measurements, since the transient stability responses of the simulation are reflected during that period and can then be properly assessed. After that, measurements of the events conducted are replicated in the WT model, so that the simulation data and the field measurements can be compared. Finally, the validation errors are estimated. In this regard, the most significant disturbances in power systems that lead to integration issues are voltage dips [29]. In terms of RMS values, voltage dips involve severe voltage reductions ranging between 10% and 90% and a duration of up to one minute [19,30]. Residual voltage (minimum value of voltage) and dip duration are the two parameters that characterize these types of disturbances in the grid. However, the complexity of WTs means that not all kinds of voltage dips are suitable to be conducted on actual WTs, and, hence, IEC 61400-21 established a representative set of disturbances in order to validate a WT model [17].

As explained in Section 1, only a few scientific studies have performed validation tasks using field measurements, and even fewer when it comes to the implementation, simulation and validation of the most widely used type of WT, Type 3 (i.e., DFIG), in specialized software tools. Moreover, this study presents a triple comparison, which involves field measurements and simulation results from the same generic

WT model implemented in two different tools. It also provides information, for the first time, about the slight deviations that may exist between those simulation results, despite IEC 61400-27-1 indicating they should not exist. This comparison thus helps to further determine the limitations of the IEC-developed WTs, in addition to achieving a more widespread use of these models.

In order to be able to obtain a response and a well-founded and justified conclusion, and based on the objectives previously mentioned, the criteria used to validate the generic WT models with field measurements, defined by IEC 61400-27-1, were also applied when comparing the simulated models with each other. Three time windows are defined during the simulation: (i) pre-fault window, which starts 1000 ms before the fault initiation, (ii) fault window, which lasts from the onset to the clearance of the fault, (iii) post-fault window, which lasts 5000 ms after the voltage dip clearance. Furthermore, in order not to consider transient periods in the assessment of the accuracy of the models, several time sub-windows are also defined, formerly known as 'quasi-steady state' sub-windows. Hence, the transient responses appearing at the start of both fault and post-fault windows are discarded in the calculation of the maximum errors, as will be seen later in this document. On the one hand, a transient period of 140 ms is not considered in the calculations of the maximum validation errors at the start of the fault window due to the limitations of the generic model in reproducing the DC-component of the generator flux [12]. On the other hand, since the model is unable to faithfully represent the transformer inrush current, thus affecting the active and reactive power responses, a period of 500 ms is not considered at the start of the post-fault window. In addition, it is worth considering that, because of the inability to model the aerodynamic oscillations or nonlinear aerodynamic effects by generic WT models, larger errors may occur during the entire post-fault window. Figure 2 shows both the time windows and the quasi-steady state sub-windows defined during the voltage dip according to [8].

**Figure 2.** Voltage dip windows adapted from [8].

The calculation of validation errors during the pre-fault window is not critical for the evaluation of the performance of the model. Therefore, error time series are only calculated during fault and post-fault windows for each of the comparisons (*xerror* in Equation (1)), i.e., between the data series of the following cases: (i) MATLAB Model–Field Data, (ii) PowerFactory Model–Field Data, (iii) MATLAB Model–PowerFactory Model. On the basis of this information, three validation errors (also referred to as validation performance indicators) are calculated in both fault and post-fault windows, the calculations of which are presented in Equations (2)–(4): Mean Error (*ME*), Mean Absolute Error (*MAE*) and Maximum Absolute Error (*MXE*) [12].

In Equations (1)–(4), numbers 1 and 2 indicate the data series to be compared in each case, while *n* indicates the indices of the vectors and *N* the total number of samples used:

$$\mathbf{x}\_{error}(n) = \mathbf{x}\_1(n) - \mathbf{x}\_2(n),\tag{1}$$

$$\mathbf{x}\_{ME} = \frac{\sum\_{n=1}^{N} \mathbf{x}\_{error}(n)}{N},\tag{2}$$

$$\mathbf{x}\_{MAE} = \frac{\sum\_{n=1}^{N} |\mathbf{x}\_{error}(n)|}{N},\tag{3}$$

$$\mathbf{x}\_{MXE} = \max(|\mathbf{x}\_{error}(n)|). \tag{4}$$

*ME* is defined as the mean value of the error over the corresponding time window, and is related to the steady-state performance of the dynamic model; *MAE* is the mean value of the absolute error, calculated over the entire time window in the case of the post-fault period, and over the corresponding quasi-steady state sub-window in the case of the fault period; and, finally, *MXE* is the maximum value of the absolute error, mainly related to the transient performance of the simulated model. In this last case, the quasi-steady state sub-windows are considered in the calculation. The electromagnetic transient periods measured are thus not considered in the evaluation of the accuracy of the model, since fundamental-frequency generic models are not designed to represent them. As a summary, Table 1 shows the time periods considered for the calculation of each type of error in both the fault and post-fault periods, according to Figure 2.

**Table 1.** Time periods considered for the calculation of the validation errors based on Figure 2.


Having explained the validation criteria to be applied, the following sections are devoted to describing, in general terms, the generic Type 3 WT modeling process in the two software tools used.

#### **3. Modeling Process of Generic Type 3 WT**

The structure of the generic Type 3 WT and the validation process that must be followed to test its electrical performance have been extensively described in previous sections. Moreover, limitations to the model's accuracy included in IEC 61400-27-1 have also been listed. However, with the objective of achieving well-reasoned explanations of the causes of the differences in the model's behavior when it is simulated in the two software tools, the ways in which the dynamic WT model is implemented are described in detail below.

#### *3.1. Implementation in MATLAB/Simulink*

MATLAB/Simulink is currently one of the most widely used software tools in engineering. Its flexibility, supported by its large community, allows a wide range of studies to be conducted. Furthermore, with the addition of Simulink, its add-on, which works with block language, the possibilities are unlimited. For this work, the generic Type 3 WT model was first modeled and parametrized in Simulink, as the facilities included permit faster development. Furthermore, the validation work was conducted in MATLAB, the programming language of which permits easy implementation of the IEC 61400-27-1 validation methodology described in Section 2.1.

Regarding the IEC 61400-27-1 generic Type 3 modeling, its general structure is shown in Figure 3. Additionally, the systems included within the 'Control model' are shown in Figure 4. The control

of the generic Type 3 model has previously been explained in the literature. In [17], the behavior and parametrization of the systems related to the active power response is explained. Furthermore, in [31], the behavior of the reactive power control, the current limitation system and the generator system are depicted and compared with a simpler model [32].

**Figure 3.** General structure of the IEC 61400-27-1 generic Type 3 model implemented in Simulink.

**Figure 4.** Control systems of the IEC 61400-27-1 generic Type 3 model implemented in Simulink.

The electrical generator system is one of the most complex in this Type 3 WT model. It is based on the physical dynamics of a DFIG, and the theory behind its development is described in [10,15]. For the present work, as explained in Section 2, the authors modeled a generic Type 3B electrical generator system, which includes the crowbar protection system. Its modular structure is shown in Figure 5. The 'reference frame rotational model' coordinates the active and reactive command currents with the grid reference frame. Furthermore, this system includes the dynamics of the generator sub-transient reactance (x\_s). Additionally, the crowbar system is modeled as a system that multiplies by 0 the command currents over a short time when the fault occurs and ends, depending on the derivative of voltage. Finally, as shown in Figure 3, the Simulink model is not connected to a grid. The active and the reactive power are calculated based on Equation (5):

**Figure 5.** Electrical generator system of the IEC 61400-27-1 generic Type 3B model implemented in Simulink.

$$\mathcal{S}\_{\text{WT}} = P\_{\text{-}}\text{WT} + jQ\_{\text{-}}\text{WT} = \mathcal{D}\_{\text{WT}}I\_{\text{WT}}^{\*} = \mu\_{\text{WT}}\angle\varphi\_{\text{u\\_WT}} \cdot (ip\_{\text{-}}\text{WT} + j\cdot iq\_{\text{-}}\text{WT})\tag{5}$$

Additionally, it should be mentioned that the fine adjustment of the model parameters was conducted using the Simulink Design Optimization tool. An example illustrating the use of this tool is shown in Figure 6. For this work, the reference signal was either the active or the reactive power response. Then, the parameters that we wish to adjust are selected, as well as their ranges and scale. Finally, the program iterates until reaching the objective selected. The iteration method and the error followed (absolute or relative) can be selected. Finally, the software provides the finely adjusted parameters. As a side note, although this process might seem automatic, the approximately 100 parameters which define the generic Type 3 model means the user can have a deep understanding of the behavior of the model, as well as the parameters which should be adjusted and their logical ranges in which to conduct the tuning.

**Figure 6.** Simulink Design Optimization tool example.

#### *3.2. Implementation in DIgSILENT-PowerFactory*

The previous sections highlighted the importance of using specialized electrical engineering software tools, as they permit a wide range of studies to be carried out. In addition, these types of tools allow highly complex studies to be performed, enabling also the consideration of the vast amount of information and the large number of parameters which characterize actual power systems [33]. It is therefore of prime importance to have in-depth knowledge of the dynamic model's implementation process, and an overview of particularities of the software and also of the calculation method or the network representation, as these will help to further understand the causes of the deviations between simulation results provided by the two software tools. The way in which voltage dips are conducted at the WT model implemented in DIgSILENT-PowerFactory (PF) is also an important element.

#### 3.2.1. DIgSILENT Simulation Language

DIgSILENT Simulation Language (DSL) is the PF function used to model dynamic systems [34]. When working with DSL, predefined electrical devices available in the software and user-defined dynamic blocks may be incorporated into the power system, i.e., complete dynamic models are implemented in PF by relating a certain electrical component with its corresponding control models, influencing its electrical behavior. In fact, the WT is modelled as an AC current source that injects active and reactive current into the grid. Active and reactive power are thus measured through a predefined power measurement device connected at the WTTs, while a conversion system has been specifically designed to adapt the output current signals from the generator system model to the input signals' format required by the AC current source.

Based on [8] and the DSL working structure [35], Figure 7 shows the complete power system implemented in PF, which relates all the generic Type 3 WT dynamic models described at the start of Section 2, including the AC current source representing the WT and measurement and auxiliary devices.

**Figure 7.** General structure of the IEC 61400-27-1 generic Type 3 model implemented in DIgSILENT-PowerFactory.

#### 3.2.2. Time Domain Simulations in DIgSILENT-PowerFactory

The initialization of the power system is of grea<sup>t</sup> importance, since correctly executing the initialization process avoids fictitious electrical transients and allows the system to rapidly reach the steady-state condition [36]. Otherwise, numerical instability may appear [33]. First, a load flow calculation to initialize the predefined electrical components must be executed. Second, the equations of the initial conditions must be set manually in every user-defined DSL dynamic model (based on the information provided by the load flow calculation) [37]. Finally, the 'calculation of initial conditions' command must also be executed.

'AC Load Flow, balanced, positive sequence' is the calculation method followed. It performs the calculation for an equivalent single-phase, i.e., for a network representation of positive sequence. This method is valid in the case of balanced symmetrical networks, which justifies the subsequent choice of the simulation method. Therefore, for the calculation of initial conditions, the balanced RMS simulation method, which considers a steady-state, symmetrical representation of the electrical grid, is selected. Dynamics in electromechanical and control devices are thus taken into account, and only fundamental components of voltages and currents are considered [34]. Under these conditions, only symmetrical faults are allowed. Indeed, generic WT models defined by IEC 61400-27-1 are designed to conduct studies of three-phase symmetrical faults.

#### 3.2.3. Conduction of Voltage Dips at the WTTs

Once the complete power system is initialized, it may generally be studied under two different operating conditions: normal and fault operating conditions. However, as stated in Section 1, electrical disturbances such as voltage dips are the most critical situations to be assessed in order to allow network operators to properly plan system operation. Hence, since this study aims to calculate validation errors between field data and the results of generic Type 3 WT model simulation by reproducing two voltage dips measured on an actual WT in operation, the play-back validation approach was used [38]. Instead of conducting a voltage dip by defining a short-circuit at one of the WTTs [35], an external AC voltage source was connected to the WT model. This voltage source is controllable through a voltage dip measurement file and positive sequence voltage values are used as the input signal. In this way, the power system is forced to behave under the desired conditions. The play-back method thus constitutes the most suitable approach in such cases, as it enables the accurate reproduction of voltage dips that correspond to field measurements (see dynamic sub-models 'Voltage Dip Measurement File' and 'AC Voltage Source' in Figure 7).

#### 3.2.4. Test Network

The AC current source to which the control models are connected and the controllable AC voltage source reading the voltage dip measurement file are part of the same test network. Considering that this work is focused on comparison studies and calculation of validation errors, as well as on the analyses of the Type 3 WT's electrical responses in isolation, strictly equal voltage profiles must be considered in the cases analyzed (in MATLAB and PowerFactory). Therefore, it is not important to go into depth in the test network as it does not represent an actual power system, nor does it affect the performance of the generic WT model, since it has only been defined to be able to reproduce the voltage dip measured at the actual WT and assess, in such a way, the accuracy of the simulation responses.

However, both the current and voltage sources need to be physically connected because they are predefined electrical devices in PowerFactory, with a test network such as the one presented in Figure 8 being the modelled auxiliary power system. It consists only of the sources of the AC current and voltage and a terminal interconnecting them. Figure 8 is also a schematic illustration of how dynamic control models are related to the AC current source through the DSL.

**Figure 8.** Test network modeled in DIgSILENT-PowerFactory: interconnection of the dynamic control models using DSL.
