1. Introduction
Classically, the type of testing performed on wind turbines, which verifies compliance with the grid’s code, is usually conducted in the field. In most cases, these also represent the first tests performed with the complete wind turbine. This approach is highly dependent on prevailing wind conditions, and therefore, they are not plannable and are potentially time-consuming. The costs for the field tests are difficult to estimate in advance and increase with testing duration. Furthermore, a reproduction of the tests is not possible, as different conditions always prevail in the field. Another issue with the existing test procedures is that problems caused by the respective influences of the individual components are only detected during the field tests [
1].
In order to validate the interactions of the individual components with each other in advance, new test procedures have emerged in recent years. These include virtual testing, which examines the interactions of the individual components in advance [
2], and system test benches, on which the complete nacelle is tested in advance under laboratory conditions [
3]. These were first described by Jansen [
4,
5]. One of the goals of these procedures is to reproduce real field behavior on the system test benches, also called nacelle test benches, to make them usable for certification [
1,
6,
7]. For this purpose, emulator systems reproduce both the behavior of the rotor on the test bench and an artificial grid connection [
8]. The grid emulators on the system test benches consist of several parallel converter systems connected via the under-voltage winding of a transformer [
7,
9]. The transformer raises the voltage to the required level [
7,
9,
10]. Grid emulators are required to have dynamics that satisfy the requirements of the Under Voltage Ride Through (UVRT) tests [
11]. At the same time, the required tests on power system responses demand consistent high voltage quality [
12]. To meet these two requirements, advanced control algorithms have been developed, such as feed-forward control [
9], interleaved switching of the converters [
13], and modulators with optimized pulse patterns [
7].
UVRT is one of the most complex tests, as it requires additional test equipment [
14]. As a controllable voltage source, the grid emulators are capable of executing the voltage dip themselves. Comparisons with field measurements prove that the results obtained from field testing are verifiable on the test bench, and thus, they confirm the high accuracy of the tests on nacelle test benches [
15]. A crucial criterion for comparability is the replication of the fault impedance in the context of a PHiL simulation [
16]. Due to this impedance control, the complete behavior patterns of voltage divider-based test equipment can be reproduced on the test bench [
17].
The aforementioned work proves that the grid emulators currently used on test benches enable UVRT measurement with accuracy comparable to field tests. However, impedance emulation is necessary [
16]. In addition to the measurement of the UVRT characteristics of the wind turbine, certification also requires the validation of a wind turbine model when using UVRT [
18]. The exact requirements for the validation of a wind turbine model are described in
Section 2. In addition to the wind turbine model, a model of the voltage dip generator itself is required for the validation. Compared to the previous state-of-the-art voltage divider-based test method [
12], the modeling effort for grid emulators is increased because they represent an actively controlled voltage source.
Section 3 presents a grid emulator model based on a 4 MW system test bench at the Center for Wind Power Drives (CWD) at RWTH Aachen University [
10]. The main focus of the model is the mapping of the control strategy, as this significantly defines the voltage at the point of connection (PoC). This is validated in
Section 4 using real measured data. The real measured PoC voltage of the wind turbine can be reproduced in the simulation. In combination with a generic wind turbine model, it is shown that the validation of wind turbine models based on test bench results is possible. In
Section 5, the previous grid emulator model is further simplified, and the limits to its validity are examined. The validation against the previous grid emulator model shows that the exclusive mapping of the impedance replication within the simulation is sufficient to validate the wind turbine models according to the criteria of [
18].
2. Wind Model Validation According to Standards
Wind turbine manufacturers are required to provide models of their turbines. The models are used to simulate power systems in order to perform stability analyses with respect to long-term disturbances and short-term stability phenomena. In addition to changes in the set point, frequency interferences and symmetrical voltage dips due to a short circuit are among the aspects to be investigated. Wind turbine models are also required to represent both the control of the wind turbine and its limits. Consideration of the fundamental frequency component is sufficient. The Thévenin equivalent is sufficient to represent the electrical grid. UVRT tests additionally require mapping the test equipment used to generate the voltage dips. An exact specification of the model of the voltage dip generator is currently not available [
19].
Validation is performed by directly comparing measured values of defined tests with simulation results. The difference between simulation and measurement in the positive sequence results in different error values [
18]. With respect to UVRT tests, a subdivision is first made into five windows, three semi-stationary and two transient.
Figure 1 shows the individual windows. Transient areas, which are not considered in detail in the validation, include the first 140 ms after fault occurrence and the first 500 ms after fault clearance. The three semi-stationary ranges describe a pre-fault range from the start of the measurement to the beginning of the fault, the fault range from time
to fault declaration, and the post-fault range from time
to the end of the measurement.
and
each describe the time at which the transient ranges end [
20]. For each of the three ranges, the mean error
(Equation (1)), maximum error
(Equation (2)), and mean absolute error
(Equation (3)) are calculated [
18].
3. Grid Emulator Representation in the Simulation
Grid emulators comprising a back-to-back converter system replicate the electrical grid at the nacelle test benches. The first converter, referred to as the active front end (AFE), is connected to the power grid via a transformer. It controls the DC link voltage. The second converter, called the AC grid emulator, simulates realistic dynamic and steady-state grid conditions by acting as a controlled voltage source. The device under test (DUT) is connected to this converter via a transformer [
8]. To reproduce realistic grid conditions, the grid emulators have in addition to the voltage control an impedance emulator [
16].
Figure 2 shows the general setup of a grid emulator to which a wind turbine is connected as a DUT. The AFE has a filter to avoid stressing the voltage in the upstream grid. A filter may be installed on the side of the AC grid emulator to ensure voltage quality at the emulated connection point of the DUT. However, there are also configurations that use advanced voltage control algorithms to be able to omit a filter [
7].
The AC grid emulator represents the artificial grid as a regulated voltage source. Thus, this converter is decisive for the grid-side response of the DUT; consequently, only the AC grid simulator is relevant for the validation of the wind turbine model. The grid emulator at the CWD, presented in
Figure 3, serves as reference.
This emulator consists of three parallel medium-voltage converters and a five-winding transformer. One converter each is connected to a separate winding on the low voltage side of the transformer. The fourth winding represents the point of connection (PoC) of the wind turbine. The rated voltage at the PoC is 20 kV. An RC low-pass is connected to the fifth winding. Together with the leakage inductance of the transformer, this forms the filter of the grid emulator [
10]. The AC grid emulator has a voltage control to specify the phase, amplitude, and frequency of the voltage. An impedance control is included as a second control, allowing the DUT to be tested under various grid characteristics [
16].
Figure 4 represents a highly simplified illustration of the control relationship as it exists on the test bench. The wind turbine as DUT is shown as the current source, and the grid emulator is the voltage source. Both the grid emulator and the DUT perform a control function related to the PoC. Due to this linkage, there is a direct influence between the grid emulator and the DUT. The transfer functions G1(s) and G2(s) correspond to the calculation of the grid impedance of the grid emulator and the power calculation of the wind turbine, respectively. The controlled system results from the real impedance Z
G on the grid emulator side and the impedance of the wind turbine Z
DUT on the DUT side. Both impedances are mainly determined by their respectively connected transformers.
3.1. Voltage Control
The voltage control of the grid emulator aims to provide the reference voltage at the PoC.
Figure 5 schematically shows the control of the grid emulator, with the blue box showing the voltage control.
The set point of the reference voltage U
Ref* results from the preset voltage and the voltage correction due to the impedance control (see
Section 3.2). To represent both three-phase symmetrical and two-phase asymmetrical voltage dips, the control is implemented in alpha–beta coordinates. It offers the advantage of two separately controllable coordinates and facilitates the control of the three-phase grid. The structure of the control of both coordinates is identical. As a disadvantage, the alpha–beta transformation still deals with sinusoidal variables. To be able to follow the changing set point, a proportional and resonance controller (PR) is used. PR controllers, as shown in
Figure 6, follow oscillating input variables without a remaining controller deviation. In addition, the control of individual, defined harmonics is possible [
22].
The validation of the wind turbine models according to the criteria of [
18,
24] explicitly neglects harmonic and transient effects. Consequently, only control of the first harmonic and the fundamental frequency component is implemented in the model. The generation of pulse width modulation (PWM), which typically controls the converter [
25], is, therefore, also negligible. The modeled converters, which are represented as an ideal voltage source, directly represent the control signal U
act. Nevertheless, unrealizable voltages, e.g., those exceeding the maximum converter voltage, are not permitted to occur. Violating the system limits otherwise leads to non-linarites. A set point limitation ensures that only permissible voltages appear, but this can lead to the so-called windup effect. In the control context, it describes a type of misbehavior triggered by the manipulated variable’s limit, which is to be prevented via an anti-windup control.
Figure 7 displays the voltage control. In the alpha coordinate, the reference voltage
and the voltage correction due to the impedance control
serve as input parameters. A PR controller controls the PoC voltage as described above. The anti-windup is applied subsequent to the PR controller. The anti-windup feedback is subtracted from the measured actual voltage
transformed into the alpha coordinate. This prevents windup due to the manipulated variable’s limit. Thus, the controller receives a continuous sinusoidal voltage as input again even if the manipulated variable is exceeded. At the same time, it is not possible to exceed the manipulated variable limit at the controller output. The anti-windup thereby prevents overshooting of the PoC voltage and ensures stable operation. For transforming back to abc coordinates, the beta coordinate is still necessary; it is controlled identically to the alpha coordinate, and therefore, it is not shown in the figure [
21].
During uninterrupted grid operation, the transformer of the grid emulator increases the voltage to 20
. At the same time, it represents the controlled system. The PoC voltage is subsequently fed back to the controller [
21].
3.2. Impedance Control
The mutual influence of PoC voltage and injected wind current strongly depends on the height and angle of the grid impedance. Therefore, a device in the loop control of the grid impedance is implemented on the grid emulator [
21]. The PHiL setup for the impedance control is well described in [
16,
26].
The voltage drop across impedance depends equally on the absolute value
and phase
of the measured wind current. For these reasons, the input signal of the current is further processed with a second-order generalized integrator (SOGI). In addition to the absolute value and phase, the SOGI determines the DC component
and filters the input signal [
27]. Equation (4) describes the transfer function of a SOGI. To calculate the voltage change across virtual impedance, the magnitude
and the phase
of a preset impedance are required as input parameters. It is calculated in alpha and beta coordinates to facilitate the addition of the resulting voltage change to the reference voltage
[
21].
The voltage drop is determined with a zero-phase angle of 0 to neglect phase differences between current and voltage. Equation (5) indicates separate calculations of the real and imaginary parts of the voltage drop. The combination of the two values results in the complex quantities
and
, which are added to the corresponding reference voltage
in the voltage controller. Considering the virtual impedance modifies both the magnitude and the phase of the set input voltage [
21].
3.3. Wind Turbine Model
Both the wind turbine as DUT and the grid emulator exercise control with reference to the PoC. Due to the direct influence of the two controllers, the modeling of the DUT is also necessary for the stability analysis of the grid emulator model. For this purpose, a simplified wind turbine model is integrated into the simulation. The DUT is a full converter turbine, which is also referred to as a type 4 turbine [
19].
Figure 8 shows the model of the wind turbine as a modification of the general model of a type 4 turbine as shown in [
19]. The focus is exclusively on the grid characteristics. The full converter decouples the mechanical system from the electrical system so that the mechanical components are not modeled. Therefore, the implemented model consists of the generator, which provides the power, and the power electronic components, which transmit the power to the grid. In the generic models, a separation is made between protection and control. The validation of the grid emulator model requires both the provision of a defined power in steady-state operation (“control”) and a specific behavior during a voltage dip (“protection”). Switching between the control module and the protection module is done according to the voltage level [
19].
In protection mode, the wind turbine provides voltage support. For this purpose, it feeds in a reactive current
IDUT;reac, the level of which depends on the voltage difference
and a preset proportionality constant
, as shown in Equation (6).
Determining the requested reactive current injection requires the RMS value of the measured voltage
. The conversion of the RMS voltage into per unit (pu) allows the calculation of the voltage difference
according to Equation (7). The active current that the wind turbine delivers in the UVRT case
depends on the maximum possible current
and the reactive current just calculated. Equation (8) describes the calculation of the active current injection.
The current control enables the compliance with the power specification. Wind turbines are classically controlled in dq-coordinates, which allow direct determination of the active and reactive power [
28]. A phase-locked loop (PLL) is used to calculate the dq coordinates from the measured current. The control of the two components is done independently based on a pre-sampled reference value. In the UVRT case, the reference value is calculated as described previously. In steady state mode, the reference value is a predefined parameter. For real wind turbines, this results from the available wind power and the reactive power feed-in specified by the grid operator. The selection of the reference value first requires information about the current operating mode. In the simulation, the level of reactive current is the decisive criterion to define the mode. If the required reactive current is higher than the reactive current injection specified in the steady-state operating mode, it indicates a UVRT case, and hence, protection mode is enabled.
Figure 9 shows the control mode of the DUT current controller.
3.4. Simulink Model
Figure 10 shows the complete setup of the grid emulator model in the simulation. MATLAB/Simulink is chosen as the simulation environment. Simscape
TM, which is integrated in the Simulink environment, transfers the variables into a physical system. This model is referred to as the complex grid emulator model henceforth and consists of three parts: The control of the grid emulator, the model of the hardware components, and the wind turbine control. Although the control of the grid emulator and the wind turbine are presented as completely as possible, the model of the hardware components allows some simplifications. The validation of the wind turbine models according to the criteria of [
18,
24] prescribes fundamental frequency models. Accordingly, the simulation does not include the real switching behavior, the interleaved switching, and the parallel connection of the three converter systems. Consequently, the filter needed to reduce the harmonics generated by the real converters is not necessary. An ideal voltage source represents the converter system of the grid emulator. These receive the three-phase voltage signal U
PoC,abc generated by the grid emulator’s controller. Before that, a manipulated variable limiter verifies the signal for the limits of the converter system to avoid excess voltages. The ideal voltage sources generate an electrical voltage that is applied to the lower voltage side of the grid emulator’s transformer. By neglecting the filter, the tertiary winding is omitted. The transformer is modeled as a three-phase transformer. The power rating is 8 MVA. The high voltage (HV) winding represents the PoC. The measured PoC current is used just like the measured PoC voltage for the control of the grid emulator as well as for the control of the DUT [
21].
The wind turbine is also represented as a voltage source in the simulation. Connecting the wind turbine to the PoC is again done with a three-phase transformer.
4. Validation of the Complex Grid Emulator Model
The first step is to validate the complex grid emulator model by comparing it with real measurement data. The measurement data results from the research project CertBench, which is presented in [
6,
15]. A further detailed overview of the measurements is included in the final report. The final report in [
29] of the project also contains a detailed overview of the measurements, the measurement equipment used, and the measurements’ accuracy. A turbine from the manufacturer Enercon served as the DUT. The test bench measurements were validated with real field data within the research project. To ensure comparability, the parameters in the simulation have to correspond to the parameters set in the test bench measurement. This applies equally to the wind turbine and the grid emulator. For the settings at the grid emulator, the significant parameters are the short-circuit power and the X/R ratio at the PoC. The dip depth, fault duration, and starting time are also critical factors. For the wind turbine, the model must represent the active and reactive power injection and the predefined k-factor.
Table 1 describes the parameters of the tests used for the validation.
4.1. Evaluation of the Complex Grid Emulator Model
The analysis of the validity and accuracy of the grid emulator model requires the exact replication of the wind turbine behavior in the simulation. The model described above is a standard model of a wind turbine. In order to exclude possible deviations from the wind turbine model, the validation was first performed using the so-called playback variant [
18]. In this case, real measurements of the current injected by the wind turbine
replaced the wind turbine model. Low-resistance resistors connected between the simulated current source and the PoC increased the stability of the overall simulation. In the playback variant, the current injected by the wind turbine is no longer able to react to the voltage within the simulation. However, a changed angle between voltage and current leads directly to a deviation of the active and reactive power. For this reason, the playback variant requires that the phase angle of the voltage in the simulation matches the phase angle of the measured PoC voltage [
21].
The established standards and technical guidelines prescribe the evaluation of the positive sequence system component. The comparison between measured data and simulation result was carried out for the pre-fault, fault, and post-fault areas, as can be seen in
Figure 11. The two transient areas of no relevance in the validation are also indicated. The measured and simulated voltages indicate high agreement before and after the error. The deviation in these ranges is always less than 1%, which is negligible considering the measurement accuracy [
21].
This result is confirmed in
Figure 12.
Figure 12a presents the mean error of the three ranges for all tests. This is always less than one percent. The maximum error, shown in
Figure 12b, is also below one percent in 10 of 14 measurements. Only the three tests with a 0% voltage and the full-load test with 0.73% fault voltage are between 1 and 2 percent deviation [
21].
Figure 13 exemplifies the instantaneous values for test number 10. Although the current measurement which replaces the wind turbine model contains harmonic distortions, the simulated voltages, in contrast to the measured voltages, did not exhibit harmonic distortions. The input filter of the grid emulator’s controller eliminates them completely within the simulation. The quasi-stationary regions before, during, and after the fault again demonstrate high agreement among the respective phase voltages. The transient area shows deviations, which refer during the voltage dip exclusively to the time of the dip itself. After only half of a period, no more deviations remain. The voltage dip continued to be sinusoidal in the simulation. The real measurement shows a more abrupt change of the voltage, which briefly leaves the sinusoidal curve. A similar behavior was observed during voltage recovery. The measured voltage contains a short overshoot of the voltage, which did not appear in the simulation. Responsible for this is the filter of the current input signal as well as the taken linearization. Moreover, especially non-linear effects of the transformers, e.g., saturation effects, cannot be represented by the simulation. The evaluation shows that the developed model of the grid emulator reproduces the measured data in the simulation with high accuracy. Only the transient regions show deviations, and those are mostly within the first period after the voltage change. Because the validation of the wind turbine models does not consider these areas further, the grid emulator model provides a high level of accuracy, and therefore, it is suitable for validation purposes [
21].
4.2. Complex Grid Emulator Model in Combination with a Generic Wind Turbine Model
The previous evaluation refers exclusively to simulations in which the wind turbine model is replaced by real measured data. The control of the wind turbine itself has not yet been integrated into the simulation. Because the PoC is the reference point of the control for both the grid emulator and the wind turbine, it can have mutually strong influence on both. To further analyze the effects of this mutual influence, the validated simulation results of the playback variant were compared with simulations of a complete model.
Figure 14 and
Figure 15 are examples of the instantaneous voltages of a simulation in the playback (PB) variant and a simulation with the complete model of the wind turbine.
Figure 14 shows a full-load test to a resulting voltage of 0.25 pu, and
Figure 15 presents a partial-load test with 0.47 pu nominal voltage.
The generic wind turbine model describes the behavior of the measured turbine very accurately for the full-load test to 0.25 pu residual voltage. There were no deviations in the instantaneous voltages. The transient range during the voltage dip similarly reveals consistent agreement between the two simulations. It can be concluded that the voltage behavior during the dip is significantly influenced by the model of the grid emulator. During the voltage return, the simulation with the full model of the wind turbine showed slightly higher dynamics. This may be due to the neglect of the non-linear effects (e.g., saturation of the transformer) in the generic wind turbine model. The two controllers did not influence each other.
The partial-load test likewise showed no deviations between the two simulations in the pre-fault and post-fault regions. Within the fault region, the amplitude was higher in the variant with the generic wind turbine model than in the playback version. This indicates that the generic wind turbine model does not accurately represent the fault current of the real turbine in partial-load mode. The wind model injected a higher reactive current to support the voltage during the fault. This effect occurred over the entire fault range, but it was clearly due to the wind turbine model. During the voltage dip, the transient ranges show a consistent pattern, indicating that there was no negative influence from the two controllers here, either.
In summary, the grid emulator model accurately represents the behavior of the wind turbine in the simulation. This is valid for the playback version as well as for simulations with the complete model of the wind turbine. Therefore, the developed model of the grid emulator is suitable for validating wind turbine models using test bench tests.