> 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/rt-lab/example-models/ephasorsim-example-models/lcc-type-hvdc-models.md).

# LCC Type HVDC Models

## Description

The **LCC Type HVDC Models** example can be created by starting a new RT‑LAB project. From the menu bar, select **File > New > RT‑LAB Project**. Enter a name and location for your project, then click **Next**. From the available templates list, navigate to **ePHASORsim** and select **phasor11\_HVDC**, then click **Finish**.

This demo shows the dynamic response of Line-Commutated Converter (LCC) type HVDC, modeled as an FMU. HVDC links include the model of converters, bridge control logics, supervisory controller, DC link and also two-winding transformers on both sides.

The IEEE 39-bus system is modified to include two HVDC links. In this regard, the line between buses 13 and 14 is replaced with a CDC6TA type and the line between buses 22 and 23 is replaced with CDC4T type HVDC links. Buses 13 and 22 are connected to the Rectifiers and buses 14 and 23 are connected to the Inverter.

<figure><img src="https://96827845-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNRdpSk8kjn20gXAexnt6%2Fuploads%2Fgit-blob-1509529ee0788af01dd5904fd7867ee60bfaafbf%2Fphasor11_HVDC.jpg?alt=media" alt=""><figcaption><p>Modified IEEE 39-bus network with HVDC Links.</p></figcaption></figure>

Both HVDCs are operating in power control mode.

For CDC4T, the DC power on the rectifier side is initially set to 40 MW by SETVL parameter. The voltage at compounding point of the DC link is also initialized at 99.8 kV by VSCHED parameter. The minimum firing angle on the rectifier, ALFDY, and inverter side, GAMDY, are 60 and 30 degrees respectively.

Regarding to CDC6TA, these values are as follows: SETVL = 266.1 MW, VSCHED = 183.31 kV, ALFDY = 0 and GAMDY = 0. The available parameters for CDC4T and CDC6TA are listed in the table below with their descriptions.

<table data-search="false"><thead><tr><th>Parameter</th><th>Description</th></tr></thead><tbody><tr><td>Vmag_rec</td><td>Rectifier side injecting active power</td></tr><tr><td>Vang_rec</td><td>Rectifier side injecting reactive power</td></tr><tr><td>Vmag_inv</td><td>Inverter side injecting active power</td></tr><tr><td>Vang_inv</td><td>Inverter side injecting reactive power</td></tr><tr><td>SB</td><td>Network base power (MVA)</td></tr><tr><td>MDC</td><td>Control Mode: 1 = Power, 2 = Current</td></tr><tr><td>RDC</td><td>DC line resistance (ohms)</td></tr><tr><td>SETVL</td><td>Current (amps) or Power (MW) demand</td></tr><tr><td>VSCHED</td><td>Scheduled compounded DC voltage</td></tr><tr><td>RCOMP</td><td>Compounding resistance (ohms)</td></tr><tr><td>DELTI</td><td>Desired power or current margin (pu)</td></tr><tr><td>NBR</td><td>Number of bridges in series (rectifier)</td></tr><tr><td>RCR</td><td>Rectifier commutating transformer resistance/bridge (ohms)</td></tr><tr><td>XCR</td><td>Rectifier commutating transformer resistance/bridge (ohms)</td></tr><tr><td>EBASR</td><td>Rectifier primary base AC voltage (kV)</td></tr><tr><td>TRR</td><td>Rectifier transformer ratio</td></tr><tr><td>TAPR</td><td>Rectifier tap setting</td></tr><tr><td>NBI</td><td>Number of bridges in series (inverter)</td></tr><tr><td>GAMMX</td><td>Maximum gamma firing angle (degrees)</td></tr><tr><td>GAMMI</td><td>Minimum gamma firing angle (degrees)</td></tr><tr><td>RCI</td><td>Inverter commutating transformer resistance/bridge (ohms)</td></tr><tr><td>XCI</td><td>Inverter commutating transformer resistance/bridge (ohms)</td></tr><tr><td>EBASI</td><td>Inverter primary base AC voltage (kV)</td></tr><tr><td>TRI</td><td>Inverter transformer ratio</td></tr><tr><td>TAPI</td><td>Inverter tap setting</td></tr><tr><td>ALFDY</td><td>Minimum alpha for dynamic (degrees)</td></tr><tr><td>GAMDY</td><td>Minimum gamma for dynamic (degrees)</td></tr><tr><td>Tvdc</td><td>DC voltage transducer time constant (sec)</td></tr><tr><td>Tidc</td><td>DC current transducer time constant (sec)</td></tr><tr><td>C0</td><td>Minimum current demand (amps)</td></tr><tr><td>V1</td><td>Voltage limit point 1 (kV)</td></tr><tr><td>C1</td><td>Current limit point 1 (amps)</td></tr><tr><td>V2</td><td>Voltage limit point 2 (kV)</td></tr><tr><td>C2</td><td>Current limit point 2 (amps)</td></tr><tr><td>V3</td><td>Voltage limit point 3 (kV)</td></tr><tr><td>C3</td><td>Current limit point 3 (amps)</td></tr><tr><td>TVRDC (CDC6TA)</td><td>Rectifier DC voltage transducer time constant (sec)</td></tr></tbody></table>

The value of these parameters for this demo can be found in **phasor11\_HVDC.xlsx** file.

{% file src="/files/hWeXD1hXSabRmJFUHMMB" %}

## Requirements

* MATLAB R2019b and later

## Simulation and results

The following simulation scenario is demonstrated for this test case:

* At t = 4s increase SETVL for CDC6TA by 50 MW
* At t = 8s, decrease VSCHED for CDC4T by 20 kV
* At t = 12s, apply a 3-phase-to-ground fault on bus 24

Figure below shows simulation results for HVDC signals, i.e. DC power on the rectifier side, Pdc, Voltage at compounding point, VCOMP, as well as firing angles on both rectifier and inverter sides, ALPHA and GAMMA respectively. As can be seen for CDC6TA, when power set point, SETVL, increases at t = 4s, the Pdc signal increases accordingly and the controller is able to maintain VCOMP at 183.31 kV kV.

<figure><img src="https://96827845-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNRdpSk8kjn20gXAexnt6%2Fuploads%2Fgit-blob-caea326d4c6be51e1a42da8732bf80dc20124106%2FHVDC_signals.png?alt=media" alt=""><figcaption><p>(a) DC power on the rectifier side, Pdc. (b) Voltage at compounding point, VCOMP. (c) Firing angle on rectifier side, ALPHA. (d) Firing angle on inverter side, GAMMA.</p></figcaption></figure>

At t = 8s, changing of VSCHED for CDC4T from 99.8 kV to 79.8 kV causes VCOMP to decrease. Consequently, Pdc drops and it recovers after few milliseconds. Such a control is done by modifying firing angles on rectifier and inverter sides.

Finally at t = 12s a fault occurs which consequently leads to a sudden decrease of both VCOMP and Pdc for CDC4T and CDC6TA for few milliseconds. Right after the fault event, ALPHA for CDC4T reaches its minimum firing angle limit, 60 degrees, as shown in Figure (c).

For more information about different operating modes of HVDC please refer to \[1].

{% hint style="info" %}
This model is configured to assign core number 2 for the dynamic simulation on a target. The `EPHASOR_THREADS` environment variable can be revised in the Variables tab of RT-LAB GUI to modify this configuration.
{% endhint %}

The network data as well as in-port and out-port configurations are given in phasor11\_HVDC.xlsx file. In the "Pins" page of the Excel file the following outgoing and incoming pins are assigned:

<details>

<summary>Outgoing pins (measurements)</summary>

* Vmag: Bus voltage magnitude (p.u.)
* Vang: Bus voltage angle (degrees)
* EFD: Machines' field voltage provided by the exciters (p.u.)
* IDC: DC current of the HVDC Link (Ampere)
* VDCR: DC voltage on the rectifier side (kV)
* VDCI: DC voltage on the inverter side (kV)
* GAMMA: Firing angle on the inverter side (radian)
* ALPHA: Firing angle on the rectifier side (radian)
* VDCR\_measured: Measured DC voltage on the rectifier side (kV)
* VDCI\_measured: Measured DC voltage on the inverter side (kV)

**VCOMP is calculated in Simulink environment** from "VDCR\_measured" and "VDCI\_measured" using the following equation:

$$VCOMP = (\frac{RCOMP}{RDC}) \* (VDCR\_{measured} - VDCI\_{measured}) + VDCI\_{measured}$$

</details>

<details>

<summary>Incoming pins (control commands)</summary>

* 3-phase-to-ground fault on bus *24*
* Increment of set point for compounding point, VSCHED, for CDC4T
* Increment of power set point, SETVL, for CDC6TA

</details>

## References

\[1] Kundur, Prabha. Power system stability and control. Eds. Neal J. Balu, and Mark G. Lauby. Vol. 7. New York: McGraw-hill, 1994


---

# 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/rt-lab/example-models/ephasorsim-example-models/lcc-type-hvdc-models.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.
