> 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/library-blocks-reference/control-smart-inverters/wtgp_a.md).

# WTGP\_A

## Description

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-eee71b6238e3aeb0a6ba3139f2f5c92df7ccc291%2FCSI_WTGP_A_block.png?alt=media" alt="" width="215"><figcaption></figcaption></figure>

The **Wind Turbine Generator Pitch controller type A (WTGP\_A)** block, located in the **Control Smart Inverters library**, is a WECC generic model representing the blade pitch control system of a wind turbine. Its primary purpose is to regulate turbine speed and limit mechanical power by adjusting blade pitch during electrical disturbances, such as grid faults or large frequency deviations. Increasing pitch angle reduces aerodynamic lift on the blades and therefore the mechanical power generated. The model is not intended to represent detailed wind variations or turbine-level supervisory control, but rather to provide a realistic slow mechanical response that complements faster electrical and converter controls.

The WTGP\_A generates a blade pitch angle command based on speed feedback, calculated from the turbine speed from the drive-train [WTGT\_A](https://www.opal-rt.com/docs/hypersim/library-blocks-reference/control-smart-inverters/wtgt_a.md) and the speed reference from the torque controller [WTGQ\_A](https://www.opal-rt.com/docs/hypersim/library-blocks-reference/control-smart-inverters/wtgq_a.md), and based on power feedback from the difference between the ordered electrical power from the electrical control [REEC\_A](https://www.opal-rt.com/docs/hypersim/library-blocks-reference/control-smart-inverters/reec_a.md) and the power reference. \[1]

Block diagram is presented in figure below.

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-21dad3379556a912d71ec51d6ac1c172200a8c48%2FCSI_WTGP_A_diagram.png?alt=media" alt="" width="400"><figcaption></figcaption></figure>

{% hint style="danger" %}
This block requires a valid license on both the simulator and the workstation with the feature SMART INVERTER enabled.
{% endhint %}

## Mask parameters

{% tabs %}
{% tab title="General" %}

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-26bbebf2c60520a5af20078aea57039bbdd98f67%2FCSI_WTGP_A_mask_GeneralTab.png?alt=media" alt="" width="500"><figcaption></figcaption></figure>

| Parameter    | Description                                              | Variable & Constraints     |
| ------------ | -------------------------------------------------------- | -------------------------- |
| **Kiw**      | Pitch controller integral gain                           | Kiw ∈ \[0, 1e64]           |
| **Kpw**      | Pitch controller proportional gain                       | Kpw ∈ \[0, 1e64]           |
| **Kic**      | Pitch compensation integral gain                         | Kic ∈ \[0, 1e64]           |
| **Kpc**      | Pitch compensation proportional gain                     | Kpc ∈ \[0, 1e64]           |
| **Kcc**      | Proportional cross-compensation gain, typically set to 0 | Kcc ∈ \[0, 1e64]           |
| **Tp**       | Pitch time constant, typically set to 0.3                | Tp ∈ \[0, 1e64]            |
| **θmax**     | Maximum pitch angle limit, typically set to 30           | ThetaMax ∈ \[0, 360]       |
| **θmin**     | Minimum pitch angle limit, typically set to 0            | ThetaMin ∈ \[0, 360]       |
| **dθmax**    | Maximum pitch angle rate limit, typically set to 10      | ThetaRateMax ∈ \[0, 1e64]  |
| **dθmin**    | Minimum pitch angle rate limit, typically set to -10     | ThetaRateMin ∈ \[-1e64, 0] |
| {% endtab %} |                                                          |                            |

{% tab title="Initial Conditions" %}

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-c3d9f50d0f73323911c7f1730f1e7a9e3af30cf7%2FCSI_WTGP_A_mask_InitCondTab.png?alt=media" alt="" width="500"><figcaption></figcaption></figure>

| Parameter                  | Description                                     | Variable & Constraints     |
| -------------------------- | ----------------------------------------------- | -------------------------- |
| **Initial pitch angle θ0** | Should be equal to WTGA\_A initial pitch angle. | initial\_angle ∈ \[0, 360] |
| {% endtab %}               |                                                 |                            |
| {% endtabs %}              |                                                 |                            |

## Inputs

| Input     | Description                                 |
| --------- | ------------------------------------------- |
| **wt**    | Turbine speed, from WTGT\_A (pu)            |
| **wref**  | Speed reference, from WTGQ\_A (pu)          |
| **Pord**  | Ordered electrical power, from REEC\_A (pu) |
| **Pref0** | Plant power reference (pu)                  |

## Outputs

| Output           | Description                 |
| ---------------- | --------------------------- |
| **pitch\_angle** | Blade pitch angle (degrees) |

## Signals available for monitoring and external I/O connections (via sensors form)

All block inputs and outputs are available as signals for monitoring and for external I/O connections.

## References

\[1] Model User Guide for Generic Renewable Energy System Models, EPRI, October 2023.

## Acknowledgements

{% hint style="info" %}

## Acknowledgements <a href="#acknowledgements" id="acknowledgements"></a>

The development of the <code class="expression">page.vars.block\_name</code> block in the Smart Inverter Control Library is a contribution of CanmetENERGY at Natural Resource Canada.
{% endhint %}


---

# 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/library-blocks-reference/control-smart-inverters/wtgp_a.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.
