Claytex logo
Blog

Tech Blog


What’s new in Dymola 2013

The new release of Dymola 2013 brings a variety of new features and improvements to assist the user.  Some of the highlights are: Submodel aggregation, providing a convenient way to create submodels from selected sets of components in a few clicks of the mouse. This feature will be elaborated further in a future Tech Blog [...]

Posted on Friday, May 11th, 2012


Creating and using subsystems

A subsystem in Dymola is a model that is used inside other models and is usually used to define models that correspond to physical parts.  Making use of subsystems is important as it reduces the work required to build new models by increasing the reuse of existing models and reducing the future maintenance effort. The [...]

Posted on Wednesday, December 7th, 2011


Dymola-Simulink interface

Interfacing Dymola and Simulink is quite straight forward. In this example I will look at exporting a simple driven pendulum model from Dymola to Simulink as an s-function. First, create a copy of the example model  Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum model and call it DrivenPendulum. To setup the model for use in Simulink we have to define the [...]

Posted on Wednesday, November 16th, 2011


Modelica XML Reader Released

Claytex have released a new Modelica package that can read XML documents to load parameter values in to a Dymola model.  The XML Reader is a set of Modelica classes for reading parameter values from an XML document directly into a Modelica model.  The values are read from the XML document during model intialisation which [...]

Posted on Thursday, September 29th, 2011


The difference between class duplication and class extension

Duplicate or Extend? What is the difference? There is a fundamental difference between duplicating a class and extending a class (Blocks, Models, Functions, Types, Enumerations are all types of Class). Duplicating: When we duplicate a class we effectively create a separate instance or copy of that class. Any changes to the original class or duplicate [...]

Posted on Tuesday, September 27th, 2011


State Selection: Overview and Definitions

In most cases state selection should not concern the user and should be done automatically by Dymola. There are a number of times however when it is useful for the model developer to be able to influence the state selection. Using knowledge of the system being modelled, the state selection can be used: To improve [...]

Posted on Wednesday, August 3rd, 2011


Adding additional Units? Utilising Type definitions

What is a type class? Often in a physical modelling environment, the parameters and variables used equate to physical quantities defined as a number and unit declaration. In Modelica this unit quantity is defined using a ‘type’ class: type Density = Real ( final quantity=”Density”, final unit=”kg/m3″, min=0); The Modelica Standard Library includes definitions of the units [...]

Posted on Tuesday, July 12th, 2011


Useful Keyboard Shortcuts and Commands

The following list of Keyboard Shortcuts and Commands are used on a daily basis. Note, this list is not exhaustive, see Dymola User Manuals for more information. Shortcuts: Check Syntax and Format = Ctrl + L Check Model = F8 Code Completion = Ctrl + Space Duplicate = Ctrl + D Edit Function Call (text [...]

Posted on Monday, July 4th, 2011


How can I make my models run faster?

Improving model efficiency and lowering run times: There are 4 common causes of slow-running models: Poor initialisation values Large number of events during simulation Large number of non-linear systems of equations in model Large numbers of numerical jacobians in model Poor Initialisation Poor initialisation values can lead to slow model initialisation and large amounts of [...]

Posted on Monday, June 20th, 2011


Exporting models for co-simulation in other tools

With the release of Dymola 2012 it is now possible to compile models to the FMI standard for co-simulation.  This means that a model built in Dymola can be compiled with an open standard interface and coupled to other simulation and integration tools.  Dymola uses the SUNDIALS suite of numerical solvers for co-simulation and these [...]

Posted on Tuesday, June 14th, 2011