> 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/distribution-and-industrial-power-systems/distribution-connected-combined-heat-and-power.md).

# Distribution Connected Combined Heat & Power

## Description

The **Combined Heat and Power** example, located in **File > Open an Example File > Distribution and Industrial Power Systems**, models a 10 MVA, 2.4 kV combined heat and power (CHP) unit connected via a feeder to a simplified three-phase 25 kV, 60 Hz distribution bus.

The main objective of this example is to demonstrate CHP operation in grid-following (PV and PQ) and grid-forming modes, including transitions between modes and islanded operation using breaker CB2.

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

## Requirements

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

## Detailed explanation

In this model, a CHP system is connected to a typical medium-voltage distribution system. The feeders are modeled with their equivalent direct-sequence and zero-sequence impedances. Bus3 has two loads of 5 MW and 1 MVAr connected to it. The loads and the CHP can be islanded by opening breaker CB2.

The CHP can operate in grid-connected or islanded mode. It supports PV or PQ operation and can use isochronous or droop speed control, as well as constant-voltage control or droop voltage control.

The initial conditions of all components are set to ensure the simulation is initialized at the operating point calculated by the power flow, allowing the simulation to start in steady state.

For more details about the CHP model refer to [Combined Heat and Power (CHP)](https://www.opal-rt.com/docs/hypersim/examples/distribution-and-industrial-power-systems/distribution-connected-combined-heat-and-power/combined-heat-and-power-chp.md).

## Simulation and results

The CHP is initially set to PV mode with an active power reference of 0.7 pu and a voltage reference of 1.0 pu. The model is exercised through several operating modes to validate behavior. The simulation timestep is 50 µs.

| From | To   | Mode                       | Pref (pu) | Qref (pu) | Vref (pu) |
| ---- | ---- | -------------------------- | --------- | --------- | --------- |
| 0 s  | 5 s  | PV                         | 0.7       | N/A       | 1         |
| 5 s  | 20 s | PV                         | 0.6       | N/A       | 1.02      |
| 20 s | 35 s | PQ                         | 0.7       | 0.1       | N/A       |
| 35 s | 50 s | PQ                         | 0.8       | 0.13      | N/A       |
| 50 s | 70 s | Grid Forming               | N/A       | N/A       | N/A       |
| 70 s | 90 s | Fixed frequency/ Q control | N/A       | 0.13      | N/A       |

**Results and observations**

* **0–20 s (PV mode)**: The active power reference is tracked. When the voltage reference increases by 2% (from 1.00 to 1.02 pu), the reactive power adjusts accordingly.
* **20–50 s (PQ mode)**: The CHP follows the active and reactive power references. The reactive power reference limit is ±0.3 pu; the commanded values remain within this limit.
* **50–70 s (grid-forming, islanded)**: Breaker CB2 opens at 50 s and remains open until 90 s. In this period, active and reactive power references are ignored, and the CHP supplies the two loads connected to Bus3. No current flows through the islanding breaker, and system frequency is maintained at 1 pu (60 Hz).
* **70–90 s (fixed frequency and Q control, islanded**): The reactive power reference is followed. The CHP active power increases to maintain frequency at 1 pu due to the constant-impedance load behavior as reactive power is raised.

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

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

## References

\[1] A. Marzoughi, H. Selamat, M. Fua’ad, H. Abdul. “Optimized proportional integral derivative (PID) controller for the exhaust temperature control of a gas turbine system using particle swarm optimization”. International Journal of the Physical Sciences. Available online in <http://www.academicjournals.org/article/article1381418505\\_Marzoughi%20et%20al.pdf>

\[2] W. Rowen. “Simplified Mathematical Representations of Heavy-Duty Gas Turbines”. Published Journal of Engineering for Power. Availble in <http://webm.dsea.unipi.it/barsali/materiale/Centrali/Regolazione/1983\\_ASME\\_Rowen\\_Simplified%20mathematical%20representations%20of%20heavy-duty%20gas%20turbines.pdf>

\[3] "Dynamic models for combined cycle plants in power system studies," in\_IEEE Transactions on Power Systems\_, vol. 9, no. 3, pp. 1698-1708, Aug 1994.

\[4] G. Lalor, M. O’Malley. “Frequency Control on an Island Power System with Increasing Proportions of Combined Cycle Gas Turbines”. Available in <https://www.researchgate.net/publication/4078318\\_Frequency\\_control\\_on\\_an\\_island\\_power\\_system\\_with\\_increasing\\_proportions\\_of\\_combined\\_cycle\\_gas\\_turbines>

\[5]IEEE, "IEEE Recommended Practice for Excitation System Models for Power System Stability Studies," in IEEE Std 421.5-2005.


---

# 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/distribution-and-industrial-power-systems/distribution-connected-combined-heat-and-power.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.
