with standardization to flexibility: functional mock-up interface (fmi) simplifies the world of...

17
With Standardization to Flexibility Functional Mock-up Interface (FMI) simplifies the World of Co-Simulation European Altair Technology Conference 2014 Ronald Kett, FLUIDON GmbH

Upload: altair-engineering

Post on 02-Jul-2015

340 views

Category:

Engineering


10 download

DESCRIPTION

The simulation of complex cyberphysical systems often demands the co-operation of several tools specialized in different domains. A hydraulically actuated machine with a complex controller e. g. makes use of a multi body system tool like MotionSolve, a 1-D system simulator like DSHplus, and a block diagram modeler for control systems like ScicosPro. The Simulation Tool Chain (STC) of DSHplus, that is part of the Altair Partner Alliance program, has been supporting co-simulation of different tools for many years. Starting in 1995 with a co-simulation based on ACSL today all major mbs-tools and MATLAB/Simulink are directly supported. A next step in moving different simulation tools closer together is the introduction of the functional mock-up interface (FMI) in 2010. It defines a standardized interface to be used in computer simulations to develop complex systems and seriously simplifies the co-simulation between several tools. The presentation shows the technical background of FMI and the usage of an FMU (the exported model supporting FMI) on the basis of a controller development for a hydraulic actuator modelled in DSHplus.

TRANSCRIPT

Page 1: With Standardization to Flexibility: Functional Mock-up Interface (FMI) simplifies the World of Co-Simulation

With Standardization to Flexibility Functional Mock-up Interface (FMI) simplifies the World of Co-Simulation

European Altair Technology Conference 2014

Ronald Kett, FLUIDON GmbH

Page 2: With Standardization to Flexibility: Functional Mock-up Interface (FMI) simplifies the World of Co-Simulation

FLUIDON – Who We are

FLUIDON is an engineering company specialized on fluid power mechatronic systems

Founded in 1994 as a spin-off of Institute of Fluid Power (RWTH Aachen)

Simulation of mechatronic systems is the key competence of FLUIDON engineers

That means support in the complete area of system development and application

provision of simulation software

software services

engineering support

Folie 2

Page 3: With Standardization to Flexibility: Functional Mock-up Interface (FMI) simplifies the World of Co-Simulation

What are the Characteristics of DSHplus-STC?

Motivation

Due to increasing demands of realism and calculation accuracy, it is more and more necessary to

consider the interactions of different technical subsystems in simulation studies in detail.

By coupling of programs with different strengths, the advantages of all programs can be used by a

simulation in a software network.

Realization

The DSHplus STC is a push-button solution for seamless coupling and integration of one-

dimensional domain-cross DSHplus models with arbitrary CAx tools..

In addition to classic co-simulation solutions, the DSHplus STC EcoSim - Embedded Co-simulation

– offers an enclosed and protected stand-alone module, which includes both the one-dimensional

DSHplus model, as well as the co-simulation interface and the DSHplus calculation core.

As a third type a coupling on equation level is supported. The differential and algebraic equations

of DSHplus model are calculated by the solver of the Master Simulator.

Folie 3

Page 4: With Standardization to Flexibility: Functional Mock-up Interface (FMI) simplifies the World of Co-Simulation

The Principle of DSHplus-STC

Folie 4

Step 2: Optimization and Verification of the fluid power System by means of a co-simulation

DSHplus Co Simulation

Step 1: Initial simulation of the fluid power system in DSHplus

Step 3: Export of the fluid power system as embedded system in a different simulation domain or on a different hardware

C++ ModelSource Code

C++ AuxiliaryFunctions

C++ NumericalRoutines

DSHplus DifferentialEquation Export

DSHplus Solver Export

Page 5: With Standardization to Flexibility: Functional Mock-up Interface (FMI) simplifies the World of Co-Simulation

Milestones of DSHplus-STC

Folie 5

Equation

export

to ACSL

Air-Spring

co-simulation

with SIMPACK

Equation

export

to ADAMS

Co-simulation

with MOBILE

Equation

export

to Simulink

Equation

export

to Opal-RT

Program launch

directly with open

source code

model description

FLUIDON

joined MATLAB

partner program

FLUIDON joined

Launch of

-STC

-STC

for SIEMENS

WinAC Soft PLC

ADAMS Plug-In

for -STC

-STC

for KIVA

combustion

simulation

Interface with

1996 1998 2010 2002 2004 2006 2008 2000 1994 2012 2014 1973

DSH program

roots at

RWTH Aachen

Hardware

interfacing with

Programmable

Logic Controller

Interface

FMI

Page 6: With Standardization to Flexibility: Functional Mock-up Interface (FMI) simplifies the World of Co-Simulation

Engine

with ECU Gearbox with ECU

Thermal systems

Automated cargo door

Chassis components, roadway, ECU (e.g. ESP)

etc.

Source: Daimler AG

functional mockup interface for model exchange and tool coupling

What the Hell is FMI?

Folie 6

in general terms, FMI continues the STC outside of DSHplus

additional interface functions extend and generalize the field of application

FMI is the result of the European MODELISAR research project 2008 - 2011, in Germany

under leadership of Daimler AG.

The following slides originate from the presentation „The Functional Mockup Interface for

Tool independent Exchange of Simulation Models“, which was held at the end of the

research project MODELISAR at Modelica Conference 2011.

By the way, Mathworks does not take part in FMI-standard, because Matlab itself is

considered as a standard. But several third-party suppliers developed tool boxes, with

which FMU can be used in Simulink.

Page 7: With Standardization to Flexibility: Functional Mock-up Interface (FMI) simplifies the World of Co-Simulation

FMI – Main Design Idea

Folie 7

FMI for Model Exchange:

Version 1.0 released in January 2010

FMI for Co-Simulation:

Reuses as much as possible from FMI for Model Exchange standard

Version 1.0 released in October 2010

Tool

Solver

FMU

Model

Tool

FMU

Model

Solver

Source: Modelica 2011: Functional Mockup Interface

Page 8: With Standardization to Flexibility: Functional Mock-up Interface (FMI) simplifies the World of Co-Simulation

FMI - Main Design Idea

Folie 8

Source: Modelica 2011: Functional Mockup Interface

A component which implements the interface is called

Functional Mockup Unit (FMU)

Separation of

Description of interface data (XML file)

Functionality (C code or binary)

A FMU is a zipped file (*.fmu) containing

XML description file

implementation in source or binary form

Additional data and functionality

Additional data and functionality can be included

Interface specification: www.functional-mockup-interface.org

Page 9: With Standardization to Flexibility: Functional Mock-up Interface (FMI) simplifies the World of Co-Simulation

FMI for Model Exchange

Folie 9

Source: Modelica 2011: Functional Mockup Interface

Import and export of input/output blocks (FMU – Functional Mock-up Unit)

described by

differential-, algebraic-, discrete equations,

with time-, state, and step-events

FMU can be large (e.g. 100000 variables)

FMU can be used in an embedded system (small overhead)

FMUs can be connected together

Page 10: With Standardization to Flexibility: Functional Mock-up Interface (FMI) simplifies the World of Co-Simulation

FMI for Model Exchange

Folie 10

Source: Modelica 2011: Functional Mockup Interface

Signals of an FMU

Page 11: With Standardization to Flexibility: Functional Mock-up Interface (FMI) simplifies the World of Co-Simulation

FMI for Co-Simulation

Folie 11

Source: Modelica 2011: Functional Mockup Interface

Master/slave architecture

Considers different capabilities of simulation tools

Support of simple and sophisticated coupling algorithms:

Iterative and straight forward algorithms

Constant and variable communication step size

Allows (higher order) interpolation of continuous inputs

Support of local and distributed co-simulation scenarios

FMI for Co-Simulation does not define:

Co-simulation algorithms

Communication technology for distributed scenarios

Page 12: With Standardization to Flexibility: Functional Mock-up Interface (FMI) simplifies the World of Co-Simulation

FMI for Co/Simulation

Folie 12

Source: Modelica 2011: Functional Mockup Interface

Signals of an FMU for Co-Simulation

Inputs, outputs, and parameters, status information

Derivatives of inputs, outputs w.r.t. time can be set/retreived for supporting of higher order approximation

u y

Enclosing Model

v 0 0 0 0 0 0, ,inital values (a subset of { , , , , })t p x x y v m

Co-Simulation Slave (FMU instance)

t

Model

Solver

Co-Simulation Master

t0, p

Page 13: With Standardization to Flexibility: Functional Mock-up Interface (FMI) simplifies the World of Co-Simulation

FMI for Co/Simulation

Folie 13

Use Case

Source: Modelica 2011: Functional Mockup Interface

Co-Simulation stand alone:

Co-Simulation tool:

Process

Executable Library (DLL)

Slave

Model Solver

Slave

Model Solver Master

Process 1

Executable Library (DLL)

Process 2

Simulation tool

Slave

Model Solver

FMI

Wrapper

FMI

Wrapper

FMI

Wrapper

FMI

Wrapper Master

Page 14: With Standardization to Flexibility: Functional Mock-up Interface (FMI) simplifies the World of Co-Simulation

FMI for Co/Simulation

Folie 14

Use Case

Source: Modelica 2011: Functional Mockup Interface

Distributed co-simulation scenario

Data exchange is handled by a communication layer which is implemented by a special FMI

wrapper

Master and slave utilize FMI for Co-Simulation only

Page 15: With Standardization to Flexibility: Functional Mock-up Interface (FMI) simplifies the World of Co-Simulation

Who supports FMI?

Folie 15

A standard is certainly as good as its

application.

Since the initiation of FMI the list of FMI

supporter comprises 58 programs that

support or plan to support FMI.

This list is maintained on www.fmi-

standard.org.

FLUIDON presently supports FMI for Co-

Simulation both as classic Co-Simulation

(tool) and as ECoSim (embedded Co-

Simulation) (stand alone) for Windows 32bit

and 64bit.

In the future DSHplus will support also FMI

for Model Exchange and Linux versions.

Page 16: With Standardization to Flexibility: Functional Mock-up Interface (FMI) simplifies the World of Co-Simulation

Is FMI supported within Altair Tools?

Folie 16

The new Scicos Pro offers an interface according to FMI 2.0.

Page 17: With Standardization to Flexibility: Functional Mock-up Interface (FMI) simplifies the World of Co-Simulation

Thank you for your attention.