> 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-governors/ieee-wehgov.md).

# IEEE WEHGOV

## Description

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-bfd20540d697e73a1eeb2a795cdc87bf5cb33077%2Fimage%20(866).png?alt=media" alt="" width="177"><figcaption></figcaption></figure>

The **IEEE WEHGOV** block, located in the **Control Governors** library, is a Woodward electric hydro governor model with PID control. The turbine model uses lookup tables to represent nonlinear steady‑state characteristics: flow rate versus gate position and mechanical power versus flow rate. The WEHGOV component was developed in line with reference \[1].

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-84588c464326924612a3332b520cc91418a5304e%2Fimage%20(867).png?alt=media" alt=""><figcaption><p>WEHGOV diagram</p></figcaption></figure>

{% hint style="info" %}
The HYPERSIM<sup>®</sup> simulation option Set Initial Conditions must be checked for the automatic initialization to work properly.
{% endhint %}

## Mask parameters

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

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

<table><thead><tr><th width="200.20001220703125">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>R_PERM_GATE</strong></td><td>Permanent droop gain on gate position in per unit on generator MVA base (pu).</td></tr><tr><td><strong>R_PERM_PE</strong></td><td>Permanent droop gain on electrical power in per unit on generator MVA base (pu).</td></tr><tr><td><strong>TPE</strong></td><td>Measured electrical power filter time constant (s).</td></tr><tr><td><strong>DBAND</strong></td><td>Deadband limit on the PID input (unitless).</td></tr><tr><td><strong>KP</strong></td><td>Proportional controller gain.</td></tr><tr><td><strong>KI</strong></td><td>Integral controller gain.</td></tr><tr><td><strong>KD</strong></td><td>Derivative controller gain.</td></tr><tr><td><strong>TD</strong></td><td>Derivative controller time constant (s).<br>If TD &#x3C; 0.004, then TD = 0.004.</td></tr><tr><td><strong>GMAX</strong></td><td>Maximum gate/controller limit (pu).</td></tr><tr><td><strong>GMIN</strong></td><td>Minimum gate/controller limit (pu).</td></tr><tr><td><strong>TP</strong></td><td>Pilot valve servo time constant (s).<br>If TP &#x3C; 0.004, then TP = 0.004.</td></tr><tr><td><strong>DPV</strong></td><td>Pilot valve limit modifier (pu).</td></tr><tr><td><strong>TDV</strong></td><td>Distribution valve servo time constant (s). If TDV &#x3C; 0.004, then TDV = 0.004.</td></tr><tr><td><strong>DICN</strong></td><td>Integral controller limit modifier (pu).</td></tr><tr><td><strong>GTMXOP</strong></td><td>Maximum distribution valve opening velocity (pu).</td></tr><tr><td><strong>GTMXCL</strong></td><td>Maximum distribution valve closing velocity (pu).</td></tr><tr><td><strong>TG</strong></td><td>Gate servo time constant (s). If TG &#x3C; 0.004, then TG = 0.004.</td></tr><tr><td><strong>Feedback_SW</strong></td><td>Feedback signal selection, valid values: [0, 1].<br>0 = feedback is gate position and electrical power;<br>1 = feedback is the PID output.</td></tr></tbody></table>
{% endtab %}

{% tab title="Turbine dynamics" %}

<table><thead><tr><th width="259.39996337890625">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>TW</strong></td><td>Water inertia time constant (s). If TW &#x3C; 0.004, then TW = 0.004.</td></tr><tr><td><strong>DTURB</strong></td><td>Turbine damping factor in per unit on generator MVA base (pu).</td></tr><tr><td><strong>GATE = [GATE1 to GATE5]</strong></td><td>Gate position curve points on a piecewise linear curve (pu). Specify GATE1–GATE5 in ascending order.</td></tr><tr><td><strong>FLOW_G = [FLOW_G1 to FLOW_G5]</strong></td><td>Water flow rate curve points on a piecewise linear curve (pu). Specify FLOW_G1–FLOW_G5 in ascending order.</td></tr><tr><td><strong>FLOW_P = [FLOW_P1 to FLOW_P10]</strong></td><td>Water flow rate curve points on a piecewise linear curve (pu). Specify FLOW_P1–FLOW_P10 in ascending order.</td></tr><tr><td><strong>PMECH = [PMECH1 to PMECH10]</strong></td><td>Per unit mechanical power curve points on machine MVA rating (pu). Points lie on a piecewise linear curve. Specify PMECH1–PMECH10 in ascending order.</td></tr></tbody></table>
{% endtab %}

{% tab title="Initial values" %}

<table><thead><tr><th width="200.20001220703125">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Pm0</strong></td><td>Initial mechanical power output (pu).</td></tr><tr><td><strong>w0</strong></td><td>Speed reference (pu).</td></tr></tbody></table>

The **speed reference w0** can be set manually by entering a numerical value. It can also be set automatically from load flow results by entering a referenced synchronous machine variable available in the machine netlist.

* For a **pu standard or pu fundamental machine** named SM1, insert “=SM1.Wm\_Init”
* For a **thermal machine or a hydraulic machine** named SM1, insert "=SM1.wo”

Similarly, the **initial mechanical power output Pm0** can be set automatically.

* For a **pu standard or pu fundamental machine** named SM1, insert “=SM1.lfP/1e6/SM1.sBase”
* For a **thermal machine or a hydraulic machine** named SM1, insert “=SM1.Peo/SM1.BaseMVA”
  {% endtab %}
  {% endtabs %}

## Inputs

<table><thead><tr><th width="199.60003662109375">Input</th><th>Description</th></tr></thead><tbody><tr><td><strong>w</strong></td><td>Machine actual speed (pu).</td></tr><tr><td><strong>VAR</strong></td><td>External control reference (pu).</td></tr><tr><td><strong>Pe</strong></td><td>Measured electrical power (pu).</td></tr></tbody></table>

## Outputs

<table><thead><tr><th width="199.5999755859375">Output</th><th>Description</th></tr></thead><tbody><tr><td><strong>Pm</strong></td><td>Mechanical power output (pu).</td></tr></tbody></table>

## References

\[1] P. Kundur, Power System Stability and Control, New York:McGraw-Hill, 1994.

\[2] PSS®E 34.2.0 Model Library. NY, USA: Siemens Industry, Inc., 2017.

\[3] T. Tshibungu and J. Mahseredjian, Exciters and Governors: Governor-Turbine HYGOV. EMTP-EMTPWorks, 2016.


---

# 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-governors/ieee-wehgov.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.
