Dymola Basics: 3. Package Browser

Written by: David Briant – Project Engineer

This is the third in the Dymola Basics series that are describing some of the basic principles and features within Dymola. This follows the second post about the different layers of a model, such as the Diagram and Text layers. This post will be describing the Package Browser that is found in the Modelling window of Dymola in all the layers described in the previous post.

The Package Browser, highlighted below in Figure 1, is found on the left hand side of the modelling window, above the Component Browser that was described in the first in the Dymola Basics series. It allows a user to explore all the packages and models that are open and available to use; in this case it has the Modelica Standard Library (MSL) open with the DoublePendulum example that is being used throughout this series. There are two different viewing options for the browser, with the default being the Tree View as shown in Figure 1, but there is also the Icon View, shown in Figure 2, that shows the libraries in a similar way to folders, where only the components and packages at that level are displayed. The different views are toggled from the Tree View and Icon View buttons shown at the bottom.

figure-1

Figure 1: Package Browser in the Modelling window of Dymola

The arrows detailed at the bottom of Figure 2 are used to navigate through the package browser; the Previous arrow returns the previous location to the current viewed package; the Next arrow moves forward in the history of viewed packages if the Previous arrow has been used; the Up arrow shows the package above the one currently viewed.

figure-2

Figure 2: Package Browser in Icon View

In either view mode the package browser automatically shows the package of the class that is newly activated to the modelling window, either through switching tabs between classes or opening a new model from a previous one.

As previously mentioned, the Package Browser allows a user to see all opened libraries. Libraries can either be opened by using the Open or Load functions in the File dropdown menu, or if the library locations have been set correctly then the libraries can be selected from Libraries dropdown menu within File.

When a desired class has been found then it can either be opened in the current active modelling window by double clicking the class, or opened in a new tab/window by right clicking the class and selecting the desired option from the subsequent menu, as shown in Figure 3. This menu also allows access to the Parameter, Attributes and Info (documentation) dialog boxes of any class to view all parameters with default values but does not allow any modifications to be made.

figure-3

Figure 3: Package Browser Right Click Menu

The drop down menu in Figure 3 also allows a user to check, copy the full path, find the use of the class and add it as a favourite. The Search function is of best use on packages and allows the search of a selected package rather than searching the whole library.

The Package Browser is used to insert components into models, this can be done by dragging and dropping models into the Diagram Layer or if dragged into the Text layer then it drops the full path.

CONTACT US

Got a question? Just fill in this form and send it to us and we'll get back to you shortly.

Sending

© Copyright 2010-2017 Claytex Services Ltd All Rights Reserved. | Designed by CMA Marketing

Log in with your credentials

Forgot your details?