2018-01


Modelica Association Newsletter, issued on 02 April 2018


Table of contents

Letter from the Board

Dear Modelica and FMI interested,

the Modelica Association (MA) is restarting its newsletter. We are happy that Filip Ježek - one of the organizers of the Modelica’2017 conference in Prague - will be the editor and organizer of the newsletters. The plan is to have three releases per year. Furthermore, the technical infrastructure for the newsletter has changed: Since Modelica Association is migrating to “Software-as-a-Service” platforms to minimize our maintenance burden, the legacy Modelica Association Newsletter application is replaced by a new GitHub based publishing process.

The Modelica Association board was newly elected on March 21, for the coming two years period. The new board is identical to the previous board with the following exceptions:

  • Hilding Elmqvist, one of the founders of the Modelica Association, did not longer apply for the Technology board position. In an email to the Modelica Association members Hilding wrote: I have been on the board in different positions from the start and I now think it’s time for younger members to push forward.
    Torsten Blochwitz from ESI-ITI was elected for the board position for Technology. The goal of this position is in particular to improve the coordination of the different standardization activities of MA.

  • Thomas Beutlich from ESI-ITI was elected as leader for the MA Project Libraries. As a deputy for this project, Dietmar Winkler from University College of Southeast Norway was elected. Note, this MA Project recently improved its project rules in order that the development of the Modelica Standard Library is improved.

In October last year, MA had a one-day Modelica Association Strategy Meeting to discuss the future of MA. Several of the ideas and suggestions developed at this workshop are on the way to be implemented to improve the operation of MA. To mention a few:

  • In April, MA will start its Back Office operated by LTX. The MA board can then delegate administrative tasks to its back office to offload work and to improve the administrative processes.

  • The MA board and interested MA projects get more budget freedom. In particular, the MA Project FMI will now have its own budget for the coming year, e.g., to organize the further development of the FMI compliance checker or the FMI cross check in a more effective way.

  • The MA newsletter is reactivated with a new newsletter editor and a new technical infrastructure.

  • The FMI cross check results are currently moved to a modern infrastructure designed and implemented by Michael Tiller, see article below.

In order to enlarge the Modelica and FMI community, MA has changed its strategy regarding Modelica conferences. Previously, the International Modelica Conference took place every 18 months in Europe. This is changed now:

  • The International Modelica Conference will take place every 2 years in March in Europe. The next one will take place in March 4-6, 2019 in Regensburg Germany.

  • In the year between International Modelica Conferences, Modelica Conferences shall be organized on other continents with country specific focus. In 2018, the following conferences of this kind will take place:

If you would like to organize a Modelica Conference, please inspect the Modelica Conference series web page.

If you have interesting news for the Modelica and FMI community, please follow the submission guidelines.

Martin Otter on March 23, 2018
(Chairman of the Modelica Association)

This article is provided by Martin Otter (Modelica Association)

Modelica Association

Updated FMI Cross Check Process

The FMI project collects and publishes so-called “cross check” data. As part of this process, each vendor publishes data about their FMI compliant tools along with FMUs exported from those tools. This allows other vendors to test those FMUs by importing them. In this way, the FMI vendors work together to detect and address any non-compliant implementations to improve the overall quality of FMI support.

This process used to involve one very large SVN repository where all vendors published not only their tool data and FMUs but the results of their attempts to import other vendor’s FMUs. Needless to say, with all the large binary files and data files associated with this compliance checking process, the repository got to be very large. Furthermore, the Modelica Association had to manage users, permissions, disk space, etc. for this effort.

In an attempt to streamline the process, it was decided to give every vendor their own repository. In these repositories, vendors compile data about themselves, their tools, sample FMUs and results of importing FMUs from other tools. In this way, each vendor repository is a more manageable size and since each vendor is managing the repository themselves, the Modelica Association doesn’t need to get involved in the management of users, permissions, etc..

To facilitate this process, the Modelica Association established the fmi-crosscheck organization on GitHub. Each vendors existing FMI data was broken out into individual vendor-specific repositories under this umbrella organization. Furthermore, these repositories use a technology called webhooks to signal when they have been updated. Using these webhooks, the entire process of generating the FMI web site has been automated. Now, when any vendor pushes changes to their repository, a complete rebuild of the FMI web site is triggered using the very latest vendor data. As a result, the data shown on the FMI web site is always the very latest compliance data.

But there were changes beyond simply creating vendor specific repositories. The scripts that process the data were completely rewritten. While the previous pages on the FMI web site were static HTML pages generated while processing the cross check data, the new process involves compiling all the cross check data into a machine readable form and then rendering it dynamically on the web site. This allows visitors to the site to search and filter the FMI compliance data interactively. Instead of long tables and horizontal scrollbars, the new dynamic visualization encourages users to search, filter and zoom to explore the data which generally fits on a single page. Users can even bookmark specific search, filter and selection settings and/or email their results to others as a single URL.

A preview of the new dynamic web site can be found at https://preview.fmi-standard.org. If you find any issues, please report them in the fmi-crosscheck-tools issue tracker.

All source code associated with the new FMI cross check process can be found in the fmi-crosscheck-tools repository. This includes the scripts that process the data, the code that is used to dynamically visualize the data as well as the source code for the build server that handles webhook notifications and pushes out new published versions of the FMI web site. If you are interested in improving the cross check process, we welcome contributions via pull requests for the tools in that repository.

Note, if you are a vendor and you have not yet taken ownership of your new repository, please contact me so you can be added as an admin to your repository.

With the new infrastructure working, the FMI Steering Committee will now update the FMI Cross-Check Rules and then implement those new rules in the new infrastructure during the next few months.

This article is provided by Michael M. Tiller (Xogeny)

PDE for Systems: Call for Use Cases

A new project proposal called PDE (partial differential equations) for Systems was initiated at the Modelica Design Meeting on March 20, 2018. It addresses the utilization of reduced order models originating from semi-discretized PDE (such as finite difference/element/volume models) from various physical domains in system simulations in a standardized, tool-independent way. This includes the definition of non-proprietary standard formats to export data from associated tools but also aims to specify a standardized, extended Functional Mock-up Interface (xFMI) component as shown in the workflow instance below. The goal is to organize model exchange and co-simulation of reduced order PDE-models in system simulation and represent cyber-physical systems with relevant distributed properties this way.

The project is supposed to be driven by a collection of use cases which in particular demonstrate the added value of such a standardized interface component and attract industry and commercial PDE-tool vendors. Everyone who feels appealed by the project idea is strongly requested to submit use case candidates similar to the use case Health Monitoring of Composite to the repository, preferably by June 1, 2018.

Contact: Dr. Andreas Heckmann, DLR, Institute of System Dynamics and Control, andreas.heckmann@dlr.de

This article is provided by Andreas Heckmann, DLR

American Modelica Conference 2018, October 9 - 10, 2018

The American Modelica Conference 2018 will be held at the Samberg Conference Center in Cambridge/Boston, MA, USA from October 9 - 10, 2018. It is organized by the Modelica Association and the North American Modelica Users’ Group (NAMUG).

Registration is already open with early bird discounts available until August 20th at Eventbrite

The Modelica Conference is the main event for users, library developers, tool vendors and researchers to share their knowledge and learn about the latest scientific and industrial progress related to the Modelica modeling language and the Functional Mockup Interface (FMI). The program will cover modeling of complex physical and cyber-physical systems, as well as tools, for a wide range of research and industrial applications. All contributions are peer-reviewed and selected by the Program Committee. This conference is co-organized by the North American Modelica Users’ Group (NAMUG) and the Modelica Association.

This conference will feature one or several conference tracks with presentations of peer-reviewed papers as you would find at any Modelica conference. In addition, it will also have one track of industrial, user-oriented presentations like those found at typical NAMUG events over the last 5 years. These presentations do not need to be accompanied by a full scientific paper. The abstracts for the presentations will also be peer-reviewed by the conference board.

Free Workshops October 8th

Thanks to the generous support from MERL (Mitsubishi Electric Research Lab), NAMUG will organize two free Modelica workshops, Monday, October 8th (before the conference). These workshops will take place at the MERL offices in Cambridge. If you are interested in attending one of these workshops, please select “Workshop Ticket” on the Eventbrite event page. There will be a beginner’s workshop in the morning, and an advanced workshop with an introduction to modeling of thermo-fluid systems using applications from the Buildings Library in the afternoon. To aid in planning, please register soon for these workshops since these workshops are conditional on interest and participation.

We are looking forward to seeing you in Cambridge, MA.

Dr. Michael Tiller and Associate Professor Luigi Vanfretti, PhD, General Chair (Xogeny) and Program Chair (Rensselaer Polytechnical Institute)

This article is provided by Hubertus Tummescheit, Modelon

FMI Steering Committee releases FMI 2.1 feature list

FMI logo

The FMI Steering Committee is happy to announce the preliminary (Alpha) feature list for FMI 2.1. “Preliminary” means that we might be forced to drop some features from that list for the actual release. This list is based on the results of the respective working groups which were discussed at the last FMI Design Meeting (Nov 2017).

  • Ports and Icons: Help the user to build consistent systems from FMUs and render the systems more intuitively with better representation of structured ports (for instance buses and physical connectors) in the modelDescription.xml.
  • Array variables: Allow FMUs to communicate multi-dimensional variables and change their sizes using structural parameters.
  • Clocks and Hybrid Co-Simulation Introduces clocks for synchronization of variables changes across FMUs. Allows co-simulation with events.
  • Binary Data Type: Adds an opaque binary data type to FMU variables to allow, for instance, efficiently exchanging of complex sensor data.
  • Intermediate Output Values: Allow access of intermediate output values between communication time points from the FMU to disclose relevant subsystem behavior for analysis or advanced co-simulation master algorithms.
  • Source code FMUs: Adding more information to the modelDescription.xml file to improve automatic import of source code FMUs.

We expect to conclude the now following prototype-phase mid 2018 with a potentially shortened Beta feature list of proven FMI 2.1 features. In the unlikely event of unsolvable conflicts between features, the FMI Steering Committee might be forced to again remove or alter features during the merge-phase of all FMI Change Proposals (FCPs) starting after the release of the Beta feature list. The FMI Steering Committee will make these FCPs available to interested parties on request once their maturity allows dissemination.

This article is provided by Andreas Junghanns (QTronic GmbH)

Related projects

IBPSA Project 1 Expert Meeting in Berlin

On February 27 and 28, 2018, the IBPSA Project 1 held its first Expert Meeting at the UdK Berlin, hosted by Christoph Nytsch-Geusen. The meeting was attended by 60 people. The main focus of meeting was to organize collaborative work to be conducted during the 5 year project duration. There was also a well received keynote by Hubertus Tummescheit, Chief Strategy Officer and co-founder of Modelon, about “The Adoption of MPC in the Power Industry – Lessons Learned and Ideas for the Buildings Industry”.

IBPSA Project 1 Expert Meeting Attendees

During the meeting, work was prioritized for work packages ranging from

  • a Modelica library for design and operation, e.g., the Modelica IBPSA Library,
  • a Modelica library and an FMI-based platform to compare the performance of Model Predictive Control algorithms for buildings called BOPTEST,
  • data representation and mapping tools for urban energy simulation workflows,
  • a tool chain for Building Information Modeling (BIM) to Modelica translation,
  • applications that demonstrate the developed technologies, and
  • a validation test procedure called DESTEST for the validation of district energy models.

The next meeting will be in fall in Paris, organized by Engie.

For more information about the project, visit ibpsa.github.io/project1/

This article is provided by Michael Wetter (Lawrence Berkeley National Laboratory)

ModProd Annual Workshop 2018

The 12th international MODPROD Workshop on Model-Based Cyber-Physical Product Development, organized by the MODPROD competence center at Linköping University, was successfully held at Linköping University, Linköping, Sweden, February 6-7, 2018.

Four tutorials were held in the morning the first day on the topics:

  • Introduction to Modelica modeling, debugging, optimization
  • FMI for composite modeling, co-simulation and model-exchange
  • Using system anatomies to understand complex systems
  • requirement modelling and verification

The program and presentations are available from the ModProd website

Sebastian Engell (Technical University of Dortmund, Germany) gives his MODPROD keynote on“Challenges in the Engineering and Management of Cyber-physical Systems of Systems”. Janos Sztipanovits (Vanderbilt University, USA) presents his keynote on “Integration platforms for the Model-Based Design of Cyber-Physical Systems”.

This article is provided by Peter Fritzson Open Source Modelica Consortium

Vendor news

Modelica Support in Wolfram Language 11.3

Version 11.3 of the Wolfram Language and Mathematica have just been released, with nearly 120 completely new functions. This includes built-in support for simulating and analyzing Modelica models, with the full simulation core of SystemModeler now available to all Wolfram Language users.

Wolfram Language 11.3 Workflow"

The system modeling functionality in the Wolfram Language makes it very easy to accomplish tasks such as:

Click here to see a video of the new functionality in action, or click here to read more about what is new in the latest version.

This article is provided by Patrik Ekenberg Wolfram

TLK DaVE - New version 1.7.0

tlk-dave logo

DaVE is TLK’s software tool to visualize and analyze transient measurement and simulation data. Its greatest potential lies in the illustration of thermal systems. The main functions of DaVE are:

  • Opening different data file formats like Dymola result files, csv and FMUs.
  • Exporting data e.g. via your own Python script or directly to csv and pdf.
  • Simulating online with TISC, CAN, HiL or offline with FMUs.
  • Visualizing data using vector-line plots, thermal state charts (optional module) and many other instruments.

The latest version 1.7.0 contains many new features to make simulation and its post-processing a lot easier and more efficient. One of those improvements is the optional P&I Flow Diagram module. This tool allows you to setup a visual model of your system by the use of pre-existing or self-made icons (nodes). You can connect your simulation or measurement data to the P&I Flow Diagram and easily monitor your system’s behavior.

The latest version 1.7.0 of DaVE contains the following improvements and features:

  • Improved simulation speed and handling of FMUs within DaVE.
  • New Tabular Data Connector to implement data via copy and paste.
  • Export your data with your own Python script and to PowerPoint at the push of a button.
  • Improved features for the optional State Chart module.
  • Many changes improving overall usability.

For further information see www.tlk-thermo.com, download the DaVE presentation or contact us at dave@tlk-thermo.com.

This article is provided by Matthias Kwak TLK-Thermo GmbH

Wolfram SystemModeler 5.1 Released

We are pleased to announce the release of Wolfram SystemModeler 5.1.

SystemModeler 5.1 Banner

SystemModeler 5.1 focuses on maximizing the usage you get from your models. Create models that are user friendly and let others analyze and explore them or deploy them onto a physical system.

Some key features include:

  • New standardized export with FMI for co-simulation. Make your models potentially usable anywhere, by anyone.
  • Ready your models for exploration and analysis with new tools to develop high-quality, flexible and easy-to-share models.
  • Deploy to millions of Wolfram Language users with the new built-in system modeling functionality

Read more about the release here blog.wolfram.com/2018/03/21/unleash-your-models-with-systemmodeler-5-1

For more details and the latest news, visit wolfram.com/system-modeler/what-is-new

This article is provided by Patrik Ekenberg Wolfram

Simcenter Amesim 16 supports all FMI coupling modes

Simcenter Amesim 16 supports all FMI 1.0 and 2.0 coupling modes

With the addition of FMI 2.0 for model exchange import and export, the recently released Simcenter Amesim 16 supports all existing continuous and discrete coupling modes of FMI. Moreover all Simcenter Amesim 2.0 FMUs can provide their directional derivatives. As a result, Simcenter Amesim’s recognized frequency analysis capabilities become available within advanced FMI master or importing environments. These high-end FMI capabilities make Simcenter Amesim one of the most interoperable system simulation tools and reflect Siemens PLM Software’s expertise and prominent role within the FMI Steering Committee.

For its forthcoming product releases, Siemens PLM Software is working on other advanced FMI capabilities that pave the way towards large-scale and efficient heterogeneous simulations.

Support for FMI compatible real-time targets

With Simcenter Amesim 16, users can create and export real-time capable models directly as FMUs specifically generated for compatible multi-core and/or multi-processor real-time targets. Supported hardware currently includes:

  • dSPACE SCALEXIO
  • ETAS LABCAR (32-bit and 64-bit)
  • Concurrent Simulation Workbench (32-bit and 64-bit)

More will come, along with the support of tunable parameters for online or virtual calibration.
For more information on Simcenter Amesim, please visit our website.

This article is provided by Bruno Loyer (Siemens PLM Software)

MWorks 2018 released

MWorks has evolved into a product suite, including system simulation software MWorks.Sysplorer (original MWorks), system architecture design software MWorks.Sysbuilder, and model collaboration and management software MWorks.Syslink. MWorks.Sysplorer 2018 is now being launched after rebuilding for two years.

MWorks.Sysplorer 2018

  • Fully supports Modelica language specification 3.4 and Modelica standard library 3.2.1, and is compatible with 2.x version.
  • Provides full supports for FMI 1.0 and FMI 2.0, including the export and import of the Model-Exchange mode, as well as the slave export and import of the Co-Simulation mode.
  • Supports collaborative modeling based on MWorks.Syslink, providing unified model management and collaborative services, including downloading, updating, submitting, and publishing.
  • Provides a new UI appearance and the solver performance is greatly improved.
  • Export models to NI Veristand and Matlab S-Function, and the distributed display function is provided.

Tongyuan Aircraft Dynamics Library

The library supports system-level rapid modeling and simulation of a wide range of flight vehicles. The library provides 6-DOF aircraft model, aerodynamic calculation model, basic components that constitute the flight control law, and the necessary components to complete the closed loop of the aircraft system, also provides the hardware interface for the operating devices. The library can be applied to the rapid construction of aircraft system model, verification of control laws, desktop simulation and real-time simulation of human in the loop.

Tongyuan Liquid Rocket Engine Library

The Liquid Rocket Engine library covers the component models required for simulation of liquid rocket engine system, including turbo pumps, various types of pipes, valves, throttle elements, combustor components, and sources. The user can quickly build a system model based on the physical topology of the liquid power system, the main state parameters of the engine in the process of starting, adjusting and shutdown can be studied by simulation.

This article is provided by Fanli Zhou (Suzhou Tongyuan)

New version 3.9 of ESI’s SimulationX released

SimulationX 3.9 comes with a multitude of new features and libraries both for Modelica® experts and for those new to the Modelica world, enabling an easy access to system simulation.

New navigation aids and filters for the model structure facilitate even experienced simulation engineers in dealing with large and complex model structures. Starting from this version, a Simulation Task Manager with extensive functionalities is available for automated series calculations. New and expanded model libraries accelerate development and design processes, particularly in the areas of design, development and virtual testing of electric vehicles and belt conveyors, including a novel model generator. The model range has also been expanded with new vibration dampers for vibration analysis of drive trains.

Furthermore, version 3.9 supports Modelica State Machines as well as efficiently integrating clocked signals into the system model, using the Modelica Synchronous technology.

For more information visit www.simulationx.com/3-9

This article is provided by Thomas Hofmann (ESI ITI)

OpenModelica Annual Workshop 2018

The 10th OpenModelica Annual Workshop organized by the Open Source Modelica Consortium was held successfully in Linköping, Sweden, on February 5, 2018.New results and applications regarding the OpenModelica platform were presented, including design of a test automation system, simulation of mobile machinery, a standardized interface between the C and C++ runtime, a Hydropower Modelica library, parallel large-scale optimization and internet-of-things for cyber-physical systems, homotopy-based initialization, DAE-model for solving large systems, co-simulation using OMSimulator, equation-based model reduction, using Python API for controlling non-linear reactor models.

The program and the 13 presentations are available from: link

Adrian Pop and Bernhard Thiele, OpenModelica workshop chairpersons (Linköping University) opening the workshop. OpenModelica workshop, Volker Waurich presenting automation of a wheel loader (TU Dresden).

This article is provided by Peter Fritzson Open Source Modelica Consortium

OpenModelica 1.12.0 Release

OpenModelica is an open-source Modelica-based cyber-physical mathematical modeling, simulation and optimization environment intended for industrial and academic usage. Its long-term development is supported by a non-profit organization – the Open Source Modelica Consortium OSMC with many company, institute, and university members.

The figure shows 3D visualization and animation using OpenModelica.

Below the main aspects are described of the OpenModelica 1.12.0 release from October 2017 which is the most recent stable regular release. Substantial work on improved stability, library coverage, and verification coverage has been done. An OpenModelica 1.13.0 Beta release is planned in April-2018.see

Summary of some of the most important improvements:

  • A new (stand-alone) FMI- and TLM-based simulation tool OMSimulator 1.0, this first version for connected FMUs, TLM objects, Simulink models (via wrappers), Adams models (via wrappers), BEAST models (via wrappers), Modelica models
  • Graphic configuration editing of composite models consisting of FMUs
  • Increased library coverage including significantly increased verification coverage
  • Graphical editing support for state machines and transitions
  • An OMEdit HTML WYSIWYG Editor, e.g. useful for documentation
  • Faster lookup processing, making some libraries faster to browse and compile
  • Additional advanced visualization features for multibody animation
  • Increased tool interoperability by addition of the ZeroMQ communications protocol
  • Enhanced OMPython including linearization, now also working with Python 3
  • Support for Linux RedHat/Fedora binary builds of OpenModelica
  • Support for exporting the system of equations in GraphML (yEd) format for debugging

OpenModelica supports 3D visualization and animation in two ways

  1. Built-in 3D animation and visualization in OMEdit of multi-body systems (since OpenModelica v1.11.0; see the User’s Guide for instructions).
  2. Visualization using third-party libraries such as the commercial DLR Visualization library.

Visualization in OMEdit of Multi-Body Systems

Below: An example 3D visualization and animation of an excavator (Courtesy TU Dresden).

Excavator

  • This is a built-in feature of OMEdit to visualize and animate MSL-Multi-Body shapes
  • Supports visualization and animation of simulation results
  • Animation of geometric primitives and CAD-Files

Visualization Using the External DLR Visualization Library

Below: Visualization and animation of the DLR ROboMObil (Courtesy DLR).

Robomobil

The DLR visualization library supports the following:

  • Advanced, model-integrated and vendor-unspecific visualization for Modelica models
  • Offline, online and real-time animation
  • Video-export function
  • Commercial library, a feature reduced free Community Edition exists

OpenModelica Code Generators for Embedded Real-Time Code

OpenModelica currently (as of v1.12.0) provides two flavors of code generators for embedded real-time code:

A full-fledged OpenModelica-generated source-code FMU (Functional Mockup Unit) code generator:

  • Can be used to cross-compile FMUs for platforms with more available memory.
  • These platforms can map FMI inputs/outputs to analog/digital I/O in the importing FMI master.

A very simple experimental code generator generating a very small footprint statically linked executable:

  • Not an FMU because there is no OS, filesystem, or shared objects in microcontrollers.

Below is the SBHS (a teaching board using an ATmega16 microcontroller) running an OpenModelica-based controller (the Arduino is based on the same microcontroller and is also supported in the Modelica_DeviceDrivers library):

SBHS board

Enhanced OMPython Including Control Design

OMPython is the Python scripting interface to the OpenModelica tool suite. An Enhanced OMPython version has recently been developed, making it possible to perform control design, model linearization, sensitivity analysis, etc. UserGuide

Investigating closed loop eigenvalues

Simulation of a Seborg chemical process reactor controlled by a PI controller

The enhanced OMPython is available in the OpenModelica 1.12.0 final release and later releases. Below some highlights are briefly mentioned.:

  • Access to the whole OpenModelica scripting API
  • Loading, compiling, and simulating models
  • Operations on models such as linearization.
  • Loading simulation results for analysis, plotting, etc.
  • Parameter sweeps, e.g. sensitivity analysis.
  • Control design.

This article is provided by Peter Fritzson Open Source Modelica Consortium

OMSimulator 2.0 with FMI Composition Beta1 Release

OMSimulator is a rather new tool in the OpenModelica tool suite and provides a co-simulation and simulation environment for FMUs. The OMSimulator 2.0 release will be part of OpenModelica 1.13.0 and supports both ordinary signal connections and TLM (transmission line modeling) connections.

OMSimulator and OMEdit

The following are highlights of OMSimulator 2.0:

  • Efficient simulation of composite models based on model exchange and co-simulation FMUs
  • 3D visualization of connected mechanical model components which can be FMUs, Modelica models, or co-simulated components accessed via wrappers in ADAMS, Simulink, Beast, or Modelica
  • Graphical composition of FMUs and visualization of simulation results
  • Scripting interface
  • Distributed simulations utilizing TLM master algorithm
  • Increased numerical stability during co-simulation in various applications due to TLM connectors
  • SSP (System Structure and Parameterization) support for composite models

This article is provided by Lennart Ochel and Adeel Asghar (Open Source Modelica Consortium)

Julia and Matlab Scripting for OpenModelica

Julia and Matlab scripting interfaces have been introduced to the OpenModelica tool suite see called OMJulia and OMMatlab.see

Simulation of a Seborg chemical process reactor

The OMJulia and OMMatlab scripting modules are available in the OpenModelica 1.13.0 Beta1 release and later releases. Below some highlights are briefly mentioned.:

  • Access to the whole OpenModelica scripting API
  • Loading, compiling, and simulating models
  • Operations on models such as linearization.
  • Loading simulation results for analysis, plotting, etc.
  • Parameter sweeps, e.g. for optimization and/or sensitivity analysis.
  • Control design when used together with appropriate Julia or Matlab packages.

This article is provided by Peter Fritzson Open Source Modelica Consortium

Modelon Announces Release of 2018.1

Modelon is pleased to announce the release of 2018.1 for products within the Modelon Library Suite, Modelon Creator Suite, and Modelon Deployment Suite. Detailed release notes are available and can be found on the individual product pages as well as clicking the links below. 

As part of our multi-platform strategy Modelon libraries are compliant in Dymola, OPTIMICA, Simplorer, IGNITE, and MapleSim.

Updated versions of Modelon products are only sold and distributed directly from Modelon, as well as approved resellers. Contact us directly to update your Modelon software!

2018.1 includes updates to the following libraries within the Modelon Library Suite:

2018.1 includes updates to the following products within the Modelon Creator Suite:

2018.1 includes updates to the following product within the Modelon Deployment Suite:

This article is provided by Jesse Gohl, Modelon

Free Downloads from Dassault Systemes

Dassault Systèmes offers free webinars, whitepapers and tools for the Modelica and FMI communities.

Webinars

An introduction to Dymola

  • Learn how the power of Dymola and Modelica can drive the efficient modeling, simulation and validation of multi-domain dynamic systems to rapidly solve complex modeling and analysis problems.

MBSE with Modelica and Dymola

  • Optimize systems development - from conceptual studies through to detailed HIL validation. Model-based system engineering is essential to speed the development of complex, multi-domain systems.

Building models with Dymola

  • Watch this webinar to discover how the power of Modelica and Dymola can be used to quickly model, configure, simulate and validate the many different systems in a hybrid electric vehicle, for example, to evaluate the impact of different control system strategies.

Whitepapers

Dive into some of the powerful features of Dymola with these easily accessible papers, written by our Dymola, Modelica and FMI experts. Topics covered include model debugging, performance, tips and tricks.

  • Dymola Referential (a technical overview and summary of benefits of Dymola, Modelica, and FMI)
  • Dymola Sparse Solvers for Large-Scale Simulations
  • Model Analysis Using the Event Log in Dymola
  • Analyzing Numeric Integration
  • Migrating from Modelica 2 to Modelica 3

Tools and Libraries

FMU Simulator is a standalone Windows app that lets you inspect, validate and test Functional Mockup Units (FMUs). It supports FMI 1.0 and 2.0 for both model exchange and co-simulation as well file based input and output. With its easy to use interface it’s an essential for every developer working with FMUs.

FMPy Library is a Python library to simulate Functional Mockup Units (FMUs). It supports FMI 1.0 and 2.0 for both model exchange and co-simulation and runs on Windows and Linux.

The Modelica Arduino library lets you simulate your circuits and sketches on a virtual Arduino Uno without the need for hardware, a lab and soldering.

This article is provided by Dag Brück (Dassault Systemes)

Dymola 2018 FD01

Speed up your simulations with the newest Dymola version Dymola 2018 FD01.

Modeling and simulation

To improve simulation performance, the numeric solvers have been improved for large models with sparse structure, e.g. electrical transmission lines. For appropriate model structures up to 100x faster simulation can be achieved.

Dymola 2018 FD01 has been enhanced with convenient tools to check what events are generated during simulation and plot hot spots of execution. This helps the user to find simulation bottlenecks and prepare models for real-time simulation.

Flexible and natural handling of units on input allows the user to type expressions such as “47 pF” directly. Dymola detects unit and prefix and applies appropriate scaling to SI units.

New Modelica libraries

Several new Modelica libraries are introduced in Dymola 2018 FD01, providing a wide range of solutions from hydraulic systems to advanced power plants.

  • Fluid Power – hydraulic systems
  • Electric Power Systems – AC and DC including high frequency AC
  • Hydrogen – fuel cell applications
  • ClaRa Plus – advanced power plants
  • Fluid Dynamics – estimate human comfort within an air-conditioned zone
  • Testing – framework to build test models and create reference results

This article is provided by Dag Brück (Dassault Systemes)

News from libraries

First Release of FluidDynamics Library for CFD Simulations in Modelica

FluidDynamics logo

The FluidDynamics library is created for Computational Fluid Dynamics (CFD) simulations using Modelica language. The coarse grid model of the library allowing up to 2000 cells uses common CFD equations, but the model is written entirely in Modelica language. The flow is predicted purely by the outer boundary conditons, internal stresses and gravitation. Thus, it has the great advantage, that users must not know the flow pattern in an air-conditoned space.

Transient room

User Benefits

  • Faster execution time than conventional CFD
  • Less software costs since no middleware between CFD and Modelica tool required
  • Faster project execution since conceptual tasks can be performed with the coarse grid
  • Full insight into code through open-source Modelica implementation

The library is available for Dymola 2018 FD01. Grid generation and postprocessing is performed with XRG Score included in the package. It can be used for automotive, aeronautical, buildings and other HVAC applications.

This article is provided by Stefan Wischhusen (XRG Simulation GmbH)

TLK TIL Suite - New version 3.5.0

tlk-tilsuite logo

The TIL Suite enables stationary and transient simulations. The current version 3.5.0 includes numerous new and improved components and system models. Among other things, we would like to draw your attention to the following innovations:

  • Using the gas components, air pathways and systems can be simulated with ideal gases and mixtures, taking condensation and ice formation into account.
  • The optimization of the VLE fluid components (vapor-liquid-equilibrium) enables more robust simulations of refrigerant circuits, heat pumps or other systems with working fluids.
  • With the aid of new and optimized liquid components (hydraulic inductor and compensation tanks), cooling circuits and hydraulic systems can be calculated much faster and more stable.
  • Completely revised and clearly extended documentation.

For further information see www.tlk-thermo.com, download the TIL presentation or contact us at til@tlk-thermo.com.

This article is provided by Matthias Kwak TLK-Thermo GmbH

Testing Library 1.0 - Create and run regression tests

The Testing Library is a Modelica Library available to all Dymola users. With this library it is possible to build test cases, create reference results and run the tests – all within Dymola. It allows detecting unwanted side effects on model changes in an early stage by running regular tests. The user can also use the library to validate that a system meets its requirement during the development phase.

The library contains multiple blocks for the continuous comparison of signals to reference values and trajectories. Existing examples and test models can easily be converted to a test case by providing a reference and connecting the signals of interest to one of the various comparison blocks.

Test models can be simulated as any other model. At the end of the simulation the message window shows the test result for every check block in the model. This allows the developer to check regularly during the development if the tests class behaves as expected.

This article is provided by Imke Krüger ( Dassault Systemes )

Pneumatic Systems Library

The new Pneumatic Systems Library (PSL) is intended to assist the development of pneumatic systems. PSL enables predicting the system behavior for a wide range of industrial applications such as industrial machines, pneumatic brakes or suspension systems as well as cooling and engine bleed air systems for aerospace.

In this first release, the following components are introduced:

  • Gases: IdealAir model and ImportFromMSL so any media model extending from Modelica.Media.Interfaces.PartialMedium can be used for gas properties.
  • Sources: ideal pressure, mass flow rate and exhaust, silencer and a vane compressor.
  • Valves: directional, proportional and flow control valves.
  • Actuators: linear, rotary and bellow drive.
  • Reservoirs.
  • Piping: tube, bend and a custom pressure loss component.
  • Sensors.

The library also includes a package modeling the main physical effects modeled: capacitance (energy storage), resistance (energy dissipation) and power transformation (mechanical and thermal). These effects serve as a basis for the development of the previously listed components.

The component icons are compliant with the standard ISO 1219 which is typically used for pneumatic schematics. Animation is provided to see the valve and cylinder displacement with respect to their command.

As an example, the following model represents two single-acting cylinders with spring feedback, piloted by a single directional control valve alternatively connecting to an ideal pressure source or exhaust. While the top cylinder does not include any cushioning device, the piston of the bottom cylinder will close the inlet port when it approaches its end stop (throttle effect).

This example covers the main physical effects involved into pneumatics: capacitance as the gas volume inside the cylinder, restriction as the inlet flow restriction into the cylinder and transformation as the cylinder converts pneumatic into mechanic power.

As the example uses a one-sided cylinder, cushioning only happens on the left side of the cylinder actuation. When the piston enters the cushioning zone (below the green line), the cylinder with cushioning (red plot) receives less mass flow rate from the inlet port and thus its speed decreases regarding the top cylinder (blue plot).

This article is provided by Dr. Clément Coïc and Maximilian Kormann (Dassault Systèmes Deutschland GmbH)

Modelica Arduino - a virtual Arduino Uno and Firmata for Modelica

With the Arduino Modelica library you can simulate your circuits and sketches on a virtual Arduino Uno and connect your Modelica models to real-world circuits using the Firmata protocol.

It’s developed by Dassault Systèmes and released under the GPLv3 on GitHub.

Robot Arm Example

Firmata Fade LED Example

How does it work?

The ArduinoUno model is driven by an ExternalObject that contains the compiled sketch and an implementation of the Arduino API. The external object is synchronized at every sample step with the Modelica model.

When a model that contains the ArduinoUno block is translated the external object is automatically re-built through the preInstantiate=Arduino.Internal.buildSketch(…) directive in its annotation.

This function writes a new Sketch.cpp to Arduino/Resources/Source/Arduino that includes the sketch currently selected in the ArduinoUno component and calls the build script build_sketch.bat.

This script re-builds the shared libraries Arduino/Resources/Library/win32/ModelicaArduino.dll and win64/ModelicaArduino.dll that contain the implementation of the external object.

This article is provided by Torsten Sommer (Dassault Systémes)

Hydrogen Library 1.0 - PEM Fuel cell systems

The Hydrogen library is targeted at modeling and simulating of PEM fuel cell stacks and fuel cell systems using hydrogen and air. It may be used for pre-design, control strategy evaluation, or loss analysis. The library contains models for membranes and complete stacks as well as auxiliary components, e.g. compressors and valves. Due to the generic equivalent circuit approach, only the data sheet with a polarization curve is needed for the parameterization of the membrane models. A tutorial helps the user to adapt the stack templates to his/her fuel cell type.

This article is provided by Imke Krüger (Dassault Systemes)

FMPy - simulate FMUs in Python

FMPy is a free Python library to simulate Functional Mock-up Units (FMUs) that…

  • supports FMI 1.0 and 2.0
  • supports Co-Simulation and Model Exchange
  • runs on Windows, Linux and macOS
  • has a graphical user interface
  • compiles source code FMUs

It’s developed at Dassault Systèmes and released under the 3-clause BSD license.
For more information on how to install FMPy and a short tutorial take a look at the documentation.

You’ve found a problem or have a suggestion? Visit our GitHub project and open an issue.

Simulate an FMU in the Graphical User Interface

FMPy GUI

Simulate an FMU in Python

>>> from fmpy import *
>>> fmu = 'Rectifier.fmu'
>>> dump(fmu)  # get information

Model Info

  FMI Version       2.0
  Model Name        Rectifier
  Description       Model Rectifier
  Platforms         win64
  Continuous States 4
  Event Indicators  6
  Variables         63
  Generation Tool   MapleSim (1267140/1267140/1267140)
  Generation Date   2017-10-04T12:07:10Z

Default Experiment

  Stop Time         0.1
  Step Size         1e-07

Variables (input, output)

Name                Causality          Start Value  Unit     Description
outputs             output        282.842712474619  V        Rectifier1.Capacitor1.v
>>> result = simulate_fmu(fmu)         # simulate the FMU
>>> from fmpy.util import plot_result  # import the plot function
>>> plot_result(result)                # plot the variables

Rectifier Result

Simulate an FMU on the command line

To get information about an FMU directly from the command line change to the folder where you’ve saved the FMU and enter

fmpy info Rectifier.fmu

Simulate the FMU and plot the results

fmpy simulate Rectifier.fmu --show-plot

Get more information about the available options

fmpy --help

Advanced Usage

To learn more about how to use FMPy in you own scripts take a look at the examples.

This article is provided by Torsten Sommer (Dassault Systémes)

Electric Power Systems Library

The Electric Power Systems Library (EPSL) is intended to assist the process of designing electrical power systems. It enables modeling Alternate Current (AC) and Direct Current (DC) as well as combined AC/DC (hybrid) networks found e.g. in More Electrical Aircrafts. Due to the use of a phasor based description, it enables fast simulation of AC systems, with performance basically independent of the AC system’s frequency. The EPSL covers the key components of an electrical power system at different levels of detail. The architectural mode corresponds to “simple” phasor theory resulting in a quasi-static description of the system. The functional level of detail uses dynamic phasors to cover dynamic effects in the models. The modeling mode can currently be switched on a per-component basis via a parameter. Additionally, the EPSL enables the description of harmonics of the fundamental AC frequency, which can be either constant or variable. Currently the AC components are either single or three-phased, whereas other phase numbers would be straight-forward to be added due to the generic modeling approach of components. As an example, part of a generic aircraft electric power system architecture, proposed and studied within the MOET european project [MOET06], is modeled using EPSL in Dymola. The power generation is realized thanks to the aircraft engines connected directly to Variable Frequency Starter Generators. The VFSGs convert the mechanical power into electrical power. The electrical power is then distributed to the consumers through High Voltage AC bus bar and DC bus bars. Typical loads on the system are, for example: Environmental Control System (ECS), Electro-Mechanical Actuators (EMA), Wing Icing Protection System.

This architecture considers a large aircraft with four engines. The circuit associated to the first generator is illustrated in the figure above.

[MOET06] MOET Consortium Partners, More Open Electrical Technologies - Technical Report, 2006.

This article is provided by Dr. Clément Coïc (Dassault Systèmes Deutschland GmbH)

Education news

Training Courses for Modelica and Dymola by LTX Simulation GmbH

In the upcoming months, LTX Simulation GmbH offers the following 2-day training classes for Dymola and Modelica in German language (in English on request) at our office in Munich:

Multi-domain modeling and simulation with Modelica and Dymola (Prof. Martin Otter)
April 24 – 25, 2018

Introduction to Dymola and Modelica (Leo Gall)
July 02 – 03, 2018

DLR Visualization Library and Modelica MultiBody (Dr. Tobias Bellmann)
Autumn 2018, please contact us for next date

We also offer in-house classes in German or English on request. If you are interested in special topics for your training (e.g. Model Calibration, OpenModelica, Modelica Synchronous State Machines), please contact us.

Please visit our website for more information or contact us at kurse@ltx.de.

This article is provided by Leo Gall LTX Simulation GmbH