Difference between revisions of "OpenModelica-OpenIPSL/C2/Simulation-of-a-SMIB-using-OpenIPSL/English"

From Script | Spoken-Tutorial
Jump to: navigation, search
 
(2 intermediate revisions by one other user not shown)
Line 4: Line 4:
 
|-
 
|-
 
|| '''Slide Number 1'''
 
|| '''Slide Number 1'''
|| Welcome to the Spoken Tutorial on '''Simulation of a SMIB using OpenIPSL.'''
+
|| Welcome to the spoken tutorial on '''Simulation of a SMIB''' using '''OpenIPSL.'''
 
|-  
 
|-  
 
|| '''Slide Number 2 '''
 
|| '''Slide Number 2 '''
Line 11: Line 11:
 
'''Learning Objectives'''
 
'''Learning Objectives'''
 
|| In this tutorial, we will learn:
 
|| In this tutorial, we will learn:
* How to '''simulate''' a controlled''' SMIB system'''
+
* How to '''simulate''' a '''controlled SMIB system'''
 
* Plotting''' voltage profiles''' of '''buses'''  
 
* Plotting''' voltage profiles''' of '''buses'''  
* Plotting '''delta curve '''of the generator
+
* Plotting '''delta curve '''of the '''generator'''
 
|-  
 
|-  
 
|| '''Slide Number 3'''
 
|| '''Slide Number 3'''
Line 20: Line 20:
 
|| To record this tutorial, I am using
 
|| To record this tutorial, I am using
  
* '''OpenModelica Version 1.12.0 '''and
+
* '''OpenModelica''' version 1.12.0 and
* '''Linux OS 16.04'''
+
* '''Linux OS''' 16.04
  
Also use the latest version of OpenIPSL to avoid compatibility issues.  
+
Also use the latest version of '''OpenIPSL''' to avoid compatibility issues.  
  
I am using OpenIPSL version 1.5.0.
+
I am using '''OpenIPSL version 1.5.0'''.
  
The process demonstrated in this tutorial is identical to other OS such as-
+
The process demonstrated in this tutorial is identical to other '''OS''' such as-
  
 
* '''Windows'''
 
* '''Windows'''
Line 39: Line 39:
 
|| To follow this tutorial, you should have knowledge of:
 
|| To follow this tutorial, you should have knowledge of:
  
* Power systems
+
* '''Power systems'''
* Modelling using '''OpenModelica'''
+
* '''Modelling''' using '''OpenModelica'''
  
 
For relevant '''OpenModelica '''tutorials, please visit our website.  
 
For relevant '''OpenModelica '''tutorials, please visit our website.  
Line 46: Line 46:
 
|| '''Slide Number 5'''
 
|| '''Slide Number 5'''
 
'''Prerequisites'''
 
'''Prerequisites'''
|| Earlier in this series, we have already seen  
+
|| Earlier in this series, we have already seen how to connect a '''controlled SMIB system.'''
 
+
* How to connect a controlled '''SMIB system '''
+
 
+
 
|-  
 
|-  
|| '''Open the SMIB model from the earlier tutorial.'''
+
|| Open the '''SMIB model''' from the earlier tutorial.
|| Let us open the '''SMIB system''' which we modelled in earlier tutorial.  
+
|| Let us open the '''SMIB system''' which we '''modelled''' in earlier tutorial.  
  
 
Also open the '''OpenIPSL library.'''
 
Also open the '''OpenIPSL library.'''
Line 59: Line 56:
 
|| We have already opened the '''SMIB system'''.
 
|| We have already opened the '''SMIB system'''.
 
|-  
 
|-  
|| '''Shift to network window and drag and drop Generator model onto it'''
+
|| 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.'''
+
|| Now the next task is setting up each component by entering the '''parameter data''' and '''power flow data.'''
 
|-  
 
|-  
 
|| '''Double click on the generator component'''
 
|| '''Double click on the generator component'''
|| Let me enter the data for the '''generator model'''.
+
|| Let me enter the '''data''' for the '''generator model'''.
  
 
* For this, navigate to '''Generator''' tab.  
 
* For this, navigate to '''Generator''' tab.  
 
* Open '''Generator parameter''' window.
 
* Open '''Generator parameter''' window.
 
* We can see that there are '''Initialisation data, Power flow data '''and '''Machine parameters.'''
 
* 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.  
+
* 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'''.
+
* I am entering the values here and initialising '''e one q start''' and '''e tow qstart''' as''' true values'''.
* For this, click on the checkbox which is to the left of the parameter.  
+
* For this, click on the checkbox which is to the left of the '''parameter'''.  
* Then select “'''true:start-value is used to initialize'''”
+
* Then select “'''true start value is used to initialize'''”
 
* Now enter the rest of the '''parameters''' as shown.
 
* Now enter the rest of the '''parameters''' as shown.
 
|-  
 
|-  
 
||  
 
||  
|| I have entered all the data here.
+
|| I have entered all the '''data''' here.
 
|-  
 
|-  
 
|| Cursor pointing on the system data block
 
|| Cursor pointing on the system data block
|| The '''system data block''' is used to set the '''System base''' and '''frequency'''.
+
|| 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'''.  
+
In this case, we can see it is set to '''100 MVA''' as '''system base''' and '''frequency''' as '''50 Hertz'''.  
 
|-  
 
|-  
 
|| Double click on the components to open parameter window.
 
|| 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.  
+
|| 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.  
+
|| Before '''simulating''' the '''model''', save it to a desired location.  
 
|-  
 
|-  
 
|| Click on '''Check model'''
 
|| Click on '''Check model'''
Line 98: Line 95:
 
|-  
 
|-  
 
|| Close the Check Model windows
 
|| Close the Check Model windows
|| Close the '''messages browser'''.
+
|| Close the '''Message browser'''.
 
|-  
 
|-  
 
|| Click on the simulation setup
 
|| Click on the simulation setup
Line 108: Line 105:
 
|-  
 
|-  
 
|| Cursor on the simulation setup window.
 
|| Cursor on the simulation setup window.
|| Here, I am using '''dassl method''' and '''tolerance''' of '''1e-06'''.
+
|| Here, I am using '''dassl method''' and '''tolerance''' of '''e to the power of minus 6'''.
  
 
The '''simulation '''time is set to 0 to 10 secs.
 
The '''simulation '''time is set to 0 to 10 secs.
Line 134: Line 131:
 
|-  
 
|-  
 
||  
 
||  
|| Now let me show you the '''voltage profile''' at the''' fault bus''' i.e. '''Bus 2'''
+
|| Now let me show you the '''voltage profile''' at the''' fault bus,''' that is '''Bus 2'''.
 
|-  
 
|-  
 
|| Show the '''variables browser'''
 
|| Show the '''variables browser'''
Line 141: Line 138:
 
We can see all the '''parameters''' of the '''bus'''.
 
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).'''
+
Now click on the checkbox which is on the left hand side of the '''voltage parameter.'''
 
|-  
 
|-  
 
||  
 
||  
 
|| This plots the graph of '''Voltage''' at '''Bus 2'''.  
 
|| This plots the graph of '''Voltage''' at '''Bus 2'''.  
  
Let me close the '''Messages''' browser for better view.
+
Let me close the '''Message''' browser for better view.
 
|-  
 
|-  
 
||  
 
||  
|| The Y-axis unit is in '''Per unit''' and the X-axis unit is in '''seconds'''.
+
|| 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.
 
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.
+
|| During the '''fault''' i.e. from the duration 0.5 to 0.57 secs, there is a huge dip in the '''voltage profile'''.
 
|-  
 
|-  
 
||  
 
||  
Line 160: Line 157:
 
|-  
 
|-  
 
|| Cursor on the voltage profile of Bus 2 plot.
 
|| 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'''.
+
|| 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.
 
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.
+
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'''.
 
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.
+
|| 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.  
+
|| Let’s compare the time taken by the '''uncontrolled system''' to that of a '''controlled''' one.  
  
 
We can see the settling time is reduced.  
 
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'''.
+
|| 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  
 
|| Cursor on the voltage profile plot  
Line 198: Line 195:
 
|| We can also plot the '''Delta curve''' of the '''generator'''.
 
|| We can also plot the '''Delta curve''' of the '''generator'''.
  
This indicates whether the system is accelerating or stable.
+
This indicates whether the '''system''' is accelerating or stable.
 
|-  
 
|-  
 
|| Expand the '''generator''' and '''order61'''
 
|| Expand the '''generator''' and '''order61'''
|| For this, expand the '''generator''' and '''order61''' which is a '''sixth order generator. '''
+
|| For this, expand the '''generator''' and '''order 61''' which is a '''sixth order generator. '''
  
 
Here we can see all the variables of '''generator'''.
 
Here we can see all the variables of '''generator'''.
Line 209: Line 206:
 
|-  
 
|-  
 
|| On the graph window
 
|| On the graph window
|| From the graph we can see the '''system''' is accelerated when the '''fault''' occurs at 0.5secs
+
|| From the graph we can see the '''system''' is accelerated when the '''fault''' occurs at 0.5 secs.
 
|-  
 
|-  
 
|| On the graph window
 
|| On the graph window
Line 215: Line 212:
  
 
It settles downs at 5.26 secs making the '''system stable'''.
 
It settles downs at 5.26 secs making the '''system stable'''.
 
 
|-  
 
|-  
 
||  
 
||  
Line 226: Line 222:
  
 
In this tutorial, we have learnt:
 
In this tutorial, we have learnt:
* How to simulate a controlled SMIB system
+
* How to '''simulate''' a '''controlled SMIB system'''
* Plotting voltage profiles of buses  
+
* Plotting '''voltage profiles''' of '''buses'''
* Plotting delta curve of the generator
+
* Plotting '''delta curve''' of the '''generator'''
 
|-  
 
|-  
 
|| '''Slide Number 7'''
 
|| '''Slide Number 7'''
Line 234: Line 230:
 
'''Assignment'''  
 
'''Assignment'''  
 
|| As an assignment:
 
|| As an assignment:
* We recommend you to open the SMIB system which was modelled in earlier tutorial.
+
* We recommend you to open the '''SMIB system''' which was modelled in earlier tutorial.
 
* Enter the '''required data''', then '''simulate''' it.
 
* Enter the '''required data''', then '''simulate''' it.
 
* Then explore the results obtained.
 
* Then explore the results obtained.
Line 264: Line 260:
  
 
'''Forum slide'''
 
'''Forum slide'''
|| Please post your timed queries in this forum
+
|| Please post your timed queries in this forum.
 
|-
 
|-
 
|  | '''Slide Number 12'''
 
|  | '''Slide Number 12'''
  
 
'''Forum for specific questions:'''
 
'''Forum for specific questions:'''
| | Please post your general queries in this forum
+
| | Please post your general queries in this forum.
 
|-  
 
|-  
 
|| '''Slide Number 13'''
 
|| '''Slide Number 13'''

Latest revision as of 08:47, 9 October 2019

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
  • FOSSEE OS on ARM.
Slide Number 4

Prerequisites

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

For relevant OpenModelica tutorials, please visit our website.

Slide Number 5

Prerequisites

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 e one q start and e tow qstart 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 Hertz.

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 Message 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 e to the power of minus 6.

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, that is 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.

This plots the graph of Voltage at Bus 2.

Let me close the Message 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 order 61 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.5 secs.
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 6

Summary

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 7

Assignment

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 8

Power System Simulation Project

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

For more details, please visit this website.

https://om.fossee.in/powersystems

Slide Number 9

About the Spoken Tutorial Project

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

Please download and watch it.

Slide Number 10

Spoken Tutorial Workshops

We conduct workshops using Spoken Tutorials and give certificates.

Please contact us.

Slide Number 11

Forum slide

Please post your timed queries in this forum.
Slide Number 12

Forum for specific questions:

Please post your general queries in this forum.
Slide Number 13

Textbook Companion Project

The FOSSEE team coordinates the Textbook Companion project.

For more details, please visit these sites.

Slide Number 14

Lab Migration Project

The FOSSEE team helps migrate commercial simulator labs to OpenModelica.

For more details, please visit this website.

Slide Number 15

Acknowledgements

Spoken Tutorial and FOSSEE projects are funded by NMEICT, MHRD, Government of India.
Slide Number 16

Acknowledgements

We acknowledge the contributions made by Prof. Luigi Vanfretti and Biswarup for the models used in this series.
Slide Number 17

Thanks

This is Usha signing off.

Thank you for joining.

Contributors and Content Editors

Kaushik Datta, Nancyvarkey, Vineeta