> For the complete documentation index, see [llms.txt](https://www.opal-rt.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.opal-rt.com/docs/hypersim/examples/renewable-energy/dfig-wind-turbine-average-switching-converters.md).

# Doubly Fed Induction Generator based Wind Turbine with Average and Switching Function Converters

## Description

The **DFIG Wind Turbine System** example, located in **File > Open an Example File > Renewable Energy**, models a Doubly-Fed Induction Generator (DFIG) based Type-III wind turbine generator (WTG) connected to a typical distribution system \[1] \[2].

This example demonstrates the control dynamics of the WTG using both the [Wind Turbine Type-3 (Average Model)](https://www.opal-rt.com/docs/hypersim/examples/renewable-energy/dfig-wind-turbine-average-switching-converters/wind-turbine-type-3-average-model.md) (Figure 1(a), Page-1) and the [Wind Turbine Type-3 (Switching Function)](https://www.opal-rt.com/docs/hypersim/examples/renewable-energy/dfig-wind-turbine-average-switching-converters/wind-turbine-type-3-switching-function.md) (Figure 1(b), Page-2) converter models, and illustrates the comparison between the two.The wind park rating can be modified via the number and/or rating of turbines on the mask. Controllers are designed in per unit to support any number of turbines and ratings.

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-6e8476a86273a5883d6db0fa23e083cd7a319a6e%2Fimage%20(260).png?alt=media" alt=""><figcaption><p><strong>Average converter based model in Page-1</strong></p></figcaption></figure>

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-bd4cd914dcd5d1b9c8814b0214b86be1f0aa97d4%2Fimage%20(261).png?alt=media" alt=""><figcaption><p>Switching function converter based model in Page-2</p></figcaption></figure>

## Requirements

This example model does not require any additional hardware or licenses.

## Detailed explanation

The model represents an 8.5 MW, 575 V, 60 Hz wind park connected to a 25 kV system through a 20 km feeder by scaling a single 1.7 MW DFIG (number of wind turbines = 5). It is noted that a single 1.7 MW DFIG is scaled-up (by a factor of '*number of wind turbines = 5')* to meet 8.5 MW power rating of wind park.

The rating of wind park can be changed by varying the *'number of wind turbine'* and/or *'rating of wind turbine'* in the mask The maximum recommended amount of wind turbines per WTG block is 15. Each wind turbine operates in the maximum power point mode. Since, the control design is performed in per unit; the model can be simulated for any number of wind turbine and power rating.

This type-III WTG example model consists of a wound rotor induction generator, and an AC-DC-AC Converter placed between the generator rotor and the grid. The WTG is connected to the grid through a 25kV/575V transformer and a 20km line PI section line. The typical rating of the converter is 30% of its machine rating.

On each page, the grid side converter (GSC) and rotor side converter (RSC) are made using the [2-Level Converter (Average)](https://www.opal-rt.com/docs/hypersim/library-blocks-reference/network-voltage-source-converters/2-level-converter-average.md) or the[ 2-Level Converter (Switching Function)](https://www.opal-rt.com/docs/hypersim/library-blocks-reference/network-voltage-source-converters/2-level-converter-switching-function.md) blocks from the HYPERSIM native library.

## Simulation and results

To demonstrate the control system dynamics and its interaction with the grid, the DFIG-based WTG is simulated for three event changes within a 95 s time span. The three events are a 3LG fault, a reactive power change, and a wind velocity variation. The model is tested at a time-step of 50 µs, and the results are provided from the ScopeView acquisition. The control sequence displaying different scenarios is summarized in the table below.

**Example model test scenario sequence**

<table><thead><tr><th width="113.55560302734375">Operation Points</th><th width="81.33331298828125">From</th><th width="69.111083984375">To</th><th width="93.5555419921875">Wind Velocity (m / s)</th><th width="82.4444580078125">Qref (pu)</th><th width="92.22216796875">Fault Type</th><th>Speed (pu)</th></tr></thead><tbody><tr><td>1</td><td>0</td><td>1</td><td>12</td><td>0</td><td>-</td><td>Super-Synchronous</td></tr><tr><td>2</td><td>1</td><td>1.1</td><td>12</td><td>0</td><td>3LG</td><td>Super-Synchronous</td></tr><tr><td>3</td><td>1.1</td><td>5</td><td>12</td><td>0</td><td>-</td><td>Super-Synchronous</td></tr><tr><td>4</td><td>5</td><td>15</td><td>12</td><td>0.25</td><td>-</td><td>Super-Synchronous</td></tr><tr><td>5</td><td>15</td><td>20</td><td>15</td><td>0.25</td><td>-</td><td>Super-Synchronous</td></tr><tr><td>6</td><td>20</td><td>25</td><td>15</td><td>0</td><td>-</td><td>Super-Synchronous</td></tr><tr><td>7</td><td>25</td><td>55</td><td>8</td><td>0</td><td>-</td><td>Sub-Synchronous</td></tr><tr><td>8</td><td>55</td><td>95</td><td>12</td><td>0</td><td>-</td><td>Super-Synchronous</td></tr></tbody></table>

The simulation results show that the DFIG-based WTG model maintains stable operation before and after any perturbation. The dynamics of pitch angle, active power, reactive power, machine speed, machine torque, DC voltage, and AC voltage at the POC obtained with the average (B1\_575V\_1) and SwF (B1\_575V\_2) models are compared in the following figures. The results also show instantaneous stator and rotor currents along with these wind farm parameters.

* At the beginning of the simulation, the rated wind velocity of 12 m/s, and Qref of 0 pu, are given to average and SWF models to have a stable initialization. The machine torque and speed reach -0.86 pu and 1.19 pu, respectively. A 3LG Fault is applied at bus B1\_25kV\_1 at 1 s for a duration of 0.1 s. A similar fault situation is applied in the SWF model at bus B1\_25kV\_2 (Page 2). At 1.1 s, the fault is removed, and the controller of RSC forces the machine's torque and speed to follow its previous steady-state values, as shown in Figure 4. At the moment of fault, the transient is observed in active power and reactive power from WTG in Figure 3. The pitch angle controller takes measured active power (Pmeas) as the input signal. Hence, the transient with respect to fault indirectly influences pitch angle oscillation, as shown in Figure 4. This transient oscillation is also observed in the DC-link voltage in Figure 5, which is controlled using the GSC controller. At the moment of 3LG fault, the POC voltage and current from the average and SWF model show a good match in Figure 6. Similarly, the stator current from both models shows a good match in Figure 7. However, a mismatch is present in the rotor current between average and SWF models in Figure 7. These discrepancies might be attributed to the fact that the RSC controller in the SWF based model behaves slightly different compared to the average model due to the high-frequency response of SWF converter. This difference causes that the machine speed of average and SWF models have a little mismatch between them. The speed mismatch is integrated and transferred to rotor angle calculation creating a phase shift in the rotor current in the SWF model with respect to the rotor current in the average model.
* At 5 s, the Qref is increased from 0 pu to 0.25 pu, and the RSC controller injects reactive power from WTG. After that, the wind velocity is changed from 12 m/s to 15 m/s at 15 s. The pitch angle controller increases the blade angle (Figure 4) to receive 1 pu active power (Figure 3) at 15 m/s wind velocity. Hence, the torque and speed of the machine remain the same at -0.86 pu and 1.19 pu, respectively (Figure 4). From 5 s to 20 s, 0.25 MVAr reactive power injects from WTG operating at super-synchronous speed. At 20 s, the Qref is reduced to 0 pu, and the reactive power injection from the WTG gradually decreases to 0 MVAr (Figure 3).
* At 25 s, the wind velocity is decreased from 15 m/s to 8 m/s to observe the behavior of the GSC and RSC controller for an abrupt change in the input variable. In this condition, the pitch angle controller reduces the blade angle to 0 degrees as the WTG is operated at less than its rated wind velocity of 12 m/s (Figure 4). The machine torque increases as the speed is reduced with the reduction of wind velocity (Figure 4), and WTG operates at sub-synchronous speed. Additionally, the active power is extracted with respect to 8 m/s wind velocity, as shown in Figure 3.
* At 55 s, the wind velocity is increased from 8 m/s to 12 m/s, and the WTG gradually resumes its original stable mode of operation (with respect to wind velocity 12 m/s and Qref = 0 pu inputs). It is noted that the pitch angle controller is limited by ±10 deg/s pitch rate. Then, when a step input of wind velocity is applied to the model, the pitch angle cannot increase abruptly. The pitch angle gradually increases to 10 deg angle while the machine torque decreases and speed increases at a slower rate due to inertia. As the time approaches, the difference between machine torque and speed values and their steady-state values (-0.86 pu and 1.19 pu, respectively) are reduced. As the simulation continues the machine torque and speed resume to their respective steady-state values, and the pitch angle reach 4.5 deg. angle (original value with respect to 12 m / s). The simulation ends at 95 s.

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-595555794e95784fb06a28d0fbf1376f69e01cee%2Fimage%20(232).png?alt=media" alt=""><figcaption><p><strong>Wind Velocity, Active Power Generation, and Reactive Power Reference &#x26; generated</strong><br><strong>from the Type III Wind Turbine Generation System</strong></p></figcaption></figure>

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-941e60f4a5fb550bfb086878621cc9d63b0ab279%2Fimage%20(233).png?alt=media" alt=""><figcaption><p><strong>Mechanical Parameters of the Type III Wind Turbine Generation System</strong></p></figcaption></figure>

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-7cffad1d22368b8b4a50d6026383aeba53af0ebb%2Fimage%20(234).png?alt=media" alt=""><figcaption><p><strong>Magnitude of AC Voltage and DC-link Voltage of the Type III Wind Turbine Generation System</strong></p></figcaption></figure>

If we look at the instantaneous waveforms at the Point of Connection during the fault, it can be noticed that the SWF model waveforms contain some harmonics that are not present in the AVG Model, but overall the voltages and currents have a good agreement between the two models. These instantaneous waveforms are not included in the provided ScopeView template due to the large amount of data during the long acquisition.

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-0ff491e2e9348cd09f9124e86ca476c07e6d4adf%2Fimage%20(235).png?alt=media" alt=""><figcaption><p><strong>POC Voltage and Current waveforms during the 3LG fault at B1_25kV of the Type III Wind Turbine Generation System</strong></p></figcaption></figure>

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-db003abb24fdce2abde04fcd35cac79be566f135%2Fimage%20(236).png?alt=media" alt=""><figcaption><p><strong>Stator and Rotor Current waveforms during the 3LG fault at B1_25kV of the Type III Wind Turbine Generation System</strong></p></figcaption></figure>

## References

\[1] Gagnon, Richard, Gilbert Turmel, Christian Larose, Jacques Brochu, Gilbert Sybille, and Martin Fecteau. "Large-scale real-time simulation of wind power plants into Hydro-Québec power system." In *9th International Workshop on Large-Scale Integration of Wind Power into Power Systems as well as on Transmission Networks for Offshore Wind Power Plants*, pp. 18-19. 2010.

\[2] Karaagac, Ulas, Jean Mahseredjian, Henry Gras, Hani Saad, Jaime Peralta, and Luis Daniel Bellomo. "Simulation models for wind parks with variable speed wind turbines in EMTP." *Polytechnique Montréal* (2017).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.opal-rt.com/docs/hypersim/examples/renewable-energy/dfig-wind-turbine-average-switching-converters.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
