> 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/wtgt_a.md).

# WTGT\_A

## Description

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

The **Wind Turbine Generator drive-Train type A (WTGT\_A)** block, located in the **Control Smart Inverters library**, represents the mechanical drive-train dynamics of a Type 3 wind turbine generator (DFIG-based) using a simplified two-mass shaft model.

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

It models the elastic coupling between the turbine rotor (low-speed shaft) and the generator rotor (high-speed shaft). The two rotating masses are connected through an equivalent shaft characterized by stiffness and damping, allowing relative angular motion between the turbine and generator. The block computes the turbine and generator speeds from the torque imbalance between the mechanical torque (from aerodynamic power *P*<sub>*m*</sub>) and the electrical torque (from electrical power *P*<sub>*e*</sub>), capturing the dominant torsional dynamics that can influence output following disturbances.

When parameters are provided as total inertia and frequency, use the following definitions and conversions:

* $H$: total inertia (MWs/MVA)
* $H\_{tfrac}$: turbine inertia fraction
* $freq1$: first shaft torsional frequency (Hz)

$$
H\_t = H \cdot H\_{tfrac} \\\[8pt]
H\_g = H-H\_t \\\[8pt]
K\_{shaft} = \frac{ 2 \cdot H\_t \cdot H\_g} {H}(2 \pi \cdot freq1)^2
$$

### Model assumptions and limitations

* WTGT\_A is a reduced-order, positive-sequence two-mass shaft model for transient stability studies, not for detailed mechanical shaft design analysis.
* It captures dominant turbine-generator torsional dynamics through equivalent inertia, stiffness, and damping, but does not represent higher-order shaft modes.
* It is primarily intended for Type 3 wind turbine representations; use only as a study-level approximation when applied outside this scope.

{% 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-b48dedb50fdc936936d63ec90d607b3facb1ed80%2FCSI_WTGT_A_mask_GeneralTab.png?alt=media" alt="" width="600"><figcaption></figcaption></figure>

| Parameter    | Description                                                                                       | Variable & Constraints |
| ------------ | ------------------------------------------------------------------------------------------------- | ---------------------- |
| **Ht**       | Turbine inertia (MWs/MVA): kinetic energy stored in the turbine rotor at rated power.             | Ht ∈ \[0, 1e64]        |
| **Hg**       | Generator inertia (MWs/MVA): kinetic energy stored in the generator rotor at rated power.         | Hg ∈ \[0, 1e64]        |
| **Kshaft**   | Stiffness coefficient (pu): torsional rigidity of the turbine-generator shaft.                    | Kshaft ∈ \[0, 1e64]    |
| **Dshaft**   | Damping coefficient (pu): damping of torsional oscillations between turbine and generator masses. | Dshaft ∈ \[0, 1e64]    |
| {% 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-52d71a14a0f056c517bce7a1d21351707560f005%2FCSI_WTGT_A_mask_InitCondTab.png?alt=media" alt="" width="600"><figcaption></figcaption></figure>

| Parameter                           | Description                                                                             | Variable & Constraints          |
| ----------------------------------- | --------------------------------------------------------------------------------------- | ------------------------------- |
| **Initial speed ω**<sub>**0**</sub> | Initial operating speed of turbine-generator shaft, typically set to synchronous speed. | w0 recommended range: \[1, 1.3] |

{% hint style="info" %}
Note: In the “Variable & Constraints” column, entries marked recommended range are engineering guidance values and are not software-enforced limits.
{% endhint %}
{% endtab %}
{% endtabs %}

## Inputs

| Input  | Description                                                 |
| ------ | ----------------------------------------------------------- |
| **Pm** | Mechanical power from the aerodynamics model (WTGA\_A) (pu) |
| **Pe** | Active power measured at the terminal (pu)                  |

## Outputs

| Output | Description          |
| ------ | -------------------- |
| **wg** | Generator speed (pu) |
| **wt** | Turbine speed (pu)   |

## 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/wtgt_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.
