Workspaces
Library Bar
General Information about the Library Bar
By default the comment is displayed as the label of the individual entries in the tree view. This comment is displayed for the SimulationX libraries in the selected language (German or English). For the elements of the Modelica Standard Library in contrast the name of the type is displayed instead of the comment. You can change the display of the symbols and the behavior when double-clicking on them in the properties of the Library Bar.
Figure 1: Settings of the Library Bar
In the toolbar of the library bar there is an input field for the search for element types. After the button "Search" has been pushed the program starts searching the tree view for the input character string starting with the currently selected element type. In the search both the name and the comment of the types are included. When the search has been successful the found entry is selected. By pushing the Search button again the search can continue. By pressing the filter button, the view of the library bar can be adjusted by sorting or filtering. The icons of the element types in the tree view can be highlighted specifically by an additional marking.
Context Menu
The following commands are available via a context menu for the selected entry of the tree view. The icons given at the edge inform to which element types the respective command can be applied on principle. The applicability of a command can depend on further conditions which will be mentioned specifically in the text.
At the bottom of the library bar a preview picture and some useful information regarding the entry which you selected in the tree view are displayed in a small separate window area. Via a hyperlink the directory which contains the file belonging to the respective type can be opened in Windows Explorer.
Tree View Elements
The library bar (2) serves for selection, management and editing of element types. Logically related element types are combined in groups which are structured hierarchically and displayed in a tree view similar to the folder view in Windows Explorer. The folders contained in the library bar can be subdivided into the following groups:
Favorites
The favorites bar can extend the library bar or even replace it if configured accordingly. The folder "Favorites" which used to be part of the library bar in SimulationX up to version 3.7 has been moved to the new favorites bar. Favorites can be set as usual by dragging and dropping individual types or entire packages. The favorites bar can be enabled or disabled from the View menu.
You can store links to frequently used element types or libraries under Favorites by drag and drop. Creating new groups permits the creation of a customized folder structure independently of the actual name hierarchy of the contained element types. The contents of the Favorites folder are stored individually for every user in the file usersettings.mo in the directory for the user data of the user (e.g. C:\Users\<user>\AppData\Roaming\ESI Group\SimulationX 4.3). |
SimulationX Libraries
How to exclude a library from the automatic loading at the program start
-
In the menu "File" click "Options".
-
In the dialog field "Options" select the tab "Libraries & Add-ons".
-
Remove the selection mark for the library which you want to exclude from the automatic loading at the program start.
Modelica Standard Library
You will find the contents of the Modelica Standard Library in this folder. The Modelica types contained there can be opened in TypeDesigner and here you can check the contained components and the Modelica source code. However you cannot change or delete the element types. |
For installation hints refer to section "Installation" of the Modelica Standard Library.
Other Modelica libraries
Loaded SimulationX models
The library bar also holds loaded SimulationX models (*.ism) and projects (*.isx). This makes
handling models inclduing the referenced libraries, local classes/types and external data much
easier:
|
User-defined types
New groups, element types or other Modelica classes are created by first selecting in the tree view of the library bar the group which is to contain the newly to be created type. The desired type can be added via the context menu then. For further editing the TypeDesigner is opened (see section "TypeDesigner") or, in the case of a newly created group, a corresponding dialog field is displayed.
Output Area
The output area logs messages, tracing outputs, warnings and error messages. These messages are allocated to different categories (e.g. simulation, file). The content of the output area can be stored, exported in text format and printed. For more information, see the section on "Tracing".
Figure 2: Output area
Model Explorer
The tree view of the model explorer represents all components and types used in the model. use the filter button to filter the entries of the Model Explorer. Settings are stored and are available after a restart of SimulationX again. For a selected element (e.g. "Mass1") or a connection the parameters and result variables are listed in tabular form. If no model elements have been marked, the general parameters and result variables of the model will be displayed.
Figure 3: Model Explorer: (1) Components, (2) Parameters Table, (3) Results Table, (4) Types
The Model Explorer windows can be arranged freely within the SimulationX workspace. You can also hide views that are not needed. The tree views, just like the library bars, come with options for sorting and filtering. Use this feature to hide entries that you do not need.
Component Properties
Select the component (element or connection) which you want to edit, either in the diagram view or in the tree view of the model explorer. A component, selected in the diagram view, is selected also in the tree view of the model explorer and vice versa. For the selected component the related parameters and result variables are shown in two tables. To edit an entry you click on the desired table field. Now you can edit the contents of the field or choose an entry from the corresponding selection list. As long as the field is edited, the corresponding parameter is not updated. The transfer of the new value to the parameter takes place only after completion and validation of the input. For the completion of the input there are the following possibilities:
- Change to another row using the cursor keys ↑ and ↓ res. a mouse click on the new field
- Press the Return key
- Change the focus to another window, e.g. by a click to the diagram view.
Modifications can be
undone using the command "Undo" in the menu "Edit". By clicking on the header of the parameter or result variable table with the right mouse button, you can select the columns to be displayed by ticking them accordingly. These are the following for parameter tables and result variable tables:


All columns can be shown with ascending/descending sorting order. To this end click on the corresponding column
header and the sorting will proceed. ( ascending;
descending). To
toggle the protocol attribute of a result variable click on the corresponding symbol in the protocol column.
Drag and drop can move activated protocol symbols into the diagram view or an already opened result window. For
this click on the protocol symbol and move it to the desired place, while keeping the button pressed. When
releasing the button, the result protocol is shown either in a new or in an existing result window.

The current value of a result variable cannot be changed. However, the unit of measurement, in which the variable should be shown, can be changed.
Parameters and Result Variables
A parameter or a result variable can be added to the current model or to a user-defined element type as follows:
Select the model or an element type defined in the model in the tree view of the model explorer.
Open the context menu in the corresponding table of the model explorer, using the right mouse button.
Choose the item "New". The new variable or parameter will be shown in the table.
Name and comment of the new variable or parameter can be edited directly in the table.
A parameter or a result variable can be removed from the current model or from a user-defined element type as follows:
Select the model or an element type defined in the model in the tree view of the model explorer.
Select the desired parameter or variable in the corresponding table.
Perform the command "Delete" from the context menu. The parameter or the variable will be removed from the table and the model. You can only remove parameters or variables, which you have added beforehand.
Result Window Manager
The buttons are described in chapter Managing result windows. By ticking/unticking in the list of the result windows you can display/hide individual result windows.
