the twt co-simulation · 2015-02-05 · the . twt co-simulation framework. manages signal exchange...
TRANSCRIPT
![Page 1: The TWT Co-Simulation · 2015-02-05 · The . TWT Co-simulation framework. manages signal exchange between • multiple simulations, running in • different tools, possibly located](https://reader030.vdocuments.mx/reader030/viewer/2022041013/5ec0f28861ca0e05f87c4cab/html5/thumbnails/1.jpg)
![Page 2: The TWT Co-Simulation · 2015-02-05 · The . TWT Co-simulation framework. manages signal exchange between • multiple simulations, running in • different tools, possibly located](https://reader030.vdocuments.mx/reader030/viewer/2022041013/5ec0f28861ca0e05f87c4cab/html5/thumbnails/2.jpg)
Confidential
The TWT Co-Simulation framework in all-electric aircraft applications
Christine Radermacher
CEAS-SCAD Symposium Toulouse, 26.11.2014
Bildquellen: TWT GmbH, iSSE project
![Page 3: The TWT Co-Simulation · 2015-02-05 · The . TWT Co-simulation framework. manages signal exchange between • multiple simulations, running in • different tools, possibly located](https://reader030.vdocuments.mx/reader030/viewer/2022041013/5ec0f28861ca0e05f87c4cab/html5/thumbnails/3.jpg)
Confidential Seite 3
TWT.Inside Management Summary „Technisch-Wissenschaftlicher Transfer“
Since 28 years Innovation Partner of the Hightech-Industry
250 employees
14 running research projects
Executives: Dr. Dimitris Vartziotis Joachim Laicher Frank Beutenmüller Dr. Victor Fäßler
![Page 4: The TWT Co-Simulation · 2015-02-05 · The . TWT Co-simulation framework. manages signal exchange between • multiple simulations, running in • different tools, possibly located](https://reader030.vdocuments.mx/reader030/viewer/2022041013/5ec0f28861ca0e05f87c4cab/html5/thumbnails/4.jpg)
Confidential Seite 4
TWT.Insight Business Activities
Systems Engineering Comprehend and Combine
Digital Development Design and Validation
Information Technologies Structuring and Linking
Process Consulting Shape and Optimize
![Page 5: The TWT Co-Simulation · 2015-02-05 · The . TWT Co-simulation framework. manages signal exchange between • multiple simulations, running in • different tools, possibly located](https://reader030.vdocuments.mx/reader030/viewer/2022041013/5ec0f28861ca0e05f87c4cab/html5/thumbnails/5.jpg)
Confidential Seite 5
Challenge: all-electric aircraft simulation
The next generation of all-electric aircraft demands
intelligent power-management
Variable power distribution is safety critical and needs
careful testing
Testing in the early design phase is ideally done by
simulation
Full system simulation is computationally very demanding
![Page 6: The TWT Co-Simulation · 2015-02-05 · The . TWT Co-simulation framework. manages signal exchange between • multiple simulations, running in • different tools, possibly located](https://reader030.vdocuments.mx/reader030/viewer/2022041013/5ec0f28861ca0e05f87c4cab/html5/thumbnails/6.jpg)
Confidential Seite 7
Energy Management System (EMS), & Electrical Power Distribution System (EPDS) Dymola/Modelica Cabin Thermal model (CT) AMESim Fuel System (FS) Flowmaster Ice Protection System (IPS) Dymola/Modelica Environment Control Sys. (ECS) Matlab/Simulink Electrical Power Gen. Sys. (EPGS) Synopsis Sabre Flight Control System (FCS) Dymola/Modelica Landing Gear System (LGS) Dymola/Modelica
What sort of Models?
Aileron Spoilers
Flaps
SpoilersFlaps
Aileron
Rudder
Elevators
![Page 7: The TWT Co-Simulation · 2015-02-05 · The . TWT Co-simulation framework. manages signal exchange between • multiple simulations, running in • different tools, possibly located](https://reader030.vdocuments.mx/reader030/viewer/2022041013/5ec0f28861ca0e05f87c4cab/html5/thumbnails/7.jpg)
Confidential Seite 8
Shared Simulation (iSSE project)
![Page 8: The TWT Co-Simulation · 2015-02-05 · The . TWT Co-simulation framework. manages signal exchange between • multiple simulations, running in • different tools, possibly located](https://reader030.vdocuments.mx/reader030/viewer/2022041013/5ec0f28861ca0e05f87c4cab/html5/thumbnails/8.jpg)
Confidential Seite 9
The TWT Co-simulation framework manages signal exchange between
• multiple simulations, running in
• different tools, possibly located on
• multiple hosts
Written in Java using modern, efficient libraries
Provides a control and monitoring GUI
Provides Connectors for several common simulation tools
Feature summary
![Page 9: The TWT Co-Simulation · 2015-02-05 · The . TWT Co-simulation framework. manages signal exchange between • multiple simulations, running in • different tools, possibly located](https://reader030.vdocuments.mx/reader030/viewer/2022041013/5ec0f28861ca0e05f87c4cab/html5/thumbnails/9.jpg)
Confidential Seite 10
FMI model description standards are used to describe
• simulations
• their signals
Generation of FMI model descriptions for several tools
FMUs can be included
• directly via the framework FMU connector
• via the TWT Matlab/Simulink FMU Interface
• via the Functional MockUp Trust Centre (FMTC)
Based on Modelisar FMI
![Page 10: The TWT Co-Simulation · 2015-02-05 · The . TWT Co-simulation framework. manages signal exchange between • multiple simulations, running in • different tools, possibly located](https://reader030.vdocuments.mx/reader030/viewer/2022041013/5ec0f28861ca0e05f87c4cab/html5/thumbnails/10.jpg)
Confidential Seite 11
TWT Co-sim Framework
Framework structure
CoSim Router Sim A
CON Co-sim Connector
Sim A Simulation
Sim C CON
Master
Master Co-sim Master CON
CoSim Router
Co-sim Router
Sim B
CON
![Page 11: The TWT Co-Simulation · 2015-02-05 · The . TWT Co-simulation framework. manages signal exchange between • multiple simulations, running in • different tools, possibly located](https://reader030.vdocuments.mx/reader030/viewer/2022041013/5ec0f28861ca0e05f87c4cab/html5/thumbnails/11.jpg)
Confidential Seite 12
Framework components
CON
Co-sim Connector
Sim A Simulation
Master Co-sim Master
Co-sim Connectors: • Connect a simulation to the framework • Multiple available methods to integrate with
simulations
CON
CoSim Router
Co-sim Router
Co-sim Router: • Communicates with all simulations via their
connectors • Forwards sent messages to specified recipients
CoSim Router
Co-sim Master: • Allows controlling and monitoring the co-
simulation • Provides a GUI
Master
![Page 12: The TWT Co-Simulation · 2015-02-05 · The . TWT Co-simulation framework. manages signal exchange between • multiple simulations, running in • different tools, possibly located](https://reader030.vdocuments.mx/reader030/viewer/2022041013/5ec0f28861ca0e05f87c4cab/html5/thumbnails/12.jpg)
Confidential Seite 13
Existing simulation integration methods
Method 3: Bridged connection to a Functional Mock-up Unit (shared
library). Requires: Simulation tool
supporting FMU export.
Method 2: Bridged connection with inter process communication (i.e. sockets).
Requires: Simulation tool with API in a programming
language supporting sockets.
Method 1: Direct connection with Java interface. Requires: Simulation tool with Java
API.
Master Configure and
monitor CoSimulation
Matlab / Simulink
CON
Co-sim Router
Modelica CON
TCP/UDP
StarCCM+
CON
CON
FMU Connector
FMU
Method 4: Bridged connection with file communication.
Requires: Simulation tool with API supporting file handling.
Simulation tool
CON
File
Method 5: Functional Mock-up Unit running inside of the Functional
Mock-up Trust Center. Requires: Simulation tool supporting
FMU export.
FMTC
FMU CON
FMI
FMI FMI FMI
FMI
![Page 13: The TWT Co-Simulation · 2015-02-05 · The . TWT Co-simulation framework. manages signal exchange between • multiple simulations, running in • different tools, possibly located](https://reader030.vdocuments.mx/reader030/viewer/2022041013/5ec0f28861ca0e05f87c4cab/html5/thumbnails/13.jpg)
Confidential Seite 14
Network topologies – single host
CoSim Router
Sim A
CON Co-sim Connector
CON
TCP/UDP
Sim B CON
Sim A Simulation Sim C
CON
Master
Master Co-sim Master
CoSim Router
Co-sim Router
![Page 14: The TWT Co-Simulation · 2015-02-05 · The . TWT Co-simulation framework. manages signal exchange between • multiple simulations, running in • different tools, possibly located](https://reader030.vdocuments.mx/reader030/viewer/2022041013/5ec0f28861ca0e05f87c4cab/html5/thumbnails/14.jpg)
Confidential Seite 15
Network topologies – multiple hosts (LAN)
CoSim Router
Sim B CON Co-sim Connector
CON
TCP/UDP
Sim A CON
Sim A Simulation
Sim C CON
Master
Master Co-sim Master
CoSim Router
Co-sim Router
![Page 15: The TWT Co-Simulation · 2015-02-05 · The . TWT Co-simulation framework. manages signal exchange between • multiple simulations, running in • different tools, possibly located](https://reader030.vdocuments.mx/reader030/viewer/2022041013/5ec0f28861ca0e05f87c4cab/html5/thumbnails/15.jpg)
Confidential Seite 16
Co-Sim Router: Message flow (broadcast)
Sim A CON
Co-Sim Router
Co-sim message
Source: Sim A
Recipient: Broadcast
TCP/UDP
Sim B CON
Sim C CON
Sim D CON
Master
![Page 16: The TWT Co-Simulation · 2015-02-05 · The . TWT Co-simulation framework. manages signal exchange between • multiple simulations, running in • different tools, possibly located](https://reader030.vdocuments.mx/reader030/viewer/2022041013/5ec0f28861ca0e05f87c4cab/html5/thumbnails/16.jpg)
Confidential Seite 17
Co-Sim Router: Message flow (single recipient)
Sim A CON
Co-Sim Router
Co-sim message
Source: Sim A
Recipient: Sim D
TCP/UDP
Sim B CON
Sim C CON
Sim D CON
Master
![Page 17: The TWT Co-Simulation · 2015-02-05 · The . TWT Co-simulation framework. manages signal exchange between • multiple simulations, running in • different tools, possibly located](https://reader030.vdocuments.mx/reader030/viewer/2022041013/5ec0f28861ca0e05f87c4cab/html5/thumbnails/17.jpg)
Confidential Seite 18
State messages: a simulation communicates its current state
Command messages: the master sends a command to one or multiple simulations
Information requests: (new) simulations request information about the other co-simulation members
Information messages: a co-simulation member sends various information including its FMI model description
Signal messages: simulations send the current values of their output signals
Message types
![Page 18: The TWT Co-Simulation · 2015-02-05 · The . TWT Co-simulation framework. manages signal exchange between • multiple simulations, running in • different tools, possibly located](https://reader030.vdocuments.mx/reader030/viewer/2022041013/5ec0f28861ca0e05f87c4cab/html5/thumbnails/18.jpg)
Confidential Seite 19
The chosen communication step size is
• fixed
• the same for all simulations
• computed as the least number which is
• a multiple of at least two step sizes and
• a divisor (or multiple) of all other step sizes
if all step sizes are identical, that step size is chosen
Constraints on communication step size
![Page 19: The TWT Co-Simulation · 2015-02-05 · The . TWT Co-simulation framework. manages signal exchange between • multiple simulations, running in • different tools, possibly located](https://reader030.vdocuments.mx/reader030/viewer/2022041013/5ec0f28861ca0e05f87c4cab/html5/thumbnails/19.jpg)
Confidential Seite 20
1. Router process starts
2. Master process (GUI) starts, registers with Router
3. Simulators initialize, register with Router
4. Simulators synchronize (signal mapping, stepsize)
5. Co-Simulation starts, repeated exchange of signals
6. Simulators can be paused and resumed
Setup routine
![Page 20: The TWT Co-Simulation · 2015-02-05 · The . TWT Co-simulation framework. manages signal exchange between • multiple simulations, running in • different tools, possibly located](https://reader030.vdocuments.mx/reader030/viewer/2022041013/5ec0f28861ca0e05f87c4cab/html5/thumbnails/20.jpg)
Confidential Seite 21
Co-Simulation live
![Page 21: The TWT Co-Simulation · 2015-02-05 · The . TWT Co-simulation framework. manages signal exchange between • multiple simulations, running in • different tools, possibly located](https://reader030.vdocuments.mx/reader030/viewer/2022041013/5ec0f28861ca0e05f87c4cab/html5/thumbnails/21.jpg)
Confidential Seite 22
The TWT Co-Simulation framework …
… is able to integrate various data formats
… is able to integrate tools via FMTCs to protect intellectual property
… is appropriate for various applications, such as all electric aircraft, automotive energy management etc.