> 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/network-facts-and-hvdc/static-var-compensator-svc.md).

# Static Var Compensator (SVC)

## Description

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

The **Static Var Compensator (SVC)** block, located in the **Network FACTS & HVDC** library, represents both the power circuit and control system of a static var compensator.

The power circuit includes a thyristor-controlled reactor (TCR, inductive branch) and three thyristor-switched capacitors (TSC, capacitive branches).

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-25fd357399f238ba3b121e49670b25ab295d9239%2Fimage%20(1075).png?alt=media" alt="" width="377"><figcaption><p>Model diagram with the TCR and TSC branches</p></figcaption></figure>

Resistances R and r model ohmic losses in the capacitor and reactor, respectively. The two resistances, the capacitor and the reactor form a type of black box. Hence, it is not possible to measure the voltage across one of the resistances or the reactor. Voltage across the capacitor and across the thyristors is computed and available as signals.

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-8b40853ba130e5a5b82408a062b218e4b340a5bb%2Fimage%20(1076).png?alt=media" alt="" width="452"><figcaption><p>Models of the four branches of a static compensator</p></figcaption></figure>

{% hint style="info" %}
The transformer is not modeled inside the block and must be added externally. Use the same transformer parameters externally as those considered internal to the block.
{% endhint %}

The **control system** comprises synchronization, measuring, regulation, distribution, and firing units. A phase-locked loop (PLL) per phase on the transformer primary computes frequency and phase for thyristor firing; this approach is stable in frequency and insensitive to harmonics.

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-3de9ecf3077327b4513a57e380cdeb88d7048c35%2Fimage%20(1077).png?alt=media" alt=""><figcaption><p>Simplified diagram of the control system synchronization unit</p></figcaption></figure>

The **measuring unit** integrates the Park transformation output and measures voltage by subtracting successive integrator samples delayed by one cycle.

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

The **control unit** uses a PI controller that compares the measured voltage with the voltage reference and computes the required primary-side susceptance (Bp).

$$
U\_{mes}=U\_{ref}+X\_{sI} \ B\_{p}=(K\_p+\frac{K\_i}{s}) \times (U\_{mes} -U\_{ref} -X\_{zI})
$$

The **distribution unit** converts Bp to the secondary-side susceptance (Bs), allocates susceptance between the parallel TSC (capacitive) and TCR (inductive) branches, and applies hysteresis at switching transitions to prevent oscillations.

$$
B\_s= B\_{ind} + B\_{cap} \ B\_{ind} =\frac{2\pi - 2\alpha
+sin(2 \alpha)}{\pi}
$$

The **firing unit** sends thyristor firing commands using the synchronization phase angle, firing angle (alpha), and TSC switching orders; TCR pulses are issued omega·t degrees after the last voltage zero crossing, while TSC switching occurs 90 degrees before voltage zero crossing.

The model supports step-response studies for a voltage reference (Vref) or a susceptance reference (Bref), and thyristors can also be fired from an external source.

## Mask parameters

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

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

<table><thead><tr><th width="280.20001220703125">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Name of primary XFO Bus name</strong></td><td>Name of the bus on the high-voltage side of the SVC transformer.</td></tr><tr><td><strong>Primary Transformer voltage</strong></td><td>RMS line-to-line rated voltage on the transformer primary (kV) Range: (0, 1e12].</td></tr><tr><td><strong>Secondary Transformer voltage</strong></td><td>RMS line-to-line rated voltage on the transformer secondary (V) Range: (0, 1e12].</td></tr><tr><td><strong>Leakage reactance</strong></td><td>Leakage inductance of the transformer primary (pu/100MVA) Range: [0, 1].</td></tr><tr><td><strong>Delta connection type</strong></td><td>Transformer connection and delta winding phase shift relative to the Y winding.</td></tr><tr><td><strong>TCC mode</strong></td><td>On = synchronized firing of TSC capacitive branches; Off = continuous firing.</td></tr><tr><td><strong>Valve blocking and unblocking</strong></td><td>Deblock = valve firing enabled; Block = valve firing disabled.</td></tr><tr><td><strong>Regulation - Kp</strong></td><td>Proportional gain (puB/puV) Range: [0, 1].</td></tr><tr><td><strong>Regulation - Ki</strong></td><td>Integral gain (puB/puV/s) Range: (0, 1e12].</td></tr><tr><td><strong>Regulation - Slope</strong></td><td>Voltage controller slope (pu/100MVA) Range: [0, 1].</td></tr><tr><td><strong>Regulation - Hysteresis</strong></td><td>Hysteresis applied at transition points (pu/100MVA) Range: [0, 1].</td></tr><tr><td><strong>Protection - Strategy Vmax</strong></td><td>Maximum primary voltage above which the SVC is disabled (pu) Range: [0, 1].</td></tr><tr><td><strong>Protection - Strategy Vmin_on</strong></td><td>Minimum primary voltage below which the SVC is disabled (pu) Range: [0, 1].</td></tr><tr><td><strong>Protection - Strategy Vmin_off</strong></td><td>Minimum primary voltage required to enable the SVC. Range: [0, 1].</td></tr><tr><td><strong>AC Fault - Vac_min</strong></td><td>Primary voltage threshold below which a fault is detected (pu) Range: [0, 1].</td></tr><tr><td><strong>AC Fault - Fault duration</strong></td><td>Fault duration (s) Range: (0, 1e12].</td></tr><tr><td><strong>AC Fault - Fault delay</strong></td><td>Delay before fault application (s) Range: (0, 1e12].</td></tr><tr><td><strong>AC Fault - Under voltage delay</strong></td><td>Falling-edge delay applied during the specified interval (s) Range: (0, 1e12].</td></tr><tr><td><strong>Disturbance type</strong></td><td>Type of step disturbance: Vref or Bref.</td></tr><tr><td><strong>Disturbance - Delta_Vref</strong></td><td>Step amplitude applied to the voltage reference (pu) Range: [0, 1].</td></tr><tr><td><strong>Disturbance - Delta_Bref</strong></td><td>Step amplitude applied to the susceptance reference (pu/100MVA) Range: (0, 1e12].</td></tr><tr><td><strong>Disturbance - dist_start</strong></td><td>Time when the disturbance is applied (s) Range: (0, 1e12].</td></tr><tr><td><strong>Disturbance - dist_end</strong></td><td>Time when the disturbance is removed (s) Range: (0, 1e12].</td></tr><tr><td><strong>Filter - Base frequency</strong></td><td>Base frequency (Hz) Range: (0, 100].</td></tr><tr><td><strong>Filter - Minimum frequency</strong></td><td>PLL minimum frequency (Hz) Range: (0, 100].</td></tr><tr><td><strong>Filter - Maximum frequency</strong></td><td>PLL maximum frequency (Hz) Range: (0, 100].</td></tr><tr><td><strong>Filter - Bandwidth</strong></td><td>Band-pass filter bandwidth (Hz) Range: (0, 100].</td></tr></tbody></table>
{% endtab %}

{% tab title="TCR" %}

<table><thead><tr><th width="201">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Connections</strong></td><td>Branch connection: Y ground; Y floating; Delta.</td></tr><tr><td><strong>r</strong></td><td>Resistance in parallel with the branch reactor (Ohm) Range: (0, 1e12].</td></tr><tr><td><strong>L</strong></td><td>Series inductance(H) Range: (0, 1e12].</td></tr><tr><td><strong>R</strong></td><td>Branch resistance (Ohm) Range: (0, 1e12].</td></tr><tr><td><strong>Rsnubber</strong></td><td>Snubber resistance(Ohm) Range: (0, 1e12].</td></tr><tr><td><strong>Csnubber</strong></td><td>Snubber capacitance(F) Range: (0, 1e12].</td></tr><tr><td><strong>Ropen</strong></td><td>Valve resistance when open(Ohm) Range: (0, 1e12].</td></tr><tr><td><strong>Rclose</strong></td><td>Valve resistance when closed(Ohm) Range: (0, 1e12].</td></tr><tr><td><strong>Imin</strong></td><td>Chopping current (A) Range: (0, 1e12].</td></tr><tr><td><strong>Fbov</strong></td><td>Forward break overvoltage (V) Range: (0, 1e12].</td></tr><tr><td><strong>Rbov</strong></td><td>Reverse break overvoltage (V) Range: (0, 1e12].</td></tr><tr><td><strong>Tq</strong></td><td>Time for the valve to stop conducting(s) Range: (0, 1e12].</td></tr><tr><td><strong>Vmin</strong></td><td>Minimum forward voltage across the valve to conduct (V) Range: (0, 1e12].</td></tr></tbody></table>
{% endtab %}

{% tab title="TSC" %}

<table><thead><tr><th width="189.79998779296875">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Connections</strong></td><td>Branch connection: Y ground; Y floating; Delta.</td></tr><tr><td><strong>r</strong></td><td>Resistance in parallel with the branch reactor (Ohm) Range: (0, 1e12].</td></tr><tr><td><strong>L</strong></td><td>Series inductance (H) Range: (0, 1e12].</td></tr><tr><td><strong>R</strong></td><td>Branch resistance (Ohm) Range: (0, 1e12].</td></tr><tr><td><strong>C</strong></td><td>Branch capacitance (F) Range: (0, 1e12].</td></tr><tr><td><strong>Rsnubber</strong></td><td>Snubber resistance (Ohm) Range: (0, 1e12].</td></tr><tr><td><strong>Csnubber</strong></td><td>Snubber capacitance (F) Range: (0, 1e12].</td></tr><tr><td><strong>Ropen</strong></td><td>Valve resistance when open (Ohm) Range: (0, 1e12].</td></tr><tr><td><strong>Rclose</strong></td><td>Valve resistance when closed (Ohm) Range: (0, 1e12].</td></tr><tr><td><strong>Imin</strong></td><td>Chopping current (A) Range: (0, 1e12].</td></tr><tr><td><strong>Fbov</strong></td><td>Forward break overvoltage (V) Range: (0, 1e12].</td></tr><tr><td><strong>Rbov</strong></td><td>Reverse break overvoltage (V) Range: (0, 1e12].</td></tr><tr><td><strong>Tq</strong></td><td>Time for the valve to stop conducting (s) Range: (0, 1e12].</td></tr><tr><td><strong>Vmin</strong></td><td>Minimum forward voltage across the valve to conduct (V) Range: (0, 1e12].</td></tr></tbody></table>
{% endtab %}
{% endtabs %}

## Conserving ports

<table><thead><tr><th width="162.79998779296875">Port</th><th>Description</th></tr></thead><tbody><tr><td><strong>Port</strong></td><td>ABC power signal for connection to other network elements.</td></tr></tbody></table>

## Inputs

This block has no inputs.

## Outputs

This block has no outputs.

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

Additional signals are also available and are listed below with their descriptions.

<table><thead><tr><th width="206.79998779296875">Signal</th><th>Description</th></tr></thead><tbody><tr><td><strong>CMD12phase_x_y</strong></td><td>Firing pulse of the positive valve in branch x (y = 1, 2, 3; x = TCR1, TSC1, TSC2, TSC3).</td></tr><tr><td><strong>CMD21phase_x_y</strong></td><td>Firing pulse of the negative valve in branch x (y = 1, 2, 3; x = TCR1, TSC1, TSC2, TSC3).</td></tr><tr><td><strong>Iphase_x_y</strong></td><td>Current through the branch (A) (y = 1, 2, 3; x = TCR1, TSC1, TSC2, TSC3).</td></tr><tr><td><strong>STATE12phase_x_y</strong></td><td>State of the positive valve in branch x (y = 1, 2, 3; x = TCR1, TSC1, TSC2, TSC3).</td></tr><tr><td><strong>STATE21phase_x_y</strong></td><td>State of the positive valve in branch x (y = 1, 2, 3; x = TCR1, TSC1, TSC2, TSC3).</td></tr><tr><td><strong>VphaseTh_x_y</strong></td><td>Voltage across the valves in branch x (V) (y = 1, 2, 3; x = TCR1, TSC1, TSC2, TSC3).</td></tr><tr><td><strong>VCAPphase_x_y</strong></td><td>Voltage across the capacitor in branch x (V) (y = 1, 2, 3; x = TCR1, TSC1, TSC2, TSC3).</td></tr><tr><td><strong>pulsePat_int</strong></td><td>Binary code representing the firing orders of the valves.</td></tr><tr><td><strong>VSYNCphase</strong></td><td>Voltage used by the synchronization unit (V).</td></tr><tr><td><strong>DelayImpInt</strong></td><td>Firing delay (fraction of calculation step) calculated by the internal SVC command.</td></tr><tr><td><strong>DelayImpExt</strong></td><td>Firing delay (fraction of calculation step) calculated by an external SVC command.</td></tr><tr><td><strong>DelayImp</strong></td><td>Firing delay (fraction of calculation step) sent to the SVC.</td></tr><tr><td><strong>DelayImpUsed</strong></td><td>Firing delay (fraction of calculation step) used by the SVC.</td></tr><tr><td><strong>V_Ref</strong></td><td>Voltage reference for the controller (pu).</td></tr><tr><td><strong>B_Ref</strong></td><td>Susceptance reference for the controller (pu).</td></tr><tr><td><strong>Slope</strong></td><td>Slope of the controller.</td></tr><tr><td><strong>Deblocked</strong></td><td>Status indicating whether firing pulses are blocked or enabled.</td></tr><tr><td><strong>TCC_Mode</strong></td><td>Status indicating whether TCC mode is enabled or disabled.</td></tr><tr><td><strong>ManualMode</strong></td><td>Status indicating whether manual mode is enabled or disabled.</td></tr><tr><td><strong>Period</strong></td><td>Network period.</td></tr><tr><td><strong>Frequency</strong></td><td>Network frequency (Hz).</td></tr><tr><td><strong>Alpha_TCR1</strong></td><td>Firing angle of the TCR inductive branch (degree).</td></tr><tr><td><strong>wtphase</strong></td><td>Phase angle of synchronization voltages (degree).</td></tr><tr><td><strong>V_Prim</strong></td><td>Voltage measured by the system (V).</td></tr><tr><td><strong>V_Error</strong></td><td>Input to the PI regulator (V).</td></tr><tr><td><strong>B_SVC</strong></td><td>Susceptance seen from the transformer primary side.</td></tr><tr><td><strong>B_TSC</strong></td><td>Required capacitive susceptance.</td></tr><tr><td><strong>B_TCR</strong></td><td>Required inductive susceptance.</td></tr></tbody></table>


---

# 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/network-facts-and-hvdc/static-var-compensator-svc.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.
