OpenIPSL.Examples.Tutorial.Example_1

Assembling a power system model and simulating it

Information

This package brings information on how to assemble the building blocks of a power system model: the network and the generation unit.

The modeling process is divided into different steps, showing how network and generation units can be assembled systematically, using the models available in OpenIPSL.

In addition, this package also presents a Modelica function that allows the user to identify the motives for instability that is observed in the simulation.

Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).

Package Content

Name Description
OpenIPSL.Examples.Tutorial.Example_1.Example_1 Example_1 Fully assembled single-machine-infinite-bus (SMIB) example system
OpenIPSL.Examples.Tutorial.Example_1.Generator Generator Set of steps illustrating how to assemble a generation unit using OpenIPSL
OpenIPSL.Examples.Tutorial.Example_1.Network Network Set of steps illustrating how to assemble a network model using the OpenIPSL
OpenIPSL.Examples.Tutorial.Example_1.modal_analysis modal_analysis Function for executing the eigenanalysis of the test system assembled in Example 1

OpenIPSL.Examples.Tutorial.Example_1.Example_1 OpenIPSL.Examples.Tutorial.Example_1.Example_1

Fully assembled single-machine-infinite-bus (SMIB) example system

Information

This example system represents the resulting model after one has followed the steps to assemble the generation unit and the network. The system must be simulated during 10 seconds.

Variables of interest are:

Note that these curves have oscillations that grow with time, indicating a clear case of instability. This issue is addressed on Example 2.

Also note that validation against PSAT can be performed by loading the file Tutorial/Additional_Material/PSAT_dyn.csv. The correspondent curves are:

Extends from Modelica.Icons.Example (Icon for runnable examples).

OpenIPSL.Examples.Tutorial.Example_1.modal_analysis OpenIPSL.Examples.Tutorial.Example_1.modal_analysis

Function for executing the eigenanalysis of the test system assembled in Example 1

Information

This function linearizes the equations of the example system and extracts the eigenvalues from the state matrix A.

The main goal of this function is to identify the unstable eigenvalues, or modes, which are going to be the focus of the next text system, in Example 2.

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
pathToPlantModelModel to be linearized

Outputs

NameDescription
ssObject with ABCD matrices of linearized model
Automatically generated Mon Oct 10 14:35:38 2022.