Towards to a Model-driven and Tool-integration Framework ... · system design . Industrial...

22
Towards to a Model-driven and Tool-integration Framework for Co-simulation Environments Jinzhi Lu, Ph.D student, KTH Martin Törngren, Professor, KTH

Transcript of Towards to a Model-driven and Tool-integration Framework ... · system design . Industrial...

Page 1: Towards to a Model-driven and Tool-integration Framework ... · system design . Industrial Practices . Model-based System Engineering . Co-simulation . HLA . FMI . Tool-integration

Towards to a Model-driven and Tool-integration Framework for

Co-simulation Environments

Jinzhi Lu, Ph.D student, KTH

Martin Törngren, Professor, KTH

Page 2: Towards to a Model-driven and Tool-integration Framework ... · system design . Industrial Practices . Model-based System Engineering . Co-simulation . HLA . FMI . Tool-integration

Jinzhi Lu

2

Design Engineer Department of Control and Electronic System Design Shenyang Engine Design and Research Institute Aviation Industry Corporation of China

Project Manager Design Engineer

Suzhou Tongyuan Software and Control Technology Company

Working

Ph.d student

Pre_project Research on Model-basaed System Engineering Approach and Tool-chain for Aero-engine Control system and Pragnostic Health Management System

13th Five-Year Plan Project Research on Model-basaed System Engineering Approach and Tool-chain for Aero-engine Control system and Pragnostic Health Management System

Project

Page 3: Towards to a Model-driven and Tool-integration Framework ... · system design . Industrial Practices . Model-based System Engineering . Co-simulation . HLA . FMI . Tool-integration

Challenges of CPS Design

Data Data Model

Data Data Tool Data Data Data

System Design Electronics

Software

Safety

Project manager

Maintenance

Training

Quality

IT

Test

Mechanical System

Subsystems…

Standards

Process

Business model

Efficiency

E-mail Meeting

Document-Based

3

Information

Presenter
Presentation Notes
Describe challenges of CPS design
Page 4: Towards to a Model-driven and Tool-integration Framework ... · system design . Industrial Practices . Model-based System Engineering . Co-simulation . HLA . FMI . Tool-integration

Proposed Approach

Tool –chain of simulation and system design

Industrial Practices

Model-based System

Engineering

Co-simulation

HLA

FMI

Tool-integration

OSLC

Investigation of MBSE transitioning ’SPIT’ Framework

Information model, BPMN and System Engineering

Model-driven technology

Engineering Design Platform

4

Presenter
Presentation Notes
Take away knowledges, three areas, key technologies
Page 5: Towards to a Model-driven and Tool-integration Framework ... · system design . Industrial Practices . Model-based System Engineering . Co-simulation . HLA . FMI . Tool-integration

Outline

1 State of the art

2 ’SPIT’ Framework

3 An industrial Problems

4 Solutions

5

Presenter
Presentation Notes
outline
Page 6: Towards to a Model-driven and Tool-integration Framework ... · system design . Industrial Practices . Model-based System Engineering . Co-simulation . HLA . FMI . Tool-integration

State of the art Be careful to discuss models with others

D:Design;A:analyze Design Function

Specified Area

Information Description

Domain Formal Model Type Simulation Architecture Behaviors Function Process Requirement Description

Design Infor Description

Process Description V&V

Embeded system Language AADL D&A D&A D&A Vehicle √ √

Language EAST-ADL D&A D&A D&A Vehicle √ √ √ √

Multi-domain Language Modelica √ D&A D&A D Multi-domain

Tool-based Co-simulation √ D&A D&A D Multi-domain

System & Architecture

Language UML D&A D&A D&A D&A General √ √ √

Language SysML D&A D&A D&A D&A General √ √ √ √

Language Arcadia / Capella D&A D&A D&A General √

Business Process Model Language BPMN D&A General √

6

Presenter
Presentation Notes
State of the art
Page 7: Towards to a Model-driven and Tool-integration Framework ... · system design . Industrial Practices . Model-based System Engineering . Co-simulation . HLA . FMI . Tool-integration

Social Layer Create shared social models to change and align values, behaviors, actions from management, transitioning, political and strategic views and cultures

People Organization

Lingking Relationships

Process Layer The business process model for product design based on industrial standards

Design process

Information Layer The information model including all the concerns about system design

Requirements, feature, function, tool configurations, verification &validation, data linking, structure model and interface design

Technical Layers Simulation and analysis for requirements Co-simulation

/Modelica

Analysis

Ontology

7

’SPIT’ framework and its concerns

Cited from Sillitto H G. 1.3. 1 Design principles for Ultra Large Scale (ULS) Systems[C]//INCOSE International Symposium. 2010, 20(1): 63-82.

Page 8: Towards to a Model-driven and Tool-integration Framework ... · system design . Industrial Practices . Model-based System Engineering . Co-simulation . HLA . FMI . Tool-integration

SPIT Framework Questionnaire for open-mind questions

Design objective questionnaire and collect data

Analyze Data and find best way for transitioning from DB to MBSE

Find industrial standards for simulation

Model the simulation process based on different system characteristics

Find industrial standards for simulation and system design

Model the simulation information based on different system characteristics

HLA(RTI) and FMI standards

Develop Co-simulation platform

OSLC

Develop tool-chain for co-simulation platform

Cited from Sillitto H G. 1.3. 1 Design principles for Ultra Large Scale (ULS) Systems[C]//INCOSE International Symposium. 2010, 20(1): 63-82.

8

Presenter
Presentation Notes
Why is SPIT Framework and what we will do
Page 9: Towards to a Model-driven and Tool-integration Framework ... · system design . Industrial Practices . Model-based System Engineering . Co-simulation . HLA . FMI . Tool-integration

SPIT Framework

Document-based Design Software Multi-domain system

Transitioning

Component Design CAD-based Design

Model-based Design

Simulation-based design and analysis Model-integrated

Engineering and analysis

MBSE Model-driven Model-based development

Social Layer

Transitioning from DB to MBSE from Technical Views

Process Layer

9

System Level Requirements

High Level Design

Component Detailed Design

Implementation

Component Verification

Sub-system Verification

System Verification and Deployment

Information Model

Physical system model Verification

Component Design

Information Model

Physical system model Verification

High Level Design

Presenter
Presentation Notes
Social layer and process layer
Page 10: Towards to a Model-driven and Tool-integration Framework ... · system design . Industrial Practices . Model-based System Engineering . Co-simulation . HLA . FMI . Tool-integration

SPIT Framework

Information Layer

10

Presenter
Presentation Notes
Information layer
Page 11: Towards to a Model-driven and Tool-integration Framework ... · system design . Industrial Practices . Model-based System Engineering . Co-simulation . HLA . FMI . Tool-integration

SPIT Framework

Technical Layer

11

Presenter
Presentation Notes
Technical layer
Page 12: Towards to a Model-driven and Tool-integration Framework ... · system design . Industrial Practices . Model-based System Engineering . Co-simulation . HLA . FMI . Tool-integration

SPIT Framework

12

Tool-chain

Presenter
Presentation Notes
Technical layer
Page 13: Towards to a Model-driven and Tool-integration Framework ... · system design . Industrial Practices . Model-based System Engineering . Co-simulation . HLA . FMI . Tool-integration

SPIT Framework-Overview

13

Presenter
Presentation Notes
Overviews
Page 14: Towards to a Model-driven and Tool-integration Framework ... · system design . Industrial Practices . Model-based System Engineering . Co-simulation . HLA . FMI . Tool-integration

An Industrial Problems for Requirements of Model-driven Technology

Requirement: 3-second rule

Assume there are two vehicles with the speed 𝑣𝑣1 (km/hr) and 𝑣𝑣2 (km/hr), with distance 𝑑𝑑12 (m). The 3-second rule is defined as:

𝑑𝑑12 ≥𝑣𝑣13,6

∙ 3

14

Presenter
Presentation Notes
An example to understand the SPIT Framework. This is the problem description of an autobreaking case.
Page 15: Towards to a Model-driven and Tool-integration Framework ... · system design . Industrial Practices . Model-based System Engineering . Co-simulation . HLA . FMI . Tool-integration

Applying SPIT to an industrial problem

FMU

Interface lib

Subsystem block

S-function for FMU

Vehicle Dynamic model

Simulink Model

Top system model of simulation 15

Presenter
Presentation Notes
The structure of co-simulation model
Page 16: Towards to a Model-driven and Tool-integration Framework ... · system design . Industrial Practices . Model-based System Engineering . Co-simulation . HLA . FMI . Tool-integration

S-function for FMU

XML DLL Headfile

FMU in Simulink (S-function)

M file of S-FUNCTION

Self-design and now we can change the configuration by hand for different FMU

16

Presenter
Presentation Notes
FMU components and how to use simulink to call FMU
Page 17: Towards to a Model-driven and Tool-integration Framework ... · system design . Industrial Practices . Model-based System Engineering . Co-simulation . HLA . FMI . Tool-integration

Algorithm for co-simulation interface

Simulink FMU

0

0.001

0.002

1 2

3 4

5

Simulink model

FMU

Interface of Co-simulation

17

Presenter
Presentation Notes
Interface algorithm of co-simulation
Page 18: Towards to a Model-driven and Tool-integration Framework ... · system design . Industrial Practices . Model-based System Engineering . Co-simulation . HLA . FMI . Tool-integration

Model-driven Solutions

18

VVcaseStructure Model Interface Model

Meta-edit

Create Simulink Model and insert interface block of FMU

S-function for interface, info of FMU

Set parameter for models and run simulation

Simulink Model

Environment configurationOpen Carmaker select

carmaker model, configue FMUDefine task based on parameter

setting and solver setting

Automatically run simulation based on tasks

Auto- generate

Run M-script

Co-simulation Execution Strategy

Configure the co-simulation Environment

Presenter
Presentation Notes
Model-driven way to do this jobs rather than by hand.
Page 19: Towards to a Model-driven and Tool-integration Framework ... · system design . Industrial Practices . Model-based System Engineering . Co-simulation . HLA . FMI . Tool-integration

Information Model

VVcase

Modelstructure

Co-simulation configuration

19

Page 20: Towards to a Model-driven and Tool-integration Framework ... · system design . Industrial Practices . Model-based System Engineering . Co-simulation . HLA . FMI . Tool-integration

Test case

Test1: traffic vehicle has a constant speed

•EgoVehicle • Initial position:[40 0.0 0.4] • Initial Velocity:20 •Acceleraion:0

•TrafficVehicle • Initial position:[0 0.0 0.4] • Initial Velocity:20 •Initial Acceleraion:0

Test 2: traffic vehicle has a sine wave speed

•EgoVehicle •Initial position:[40 0.0 0.4] •Initial Velocity:20 •Acceleraion:2sin(t)

•TrafficVehicle •Initial position:[0 0.0 0.4] •Initial Velocity:20 •Initial Acceleraion:0

Test 3: traffic vehicle has deceleration

•EgoVehicle •Initial position:[40 0.0 0.4] •Initial Velocity:20 •Acceleraion:-1

•TrafficVehicle •Initial position:[0 0.0 0.4] •Initial Velocity:20 •Initial Acceleraion:0

Test4: traffic vehicle has a sudden acceleration and then keep constant speed

•EgoVehicle •Initial position:[40 0.0 0.4] •Initial Velocity:20 •Acceleraion:0(0-30s),1(30-60s),0(60-100s)

•TrafficVehicle •Initial position:[0 0.0 0.4] •Initial Velocity:20 •Initial Acceleraion:0

20

Presenter
Presentation Notes
Build information model including 4 test cases’ information
Page 21: Towards to a Model-driven and Tool-integration Framework ... · system design . Industrial Practices . Model-based System Engineering . Co-simulation . HLA . FMI . Tool-integration

Technical Map

Information Model

Co-simulation model

Result

Presenter
Presentation Notes
Summary the whole process from information model to simulation result
Page 22: Towards to a Model-driven and Tool-integration Framework ... · system design . Industrial Practices . Model-based System Engineering . Co-simulation . HLA . FMI . Tool-integration

Thank you!

Tool –chain of simulation and system design

Industrial Practices

Model-based System

Engineering

Co-simulation

HLA

FMI

Tool-integration

OSLC

Investigation of MBSE transitioning ’SPIT’ Framework

Information model, BPMN and System Engineering

Model-driven technology

Engineering Design Platform

22