From Script | Spoken-Tutorial
Revision as of 12:18, 27 September 2019 by Kaushik Datta (Talk | contribs)

Jump to: navigation, search
Visual Cue Narration
Slide Number 1 Welcome to the Spoken Tutorial on Simulation of a SMIB using OpenIPSL.
Slide Number 2

Learning Objectives

In this tutorial, we will learn:
  • How to simulate a controlled SMIB system
  • Plotting voltage profiles of buses
  • Plotting delta curve of the generator
Slide Number 3

System Requirements

To record this tutorial, I am using
  • OpenModelica Version 1.12.0 and
  • Linux OS 16.04

Also use the latest version of OpenIPSL to avoid compatibility issues. I am using OpenIPSL version 1.5.0.

The process demonstrated in this tutorial is identical to other OS such as-

  • Windows
  • Mac OS X or
Slide Number 4


To follow this tutorial, you should have knowledge of:
  • Power systems
  • Modelling using OpenModelica

For relevant OpenModelica tutorials, please visit our website.

Slide Number 5Prerequisites Earlier in this series, we have already seen
  • How to connect a controlled SMIB system
Open the SMIB model from the earlier tutorial. Let us open the SMIB system which we modelled in earlier tutorial.

Also open the OpenIPSL library.

We have already opened the SMIB system.
Shift to network window and drag and drop Generator model onto it Now the next task is setting up each component by entering the parameter data and power flow data.
Double click on the generator component Let me enter the data for the generator model.
  • For this, navigate to Generator tab.
  • Open Generator parameter window.
  • We can see that there are Initialisation data, Power flow data and Machine parameters.
  • Refer to the additional material section for the values to be entered.
  • I am entering the values here and initialising e1q.start and e2q.start as true values.
  • For this, click on the checkbox which is to the left of the parameter.
  • Then select “true:start-value is used to initialize
  • Now enter the rest of the parameters as shown.
I have entered all the data here.
Cursor pointing on the system data block The system data block is used to set the System base and frequency.

In this case, we can see it is set to 100 MVA as system base and frequency as 50 Hz.

Double click on the components to open parameter window. Now as the parameters and power flow data are set for all the components, we are ready to simulate it.
Before simulating the model, save it to a desired location.
Click on Check model Firstly let us check the generator model by clicking on the tick mark icon at the top of the model.

Here we can see there are 66 equations in the model and 66 variables for generator model.

And doing the same for Network model gives 142 equations and 142 variables.

From this we can say the models are solvable.

Close the Check Model windows Close the messages browser.
Click on the simulation setup Let us proceed to the simulation of the network model.

Click on the Simulation Setup icon at the top of the model.

This is to set up the solver and other parameters for the simulation.

Cursor on the simulation setup window. Here, I am using dassl method and tolerance of 1e-06.

The simulation time is set to 0 to 10 secs.

Make sure the "simulate" checkbox is checked before you click on "Ok".

Click on "Ok" which is at the bottom of the window and the simulation starts.

Cursor on the Simulation output window The simulation output window pops up.

This shows the compilation and running status of the simulation.

After the simulation is successful, close the simulation output window.

Show Plotting perspective We can see that the window has been changed to plotting perspective.

On the right hand side, we can see all the components are listed in the Variables browser tab.

Expand the model and each component in variables browser. Click on the Expand button which is on the left side of each component.

Now we can see all the variables under that particular component.

Now let me show you the voltage profile at the fault bus i.e. Bus 2
Show the variables browser Click on the Expand button on the left hand side of Bus 2.

We can see all the parameters of the bus.

Now click on the checkbox which is on the left hand side of the voltage parameter (V).

This plots the graph of Voltage at Bus 2.

Let me close the Messages browser for better view.

The Y-axis unit is in Per unit and the X-axis unit is in seconds.

Here we can see the plot starts from 0 seconds and ends at 10 secs.

During the fault i.e. from the duration 0.5 to 0.57 secs, there is a huge dip in the voltage profile.
After the fault is cleared at 0.57 secs, the voltage rises quickly.
Cursor on the voltage profile of Bus 2 plot. As the system is a controlled one, the voltage has less oscillations about its steady state value.

The voltage settles down after about 3.9 secs.

In this system, the steady state stability is achieved in less time after the fault is cleared.

This is due to the additional controls such as AVR and PSS used in the system.

Earlier in the series, the SMIB which was modelled, was an uncontrolled one.
Let’s compare the time taken by the uncontrolled system to that of a controlled one.

We can see the settling time is reduced.

This indicates that system regained its stability in less time with the help of controls like AVR and PSS.
Cursor on the voltage profile plot Here we can also see that the voltage doesn't drop down to zero at this Bus.

This is because of the fault impedance involved.

We can also view the voltage profiles of the other bus i.e B1.
After selecting B2 and B1 voltages, we can clearly see the voltage drop between the buses.

This is the drop caused by the impedance of the transmission lines.

Clear the plot Now clear these plots by unchecking the parameter checkboxes.
Show the plot of Delta curve of generator We can also plot the Delta curve of the generator.

This indicates whether the system is accelerating or stable.

Expand the generator and order61 For this, expand the generator and order61 which is a sixth order generator.

Here we can see all the variables of generator.

Click on the checkbox of delta Click on the checkbox of delta to plot its graph.
On the graph window From the graph we can see the system is accelerated when the fault occurs at 0.5secs
On the graph window The Delta then oscillates about the steady-state value after the fault is cleared.

It settles downs at 5.26 secs making the system stable.

This brings us to the end of this tutorial.
Slide Number 14


Let us now summarize.

In this tutorial, we have learnt:

  • How to simulate a controlled SMIB system
  • Plotting voltage profiles of buses
  • Plotting delta curve of the generator
Slide Number 15


As an assignment:
  • We recommend you to open the SMIB system which was modelled in earlier tutorial.
  • Enter the required data, then simulate it.
  • Then explore the results obtained.
Slide Number 16

Power System Simulation Project

The FOSSEE team invites contributions to develop power system networks using OpenIPSL library.

For more details, please visit this website.

Slide Number 17

About the Spoken Tutorial Project

The video at the following link summarises the Spoken Tutorial project.

Please download and watch it.

Slide Number 18

Spoken Tutorial Workshops

We conduct workshops using Spoken Tutorials and give certificates.

Please contact us.

Slide Number 19

Forum slide

Please post your timed queries in this forum
Slide Number 20

Forum for specific questions:

Please post your general queries in this forum
Slide Number 21

Textbook Companion Project

The FOSSEE team coordinates the Textbook Companion project.

For more details, please visit these sites.

Slide Number 22

Lab Migration Project

The FOSSEE team helps migrate commercial simulator labs to OpenModelica.

For more details, please visit this website.

Slide Number 23


Spoken Tutorial and FOSSEE projects are funded by NMEICT, MHRD, Government of India.
Acknowledgements We acknowledge the contributions made by Prof. Luigi Vanfretti and Biswarup for the models used in this series.
Slide Number 24


This is Usha signing off.

Thank you for joining.

Contributors and Content Editors

Kaushik Datta, Nancyvarkey, Vineeta