<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=OpenModelica%2FC3%2FModelica-Packages%2FEnglish-timed</id>
		<title>OpenModelica/C3/Modelica-Packages/English-timed - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=OpenModelica%2FC3%2FModelica-Packages%2FEnglish-timed"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=OpenModelica/C3/Modelica-Packages/English-timed&amp;action=history"/>
		<updated>2026-04-24T18:56:05Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=OpenModelica/C3/Modelica-Packages/English-timed&amp;diff=44090&amp;oldid=prev</id>
		<title>Sandhya.np14 at 11:40, 20 August 2018</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=OpenModelica/C3/Modelica-Packages/English-timed&amp;diff=44090&amp;oldid=prev"/>
				<updated>2018-08-20T11:40:22Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://script.spoken-tutorial.org/index.php?title=OpenModelica/C3/Modelica-Packages/English-timed&amp;amp;diff=44090&amp;amp;oldid=39613&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Sandhya.np14</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=OpenModelica/C3/Modelica-Packages/English-timed&amp;diff=39613&amp;oldid=prev</id>
		<title>Jyotisolanki: Created page with &quot;{| border=1 ||''' Time ''' ||'''Narration'''  |- || 00:01 || Welcome to the Spoken Tutorial on '''Packages'''.  |- ||00:05 || In this tutorial, we are going to learn:  How to...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=OpenModelica/C3/Modelica-Packages/English-timed&amp;diff=39613&amp;oldid=prev"/>
				<updated>2017-10-05T09:32:05Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{| border=1 ||&amp;#039;&amp;#039;&amp;#039; Time &amp;#039;&amp;#039;&amp;#039; ||&amp;#039;&amp;#039;&amp;#039;Narration&amp;#039;&amp;#039;&amp;#039;  |- || 00:01 || Welcome to the Spoken Tutorial on &amp;#039;&amp;#039;&amp;#039;Packages&amp;#039;&amp;#039;&amp;#039;.  |- ||00:05 || In this tutorial, we are going to learn:  How to...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{| border=1&lt;br /&gt;
||''' Time '''&lt;br /&gt;
||'''Narration'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:01&lt;br /&gt;
|| Welcome to the Spoken Tutorial on '''Packages'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
||00:05&lt;br /&gt;
|| In this tutorial, we are going to learn:  How to create a '''package''' of '''classes''' in '''Modelica'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
||00:12&lt;br /&gt;
||How to reference '''classes''' in a '''package'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
||00:16&lt;br /&gt;
||How to import a '''package''' and How to use '''Modelica Library'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:22&lt;br /&gt;
|| To record this tutorial, I am using :  '''OpenModelica 1.9.2''' and '''Ubuntu''' Operating System version '''14.04''' and '''gedit'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
||00:35&lt;br /&gt;
||'''Windows''' users may use '''Notepad''' or any other text editor instead of '''gedit'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:42&lt;br /&gt;
|| To understand and practice this tutorial, you need Knowledge of '''class''' and '''type definition''' in '''Modelica''' &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
||00:51&lt;br /&gt;
|| Prerequisite tutorials are mentioned on our website. Please go through them.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:56&lt;br /&gt;
|| A '''Package''' is a specialized '''class''' in '''Modelica'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
||01:01&lt;br /&gt;
||It is a collection of '''classes'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
||01:04&lt;br /&gt;
||It can be stored as a '''single file''' or a '''directory'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
||01:08&lt;br /&gt;
||We will first learn about '''single file storage'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 01:12&lt;br /&gt;
|| In '''single file storage''' all '''classes''' belonging to a '''package''' are written in a '''single file'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
||01:20&lt;br /&gt;
||It is not recommended as it may get lengthy in a few cases.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 01:24&lt;br /&gt;
|| Now let me switch to '''OMEdit''' to demonstrate '''single file storage''' for a '''package'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 01:31&lt;br /&gt;
|| Please download and save all the files available on our website. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 01:36&lt;br /&gt;
||You may see that there is a file and a folder bearing the name '''spokenTutorialExamples'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
||01:43&lt;br /&gt;
||Please download both of them. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 01:46&lt;br /&gt;
|| Now, let me open the necessary files in '''OMEdit'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
||01:51&lt;br /&gt;
||'''Press Ctrl + O'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
||01:54&lt;br /&gt;
||Go to the appropriate location on your system and select   '''spokenTutorialExamples.mo''', &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
||02:02&lt;br /&gt;
|| '''bouncingBallWithUserTypes.mo''' and  '''bouncingBallWithImport'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:08&lt;br /&gt;
||You may also open each of them individually.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:12&lt;br /&gt;
||Note that I have not selected '''spokenTutorialExamples''' folder.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:17&lt;br /&gt;
||We shall discuss more about it when we look at directory storage.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
||02:23&lt;br /&gt;
||Click on '''Open'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:25&lt;br /&gt;
||You may see that '''spokenTutorialExamples''' package is now seen in '''Libraries Browser'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:32&lt;br /&gt;
|| Double click on '''spokenTutorialExamples''' icon.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:37&lt;br /&gt;
|| Switch to '''Text View''' if the file opens in '''Icon/Diagram View'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:42&lt;br /&gt;
|| Now let me discuss '''spokenTutorialExamples'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:47&lt;br /&gt;
||First line defines the name of a '''package'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:51&lt;br /&gt;
||Evidently, name of this package is '''spokenTutorialExamples'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
||02:56&lt;br /&gt;
|| This package consists of '''freefall class'''  '''bouncingBall''' model and '''bouncingBallWithUserTypes''' models.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:08&lt;br /&gt;
|| '''end statement''' defines where the package ends.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:13&lt;br /&gt;
|| We have viewed all '''classes''' and '''models''' of this package at one place. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:19&lt;br /&gt;
||Now, let us learn how to view individual ''classes'' in a package.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:24&lt;br /&gt;
|| Click on the (+) button besides '''spokenTutorialExamples''' icon in '''Libraries Browser'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:31&lt;br /&gt;
||This displays the names of '''classes''' present in this package.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:36&lt;br /&gt;
|| Double-click on '''freeFall''' in '''Libraries Browser'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:40&lt;br /&gt;
||'''freeFall class''' has now opened. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:43&lt;br /&gt;
||Individual '''classes''' of a package may be simulated. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:47&lt;br /&gt;
||But the package itself can not be simulated.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:52&lt;br /&gt;
|| Let me go back to '''spokenTutorialExamples''' tab.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:57&lt;br /&gt;
|| Note that '''Simulate''' button doesn’t appear in the toolbar which indicates that this package cannot be simulated.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:06&lt;br /&gt;
|| Now let me unload '''spokenTutorialExamples''' from OMEdit. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:12&lt;br /&gt;
||Do a right-click and select '''unload'''. Select '''Yes'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:18&lt;br /&gt;
||This is done so as to avoid conflict when demonstrating directory storage.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:24&lt;br /&gt;
|| Now let me go back to the slides.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:27&lt;br /&gt;
|| In '''Directory storage classes''' are stored in separate files.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:32&lt;br /&gt;
||Name of directory is same as that of the package.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:37&lt;br /&gt;
||A file named '''package.mo''' is to be included in the directory and  Each '''class''' starts with a '''within statement'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:47&lt;br /&gt;
|| Now, let me demonstrate the folder '''spokenTutorialExamples''' that you’ve downloaded. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:54&lt;br /&gt;
||Note that this folder represents the same package as that we have already discussed. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:02&lt;br /&gt;
|| Let me demonstrate the file structure of this folder. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:06&lt;br /&gt;
||Go to the location where you saved the downloaded files on your system.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:12&lt;br /&gt;
|| Double-click on '''spokenTutorialExamples''' folder. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:17&lt;br /&gt;
||Notice that the folder has following files:   '''package.mo''',  '''freeFall.mo''', '''bouncingBallWithUserTypes''' and  '''bouncingBall'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:30&lt;br /&gt;
||We shall understand more about directory storage using both '''OMEdit''' and '''gedit'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:38&lt;br /&gt;
|| Note that '''package.mo''' indicates that this folder represents a package. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:45&lt;br /&gt;
||Without this file, the folder doesn’t represent a '''Modelica package'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:51&lt;br /&gt;
|| Now, let me switch to '''OMEdit''' to demonstrate directory storage.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:57&lt;br /&gt;
||Press '''Ctrl + O'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:59&lt;br /&gt;
||Navigate to the '''spokenTutorialExamples''' folder that you have downloaded.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:05&lt;br /&gt;
||Select '''package.mo''' from this folder and click on '''Open'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
||06:11&lt;br /&gt;
|| '''spokenTutorialExamples''' package can now be seen in '''Libraries Browser'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:17&lt;br /&gt;
||Double-click on '''spokenTutorialExamples''' icon.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:22&lt;br /&gt;
|| Open the package in '''Text View'''  if it opens in either '''Icon/Diagram View'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
||06:27&lt;br /&gt;
|| If you scroll down, you may notice that this package is the same as that we have seen in '''single file storage'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:36&lt;br /&gt;
|| The difference between single file and directory storage can only be understood when we open this '''package''' using a text editor like '''gedit'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:47&lt;br /&gt;
||You may use '''Notepad''' or any other text editor if you are using '''Windows'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:53&lt;br /&gt;
|| Now let me unload '''spokenTutorialExamples''' package from 'OMEdit'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
||06:59&lt;br /&gt;
|| Switch to '''spokenTutorialExamples''' folder and open all the files using '''gedit'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:08&lt;br /&gt;
||Now all the files are open in '''gedit'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:13&lt;br /&gt;
||Let us take a look at '''package.mo''' first.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:17&lt;br /&gt;
|| '''within statement''' indicates that this file represents a '''package'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:21&lt;br /&gt;
|| Name of this package is '''spokenTutorialExamples'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:25&lt;br /&gt;
||Note that the name of folder was '''spokenTutorialExamples'''  as well.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
||07:31&lt;br /&gt;
|| '''package.mo''' file can only contain the '''within statement''' and '''package''' declaration.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:38&lt;br /&gt;
|| Let me switch to '''freeFall''' tab.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:41&lt;br /&gt;
|| This '''within statement''' indicates that '''freefall class''' belongs to '''spokenTutorialExamples''' package. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:49&lt;br /&gt;
||Rest of this file has information specific to '''freeFall class'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:54&lt;br /&gt;
|| You may see that other models in this package namely '''bouncingBallWithUserTypes''' and '''bouncingBall''' follow a similar syntax as well. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:04&lt;br /&gt;
||But, we didn’t observe '''within statement''' when we opened the package in '''OMEdit'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:11&lt;br /&gt;
||This indicates that '''within statement''' helps '''OMEdit''' recognize the file structure. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:17&lt;br /&gt;
||Hence, it is omitted by '''OMEdit''' while displaying the '''package'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:22&lt;br /&gt;
|| Let me go back to the slides.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:25&lt;br /&gt;
|| We shall now understand more about '''Modelica Library'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:29&lt;br /&gt;
||'''Modelica Library''' is an open-source package.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:33&lt;br /&gt;
||'''OMEdit''' automatically loads it for every session. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:38&lt;br /&gt;
||It can be seen in '''Libraries Browser'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:41&lt;br /&gt;
||It has '''classes''' from '''mechanical, electrical''' and '''thermal''' domains.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:46&lt;br /&gt;
||'''Classes''' of this library can be referenced and used.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:51&lt;br /&gt;
|| Now let me switch to '''OMEdit''' to demonstrate '''Modelica Library'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:57&lt;br /&gt;
|| Locate '''Modelica''' icon in '''Libraries Browser''' and expand it.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:03&lt;br /&gt;
||Note that '''Modelica Library''' has packages named '''Blocks, Complex Blocks''' etc. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:10&lt;br /&gt;
||You may note that a package may further contain packages as well as is evident here. Of special mention, is the '''SIunits''' package. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:22&lt;br /&gt;
||Expand it. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:25&lt;br /&gt;
|| This package has type definitions for physical quantities like '''Angle, Length, Position''' etc. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:32&lt;br /&gt;
||We shall see how to use these type definitions using '''bouncingBallWithImport class'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:39&lt;br /&gt;
||Compress '''SIunits'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:42&lt;br /&gt;
|| And double-click on '''bouncingBallWithImport''' and '''bouncingBallWithUserTypes'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:49&lt;br /&gt;
|| Let me shift '''OMEdit''' window to the left for better visibility.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:55&lt;br /&gt;
|| We shall first look at '''bouncingBallWithUserTypes'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:59&lt;br /&gt;
||We have learnt about this model in the prerequisite tutorials.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 10:03&lt;br /&gt;
|| This model has type definitions named '''Length''' and '''Velocity'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 10:09&lt;br /&gt;
||We can instead use the type definition in '''SIunits''' instead of defining them explicitly in every model.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 10:18&lt;br /&gt;
||We shall see how to do that using '''bouncingBallWithImport''' model.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 10:23&lt;br /&gt;
|| Let me switch to '''bouncingBallWithImport'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
||10:27&lt;br /&gt;
|| A '''class''' in a package is referenced to using '''dot'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 10:32&lt;br /&gt;
||'''Modelica.SIunits''' refers to '''SIunits''' package which belongs to '''Modelica''' library. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
||10:39&lt;br /&gt;
|| Variable '''h''' is declared to be of '''Length''' type which is defined in '''SIunits''' package.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
||10:47&lt;br /&gt;
|| Similarly, variable '''v''' is declared to be of '''Velocity''' type which is defined in '''SIunits''' package.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 10:56&lt;br /&gt;
|| Note that parameters '''radius''' and '''g''' are declared in a similar fashion.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 11:03&lt;br /&gt;
||Now let me '''Simulate''' this model.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 11:07&lt;br /&gt;
||Click on '''Simulate''' button in the toolbar.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 11:10&lt;br /&gt;
||Close the pop up window.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 11:13&lt;br /&gt;
||Select '''h''' in the '''Variables Browser'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
||11:17&lt;br /&gt;
|| Note that the plot obtained is similar to the one seen in the case of'''bouncingBallWithUserTypes'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 11:25&lt;br /&gt;
||let me de-select '''h'''. Delete the result. Switch to '''Modeling''' perspective.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 11:33&lt;br /&gt;
|| It is tedious to use the full name of a class every time. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 11:38&lt;br /&gt;
||This can be simplified using '''import statement'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 11:42&lt;br /&gt;
||Now, we shall type a few '''statements''' that show the use of '''import'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 11:48&lt;br /&gt;
||The '''statements''' to be typed are provided in a text file named '''import-statements.txt'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 11:56&lt;br /&gt;
||Go to the location where you saved it on your system. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 12:01&lt;br /&gt;
||Double-click on '''import-statements.txt'''. '''Windows''' users may use '''Notepad''' to open this file.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
||12:11&lt;br /&gt;
|| The file is now open in '''gedit'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 12:14&lt;br /&gt;
||Copy all the statements using '''Ctrl+C''' or by doing right-click.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 12:21&lt;br /&gt;
|| Switch to '''OMEdit'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 12:23&lt;br /&gt;
||Paste all the '''statements''' at the beginning of the model. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 12:28&lt;br /&gt;
|| Delete the '''declaration statements''' for '''Length''' and '''Velocity,''' which have been defined before.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 12:36&lt;br /&gt;
||Delete the extra spaces.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 12:39&lt;br /&gt;
||Save this model by pressing '''Ctrl + S'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 12:43&lt;br /&gt;
||Now the model is complete and ready for simulation.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 12:48&lt;br /&gt;
|| Click on '''Simulate''' button to simulate it.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 12:52&lt;br /&gt;
||Close the pop up window.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 12:54&lt;br /&gt;
|| Select '''h''' in the '''Variables Browser'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 12:58&lt;br /&gt;
||Note that the plot is same as in previous case. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 13:03&lt;br /&gt;
||De-select '''h''' and delete the result.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 13:07&lt;br /&gt;
||Switch to '''Modeling''' perspective.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
||13:10&lt;br /&gt;
|| Now let us now try to understand the '''import''' statements. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 13:15&lt;br /&gt;
||Using the '''import statements''', '''Modelica''' looks up for '''Length''' and '''Velocity''' type definitions using the path mentioned here.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 13:25&lt;br /&gt;
||This saves the trouble of referring to the package every time.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 13:30&lt;br /&gt;
||A detailed discussion of '''lookup rules''' is beyond the scope of this tutorial.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 13:36&lt;br /&gt;
|| Now let us see how we can replace these two '''import statements''' by a single '''import statement'''.Delete the two '''statements'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
||13:47&lt;br /&gt;
|| And type '''import (space) Modelica (dot) SIunits (dot) asterisk (semicolon)'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 13:58&lt;br /&gt;
||Save this model by pressing '''Ctrl + S''' &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 14:02&lt;br /&gt;
|| This '''statement''' is known as a '''wild-card import'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 14:06&lt;br /&gt;
||This way, any '''class''' from '''SIunits''' may be accessed without explicitly mentioning it.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 14:14&lt;br /&gt;
|| Now let me '''Simulate''' this model.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 14:17&lt;br /&gt;
||Click on '''Simulate''' button.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 14:20&lt;br /&gt;
||Close the pop up window.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 14:22&lt;br /&gt;
|| Select '''h''' in the '''Variables Browser'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 14:25&lt;br /&gt;
||You may notice the similarity of plot once again.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 14:29&lt;br /&gt;
||De-select '''h''' and delete the result.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
||14:32&lt;br /&gt;
|| Go back to '''Modeling perspective'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 14:35&lt;br /&gt;
|| Now let me switch to the slides.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 14:38&lt;br /&gt;
||As an assignment,  Declare variable '''h''' and '''v''' of '''freeFall class''' as '''Length''' and '''Velocity''' types respectively.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 14:47&lt;br /&gt;
||These type definitions can be found in '''SIunits''' package of '''Modelica''' library.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 14:54&lt;br /&gt;
|| This brings us to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
||14:58&lt;br /&gt;
|| Watch the video available at the link shown below: ][http://spoken-tutorial.org/ org] /What\_is\_a\_Spoken\_Tutorial&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 15:02&lt;br /&gt;
||It summarises the '''Spoken Tutorial project'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 15:05&lt;br /&gt;
||If you have questions in this '''Spoken Tutorial''', please visit the website shown.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
||15:11&lt;br /&gt;
|| We coordinate coding of solved examples from popular books. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 15:15&lt;br /&gt;
||We give honorarium to contributors.  Please visit our website.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 15:21&lt;br /&gt;
|| We help migrate labs from commercial simulators to '''OpenModelica'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 15:26&lt;br /&gt;
||Please visit the following website.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 15:29&lt;br /&gt;
|| '''Spoken Tutorial Project''' is supported by '''NMEICT, MHRD''' Government of India.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 15:36&lt;br /&gt;
|| We thank the development team of '''OpenModelica''' for their support.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 15:41&lt;br /&gt;
|| I would like to thank you for joining me in this tutorial. &lt;br /&gt;
&lt;br /&gt;
Good bye.&lt;/div&gt;</summary>
		<author><name>Jyotisolanki</name></author>	</entry>

	</feed>