Dymola 2020 workflow tips & tricks: shortcuts

We’re all familiar with shortcuts to improve workflow. Some are widely known, such as Ctrl + C and Ctrl + V to quickly copy and paste text or images (or components/models in Dymola). Others are not, but that doesn’t make them less handy. Here are 3 simple Dymola shortcuts and tricks that can be incorporated into your daily work.

Ctrl + Left click on Modelica Paths

Every component used within a model features the path declaration within the text layer. Often, I want to open a component from the declaration for a multitude of reasons. One method to avoid having to go and hunt down the component in the package browser is to right click the Modelica path, then select “open in a new tab” from the resulting menu.

Figure 1: Right clicking on a Modelica path opens up a menu which enables the user to open the class in either another tab or window.
Figure 1: Right clicking on a Modelica path opens up a menu which enables the user to open the class in either another tab or window.

While effective, I find this method clunky. The same workflow action can be initiated by simply holding Ctrl and left clicking on the Modelica path of the component you wish to open in a new tab. Done!

Figure 2: By holding Ctrl, a new pointer appears. This enables the user to open the model in a new tab by now simply left clicking.
Figure 2: By holding Ctrl, a new pointer appears. This enables the user to open the model in a new tab by now simply left clicking. (Pointer icon: Free Icons Library).

Showing component variables in the variable browser

Navigating through the model diagram in the Simulation tab provides a useful way of isolating specific results to plot. Previously, when you have found the component featuring the variable you desired to plot, you had to right click on the icon of the component, before selecting find variables. This opens the list in the variable browser.

In Dymola 2020, the workflow is streamlined. All you need to do is to click on the component and the same action automatically occurs within the variable window. Nice!

Figure 3: From the diagram in the simulation window, simply clicking on the component will open the component variable tree in the variable browser.
Figure 3: From the diagram in the simulation window, simply clicking on the component will open the component variable tree in the variable browser.

Positioning the simulation log window

Early on in using Dymola 2020, users will have noticed that the Simulation Log, the small window which pops up when any model is translated or simulated, has undergone a change. In previous versions of Dymola, this was a free-standing window, able to be moved around the screen where desired. Whilst this was handy on multi-monitor setups, it was not optimal when using a single screen. So, in Dymola 2020 and onward, it is a dock-able element of the user interface.

What’s more, the window can be moved around the simulation window into your desired position. It can be completely undocked from the interface too. To re-dock it, simply double click the task bar at the top of the log window. Immediately, it will redock in the location where it was last docked.

Figure 4: Double clicking on the top of the simulation log window will dock/un-dock the window from the last saved position. (cursor icon, freepik)
Figure 4: Double clicking on the top of the simulation log window will dock/un-dock the window from the last saved position. (cursor icon, freepik)

Conclusion

I often come across these little ‘gems’ when working with various people… sometimes during training courses and sometimes with Dassault Systemes employees. Anyway, these were a few recent additions, and I hope they help you get just a little more efficient in your Dymola modelling.

Nate Horn – Vice President

Please get in touch if you have any questions or have got a topic in mind that you would like us to write about. You can submit your questions / topics via: Tech Blog Questions / Topic Suggestion.

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-2023 Claytex Services Ltd All Rights Reserved

Log in with your credentials

Forgot your details?