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

From Script | Spoken-Tutorial
Jump to: navigation, search
Line 1: Line 1:
 
+
{| border=1
 
+
||'''Visual Cue'''
 
+
||'''Narration'''
{| style="border-spacing:0;width:6.9063in;"
+
|-
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|| Visual Cue
+
|| Narration
+
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
 
|| '''Slide Number 1'''
 
|| '''Slide Number 1'''
 
|| Welcome to the Spoken Tutorial on '''Modelling of a SMIB system using OpenIPSL'''.
 
|| Welcome to the Spoken Tutorial on '''Modelling of a SMIB system using OpenIPSL'''.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| '''Slide Number 2 '''
 
|| '''Slide Number 2 '''
  
  
 
'''Learning Objectives'''
 
'''Learning Objectives'''
|| In this tutorial, we will learn:* <div style="margin-left:0.5in;margin-right:0in;">What is a '''controlled SMIB system'''</div>
+
|| In this tutorial, we will learn:* What is a '''controlled SMIB system'''
* <div style="margin-left:0.5in;margin-right:0in;">How to '''model''' a '''controlled SMIB system''' </div>
+
* How to '''model''' a '''controlled SMIB system'''  
* <div style="margin-left:0.5in;margin-right:0in;">How to connect the components</div>
+
* How to connect the components
  
  
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| '''Slide Number 3'''
 
|| '''Slide Number 3'''
  
  
 
'''System Requirements'''
 
'''System Requirements'''
|| To record this tutorial, I am using* <div style="margin-left:0.5in;margin-right:0in;">'''OpenModelica Version 1.12.0 '''and</div>
+
|| To record this tutorial, I am using* '''OpenModelica Version 1.12.0 '''and
* <div style="margin-left:0.5in;margin-right:0in;">'''Linux OS 16.04'''</div>
+
* '''Linux OS 16.04'''
  
 
+
The process demonstrated in this tutorial is identical in other OS also such as-* '''Windows'''
 
+
* '''Mac OS X'''or  
 
+
* '''FOSSEE OS '''on '''ARM'''.
 
+
|-  
The process demonstrated in this tutorial is identical in other OS also such as-* <div style="margin-left:0.5in;margin-right:0in;">'''Windows'''</div>
+
* <div style="margin-left:0.5in;margin-right:0in;">'''Mac OS X'''or </div>
+
* <div style="margin-left:0.5in;margin-right:0in;">'''FOSSEE OS '''on '''ARM'''.</div>
+
 
+
 
+
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
 
|| '''Slide Number 4'''
 
|| '''Slide Number 4'''
  
 
'''Prerequisites'''
 
'''Prerequisites'''
  
 
+
|| To follow this tutorial, you should have knowledge of:* Power systems
 
+
* Modelling using '''OpenModelica'''
|| To follow this tutorial, you should have knowledge of:* <div style="margin-left:0.5in;margin-right:0in;">Power systems</div>
+
* <div style="margin-left:0.5in;margin-right:0in;">Modelling using '''OpenModelica'''</div>
+
 
+
 
+
 
+
 
+
  
 
For relevant '''OpenModelica '''tutorials, please visit our website.  
 
For relevant '''OpenModelica '''tutorials, please visit our website.  
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| '''Slide Number 5'''
 
|| '''Slide Number 5'''
  
 
'''Modelling of a SMIB system using OpenIPSL'''
 
'''Modelling of a SMIB system using OpenIPSL'''
|| Earlier in this series, we have already seen how to* <div style="margin-left:0.5in;margin-right:0in;">Simulate a '''SMIB system''' and </div>
+
|| Earlier in this series, we have already seen how to* Simulate a '''SMIB system''' and  
* <div style="margin-left:0.5in;margin-right:0in;">Interpret its results </div>
+
* Interpret its results  
 
+
|-  
 
+
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
 
|| '''Slide Number 6'''
 
|| '''Slide Number 6'''
  
  
 
'''What is a controlled SMIB system?'''
 
'''What is a controlled SMIB system?'''
|| * <div style="margin-left:0.5in;margin-right:0in;">In this tutorial, we’ll learn how to '''model''' a '''SMIB'''. </div>
+
|| * In this tutorial, we’ll learn how to '''model''' a '''SMIB'''.  
* <div style="margin-left:0.5in;margin-right:-0.052in;">Here the '''SMIB system''' which we are going to '''model''' is a '''controlled''' one.</div>
+
* Here the '''SMIB system''' which we are going to '''model''' is a '''controlled''' one.
* <div style="margin-left:0.5in;margin-right:0in;">The '''generator''' is '''controlled''' with the help of '''Automatic Voltage Regulator(AVR)''' and '''Power System Stabilizer(PSS).'''</div>
+
* The '''generator''' is '''controlled''' with the help of '''Automatic Voltage Regulator(AVR)''' and '''Power System Stabilizer(PSS).'''
 
+
|-  
 
+
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
 
||  
 
||  
|| * <div style="margin-left:0.5in;margin-right:0in;">Before getting started we will briefly learn about '''Automatic Voltage Regulator (AVR) '''and '''Power System Stabilizer (PSS.)'''</div>
+
|| * Before getting started we will briefly learn about '''Automatic Voltage Regulator (AVR) '''and '''Power System Stabilizer (PSS.)'''
 
+
|-  
 
+
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
 
|| '''Slide Number 7'''
 
|| '''Slide Number 7'''
  
 
'''What is a controlled SMIB system?'''
 
'''What is a controlled SMIB system?'''
 
 
  
 
|| '''Automatic Voltage Regulator(AVR)'''
 
|| '''Automatic Voltage Regulator(AVR)'''
  
 
+
* '''AVR''' regulates the '''generator terminal voltage'''  
* <div style="margin-left:0.5in;margin-right:0in;">'''AVR''' regulates the '''generator terminal voltage''' </div>
+
* This is done by controlling the amount of current supplied to the '''generator field winding''' by the '''exciter'''.
* <div style="margin-left:0.5in;margin-right:0in;">This is done by controlling the amount of current supplied to the '''generator field winding''' by the '''exciter'''.</div>
+
* '''AVR''' improves the '''voltage regulation''' of the '''system.'''  
* <div style="margin-left:0.5in;margin-right:0in;">'''AVR''' improves the '''voltage regulation''' of the '''system.''' </div>
+
|-  
 
+
 
+
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
 
|| '''Slide Number 8'''
 
|| '''Slide Number 8'''
  
 
'''What is a controlled SMIB system?'''
 
'''What is a controlled SMIB system?'''
 
 
 
 
|| '''Power System Stabilizer(PSS)'''
 
|| '''Power System Stabilizer(PSS)'''
  
 +
* '''(PSS)''' is installed with '''AVR''' to '''damp''' the low frequency '''oscillations''' in the '''power system'''
 +
* This is done by providing a '''supplementary signal''' to the '''excitation system'''.
 +
* '''PSS''' improves the '''damping''' of the '''system.''
  
* <div style="margin-left:0.5in;margin-right:0in;">'''(PSS)''' is installed with '''AVR''' to '''damp''' the low frequency '''oscillations''' in the '''power system''' </div>
+
|-  
* <div style="margin-left:0.5in;margin-right:0in;">This is done by providing a '''supplementary signal''' to the '''excitation system'''.</div>
+
* <div style="margin-left:0.5in;margin-right:0in;">'''PSS''' improves the '''damping''' of the '''system.'''</div>
+
 
+
 
+
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
 
|| '''Slide Number 9'''
 
|| '''Slide Number 9'''
  
Line 112: Line 80:
  
 
This helps to obtain better '''voltage regulation''' and '''oscillation damping''' in the '''system'''.
 
This helps to obtain better '''voltage regulation''' and '''oscillation damping''' in the '''system'''.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| '''Slide Number 10'''
 
|| '''Slide Number 10'''
  
Line 119: Line 87:
 
|| Before launching '''OMEdit '''let us look at the '''Single Line Diagram(SLD)''' of the '''SMIB system'''.
 
|| Before launching '''OMEdit '''let us look at the '''Single Line Diagram(SLD)''' of the '''SMIB system'''.
  
 
+
|-  
 
+
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
 
|| '''Slide Number 11'''
 
|| '''Slide Number 11'''
  
 
'''How to model a SMIB system?'''
 
'''How to model a SMIB system?'''
 
|| This '''SLD''' helps us to get an overview of our '''system.'''  
 
|| This '''SLD''' helps us to get an overview of our '''system.'''  
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| '''Launch OMEdit '''
 
|| '''Launch OMEdit '''
 
|| Now let us launch '''OMEdit'''.
 
|| Now let us launch '''OMEdit'''.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| '''Open OpenModelica and OpenIPSL'''
 
|| '''Open OpenModelica and OpenIPSL'''
 
|| Once '''OMEdit''' is launched we will create a new '''Modelica Package'''.
 
|| Once '''OMEdit''' is launched we will create a new '''Modelica Package'''.
Line 135: Line 101:
  
 
Before creating it, let me include the '''OpenIPSL library'''.
 
Before creating it, let me include the '''OpenIPSL library'''.
 
  
 
As demonstrated earlier in the series, navigate to '''“File” --> “system libraries” --> “OpenIPSL”. '''
 
As demonstrated earlier in the series, navigate to '''“File” --> “system libraries” --> “OpenIPSL”. '''
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| '''Highlight and click on the icon which is below the file to the top left corner .'''
 
|| '''Highlight and click on the icon which is below the file to the top left corner .'''
 
|| To create a new "'''Modelica Package'''", click on the icon at the top left corner below the file.
 
|| To create a new "'''Modelica Package'''", click on the icon at the top left corner below the file.
 
  
 
We see a pop-up window.  
 
We see a pop-up window.  
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| '''Point at the name column.'''
 
|| '''Point at the name column.'''
 
|| Now type the desired name in the '''Name''' column.
 
|| Now type the desired name in the '''Name''' column.
 
  
 
While entering the name make sure there are no spaces and the name doesn't start with a number.
 
While entering the name make sure there are no spaces and the name doesn't start with a number.
 
  
 
It also doesn't accept any special characters.
 
It also doesn't accept any special characters.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| '''Create a package with the name “SMIB_Controlled”'''
 
|| '''Create a package with the name “SMIB_Controlled”'''
 
 
 
  
 
'''Highlight the package in libraries column.'''
 
'''Highlight the package in libraries column.'''
 
|| Now I will type the name as "'''SMIB_Controlled'''".
 
|| Now I will type the name as "'''SMIB_Controlled'''".
 
  
 
In '''Specialization''' column dropdown, select '''Package''' and click on '''Ok'''.
 
In '''Specialization''' column dropdown, select '''Package''' and click on '''Ok'''.
 
  
 
We can see a '''package''' in the '''libraries''' column.
 
We can see a '''package''' in the '''libraries''' column.
 
  
 
Under this '''package''' we will create the '''models'''.
 
Under this '''package''' we will create the '''models'''.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
||  
 
||  
 
|| We have to create two '''models''' under this '''package'''  
 
|| We have to create two '''models''' under this '''package'''  
Line 177: Line 133:
  
 
'''2. Generator.'''
 
'''2. Generator.'''
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| '''Create two models under the main package.'''
 
|| '''Create two models under the main package.'''
  
  
 
Click on "'''New Modelica class'''" >> type name="'''Network'''" and Specialization="'''Model'''".
 
Click on "'''New Modelica class'''" >> type name="'''Network'''" and Specialization="'''Model'''".
 
 
  
 
|| Now to create the '''models''', right-click on the '''SMIB_Controlled package.'''
 
|| Now to create the '''models''', right-click on the '''SMIB_Controlled package.'''
 
  
 
And click on "'''New Modelica class'''".
 
And click on "'''New Modelica class'''".
 
  
 
Type the name as "'''Network'''" and '''Specialization''' as "'''Model'''".
 
Type the name as "'''Network'''" and '''Specialization''' as "'''Model'''".
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| Highlight the '''class '''column''' SMIB_Controlled '''
 
|| Highlight the '''class '''column''' SMIB_Controlled '''
 
 
 
  
 
Click on "'''OK'''".
 
Click on "'''OK'''".
 
|| Here we can see that the '''Insert''' in '''class''' column is automatically filled as "'''SMIB_Controlled'''".  
 
|| Here we can see that the '''Insert''' in '''class''' column is automatically filled as "'''SMIB_Controlled'''".  
 
  
 
This is because we are inserting this '''model''' in the '''SMIB_Controlled package'''.
 
This is because we are inserting this '''model''' in the '''SMIB_Controlled package'''.
 
  
 
Click on "'''OK'''".
 
Click on "'''OK'''".
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| Repeat the above procedure.  
 
|| Repeat the above procedure.  
 
|| Now follow the same procedure to create '''Generator model'''.
 
|| Now follow the same procedure to create '''Generator model'''.
 
  
 
While doing so, type the name of the '''model''' as “'''Generator'''”.
 
While doing so, type the name of the '''model''' as “'''Generator'''”.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| Point to the '''Expand button''' >> click on it  
 
|| Point to the '''Expand button''' >> click on it  
 
 
 
 
|| After creating the '''models''' you can see the '''Expand''' button to the left of the '''package'''.
 
|| After creating the '''models''' you can see the '''Expand''' button to the left of the '''package'''.
 
  
 
Expand the '''package''' by clicking on the '''Expand''' button.
 
Expand the '''package''' by clicking on the '''Expand''' button.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| Open network model.
 
|| Open network model.
 
 
 
 
|| We can see two '''models''' already opened. Click on the '''network''' tab at the top.
 
|| We can see two '''models''' already opened. Click on the '''network''' tab at the top.
 
  
 
Now let us drag and drop the required components to build the '''network'''.
 
Now let us drag and drop the required components to build the '''network'''.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| Open the slides  
 
|| Open the slides  
  
 
'''Slide number 12'''
 
'''Slide number 12'''
|| The following are the components required to model the '''SMIB system'''.* <div style="margin-left:0.5in;margin-right:0in;">'''Generator (Order VI)'''</div>
+
|| The following are the components required to model the '''SMIB system'''.* '''Generator (Order VI)'''
* <div style="margin-left:0.5in;margin-right:0in;">'''Buses'''</div>
+
* '''Buses'''
* <div style="margin-left:0.5in;margin-right:0in;">Two '''winding transformer'''</div>
+
* Two '''winding transformer'''
* <div style="margin-left:0.5in;margin-right:0in;">'''Power System Stabilizer (PSS) (Order II)'''</div>
+
* '''Power System Stabilizer (PSS) (Order II)'''
  
  
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| '''Slide number 13'''
 
|| '''Slide number 13'''
|| '''Automatic Voltage Regulator (AVR)(Order III)'''* <div style="margin-left:0.5in;margin-right:0in;">Power Line </div>
+
|| '''Automatic Voltage Regulator (AVR)(Order III)'''* Power Line  
* <div style="margin-left:0.5in;margin-right:0in;">'''Infinite Bus'''</div>
+
* '''Infinite Bus'''
* <div style="margin-left:0.5in;margin-right:0in;">Power Pin</div>
+
* Power Pin
* <div style="margin-left:0.5in;margin-right:0in;">'''Fault Block'''</div>
+
* '''Fault Block'''
* <div style="margin-left:0.5in;margin-right:0in;">System Data</div>
+
* System Data
  
  
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| Open OMEdit window
 
|| Open OMEdit window
 
|| Let’s go back to the '''OMEdit''' window
 
|| Let’s go back to the '''OMEdit''' window
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| Click on the '''network''' tab
 
|| Click on the '''network''' tab
 
|| Click on the '''network''' tab at the top if it is not already opened.
 
|| Click on the '''network''' tab at the top if it is not already opened.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| Drag and drop all the components
 
|| Drag and drop all the components
 
|| Drag and drop all the components required onto the '''Network''' window as shown.
 
|| Drag and drop all the components required onto the '''Network''' window as shown.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| Drag and drop all the described components
 
|| Drag and drop all the described components
 
|| For '''Buses''' navigate to "'''OpenIPSL--> Electrical--> Buses--> Bus".'''
 
|| For '''Buses''' navigate to "'''OpenIPSL--> Electrical--> Buses--> Bus".'''
  
 
Drag and drop the '''Bus''' onto the '''Modeling''' window of '''Network'''.
 
Drag and drop the '''Bus''' onto the '''Modeling''' window of '''Network'''.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| Type name='''Bus 1 >> Ok'''
 
|| Type name='''Bus 1 >> Ok'''
 
|| Then type the component name as '''Bus 1''' and click on '''Ok.'''
 
|| Then type the component name as '''Bus 1''' and click on '''Ok.'''
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
||  
 
||  
 
|| We require three '''Buses''' as mentioned earlier in the requirements.
 
|| We require three '''Buses''' as mentioned earlier in the requirements.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| Repeat for '''Bus 2 '''and '''Bus 3'''
 
|| Repeat for '''Bus 2 '''and '''Bus 3'''
 
|| Now do the same for '''Bus 2''' and '''Bus 3'''.
 
|| Now do the same for '''Bus 2''' and '''Bus 3'''.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| Drag and drop all the described components
 
|| Drag and drop all the described components
 
|| In a similar manner, drag and drop all the required components.
 
|| In a similar manner, drag and drop all the required components.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| Drag and drop the required components on to network model window.
 
|| Drag and drop the required components on to network model window.
 
|| For the two '''winding transformers,''' navigate to "'''OpenIPSL--> Electrical--> Branches--> PSAT-->Two winding transformer'''".
 
|| For the two '''winding transformers,''' navigate to "'''OpenIPSL--> Electrical--> Branches--> PSAT-->Two winding transformer'''".
Line 290: Line 228:
  
 
For '''System Data''' navigate to "'''OpenIPSL--> Electrical-->SystemBase'''".
 
For '''System Data''' navigate to "'''OpenIPSL--> Electrical-->SystemBase'''".
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| '''Go back to Slide Number 11 '''
 
|| '''Go back to Slide Number 11 '''
 
|| From the single line diagram shown here, we can get a clear idea about the '''network'''.
 
|| From the single line diagram shown here, we can get a clear idea about the '''network'''.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| Go back to '''OMEdit'''.
 
|| Go back to '''OMEdit'''.
 
 
 
 
|| Let us go back to '''OMEdit'''.
 
|| Let us go back to '''OMEdit'''.
 
  
 
Let us connect the components together according to the single line diagram shown earlier.
 
Let us connect the components together according to the single line diagram shown earlier.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| Connect the components as described
 
|| Connect the components as described
 
|| To connect two components, click on the '''pwpin''' of the first component.  
 
|| To connect two components, click on the '''pwpin''' of the first component.  
 
  
 
Drag and click on the second '''pwpin''' as shown.
 
Drag and click on the second '''pwpin''' as shown.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| Connect the components in Network model as shown in SLD.
 
|| Connect the components in Network model as shown in SLD.
 
|| Between '''Bus1''' and '''Bus2''' the '''Two winding transformer is''' connected.
 
|| Between '''Bus1''' and '''Bus2''' the '''Two winding transformer is''' connected.
Line 314: Line 247:
  
 
'''Bus 2''' and '''Bus 3''' are connected via two power lines in parallel.
 
'''Bus 2''' and '''Bus 3''' are connected via two power lines in parallel.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| Connect the components in Network model as shown in SLD.
 
|| Connect the components in Network model as shown in SLD.
 
|| The '''infinite bus''' is connected to '''Bus3.'''  
 
|| The '''infinite bus''' is connected to '''Bus3.'''  
 
  
 
But before that rotate the '''Infinite bus''' component using command "'''Ctrl+R'''"  
 
But before that rotate the '''Infinite bus''' component using command "'''Ctrl+R'''"  
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
||  
 
||  
 
|| The '''Power Fault block''' is connected to '''Bus 2'''.
 
|| The '''Power Fault block''' is connected to '''Bus 2'''.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| Connect the components in Network model as shown in SLD.
 
|| Connect the components in Network model as shown in SLD.
 
|| The system data block is placed on the '''Network model plane'''.
 
|| The system data block is placed on the '''Network model plane'''.
 
  
 
This provides the system with '''base''' and '''frequency''' for all the other components.
 
This provides the system with '''base''' and '''frequency''' for all the other components.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| Switch to''' Generator model window'''
 
|| Switch to''' Generator model window'''
 
|| The '''Network''' is connected now and let us go to the '''Generator modelling''' window.
 
|| The '''Network''' is connected now and let us go to the '''Generator modelling''' window.
 
  
 
The '''Generator''' used here is of order six.
 
The '''Generator''' used here is of order six.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| Point to '''PSS '''and '''AVR'''
 
|| Point to '''PSS '''and '''AVR'''
 
|| '''PSS''' and '''AVR''' are connected to the generator to achieve required control.
 
|| '''PSS''' and '''AVR''' are connected to the generator to achieve required control.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| Point to '''AVR'''
 
|| Point to '''AVR'''
 
|| '''AVR''' controls the '''field voltage''' of the '''generator''' taking the '''generator terminal voltage''' as input.
 
|| '''AVR''' controls the '''field voltage''' of the '''generator''' taking the '''generator terminal voltage''' as input.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| Point to '''PSS '''
 
|| Point to '''PSS '''
 
|| The '''PSS''' takes ''''w'(Rotor speed)''' as the input and feeds '''AVR'''.
 
|| The '''PSS''' takes ''''w'(Rotor speed)''' as the input and feeds '''AVR'''.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| Drag and drop components on to '''Generator modelling window'''
 
|| Drag and drop components on to '''Generator modelling window'''
 
|| Now let us drag and drop '''PSS, AVR''' and '''Generator''' on to the '''Generator modelling''' window.
 
|| Now let us drag and drop '''PSS, AVR''' and '''Generator''' on to the '''Generator modelling''' window.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| Connect the components as described
 
|| Connect the components as described
 
|| For '''Automatic Voltage Regulator (AVR)(Order III) '''navigate to '''"OpenIPSL--> Electrical--> Controls--> PSAT-->AVR-->AVRTypeIII".'''
 
|| For '''Automatic Voltage Regulator (AVR)(Order III) '''navigate to '''"OpenIPSL--> Electrical--> Controls--> PSAT-->AVR-->AVRTypeIII".'''
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| Connect the components as described
 
|| Connect the components as described
 
|| For '''Power System Stabilizer (PSS) (Order II) '''navigate to "'''OpenIPSL--> Electrical--> Controls--> PSAT-->PSS-->PSSTypeII'''".
 
|| For '''Power System Stabilizer (PSS) (Order II) '''navigate to "'''OpenIPSL--> Electrical--> Controls--> PSAT-->PSS-->PSSTypeII'''".
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| Connect the components as described
 
|| Connect the components as described
 
|| For '''Generator (Order VI)''' navigate to "'''OpenIPSL--> Electrical--> Machines--> PSAT-->Order6'''".
 
|| For '''Generator (Order VI)''' navigate to "'''OpenIPSL--> Electrical--> Machines--> PSAT-->Order6'''".
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| Connect the components as described
 
|| Connect the components as described
 
|| For Power Pin navigate to "'''OpenIPSL--> Interfaces--> PwPin'''".
 
|| For Power Pin navigate to "'''OpenIPSL--> Interfaces--> PwPin'''".
  
 
This Power Pin acts as an interface between the '''Generator''' and '''Network models'''.
 
This Power Pin acts as an interface between the '''Generator''' and '''Network models'''.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| Adjust and resize the components
 
|| Adjust and resize the components
 
|| Adjust and resize the components as shown to make it look better.
 
|| Adjust and resize the components as shown to make it look better.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| Connect the components as described
 
|| Connect the components as described
 
|| Let us connect the components.
 
|| Let us connect the components.
Line 370: Line 300:
  
 
The '''AVR''' takes the '''generator terminal voltage''' as input i.e. '''Generator "V" '''is connected to '''AVRTypeIII "v"'''
 
The '''AVR''' takes the '''generator terminal voltage''' as input i.e. '''Generator "V" '''is connected to '''AVRTypeIII "v"'''
 
  
 
The '''Initial Field voltage (Vf0)''' of the '''generator''' is given to '''AVRTypeIII''' as input.
 
The '''Initial Field voltage (Vf0)''' of the '''generator''' is given to '''AVRTypeIII''' as input.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
||  
 
||  
 
|| The output '''"Vf"''' of '''AVRTypeIII is''' connected to input '''"Vf"''' of the '''generator'''.
 
|| The output '''"Vf"''' of '''AVRTypeIII is''' connected to input '''"Vf"''' of the '''generator'''.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| Point to '''PSS input signal'''
 
|| Point to '''PSS input signal'''
 
|| The '''PSS input signal '''is connected to ''''w'(Rotor speed)''' of the '''generator'''.
 
|| The '''PSS input signal '''is connected to ''''w'(Rotor speed)''' of the '''generator'''.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| Point to the output of '''PSS '''
 
|| Point to the output of '''PSS '''
 
|| The output of '''PSS''' is fed to '''"Vs" '''of the '''AVRTypeIII'''.  
 
|| The output of '''PSS''' is fed to '''"Vs" '''of the '''AVRTypeIII'''.  
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| Point to the connection
 
|| Point to the connection
 
|| The '''Mechanical''' power is not controlled here so '''Pm''' and '''Pm0''' of the '''generator''' are connected together.
 
|| The '''Mechanical''' power is not controlled here so '''Pm''' and '''Pm0''' of the '''generator''' are connected together.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| Point to '''PwPin'''
 
|| Point to '''PwPin'''
 
|| The Power '''pin''' of the '''generator''' is connected to '''PwPin'''.
 
|| The Power '''pin''' of the '''generator''' is connected to '''PwPin'''.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| Point to '''PwPin'''
 
|| Point to '''PwPin'''
 
|| This '''PwPin''' acts as an interface between the two, '''Generator''' and '''Network classes.'''  
 
|| This '''PwPin''' acts as an interface between the two, '''Generator''' and '''Network classes.'''  
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| Shift to '''Icon view''' of the''' Generator model'''
 
|| Shift to '''Icon view''' of the''' Generator model'''
 
|| Now shift to the icon view using the "'''Icon View'''".
 
|| Now shift to the icon view using the "'''Icon View'''".
Line 397: Line 326:
  
 
This is at the top left corner of the '''Generator Modelling''' window.
 
This is at the top left corner of the '''Generator Modelling''' window.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
||  
 
||  
 
|| Here I will use a circle to represent my '''generator''' and its '''controls'''.
 
|| Here I will use a circle to represent my '''generator''' and its '''controls'''.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| Select the ellipse
 
|| Select the ellipse
 
|| Select the ellipse at the top toolbar to draw a circle as shown.
 
|| Select the ellipse at the top toolbar to draw a circle as shown.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| Drag the cursor to draw a circle
 
|| Drag the cursor to draw a circle
 
|| After selecting eclipse, click on the top left corner and drag the cursor to draw a circle.  
 
|| After selecting eclipse, click on the top left corner and drag the cursor to draw a circle.  
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| '''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 let us go back to our '''network modelling''' window.
 
|| Now let us go back to our '''network modelling''' window.
 
  
 
Here drag and drop the '''Generator model''' in your '''package'''.  
 
Here drag and drop the '''Generator model''' in your '''package'''.  
Line 415: Line 343:
  
  
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
||  
 
||  
 
|| Navigate to "'''SMIB_Controlled-->Generator'''" and connect it to '''Bus1'''.
 
|| Navigate to "'''SMIB_Controlled-->Generator'''" and connect it to '''Bus1'''.
 
  
 
This makes the connections complete.
 
This makes the connections complete.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
||  
 
||  
 
|| We can use command "'''Ctrl+S'''" and then a pop-up opens up.  
 
|| We can use command "'''Ctrl+S'''" and then a pop-up opens up.  
Line 427: Line 354:
  
 
Select the desired location and save it.
 
Select the desired location and save it.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| '''Slide Number 14'''
 
|| '''Slide Number 14'''
  
Line 439: Line 366:
  
  
* <div style="margin-left:0.5in;margin-right:0in;">What is a '''controlled SMIB system'''</div>
+
* What is a '''controlled SMIB system'''
* <div style="margin-left:0.5in;margin-right:0in;">How to '''model''' a '''controlled SMIB system''' </div>
+
* How to '''model''' a '''controlled SMIB system'''  
* <div style="margin-left:0.5in;margin-right:0in;">How to Connect the components</div>
+
* How to Connect the components
  
 
+
|-  
 
+
 
+
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
 
|| '''Slide Number 15'''
 
|| '''Slide Number 15'''
  
 
Assignment  
 
Assignment  
|| As an assignment:* <div style="margin-left:0.5in;margin-right:0in;">We recommend that you take an example '''network''' from any textbook or publications.</div>
+
|| As an assignment:* We recommend that you take an example '''network''' from any textbook or publications.
* <div style="margin-left:0.5in;margin-right:0in;">Using the OpenIPSL library components, connect and model the network. </div>
+
* Using the OpenIPSL library components, connect and model the network.  
 
+
|-  
 
+
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
 
|| '''Slide Number 16'''
 
|| '''Slide Number 16'''
  
 
Power System Simulation Project
 
Power System Simulation Project
|| The FOSSEE team invites contributions to develop '''power system networks''' using '''OpenIPSL library.'''
+
|| The FOSSEE team invites contributions to develop '''power system networks''' using '''OpenIPSL library.'''
 
+
  
 
For more details, please visit this site.
 
For more details, please visit this site.
Line 465: Line 386:
 
[https://om.fossee.in/powersystems https://om.fossee.in/powersystems]
 
[https://om.fossee.in/powersystems https://om.fossee.in/powersystems]
  
 
+
|-  
 
+
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
 
|| '''Slide Number 17'''
 
|| '''Slide Number 17'''
  
Line 474: Line 393:
  
 
Please download and watch it.
 
Please download and watch it.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| '''Slide Number 18'''
 
|| '''Slide Number 18'''
  
Line 481: Line 400:
  
 
Please contact us.
 
Please contact us.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| '''Slide Number 19'''
 
|| '''Slide Number 19'''
  
Line 487: Line 406:
 
|| Please post your timed queries in this forum
 
|| Please post your timed queries in this forum
 
|-
 
|-
| style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;" | '''Slide Number 20'''
+
| | '''Slide Number 20'''
  
 
Forum for specific questions:
 
Forum for specific questions:
  
 
+
||Please post your general queries in this forum
 
+
|-  
| style="border:1pt solid #000000;padding:0.0694in;" | Please post your general queries in this forum
+
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
 
|| '''Slide Number 21'''
 
|| '''Slide Number 21'''
 
 
 
  
 
Textbook Companion Project
 
Textbook Companion Project
|| The '''FOSSEE '''team coordinates the '''TBC '''project.
+
|| The '''FOSSEE ''' team coordinates the '''TBC '''project.
  
 
For more details, please visit these sites.
 
For more details, please visit these sites.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| '''Slide Number 22'''
 
|| '''Slide Number 22'''
 
 
 
  
 
Lab Migration Project
 
Lab Migration Project
 
|| The '''FOSSEE '''team helps migrate commercial simulator labs to '''OpenModelica'''.
 
|| The '''FOSSEE '''team helps migrate commercial simulator labs to '''OpenModelica'''.
 
  
 
For more details, please visit this site.
 
For more details, please visit this site.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| '''Slide Number 23'''
 
|| '''Slide Number 23'''
 
 
 
  
 
'''Acknowledgements'''
 
'''Acknowledgements'''
 
|| '''Spoken Tutorial '''and '''FOSSEE '''projects are funded by '''NMEICT, MHRD''', Government of India.
 
|| '''Spoken Tutorial '''and '''FOSSEE '''projects are funded by '''NMEICT, MHRD''', Government of India.
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| '''Acknowledgements'''
 
|| '''Acknowledgements'''
 
|| We acknowledge the contributions made by Prof. Luigi Vanfretti and Mr. Biswarup Mukherjee for the models used in this series.  
 
|| We acknowledge the contributions made by Prof. Luigi Vanfretti and Mr. Biswarup Mukherjee for the models used in this series.  
|- style="background-color:#ffffff;border:1pt solid #000000;padding-top:0in;padding-bottom:0in;padding-left:0.0528in;padding-right:0.0528in;"
+
|-  
 
|| '''Slide Number 24'''
 
|| '''Slide Number 24'''
 
  
 
Thanks
 
Thanks
 
|| This tutorial is created by '''Samboju Sai Kiran.'''
 
|| This tutorial is created by '''Samboju Sai Kiran.'''
 
  
 
Thank you for joining.  
 
Thank you for joining.  
 
|-
 
|-
 
|}
 
|}

Revision as of 15:22, 26 September 2019

Visual Cue Narration
Slide Number 1 Welcome to the Spoken Tutorial on Modelling of a SMIB system using OpenIPSL.
Slide Number 2


Learning Objectives

In this tutorial, we will learn:* What is a controlled SMIB system
  • How to model a controlled SMIB system
  • How to connect the components


Slide Number 3


System Requirements

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

The process demonstrated in this tutorial is identical in other OS also such as-* Windows

  • Mac OS Xor
  • 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

Modelling of a SMIB system using OpenIPSL

Earlier in this series, we have already seen how to* Simulate a SMIB system and
  • Interpret its results
Slide Number 6


What is a controlled SMIB system?

* In this tutorial, we’ll learn how to model a SMIB.
  • Here the SMIB system which we are going to model is a controlled one.
  • The generator is controlled with the help of Automatic Voltage Regulator(AVR) and Power System Stabilizer(PSS).
* Before getting started we will briefly learn about Automatic Voltage Regulator (AVR) and Power System Stabilizer (PSS.)
Slide Number 7

What is a controlled SMIB system?

Automatic Voltage Regulator(AVR)
  • AVR regulates the generator terminal voltage
  • This is done by controlling the amount of current supplied to the generator field winding by the exciter.
  • AVR improves the voltage regulation of the system.
Slide Number 8

What is a controlled SMIB system?

Power System Stabilizer(PSS)
  • (PSS) is installed with AVR to damp the low frequency oscillations in the power system
  • This is done by providing a supplementary signal to the excitation system.
  • PSS' improves the damping of the system.
Slide Number 9

What is a controlled SMIB system?

Optimal tuning of AVR controller and PSS parameters is necessary.


This helps to obtain better voltage regulation and oscillation damping in the system.

Slide Number 10


How to model a SMIB system?

Before launching OMEdit let us look at the Single Line Diagram(SLD) of the SMIB system.
Slide Number 11

How to model a SMIB system?

This SLD helps us to get an overview of our system.
Launch OMEdit Now let us launch OMEdit.
Open OpenModelica and OpenIPSL Once OMEdit is launched we will create a new Modelica Package.


Before creating it, let me include the OpenIPSL library.

As demonstrated earlier in the series, navigate to “File” --> “system libraries” --> “OpenIPSL”.

Highlight and click on the icon which is below the file to the top left corner . To create a new "Modelica Package", click on the icon at the top left corner below the file.

We see a pop-up window.

Point at the name column. Now type the desired name in the Name column.

While entering the name make sure there are no spaces and the name doesn't start with a number.

It also doesn't accept any special characters.

Create a package with the name “SMIB_Controlled”

Highlight the package in libraries column.

Now I will type the name as "SMIB_Controlled".

In Specialization column dropdown, select Package and click on Ok.

We can see a package in the libraries column.

Under this package we will create the models.

We have to create two models under this package

1. Network.

2. Generator.

Create two models under the main package.


Click on "New Modelica class" >> type name="Network" and Specialization="Model".

Now to create the models, right-click on the SMIB_Controlled package.

And click on "New Modelica class".

Type the name as "Network" and Specialization as "Model".

Highlight the class column SMIB_Controlled

Click on "OK".

Here we can see that the Insert in class column is automatically filled as "SMIB_Controlled".

This is because we are inserting this model in the SMIB_Controlled package.

Click on "OK".

Repeat the above procedure. Now follow the same procedure to create Generator model.

While doing so, type the name of the model as “Generator”.

Point to the Expand button >> click on it After creating the models you can see the Expand button to the left of the package.

Expand the package by clicking on the Expand button.

Open network model. We can see two models already opened. Click on the network tab at the top.

Now let us drag and drop the required components to build the network.

Open the slides

Slide number 12

The following are the components required to model the SMIB system.* Generator (Order VI)
  • Buses
  • Two winding transformer
  • Power System Stabilizer (PSS) (Order II)


Slide number 13 Automatic Voltage Regulator (AVR)(Order III)* Power Line
  • Infinite Bus
  • Power Pin
  • Fault Block
  • System Data


Open OMEdit window Let’s go back to the OMEdit window
Click on the network tab Click on the network tab at the top if it is not already opened.
Drag and drop all the components Drag and drop all the components required onto the Network window as shown.
Drag and drop all the described components For Buses navigate to "OpenIPSL--> Electrical--> Buses--> Bus".

Drag and drop the Bus onto the Modeling window of Network.

Type name=Bus 1 >> Ok Then type the component name as Bus 1 and click on Ok.
We require three Buses as mentioned earlier in the requirements.
Repeat for Bus 2 and Bus 3 Now do the same for Bus 2 and Bus 3.
Drag and drop all the described components In a similar manner, drag and drop all the required components.
Drag and drop the required components on to network model window. For the two winding transformers, navigate to "OpenIPSL--> Electrical--> Branches--> PSAT-->Two winding transformer".


For Power Lines navigate to "OpenIPSL--> Electrical--> Branches--> PwLine".


For Infinite Bus navigate to "OpenIPSL--> Electrical--> Buses--> InfiniteBus".


For Fault Block navigate to "OpenIPSL--> Electrical--> Events--> PwFault".


For System Data navigate to "OpenIPSL--> Electrical-->SystemBase".

Go back to Slide Number 11 From the single line diagram shown here, we can get a clear idea about the network.
Go back to OMEdit. Let us go back to OMEdit.

Let us connect the components together according to the single line diagram shown earlier.

Connect the components as described To connect two components, click on the pwpin of the first component.

Drag and click on the second pwpin as shown.

Connect the components in Network model as shown in SLD. Between Bus1 and Bus2 the Two winding transformer is connected.


Bus 2 and Bus 3 are connected via two power lines in parallel.

Connect the components in Network model as shown in SLD. The infinite bus is connected to Bus3.

But before that rotate the Infinite bus component using command "Ctrl+R"

The Power Fault block is connected to Bus 2.
Connect the components in Network model as shown in SLD. The system data block is placed on the Network model plane.

This provides the system with base and frequency for all the other components.

Switch to Generator model window The Network is connected now and let us go to the Generator modelling window.

The Generator used here is of order six.

Point to PSS and AVR PSS and AVR are connected to the generator to achieve required control.
Point to AVR AVR controls the field voltage of the generator taking the generator terminal voltage as input.
Point to PSS The PSS takes 'w'(Rotor speed) as the input and feeds AVR.
Drag and drop components on to Generator modelling window Now let us drag and drop PSS, AVR and Generator on to the Generator modelling window.
Connect the components as described For Automatic Voltage Regulator (AVR)(Order III) navigate to "OpenIPSL--> Electrical--> Controls--> PSAT-->AVR-->AVRTypeIII".
Connect the components as described For Power System Stabilizer (PSS) (Order II) navigate to "OpenIPSL--> Electrical--> Controls--> PSAT-->PSS-->PSSTypeII".
Connect the components as described For Generator (Order VI) navigate to "OpenIPSL--> Electrical--> Machines--> PSAT-->Order6".
Connect the components as described For Power Pin navigate to "OpenIPSL--> Interfaces--> PwPin".

This Power Pin acts as an interface between the Generator and Network models.

Adjust and resize the components Adjust and resize the components as shown to make it look better.
Connect the components as described Let us connect the components.


The AVR takes the generator terminal voltage as input i.e. Generator "V" is connected to AVRTypeIII "v"

The Initial Field voltage (Vf0) of the generator is given to AVRTypeIII as input.

The output "Vf" of AVRTypeIII is connected to input "Vf" of the generator.
Point to PSS input signal The PSS input signal is connected to 'w'(Rotor speed) of the generator.
Point to the output of PSS The output of PSS is fed to "Vs" of the AVRTypeIII.
Point to the connection The Mechanical power is not controlled here so Pm and Pm0 of the generator are connected together.
Point to PwPin The Power pin of the generator is connected to PwPin.
Point to PwPin This PwPin acts as an interface between the two, Generator and Network classes.
Shift to Icon view of the Generator model Now shift to the icon view using the "Icon View".


This is at the top left corner of the Generator Modelling window.

Here I will use a circle to represent my generator and its controls.
Select the ellipse Select the ellipse at the top toolbar to draw a circle as shown.
Drag the cursor to draw a circle After selecting eclipse, click on the top left corner and drag the cursor to draw a circle.
Shift to network window and drag and drop Generator model onto it Now let us go back to our network modelling window.

Here drag and drop the Generator model in your package.


Navigate to "SMIB_Controlled-->Generator" and connect it to Bus1.

This makes the connections complete.

We can use command "Ctrl+S" and then a pop-up opens up.


Select the desired location and save it.

Slide Number 14

Summary

This brings us to the end of this tutorial.


Let us now summarize.

In this tutorial, we have learnt:


  • What is a controlled SMIB system
  • How to model a controlled SMIB system
  • How to Connect the components
Slide Number 15

Assignment

As an assignment:* We recommend that you take an example network from any textbook or publications.
  • Using the OpenIPSL library components, connect and model the network.
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 site.

https://om.fossee.in/powersystems

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 TBC 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 site.

Slide Number 23

Acknowledgements

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

Thanks

This tutorial is created by Samboju Sai Kiran.

Thank you for joining.

Contributors and Content Editors

Kaushik Datta, Nancyvarkey, Vineeta