> 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/example-models/power-transmission-and-distribution/static-var-compensator-svc-and-power-system-stabilizers-pss.md).

# Static Var Compensator (SVC) and Power System Stabilizers (PSS)

This example shows the use of the phasor solution for transient stability analysis of multi-machine systems. It analyzes transient stability of a two-machine transmission system with Static Var Compensator (SVC) and Power System Stabilizers (PSS).

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

## Description

A 1000 MW hydraulic generation plant (machine M1) is connected to a load center through a long 500 kV, 700 km transmission line. The load center is modeled by a 5000 MW resistive load. The load is fed by the remote 1000 MW plant and a local generation of 5000 MW (machine M2). The system has been initialized so that the line carries 950 MW which is close to its surge impedance loading (SIL = 977 MW). In order to maintain system stability after faults, the transmission line is shunt compensated at its center by a 200-Mvar Static Var Compensator (SVC). Notice that this SVC model is a phasor model valid only for transient stability solution. The SVC does not have a Power Oscillation Damping (POD) unit. The two machines are equipped with a Hydraulic Turbine and Governor (HTG), Excitation system and Power System Stabilizer (PSS). These blocks are located in the two 'Turbine and Regulator' subsystems.Two types of stabilizers can be selected : a generic model using the acceleration power (Pa= difference between mechanical power Pm and output electrical power Peo) and a Multi-band stabilizer using the speed deviation (dw). The stabilizer type can be selected by specifying a value (0=No PSS 1=Pa PSS or 2= dw MB PSS) in the PSS constant block.

In this example we apply faults on the 500 kV system and observe the impact of the PSS and SVC on system stability.

## Simulation

{% hint style="info" %}
Before starting the example, open the Powergui block and notice that 'Phasor simulation' has been checked. The phasor solution is much faster than the 'standard' detailed solution. In this solution method, the network differential equations are replaced by a set of algebraic equations at a fixed frequency, thus reducing dramatically the simulation time. This allows transient stability studies of multi-machine systems, as illustrated below.
{% endhint %}

{% stepper %}
{% step %}

### **Initialization**

Note that the system has already been initialized to start in steady-state. If you are familiar with the Load Flow procedure you can skip this item and proceed to step 2.

Open the mask of the M1 1000 MVA and M2 5000 MVA Synchronous Machine blocks:

In the Load Flow tab of machine M1, the 'Generator type' parameter is set to 'PV', indicating that the load flow will be performed with the machine controlling its active power and its terminal voltage. The 'Active power generation' parameter is set to 950e6 W and the terminal voltage is defined by the Load Flow Bus block labeled M1 and connected to the machine terminals.

The 'Generator type' parameter of machine M2 is set to 'swing', indicating that the machine will be used as a swing bus for balancing the power.

In the Powergui menu, select 'Load Flow'. A new window appears. A summary of the load flow settings is displayed in a table. Press the 'Compute' button to solve the load flow. The table now display the actual machine active and reactive powers.

Press the 'Apply' button to apply the load flow solution to the model.

Look in the hydraulic turbine and governor (HTG) and Excitation system contained in the two Regulator subsystems to note that the initial mechanical power and field voltage have been automatically initialized by the Load Flow. The reference mechanical powers and reference voltages for the two machines have also been updated in the two constant blocks connected at the HTG and excitation system inputs: Pref1=0.95 pu (950 MW), Vref1=1pu; Pref2=0.8091 pu (4046 MW), Vref2=1 pu.
{% endstep %}

{% step %}

### **Single-phase fault - Impact of PSS - No SVC**

Open the SVC dialog box and notice that the SVC is set to operate in 'Var control (fixed susceptance)' mode with Bref = 0. Setting Bref to zero is equivalent to putting the SVC out of service. Verify also that the two PSS (Pa type) are in service (value=1 in the PSS constant block) Start the simulation and observe signals on the 'Machines' scope. For this type of fault the system is stable without SVC. After fault clearing, the 0.8 Hz oscillation is quickly damped. This oscillation mode is typical of inter-area oscillations in a large power system. First trace on the 'Machine' scope shows the rotor angle difference d\_theta1\_2 between the two machines. Power transfer is maximum when this angle reaches 90 degrees. This signal is a good indication of system stability. If d\_theta1\_2 exceeds 90 degrees for a too long period of time, the machines will lose synchronism and the system goes unstable. Second trace shows the machine speeds. Notice that machine 1 speed increases during the fault because during that period its electrical power is lower than its mechanical power. By simulating over a long period of time (50 seconds) you will also notice that the machine speeds oscillate together at a low frequency (0.025 Hz) after fault clearing. The two PSS (Pa type) succeed to damp the 0.8 Hz mode but they are not efficient for damping the 0.025 Hz mode. If you select instead the Multi-Band PSS (value=2 in the PSS constant block) you will notice that this stabilizer type succeeds to damp both the 0.8 Hz mode and the 0.025 Hz mode.

You will now repeat the test with the two PSS out of service (value=0 in the PSS constant block). Restart simulation. Notice that the system is unstable without PSS. You can compare results with and without PSS by double clicking on the 2nd blue block on the right side. You can also compare the results obtained with the two solution methods 'Detailed' and 'Phasor' by double-clicking on the first blue block on the right side.

*Note: This system is naturally unstable without PSS, even for small disturbances. For example, if you remove the fault (by deselecting phase A in the Fault Breaker) and apply a Pref step of 0.05 pu on machine 1, you will see the instability slowly building up after a few seconds.*
{% endstep %}

{% step %}

### **Three-phase fault - Impact of SVC - two PSS in service**

You will now apply a 3-phase fault and observe the impact of the SVC for stabilizing the network during a severe contingency. Put the two PSS (Pa type) in service (value=1 in the PSS constant block. Reprogram the 'Fault Breaker' block in order to apply a 3-phase-to-ground fault. Verify that the SVC is in fixed susceptance mode with Bref = 0. Start the simulation. By looking at the d\_theta1\_2 signal, you should observe that the two machines quickly fall out of synchronism after fault clearing. In order not to pursue unnecessary simulation, the Simulink® 'Stop' block is used to stop the simulation when the angle difference reaches 3\*360degrees.

Now open the SVC block menu and change the SVC mode of operation to 'Voltage regulation'. The SVC will now try to support the voltage by injecting reactive power on the line when the voltage is lower than the reference voltage (1.009 pu). The chosen SVC reference voltage corresponds to the bus voltage with the SVC out of service. In steady state the SVC will therefore be 'floating' and waiting for voltage compensation when voltage departs from its reference set point.

Restart simulation and observe that the system is now stable with a 3-phase fault. You can compare results with and without SVC by double clicking on the 3rd blue block on the right side.
{% endstep %}
{% endstepper %}

## Command

Example model name: power\_svc\_pss

{% code lineNumbers="true" %}

```matlab
open('power_svc_pss')
```

{% endcode %}

## Reference

\[1] D.Jovcic, G.N.Pillai "Analytical Modeling of TCSC Dynamics" IEEE® Transactions on Power Delivery, vol 20, Issue 2, April 2005, pp. 1097-1104


---

# 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/example-models/power-transmission-and-distribution/static-var-compensator-svc-and-power-system-stabilizers-pss.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.
