OpenModelica-OpenIPSL/C2/Introduction-to-OpenIPSL/English
Title of script: Introduction to OpenIPSL
Author: S Sai Kiran (IIT Bombay)
Keywords: OpenModelica, OpenIPSL, library structure, power systems, spoken tutorial, video tutorial
Visual Cue | Narration |
Show slide
Slide Number 1 |
Welcome to Spoken Tutorial on Introduction to OpenIPSL. |
Slide Number 2
Learning Objectives |
In this tutorial, we will learn:
|
Slide Number 3
System Requirements |
To record this tutorial, I am using
|
Slide Number 4
Prerequisites |
To follow this tutorial, you should have knowledge of :
For prerequisite OpenModelica tutorials, please visit this website. |
Slide Number 5What is OpenIPSL? | What is OpenIPSL?
|
Slide Number 6
|
|
Slide Number 7
Download OpenIPSL |
To download OpenIPSL from GitHub, go to the link given below: |
Now, we will see how to download and include OpenIPSL in OpenModelica. | |
Make sure you have working internet connection | |
https://github.com/OpenIPSL/OpenIPSL
Open Firefox web browser Copy the link and paste it in address bar |
For this, open your default web browser. I am opening Firefox web browser.
In the address bar, type “github.com/OpenIPSL/OpenIPSL” Press Enter. |
A web page opens.
I am scrolling down to view contents of the file | |
Cursor to Clone or download button.
Highlight the Clone or download button
|
At the right, we can see a green coloured Clone or download button.
|
Point to Clone with HTTPS | Clone with HTTPS pop-up opens. |
Click on Download ZIP | Click on Download ZIP. |
Point to Save File dialogue box | Save File dialog box opens.
|
Cursor on the extracted folder |
Now go to the folder where the file is downloaded.
Extract the OpenIPSL-master.zip file to any desired location of your computer. |
Click on OpenIPSL-master folder | Double-click on OpenIPSL-master folder to open it. |
Click on OpenIPSL | Next, double-click on the folder OpenIPSL. |
Point to package.mo package
Highlight the package.mo package |
Here, we can see that OpenIPSL folder contains the package.mo modelica file. |
Now let us see how to include this in OpenModelica. | |
Open OMEdit | I have already opened OpenModelica on my machine. |
Point to Libraries Browser Highlight the Libraries Browser
File >> System Libraries >> OpenIPSL |
There are three ways to include this file in OpenModelica.
|
Highlight OpenIPSL in libraries browser | Click on OpenIPSL
We can see that it is included in libraries browser. |
Expanding OpenIPSL Library
|
Let us expand the OpenIPSL library.
Here we can see the list of all available libraries. |
For a better understanding of the libraries, let’s go back to the slides. | |
Slide number 8
|
So, we saw that there are in total 5 libraries, which are:
|
Slide number 9
Library structure |
These components serve as basic building blocks for modelling a power network.
|
Slide number 10
Library structure |
These example models help the user to get acquainted with different models.
|
Now let us look into one of these example models. | |
For this let us go back to OpenModelica.
Now let me maximise the libraries browser window for better view. | |
Point to Machines >> PSAT >> InductiveMotorI_SMIBOpenline_Test. | Now expand the Examples category and navigate to
Machines >> PSAT >> Now scroll down to view InductiveMotorI_SMIBOpenline_Test. |
Double click on InductiveMotorI_SMIBOpenline_Test | Double-click on InductiveMotorI_SMIBOpenline_Test
|
You can also close the messages browser for better view. | |
Point to the components
Highlight all the components |
We can see that this simple model consists of an Infinite bus.
|
Double click on the components | Double-click on the components.
|
Close this parameter window | |
Double click on the pwLine2
|
Double-click on pwLine2.
|
Point to t1 and t2 values | Here this power line opens at time t1 = 2 seconds and closes back at t2 = 3 seconds. |
Close the Parameters window | Close this window. |
Now let's see the effect of the opening on the induction motor voltage profile. | |
Click on the Simulation Setup option on the toolbar. | Click on the Simulation Setup option on the toolbar. |
Point to Simulation Setup window. | The Simulation Setup window opens. |
Cursor to Start Time and Stop Time values |
By default, the simulation runs from 0 to 20 unit time. |
Select Method as dassl | Under Integration tab, select Method as dassl, if not already selected, by default. |
Ensure that Simulate checkbox is checked.
|
Ensure that Simulate checkbox is checked and then click on the Ok button. |
/* Switching to Simulation Output Window */ | On simulating, a new window opens. |
Hover the mouse on the simulation output window. | It shows the compilation process of the class. |
Point to or highlight the success message window.
The Simulation finished successfully |
Once the compilation is successful, the output window displays the message:
|
Close this window. | Close the window. |
Switching to Plotting Perspective
|
By default, Plotting Perspective opens in the OMEdit window.
|
Point to Variables Browser.
|
Under Variables Browser, expand the motorTypel variable.
|
I am closing the message browser for better view. | |
The cursor on the plot
Highlight the drop in voltage. |
We can see the drop in voltage for the duration of 1 second.
|
In the upcoming tutorials, we will learn more about how to simulate these models and analyse the results. | |
Slide Number 11
Summary |
Let’s summarize.
|
Slide Number 12
Power System Simulation Project |
The FOSSEE team invites contributions to develop power system networks using OpenIPSL library.
|
Slide Number 13
About the Spoken Tutorial Project |
Watch the video available at the following link.
It summarizes the Spoken Tutorial project. |
Slide Number 14
|
The Spoken Tutorial Project Team conducts workshops and gives certificates.
|
Slide Number 15
|
Do you have questions in this Spoken Tutorial?
|
Slide Number 16
|
Do you have any general/technical questions on OpenModelica?
Please visit the FOSSEE forum and post your question
|
Slide Number 17
|
The FOSSEE team coordinates coding of solved examples of popular books.
|
Slide Number 18
|
The FOSSEE team helps migrate commercial simulator labs to OpenModelica.
|
Slide Number 19
|
Spoken Tutorial and FOSSEE projects are funded by NMEICT, MHRD, Government of India. |
Slide Number 20
|
This tutorial is created by Samboju Sai Kiran.
|