> 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/smart-power-simulation-software-sps/blocks-functions-tools/facts/static-synchronous-compensator-phasor-type.md).

# Static Synchronous Compensator (Phasor Type)

## Description

The **Static Synchronous Compensator (Phasor Type)** block, located in the **OPAL-RT SPS Software/FACTS** library, models a static synchronous compensator (STATCOM) shunt device of the Flexible AC Transmission Systems (FACTS) family using power electronics to control power flow and improve transient stability on power grids \[1].

The STATCOM regulates voltage at its terminal by controlling the amount of reactive power injected into or absorbed from the power system. When system voltage is low, the STATCOM generates reactive power (STATCOM capacitive). When system voltage is high, it absorbs reactive power (STATCOM inductive).

The variation of reactive power is performed by means of a Voltage-Sourced Converter (VSC) connected on the secondary side of a coupling transformer. The VSC uses forced-commutated power electronic devices (GTOs, IGBTs, or IGCTs) to synthesize a voltage, V2, from a DC voltage source. The principle of operation of the STATCOM is explained on the figure below, which shows the active and reactive power transfer between sources V1 and V2. In this figure, V1 represents the system voltage to be controlled and V2 is the voltage generated by the VSC.

**Operating Principle of the STATCOM**

<figure><img src="https://799605156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdlNg8IbOdahCpFCyzxSN%2Fuploads%2Fgit-blob-5bce7aa36632923c058b4e88570091297b2a3086%2Fstatic_sync_compensatr_phasor_operating.png?alt=media" alt=""><figcaption></figcaption></figure>

This model is represented by the equation:

$$
P = ( V\_1V\_2 )sin δ / X \\\[8pt] Q = V\_1 ( V\_1 – V\_2 cos δ ) / X
$$

where:

<table data-header-hidden><thead><tr><th width="249.5555419921875"></th><th></th></tr></thead><tbody><tr><td><strong>Symbol</strong></td><td><strong>Meaning</strong></td></tr><tr><td><em>V</em><sub>1</sub></td><td>Line to line voltage of source 1</td></tr><tr><td><em>V</em><sub>2</sub></td><td>Line to line voltage of source 2</td></tr><tr><td><em>X</em></td><td>Reactance of interconnection transformer and filters</td></tr><tr><td><em>δ</em></td><td>Phase angle of <em>V</em><sub>1</sub> with respect to <em>V</em><sub>2</sub></td></tr></tbody></table>

In steady state operation, the voltage, V2, which is generated by the VSC, is in phase with V1 (δ=0), so that only reactive power is flowing (P=0). If V2 is lower than V1, Q is flowing from V1 to V2 (STATCOM is absorbing reactive power). On the reverse, if V2 is higher than V1, Q is flowing from V2 to V1 (STATCOM is generating reactive power). The amount of reactive power is given by:

$$
Q = ( V\_1 ( V\_1 – V\_2 )) / X.
$$

A capacitor connected on the DC side of the VSC acts as a DC voltage source. In steady state, the voltage V2 has to be phase shifted slightly behind V1 in order to compensate for transformer and VSC losses and to keep the capacitor charged. Two VSC technologies can be used for the VSC:

* VSC using GTO-based square-wave inverters and special interconnection transformers. Typically four three-level inverters are used to build a 48-step voltage waveform. Special interconnection transformers are used to neutralize harmonics contained in the square waves generated by individual inverters. In this type of VSC, the fundamental component of voltage V2 is proportional to the voltage Vdc. Therefore, Vdc has to be varied to control the reactive power.
* VSC using IGBT-based PWM inverters. This type of inverter uses a Pulse-Width Modulation (PWM) technique to synthesize a sinusoidal waveform from a DC voltage source with a typical chopping frequency of a few kilohertz. Harmonic voltages are canceled by connecting filters at the AC side of the VSC. This type of VSC uses a fixed DC voltage Vdc. The voltage V2 is varied by changing the modulation index of the PWM modulator.

The Static Synchronous Compensator (Phasor Type) block models an IGBT-based STATCOM (fixed DC voltage). However, as details of the inverter and harmonics are not represented, it can be also used to model a GTO-based STATCOM in transient stability studies. A detailed model of a GTO-based STATCOM is found in the [STATCOM](https://opal-rt.atlassian.net/wiki/spaces/PSPS/pages/1551701385/STATCOM) (power\_statcom\_gto48p) example.

The figure below shows a single-line diagram of the STATCOM and a simplified block diagram of its control system.

**Single-line Diagram of a STATCOM and Its Control System Block Diagram**

<figure><img src="https://799605156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdlNg8IbOdahCpFCyzxSN%2Fuploads%2Fgit-blob-da5b6a76119be37c146448505fb6e0de3e9902fa%2Fstatic_sync_compensator_phasor_signleline_diagram.png?alt=media" alt=""><figcaption></figcaption></figure>

The control system consists of:

* A phase-locked loop (PLL) that synchronizes on the positive-sequence component of the three-phase primary voltage, V1. The output of the PLL (angle Θ=ωt) is used to compute the direct-axis and quadrature-axis components of the AC three-phase voltage and currents (labeled as Vd, Vq or Id, and Iq on the diagram).
* Measurement systems measuring the d and q components of the AC positive-sequence voltage, currents to be controlled, and the DC voltage Vdc.
* An outer regulation loop consisting of an AC voltage regulator and a DC voltage regulator. The output of the AC voltage regulator is the reference current Iqref for the current regulator, where Iq is the current in quadrature with voltage that controls reactive power flow. The output of the DC voltage regulator is the reference current Idref for the current regulator, where Id is the current in phase with voltage that controls active power flow.
* An inner current regulation loop consisting of a current regulator. The current regulator controls the magnitude and phase of the voltage generated by the PWM converter (V2d and V2q) from the Idref and Iqref reference currents produced respectively by the DC voltage regulator and the AC voltage regulator (in voltage control mode). The current regulator is assisted by a feed-forward-type regulator that predicts the V2 voltage output (V2d and V2q) from the V1 measurement (V1d and V1q) and the transformer leakage reactance.

The STACOM block is a phasor model that does not include detailed representations of the power electronics. You must use it with the phasor simulation method, activated by setting the **Simulation type** parameter of a Powergui block to Phasor. It can be used in three-phase power systems together with synchronous generators, motors, dynamic loads, and other FACTS and Renewable Energy systems to perform transient stability studies and observe impact of the STATCOM on electromechanical oscillations and transmission capacity at fundamental frequency.

#### STATCOM V-I Characteristic

The STATCOM can be operated in two different modes:

* In voltage regulation mode (the voltage is regulated within limits as explained below)
* In var control mode (the STATCOM reactive power output is kept constant)

When the STATCOM is operated in voltage regulation mode, it implements the following V-I characteristic:

<figure><img src="https://799605156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdlNg8IbOdahCpFCyzxSN%2Fuploads%2Fgit-blob-44826785a5527d45221fb2e5f5cea22875488d1d%2FSTATCOM_VI_char.png?alt=media" alt=""><figcaption></figcaption></figure>

**STATCOM V-I characteristic**

As long as the reactive current stays within the minimum and minimum current values (-Imax and Imax) imposed by the converter rating, the voltage is regulated at the reference voltage Vref. However, a voltage droop is normally used (usually between 1% and 4% at maximum reactive power output), and the V-I characteristic has the slope indicated in the figure. In the voltage regulation mode, the V-I characteristic is described by the following equation:

$$
V = V\_{ref }+ X\_s  I
$$

where,

<table data-header-hidden><thead><tr><th width="249.5555419921875"></th><th></th></tr></thead><tbody><tr><td><em>V</em></td><td>Positive sequence voltage (pu)</td></tr><tr><td>I</td><td>Reactive current (pu/Pnom) (I > 0 indicates an inductive current)</td></tr><tr><td><em>Xs I</em></td><td>Slope or droop reactance (pu/Pnom)</td></tr><tr><td>Pnom</td><td>Three-phase nominal power of the converter specified in the block dialog box</td></tr></tbody></table>

#### Differences Between STATCOM and SVC

The STATCOM performs the same function as the SVC. However, at voltages lower than the normal voltage regulation range, the STATCOM can generate more reactive power than the SVC. This is due to the fact that the maximum capacitive power generated by an SVC is proportional to the square of the system voltage (constant susceptance) while the maximum capacitive power generated by a STATCOM decreases linearly with voltage (constant current). This ability to provide more capacitive reactive power during a fault is one important advantage of the STATCOM over the SVC. In addition, the STATCOM normally exhibits a faster response than the SVC because with the VSC, the STATCOM has no delay associated with the thyristor firing (in the order of 4 ms for a SVC).

## Ports

### Input

<table data-header-hidden><thead><tr><th width="250.4444580078125"></th><th></th></tr></thead><tbody><tr><td><strong>Trip</strong> — Trip signal to disable STATCOM logical</td><td>Trip signal to disable the STATCOM, specified as a logical. When this input is high, the STATCOM is disconnected and its control system is disabled. Use this input to implement a simplified version of the protection system.</td></tr><tr><td><strong>Vref</strong> — External reference voltage signal nonnegative scalar</td><td>Simulink® input of the external reference voltage signal.<strong>Dependencies</strong> To enable this port, on the <strong>Controller</strong> tab, select <strong>External</strong>.</td></tr></tbody></table>

### Output

<table data-header-hidden><thead><tr><th width="250.44451904296875"></th><th></th></tr></thead><tbody><tr><td><strong>m</strong> — Measurement 16-element vector</td><td>Measurements, returned as a 16-element vector of STATCOM internal signals. These signals are either voltage and current phasors (complex signals) or control signals. They can be individually accessed by using the Bus Selector block.</td></tr></tbody></table>

m signals are, in order:

<table data-header-hidden><thead><tr><th width="100.3333740234375"></th><th width="182.7777099609375"></th><th width="215.333251953125"></th><th></th></tr></thead><tbody><tr><td><strong>Signal</strong></td><td><strong>Signal Group</strong></td><td><strong>Signal Names</strong></td><td><strong>Definition</strong></td></tr><tr><td>1-3</td><td>Power Vabc (cmplx)</td><td>Va_prim (pu) Vb_prim (pu) Vc_prim (pu)</td><td>Phasor voltages (phase to ground) Va, Vb, and Vc at the STATCOM primary terminals (pu)</td></tr><tr><td>4-6</td><td>Power Iabc (cmplx)</td><td>Ia_prim (pu) Ib_prim (pu) Ic_prim (pu)</td><td>Phasor currents Ia, Ib, and Ic flowing into the STATCOM (pu)</td></tr><tr><td>7</td><td>Power</td><td>Vdc (V)</td><td>DC voltage (V)</td></tr><tr><td>8</td><td>Control</td><td>Vm (pu)</td><td>Positive-sequence value of the measured voltage (pu)</td></tr><tr><td>9</td><td>Control</td><td>Vref (pu)</td><td>Reference voltage (pu)</td></tr><tr><td>10</td><td>Control</td><td>Qm (pu)</td><td>STATCOM reactive power. A positive value indicates inductive operation.</td></tr><tr><td>11</td><td>Control</td><td>Qref (pu)</td><td>Reference reactive power (pu)</td></tr><tr><td>12</td><td>Control</td><td>Id (pu)</td><td>Direct-axis component of current (active current) flowing into STATCOM (pu). A positive value indicates active power flowing into STATCOM.</td></tr><tr><td>13</td><td>Control</td><td>Iq (pu)</td><td>Quadrature-axis component of current (reactive current) flowing into STATCOM (pu). A positive value indicates capacitive operation.</td></tr><tr><td>14</td><td>Control</td><td>Idref (pu)</td><td>Reference value of direct-axis component of current flowing into STATCOM (pu)</td></tr><tr><td>15</td><td>Control</td><td>Iqref (pu)</td><td>Reference value of quadrature-axis component of current flowing into STATCOM (pu)</td></tr><tr><td>16</td><td>Control</td><td>modindex</td><td>The modulation index, m, of the PWM modulator. A positive number such that 0&#x3C;m&#x3C;1. m=1 corresponds to the maximum voltage V2 that can be generated by the VSC without overmodulation.</td></tr></tbody></table>

### Conserving

<table data-header-hidden><thead><tr><th width="250.44451904296875"></th><th></th></tr></thead><tbody><tr><td><strong>A</strong> — Electric terminal of phase A SPS electrical</td><td>SPS electrical conserving port associated with the electrical terminal of phase A.</td></tr><tr><td><strong>B</strong> — Electric terminal of phase B SPS electrical</td><td>SPS electrical conserving port associated with the electrical terminal of phase B.</td></tr><tr><td><strong>C</strong> — Electric terminal of phase C SPS electrical</td><td>SPS electrical conserving port associated with the electrical terminal of phase C.</td></tr></tbody></table>

## Parameters

### Power

<table data-header-hidden><thead><tr><th width="250.22222900390625"></th><th></th></tr></thead><tbody><tr><td><strong>Nominal voltage and frequency [Vrms L-L, fn(Hz)]</strong> — Nominal line-to-line voltage and the nominal system frequency[ 500e3, 60 ] (default) | 2-element vector</td><td>The nominal line-to-line voltage in Vrms and the nominal system frequency in hertz.</td></tr><tr><td><strong>Converter rating (VA)</strong> — Nominal power of converter <code>100e6</code> (default) | positive scalar</td><td>The nominal power of the converter in VA.</td></tr><tr><td><strong>Converter impedance [R(pu), L(pu)]</strong> — Positive-sequence resistance and inductance[ 0.22/30, 0.22 ] (default) | 2-element vector</td><td>The positive-sequence resistance and inductance of the converter, in pu, based on the nominal power and voltage ratings. R and L represent the resistance and leakage inductance of the coupling transformer and the resistance and inductance of the series filtering inductors connected at the VSC output.</td></tr><tr><td><strong>Converter initial current [Mag(pu), Pha(deg.)]</strong> — Initial value of positive-sequence current phasor[0, 0 ] (default) | 2-element vector</td><td>The initial value of the positive-sequence current phasor (with the magnitude in pu and phase in degrees). If you know the initial value of the current corresponding to the STATCOM operating point, you can specify it to start simulation in steady state. If you don’t know this value, you can leave [0 0]. The system will reach steady-state after a short transient.</td></tr><tr><td><strong>DC link nominal voltage (V)</strong> — Nominal voltage of DC link40000 (default) | positive scalar</td><td>The nominal voltage of the DC link in volts.</td></tr><tr><td><strong>DC link total equivalent capacitance (F)</strong> — Total capacitance of DC link750e-6/2 (default) | positive scalar</td><td><p>The total capacitance of the DC link in farads. This capacitance value is related to the STATCOM rating and to the DC link nominal voltage. The energy stored in the capacitance (in joules) divided by the STATCOM rating (in VA) is a time duration that is usually a fraction of a cycle at nominal frequency.</p><p>For example, for the default parameters, (where <em>C</em>=375 µF, <em>Vdc</em>=40 000 V, and <em>Snom</em>=100 MVA) this ratio, We don't have a way to export this macro. , is 3.0 ms, which represents 0.18 cycle for a 60 Hz frequency. If you change the default values of the nominal power rating and DC voltage, you should change the capacitance value accordingly.</p></td></tr></tbody></table>

### Controller

<table data-header-hidden><thead><tr><th width="249.77764892578125"></th><th></th></tr></thead><tbody><tr><td><strong>Mode</strong> — STATCOM mode of operationVoltage regulation (default) | Var Control</td><td>Specifies the STATCOM mode of operation.</td></tr><tr><td><strong>Reference voltage Vref (pu)</strong> — Reference voltage of STATCOM1.00 (default) | positive scalar</td><td><p>Reference voltage, in pu, used by the voltage regulator.</p><p><strong>Dependencies</strong> To enable this parameter, set <strong>Mode</strong> to Voltage regulation and clear the <strong>External</strong> check box.</p></td></tr><tr><td><strong>External</strong> — Control reference voltage from external signaloff (default) | on</td><td>When <strong>External</strong> is selected, a Simulink input port named Vref appears on the block, allowing you to control the reference voltage from an external signal (in pu). The <strong>Reference voltage Vref</strong> parameter is therefore disabled.</td></tr><tr><td><strong>Maximum rate of change of reference voltage (pu/s)</strong> — Maximum rate of change when external reference voltage is used10 (default) | positive scalar</td><td><p>Maximum rate of change of the reference voltage, in pu/s, when an external reference voltage is used.</p><p><strong>Dependencies</strong> To enable this parameter, set <strong>Mode</strong> to Voltage regulation.</p></td></tr><tr><td><strong>Droop (pu)</strong> — Droop reactance0.03 (default) | positive scalar</td><td><p>Droop reactance, in pu, which defines the slope of the V-I characteristic.</p><p><strong>Dependencies</strong> To enable this parameter, set <strong>Mode</strong> to Voltage regulation.</p></td></tr><tr><td><strong>Vac Regulator gains [Kp, Ki]</strong> — Gains of AC voltage PI regulator[5, 1000] (default) | 2-element vector</td><td><p>Gains of the AC voltage PI regulator. Specify the proportional gain Kp, which is calculated by (pu of I)/(pu of V). Specify the integral gain, Ki, which is calculated as (pu of I)/(pu of V)/s, where V is the AC voltage error and I is the output of the voltage regulator.</p><p><strong>Dependencies</strong> To enable this parameter, set <strong>Mode</strong> to Voltage regulation.</p></td></tr><tr><td><strong>Reactive power setpoint Qref (pu)</strong> — Reference reactive power0 (default) | positive scalar</td><td><p>Reference reactive power, in pu, when the STATCOM is in Var Control mode.</p><p><strong>Dependencies</strong> To enable this parameter, set <strong>Mode</strong> to Var Control.</p></td></tr><tr><td><strong>Maximum rate of change of reactive power setpoint (pu/s)</strong> — Maximum rate of change of reference reactive power2 (default) | positive scalar</td><td><p>Maximum rate of change of the reference reactive power, in pu/s.</p><p><strong>Dependencies</strong> To enable this parameter, set <strong>Mode</strong> to Var Control.</p></td></tr><tr><td><strong>Vdc Regulator gains [Kp, Ki]</strong> — Gains of DC voltage PI regulator[0.1e-3, 20e-3] (default) | 2-element vector</td><td>Gains of the DC voltage PI regulator, which controls the voltage across the DC bus capacitor. Specify the proportional gain, Kp, which is calculated by (pu of I)/Vdc. The integral gain, Ki, is calculated as (pu of I)/Vdc/s, where Vdc is the DC voltage error and I is the output of the voltage regulator.</td></tr><tr><td><strong>Current Regulator gains [Kp, Ki, Kf];</strong> — Gains of inner current regulation loop[0.3, 10, 0.22] (default) | 3-element vector</td><td>Gains of the inner current regulation loop. Specify the proportional gain, Kp, which is calculated as (pu of V)/(pu of I). The integral gain, Ki, is calculated as (pu of V)/(pu of I)/s. The feed forward gain, Kf, is calculated as (pu of V)/(pu of I), where V is the output V2d or V2q of the current regulator and I is the Id or Iq current error. For optimal performance, the feed forward gain should be set to the converter reactance (in pu) given by parameter L in the <strong>Converter impedance [R(pu),L(pu)]</strong> parameter.</td></tr></tbody></table>

## Examples

[STATCOM Phasor Model](https://www.opal-rt.com/docs/smart-power-simulation-software-sps/example-models/power-transmission-and-distribution/statcom-phasor-model.md): A Static Synchronous Compensator (STATCOM) used for midpoint voltage regulation on a 500-kV transmission line.

[STATCOM](https://www.opal-rt.com/docs/smart-power-simulation-software-sps/example-models/power-transmission-and-distribution/statcom.md): The operation of a +100 Mvar/-100 Mvar 48-pulse GTO STATCOM.

## References <a href="#references" id="references"></a>

\[1] N. G. Hingorani, L. Gyugyi, “Understanding FACTS; Concepts and Technology of Flexible AC Transmission Systems,” *IEEE® Press book* , 2000.


---

# 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/smart-power-simulation-software-sps/blocks-functions-tools/facts/static-synchronous-compensator-phasor-type.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.
