Real-Time Simulation

Dymola allows to export both the model than the related source code. It is possible to export models in three different ways, each one with different properties. Moreover, it is possible to execute run-time simulations models (which have been developed with a standard Dymola license), on other computers using the run-time license.

Real-Time Simulation

This option allows to use models developed in environments which do not support Microsoft C compilators. The options is specifically designed for real time platforms as dSPACE and xPC, used from Dymola for hardware in the loop simulations (HILs). The following restrictions are applied:

  • Real time simulations allow to export only fixed-step integration models;
  • Run-time exported routines does not include the most advanced ones, included in the libraries.

FMI (Functional Mock-up Interface) Interface

This interface, present from the Dymola release 7.4 on and developed within the Modelisar (Modelisar) project, describes the dynamic model of the system, composed by algebraic, differential and discrete equation models, allowing to solve these operations in different simulation environment or in embedded control systems, by using explicit or implicit integrators, with fixed or variable time step. (More info link)

Binary Model Export

It is possible to export the code in binary, to export it on pcs with Windows but without Dymola license. The simulation capability of the model stays the same.

Source Code Generation

Source code generation allows to reuse the same code on every platform, without the need to possess a Dymola license on the end use platform. Different options are available to modify the code generated by the model:

  • The code generator creates a easily readable, well documented listing for inspection, debugging, profiling, etc. This exportation option is thus useful for advanced applications, like for instance rapid prototyping;
  • The code generation includes real-time functionalities (without integration line restrictions), and binary model exportation when models got translated in Dymola or Simulink;
  • Exporting the binary code and generating the source code allows to create an information table with all used symbols, the model structure, variable naming, type and units of measurements in XML extension.

Dymola Run-Time

Run-time Dymola licenses are designed to allow users to transfer (and run) on other computers models created on systems with a Dymola license that doesn’t allow export. Run-time Dymola may be used along with the Dymola simulator, as well as with Simulink models.