OpenModelica/C2/Introduction-to-OMEdit/English-timed

From Script | Spoken-Tutorial
Revision as of 16:09, 22 February 2018 by Sakinashaikh (Talk | contribs)

Jump to: navigation, search
Time Narration
00:01 Welcome to this spoken tutorial on Introduction to OMEdit.
00:07 In this tutorial, we will learn, About OpenModelica Introduction to OMEdit
00:15 Open a Class from Libraries Browser, Simulate a Class from Libraries Browser
00:23 To record this tutorial, I am using OpenModelica version 1.9.5 and Ubuntu Linux OS 14.04
00:36 But, the process demonstrated in this tutorial is identical in other OS such as- Windows, Mac OS X or FOSSEE OS on ARM.
00:48 To follow this tutorial, you should have knowledge of differential and algebraic equations.
00:55 What is OpenModelica? , OpenModelica is an open-source modeling and simulation environment.
01:03 object-oriented, multi-domain modeling language for complex systems.
01:09 intended for both industrial and academic purposes.
01:15 Let's first look at what is OMEdit.
01:19 OMEdit stands for OpenModelica Connection Editor.
01:24 It is a new Graphical User Interface for graphical model.
01:29 It has several features to create and modify the models.
01:34 Now let me go to the OMEdit window.
01:38 I have already installed OMEdit on my system.
01:43 To open OMEdit window, click on Dash Home.
01:47 In the search bar, type OMEdit.
01:51 Click on the OMEdit icon that is displayed.
01:55 On clicking OMEdit icon, we see the Welcome perspective window. It shows a list of Recent Files and Latest News.
02:06 On the left side of OMEdit window, we see the Libraries Browser. Here we can see a list of libraries.
02:15 Let us expand the Modelica library.
02:18 To do this, click on the arrow head to the left of Modelica library.
02:23 Here we can see list of available libraries.
02:28 Click on the arrow head to the left of Thermal library.
02:31 Under Thermal, we find HeatTransfer library. Expand it.
02:37 Once again, we see many different libraries displayed.
02:43 Now, let’s expand the Example library.
02:47 Here we can see different examples of Heat Transfer.
02:52 Let us open the class named TwoMasses.
02:56 Right click on TwoMasses and select Open Class.
03:01 We can also double-click on the class name to open the class.
03:06 Now we are in the Modeling Perspective window.
03:10 The class opens by default in Diagram View.
03:14 Don’t worry if the class doesn’t open in Diagram View.
03:19 I shall show you how to switch between different views.
03:23 On the modeling area window, we can see the Diagram View of models.
03:28 On the top of the modeling area, we see four different icons.
03:33 The first icon represents Icon View.
03:37 Click on it to see the Model representation.
03:41 The next icon represents Diagram view.
03:45 Click on it to see the diagram that represents the model.
03:49 The third icon is Text View icon.
03:52 Let’s click on it.
03:54 Here we see the Modelica code pertaining to Two Masses class.
04:00 In upcoming tutorials, we will learn how to write code in OMEdit.
04:05 Click on the next icon, which is Documentation view.
04:10 A new window named Documentation Browser opens on the right side of OMEdit window.
04:17 Here we can read the given detailed information about the model.
04:23 Now close the Documentation Browser.
04:27 Before simulating a model, we need to check for correctness of the model.
04:32 To do this, first locate Check All Models button on the toolbar.
04:37 This button has white coloured double ticks on it. Click on it.
04:43 Observe that a Messages Browser opens at the bottom of the window.
04:48 This will show messages pertaining to the Modelica class.
04:53 Now, let’s try to simulate the model.
04:56 To do this, click on green colored arrow button on the toolbar.
05:02 This is the Simulate button which is used to simulate the model.
05:06 We can also press Ctrl +B to simulate a Modelica class.
05:11 On simulating, a new window opens.
05:14 It shows the compilation process of the class.
05:18 Once the compilation is successful, the output window displays the message:
05:23 Simulation process finished successfully. Minimize this window.
05:30 By default, Plotting Perspective opens in the OMEdit window.
05:35 If it does not open, click the Plotting button at the bottom right.
05:40 We can also press Ctrl +F3 to open Plotting window.
05:45 Here we can see the simulation results of the Modelica class.
05:50 On the right of Plotting Perspective, look at the Variables Browser window.
05:55 Under Variables Browser: I will demonstrate how to change input variable values of a Modelica class.
06:03 Let’s expand the conduction variable.
06:06 Change the value of G and see how the values of Q_flow and dT change.
06:13 By default, G = 10, Q_flow = 263.599 W and dT = 26.3599 K
06:25 Let us change the value of G from 10 to 15.
06:30 and press Enter.
06:32 Go to the top right corner of the window.
06:35 Click Re-simulate button on the toolbar.
06:39 We get the success message window. Minimize this window.
06:44 Once simulation is completed, note the changes.
06:48 Q_flow = 203.009 W and dT = 13.5339 K
06:56 Now let me show you how to generate a plot.
07:00 Click on the check box against dT variable.
07:04 You can see a plot between time on X-axis and dT on Y-axis.
07:11 This plot describes the temperature difference between two masses varying with time.
07:17 By default, the simulation runs from 0 to 1 unit time.
07:22 We can vary this interval using the Simulation Setup option.
07:27 For this, go to Modeling Perspective.
07:30 Click on Modeling button at the bottom right.
07:33 Or press Ctrl +F2 to open Modeling window.
07:38 Click on Simulation Setup option on the toolbar.
07:43 Simulation Setup window opens.
07:46 Change Stop Time to 5 unit.
07:49 Ensure that Simulate check box is checked.
07:52 Click Ok.
07:55 Immediately, we get the success message window.
07:59 Minimize this window.
08:02 The class is re-simulated with a simulation interval of 0 to 5 unit time.
08:08 We can also obtain a plot between any two variables, other than time.Let’s try that now.
08:16 Click on New Parametric Plot Window on the toolbar.
08:20 Let's select the two variables, Q_flow and dT that we wish to plot.
08:26 We can now see a plot between dT on X-axis and Q_flow on Y-axis.
08:34 It shows the variation of heat flow as the temperature difference between them decreases.
08:40 Once the necessary plot is generated, we can delete the results.
08:45 In the Variables Browser, right click on TwoMasses.
08:49 Select Delete Result. The result has now been deleted.
08:55 OpenModelica has a Help menu.
08:58 Go to the Menu bar and click on Help option.
09:02 Here we can see User Guide, System, Scripting and Modelica Documentation.
09:10 Let's summarize.
09:12 In this tutorial, we have learnt, About OpenModelica
09:16 Introduction to OMEdit
09:18 Open a Class from Libraries Browser
09:21 Simulate a Class from Libraries Browser
09:25 As an assignment: Expand Fluid library in Modelica
09:30 Expand Examples Library in Modelica.
09:34 Simulate HeatExchangerSimulation class in HeatExchanger Library
09:39 Change value of few input variables and re-simulate
09:43 Generate a plot between Q_Flow_1 and time.
09:48 Watch the video available at the following link.
09:51 It summarizes the Spoken Tutorial project.
09:55 The Spoken Tutorial Project Team: conduct workshops using spoken tutorial.
10:01 Gives certificates to those who pass an online test. For more details, please write to us.
10:08 Do you have questions in this Spoken Tutorial? Please visit this site Choose the minute and second where you have the question.
10:17 Explain your question briefly. Someone from the FOSSEE team will answer them.
10:23 The Spoken Tutorial forum is for specific questions on this tutorial. Please do not post unrelated and general questions on them This will help reduce the clutter.
10:36 With less clutter, we can use this discussions as instructional material.
10:42 The FOSSEE team coordinates coding of solved examples of popular books.
10:47 We give honorarium and certificates for those who do this.For more details, please visit this site.
10:56 The FOSSEE team helps migrate commercial simulator labs to OpenModelica.
11:02 We give honorarium and certificates for those who do this. For more details, please visit this site.
11:11 Spoken Tutorial and FOSSEE projects are funded by NMEICT, MHRD, Government of India.
11:20 This tutorial is contributed by Kaushik Datta and Priyam Nayak.

Thanks for joining.

Contributors and Content Editors

Jyotisolanki, Sakinashaikh, Sandhya.np14