Towards to a Model-driven and Tool-integration Framework ... · system design . Industrial...
Transcript of Towards to a Model-driven and Tool-integration Framework ... · system design . Industrial...
Towards to a Model-driven and Tool-integration Framework for
Co-simulation Environments
Jinzhi Lu, Ph.D student, KTH
Martin Törngren, Professor, KTH
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
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
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
Outline
1 State of the art
2 ’SPIT’ Framework
3 An industrial Problems
4 Solutions
5
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
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.
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
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
SPIT Framework
Information Layer
10
SPIT Framework
Technical Layer
11
SPIT Framework
12
Tool-chain
SPIT Framework-Overview
13
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
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
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
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
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
Information Model
VVcase
Modelstructure
Co-simulation configuration
19
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
Technical Map
Information Model
Co-simulation model
Result
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