SlideShare una empresa de Scribd logo
1 de 37
Descargar para leer sin conexión
Copyright © 2005-2022 PGM All Rights Reserved.
Simulation with Python and MATLAB® in Capella
DESS (Dynamic Execution and System Simulation) add-on
Shanghai PGM Technology Co., Ltd.
v2.0 | 9/3/2022
System
Engineering
System
Engineering
2
Introduction of PGM
System
Engineering
3
Shanghai PGM Technology Co., Ltd.
PGM is short for Pu Gou Moutain, which is a mountain full of treasure, record in “Shan Hai Jing” (Classic
of Mountains and Rivers, the earliest annals of geography in China, about 2,500 years ago).
System
Engineering
4
Shanghai PGM Technology Co., Ltd.
PGM is a leading provider of MBSE solution and consulting service in China.
• MBSE training
• MBSE-transition
consulting
• RE training
• Software
development
process consulting
• Implementation
of MBSE solution
• Implementation
of RE solution
• Implementation
of ALM solution
• Support of
MBSE System
• Support of RE
System
• Support of ALM
System
• Co-Design of
complex systems
as MBSE experts
• Review MBSE
models of
complex systems
Consulting IT Implementation IT Support Co-Design
System
Engineering
5
Our Customers (Part of)
System
Engineering
6
1. Modeling and transition of the overall requirements model
2. Modeling of ATA system models
3. Integration to the overall integration model
Overall Requirements Model
OA
SA
LA
ATA System Models
LA
PA
SA
Transition
Integration of LA
LA
Integration of PA
PA
Overall Integration Model
Overview Of Our Solution in COMAC
System
Engineering
7
Overview Of Our Solution in Xiaomi Vehicle
System
Engineering
System
Engineering
8
Background and Motivation
System
Engineering
9
Motivation
Challenge: how to verify the
architecture design is correct?
• Is the mode and state machine
consistent with scenarios?
• Is the function decomposition
appropriate?
• Can the coordination of
various functions achieve the
desired results?
• …
Consistency ?
Correctness ?
System
Engineering
10
Solution
ü An extension to make state machine and functional data flow executable. Use a control panel to interact with the excuting
model, and automatically record execution process as a scenario. Judge if the sequence of functions and interactions is
desirable by comparing manual scenarios and auto-record scenarios.
ü During state machine and functional data flow execution, MATLAB® or Python code (Modelica and other simulation languages
under development) embedded in functions can be directly invoked to simulate the operation effect of the architecture.
System
Engineering
11
Main Features of DESS Add-on
• Execution and animation of statemachines
• Execution of functional date flows
• Auto-generation of scenarios
• System simulation with MATLAB® or Python code embedded in functions
• Export of SCXML based on statemachines
System
Engineering
System
Engineering
12
Execution and Simulation Rules
System
Engineering
13
Execution Rules of State Machine (1/3)
Based on Mealey machine, as
follows:
• The trigger of transition can be
functional exchange, time event
or change event
• The guard of transition can
directly reference property
values from relative component
• Different state machine can use
“Gen” mechanism to trigger
each other
System
Engineering
14
Execution Rules of State Machine (2/3)
When transition occurs, the sequence of function
and Gen is as follows:
1. Execute do function of pre-state
2. Generate doGen Trigger of pre-state
3. Trigger arrives
4. Guard of transition can reference property value
5. Execute exit function of pre-state
6. Generate exitGen Trigger of pre-state
7. Execute effect function of transition
8. Generate effectGen Trigger of transition
9. Execute entry function of post-state
10. Generate entryGen Trigger of post-state
System
Engineering
15
Execution Rules of State Machine (3/3)
Display rules during execution are as follows:
• Current state/mode is highlighted by red
• Transition to current state is highlighted by
yellow
• States/modes and transitions that have been
through are highlighted by grey
• States/modes and transitions that have not
been through display as default
The process of execution will be record as scenarios automatically
System
Engineering
16
Our extension can support execution of function data flow other
than mode/state machine. The rule is based on Petri-net, as
follows:
• Add initial node, the function connected to initial node will be
executed at first
• The beginning condition of a function’s execution is that all input
ports has at least one token
• The execution of function will consume one token on each input port
• After execution, a function will produce one token on each output
port
• A token will move from the output port to the input port immediately
after it is produced
• The process of execution will be record as scenarios automatically
Execution Rules of Function Data Flow
Execution Execution
Execution
System
Engineering
17
Execution Rules of the Whole Model
If some components have MSM while others don’t, our extension can make a hybrid-execution of state machine rule
and function data flow rule:
• Components with MSM will execute under state machine rule, and others under function data flow rule
• At the border between state machine rule and function data flow rule, triggers in state machine are equal to tokens in function
data flow
System
Engineering
18
Control Panel
Users can use control panel to interact with
mode/state machines during execution:
• Select the target to send triggers
• Select the trigger to be sent, and send it
• Define the value of the trigger to be sent ( the
value will be used when relative function has
embedded M code )
• History of triggers that have been sent during
execution
System
Engineering
19
MATLAB® or Python Code Embedded in Function
Users can invoke MATLAB®/Python editor to edit embedded code by
function’s right-click menu:
• The first several lines of MATLAB®/Python function is auto-generated, re-
using function name and functional input/output
• Property value and exchange item of relative component and function
can be referenced
• Breakpoints can be added in the codes to debug while execution
Users can also create Capella functions by existing simulation codes.
System
Engineering
20
Display Options for Execution
• The number of functions and interfaces
invoked in execution for a real system
simulation is very large (from thousands to
millions). Sometimes it’s impossible to
highlight MSM and update scenarios in real
time. So we need display options to improve
execution efficiency in some cases.
• If the real-time update option is closed, the
execution process will be record as xml file,
which can be partially inserted into scenario
after execution.
System
Engineering
21
Export of SCXML
• We can export each statemachine of the model into SCXML files
System
Engineering
System
Engineering
22
Python Example
System
Engineering
23
Logical Architecture of a Simple System
This simple system has a controller and an engine. The manual order from the
operator will be parsed by the controller and delivered to the engine.
System
Engineering
24
MSM: Controller
The controller has two
modes: StandBy and
Parsing
System
Engineering
25
MSM: Engine
The engine has two modes:
Down and Up
System
Engineering
26
Embedded Python Code for Function parseOrder
Property value from Capella model
can be referenced by “propertyData”
in Python codes.
Exchange Item from Capella model
can also be refenrenced by
“exchangeItemData” in Python codes.
System
Engineering
27
Execution Effect of Simple Example EngineController_Python操作视频_2.1.mp4 (命令行)
System
Engineering
System
Engineering
28
MATLAB® Example
System
Engineering
29
Introduction to MPAR Example
• MPAR (Multi-Functional Phased Array Radar)
performs both scanning (searching) and
tracking tasks. Most of its simulation codes
come from MPARSearchTrackExample in
MATLAB® 2019a.
• This example intends to show how to use
DESS to do system simulation. It’s not about
how to design a real phased array Radar. So it
only uses baseband signal, and simplified
signal processing. - This picture comes from MATLAB® 2019a
System
Engineering
30
Logical Architecture of MPAR
• MPAR consists of five subsystems:
Radar managing subsystem,
antenna subsystem, signal
processing subsystem, data
processing subsystem and display
subsystem. MPAR will search,
confirm and track targets under the
control of simulation configurator.
• Radar managing subsystem,
antenna subsystem and simulation
configurator has MSM, while others
don’t.
System
Engineering
31
MPAR MSM: Simulation Configurator
• After receiving StartOrder from simulation
controller, simulation configurator will
initialize MPAR simulation environment,
and send initialization signal to different
subsystems.
• When simulation is on, the configurator will
update simulation time at the end of each
dwell.
System
Engineering
32
MPAR MSM: Radar Managing Subsystem
• After receiving initialization
signal, Radar managing
subsystem will initialize job
queue, and enter working mode.
• In working mode, Radar
managing subsystem will get
current job at the beginning of
each dwell, and provide job
information and beam direction
to other subsystems.
System
Engineering
33
MPAR MSM: Antenna Subsystem
• After receiving initialization signal, antenna subsystem will initialize the phased array, and enter Stand_By mode.
• In each dwell, antenna subsystem will working through Transmitting mode and Receiving mode for every pulse,
until all pulses are finished.
System
Engineering
34
Embedded Simulation Code for MPAR Functions (Partial)
getCurrentJob generateDetection updateTrackAndJob
System
Engineering
35
Execution Effect of MPAR Example MPAR_Demo_v3.0.mp4 (命令行)
System
Engineering
36
Values of System Simulation by DESS
The consistency between system architecture design and
system simulation is guaranteed.
The granularity of system simulation code is refined to
function level, which is better to maintain and reuse.
It gives engineers a chance to simulate the rough behavior of
system in a very early stage, with no detailed design.
System
Engineering
marketing@pgmse.com
Shanghai PGM Technology Co., Ltd.
218, South Building, No. 2966 Jinke Road,
Shanghai, China

Más contenido relacionado

La actualidad más candente

Tailoring Arcadia Framework in Thales UK
Tailoring Arcadia Framework in Thales UKTailoring Arcadia Framework in Thales UK
Tailoring Arcadia Framework in Thales UK
Obeo
 
CapellaDays2022 | SIEMENS | Expand MBSE into Model-based Production Engineeri...
CapellaDays2022 | SIEMENS | Expand MBSE into Model-based Production Engineeri...CapellaDays2022 | SIEMENS | Expand MBSE into Model-based Production Engineeri...
CapellaDays2022 | SIEMENS | Expand MBSE into Model-based Production Engineeri...
Obeo
 
Capella Days 2021 | Introduction to CAPELLA/ARCADIA and NASA Systems Engineer...
Capella Days 2021 | Introduction to CAPELLA/ARCADIA and NASA Systems Engineer...Capella Days 2021 | Introduction to CAPELLA/ARCADIA and NASA Systems Engineer...
Capella Days 2021 | Introduction to CAPELLA/ARCADIA and NASA Systems Engineer...
Obeo
 
Capella Days 2021 | Where to Start with MBSE when Thousands of System Require...
Capella Days 2021 | Where to Start with MBSE when Thousands of System Require...Capella Days 2021 | Where to Start with MBSE when Thousands of System Require...
Capella Days 2021 | Where to Start with MBSE when Thousands of System Require...
Obeo
 
[Capella Day 2019] Model execution and system simulation in Capella
[Capella Day 2019] Model execution and system simulation in Capella[Capella Day 2019] Model execution and system simulation in Capella
[Capella Day 2019] Model execution and system simulation in Capella
Obeo
 
Introduction to Capella and Arcadia with a Simple System
Introduction to Capella and Arcadia with a Simple SystemIntroduction to Capella and Arcadia with a Simple System
Introduction to Capella and Arcadia with a Simple System
Obeo
 
Capella Days 2021 | Enhancing CubeSat design through ARCADIA and Capella: a c...
Capella Days 2021 | Enhancing CubeSat design through ARCADIA and Capella: a c...Capella Days 2021 | Enhancing CubeSat design through ARCADIA and Capella: a c...
Capella Days 2021 | Enhancing CubeSat design through ARCADIA and Capella: a c...
Obeo
 
Digitally assisted design for safety analysis
Digitally assisted design for safety analysisDigitally assisted design for safety analysis
Digitally assisted design for safety analysis
Obeo
 

La actualidad más candente (20)

From Model-based to Model and Simulation-based Systems Architectures
From Model-based to Model and Simulation-based Systems ArchitecturesFrom Model-based to Model and Simulation-based Systems Architectures
From Model-based to Model and Simulation-based Systems Architectures
 
Tailoring Arcadia Framework in Thales UK
Tailoring Arcadia Framework in Thales UKTailoring Arcadia Framework in Thales UK
Tailoring Arcadia Framework in Thales UK
 
Simplifying MBSE Tasks with Capella and MapleMBSE
Simplifying MBSE Tasks with Capella and MapleMBSESimplifying MBSE Tasks with Capella and MapleMBSE
Simplifying MBSE Tasks with Capella and MapleMBSE
 
CapellaDays2022 | SIEMENS | Expand MBSE into Model-based Production Engineeri...
CapellaDays2022 | SIEMENS | Expand MBSE into Model-based Production Engineeri...CapellaDays2022 | SIEMENS | Expand MBSE into Model-based Production Engineeri...
CapellaDays2022 | SIEMENS | Expand MBSE into Model-based Production Engineeri...
 
Capella Days 2021 | Introduction to CAPELLA/ARCADIA and NASA Systems Engineer...
Capella Days 2021 | Introduction to CAPELLA/ARCADIA and NASA Systems Engineer...Capella Days 2021 | Introduction to CAPELLA/ARCADIA and NASA Systems Engineer...
Capella Days 2021 | Introduction to CAPELLA/ARCADIA and NASA Systems Engineer...
 
[Capella Days 2020] Innovating with MBSE – Medical Device Example
[Capella Days 2020] Innovating with MBSE – Medical Device Example[Capella Days 2020] Innovating with MBSE – Medical Device Example
[Capella Days 2020] Innovating with MBSE – Medical Device Example
 
Capella Days 2021 | Where to Start with MBSE when Thousands of System Require...
Capella Days 2021 | Where to Start with MBSE when Thousands of System Require...Capella Days 2021 | Where to Start with MBSE when Thousands of System Require...
Capella Days 2021 | Where to Start with MBSE when Thousands of System Require...
 
CapellaDays2022 | Thales | Stairway to heaven: Climbing the very first steps
CapellaDays2022 | Thales | Stairway to heaven: Climbing the very first stepsCapellaDays2022 | Thales | Stairway to heaven: Climbing the very first steps
CapellaDays2022 | Thales | Stairway to heaven: Climbing the very first steps
 
[Capella Day 2019] Model execution and system simulation in Capella
[Capella Day 2019] Model execution and system simulation in Capella[Capella Day 2019] Model execution and system simulation in Capella
[Capella Day 2019] Model execution and system simulation in Capella
 
STPA Analysis of Automotive Safety Using Arcadia and Capella
STPA Analysis of Automotive Safety Using Arcadia and CapellaSTPA Analysis of Automotive Safety Using Arcadia and Capella
STPA Analysis of Automotive Safety Using Arcadia and Capella
 
CapellaDays2022 | Thales DMS | A global engineering process based on MBSE to ...
CapellaDays2022 | Thales DMS | A global engineering process based on MBSE to ...CapellaDays2022 | Thales DMS | A global engineering process based on MBSE to ...
CapellaDays2022 | Thales DMS | A global engineering process based on MBSE to ...
 
Introduction to Capella and Arcadia with a Simple System
Introduction to Capella and Arcadia with a Simple SystemIntroduction to Capella and Arcadia with a Simple System
Introduction to Capella and Arcadia with a Simple System
 
Easily enrich capella models with your own domain extensions
Easily enrich capella models with your own domain extensionsEasily enrich capella models with your own domain extensions
Easily enrich capella models with your own domain extensions
 
Capella Days 2021 | Enhancing CubeSat design through ARCADIA and Capella: a c...
Capella Days 2021 | Enhancing CubeSat design through ARCADIA and Capella: a c...Capella Days 2021 | Enhancing CubeSat design through ARCADIA and Capella: a c...
Capella Days 2021 | Enhancing CubeSat design through ARCADIA and Capella: a c...
 
CapellaDays2022 | ThermoFisher - ESI TNO | A method for quantitative evaluati...
CapellaDays2022 | ThermoFisher - ESI TNO | A method for quantitative evaluati...CapellaDays2022 | ThermoFisher - ESI TNO | A method for quantitative evaluati...
CapellaDays2022 | ThermoFisher - ESI TNO | A method for quantitative evaluati...
 
Digitally assisted design for safety analysis
Digitally assisted design for safety analysisDigitally assisted design for safety analysis
Digitally assisted design for safety analysis
 
Unleash the power of functional chains with Capella 1.3.1
Unleash the power of functional chains with Capella 1.3.1Unleash the power of functional chains with Capella 1.3.1
Unleash the power of functional chains with Capella 1.3.1
 
Model-Based Systems Engineering Demystified
Model-Based Systems Engineering DemystifiedModel-Based Systems Engineering Demystified
Model-Based Systems Engineering Demystified
 
Improving MBSE maturity with open-source tool Capella
Improving MBSE maturity with open-source tool Capella Improving MBSE maturity with open-source tool Capella
Improving MBSE maturity with open-source tool Capella
 
CapellaDays2022 | CILAS - ArianeGroup | CILAS feedback about Capella use
CapellaDays2022 | CILAS - ArianeGroup | CILAS feedback about Capella useCapellaDays2022 | CILAS - ArianeGroup | CILAS feedback about Capella use
CapellaDays2022 | CILAS - ArianeGroup | CILAS feedback about Capella use
 

Similar a Simulation with Python and MATLAB® in Capella

Matlab Based High Level Synthesis Engine for Area And Power Efficient Arithme...
Matlab Based High Level Synthesis Engine for Area And Power Efficient Arithme...Matlab Based High Level Synthesis Engine for Area And Power Efficient Arithme...
Matlab Based High Level Synthesis Engine for Area And Power Efficient Arithme...
ijceronline
 
RTI-CODES+ISSS-2012-Submission-1
RTI-CODES+ISSS-2012-Submission-1RTI-CODES+ISSS-2012-Submission-1
RTI-CODES+ISSS-2012-Submission-1
Serge Amougou
 
introduction to mechatronics
introduction to mechatronicsintroduction to mechatronics
introduction to mechatronics
Bilal_11kb
 

Similar a Simulation with Python and MATLAB® in Capella (20)

Model Execution and System Simulation
Model Execution and System SimulationModel Execution and System Simulation
Model Execution and System Simulation
 
Trixboxguide
TrixboxguideTrixboxguide
Trixboxguide
 
RT15 Berkeley | ePHASORsim: Real-time transient stability simulation tool - O...
RT15 Berkeley | ePHASORsim: Real-time transient stability simulation tool - O...RT15 Berkeley | ePHASORsim: Real-time transient stability simulation tool - O...
RT15 Berkeley | ePHASORsim: Real-time transient stability simulation tool - O...
 
Intro to LV in 3 Hours for Control and Sim 8_5.pptx
Intro to LV in 3 Hours for Control and Sim 8_5.pptxIntro to LV in 3 Hours for Control and Sim 8_5.pptx
Intro to LV in 3 Hours for Control and Sim 8_5.pptx
 
Optimica Compiler Toolkit - Overview
Optimica Compiler Toolkit - OverviewOptimica Compiler Toolkit - Overview
Optimica Compiler Toolkit - Overview
 
L3 Programmable logic controller
L3 Programmable logic controllerL3 Programmable logic controller
L3 Programmable logic controller
 
Traffic Simulator
Traffic SimulatorTraffic Simulator
Traffic Simulator
 
Unit i
Unit iUnit i
Unit i
 
Modeling and Real-Time Simulation of Induction Motor Using RT-LAB
Modeling and Real-Time Simulation of Induction Motor Using RT-LABModeling and Real-Time Simulation of Induction Motor Using RT-LAB
Modeling and Real-Time Simulation of Induction Motor Using RT-LAB
 
EC 308 Embedded Systems Module 1 Notes APJKTU
EC 308 Embedded Systems Module 1 Notes APJKTUEC 308 Embedded Systems Module 1 Notes APJKTU
EC 308 Embedded Systems Module 1 Notes APJKTU
 
Simulink Stateflow workshop
 Simulink Stateflow workshop Simulink Stateflow workshop
Simulink Stateflow workshop
 
Siemens s7 300 programming
Siemens s7 300 programming Siemens s7 300 programming
Siemens s7 300 programming
 
Application of the automation know-how within the EGS-CC project
Application of the automation know-how within the EGS-CC projectApplication of the automation know-how within the EGS-CC project
Application of the automation know-how within the EGS-CC project
 
Matlab Based High Level Synthesis Engine for Area And Power Efficient Arithme...
Matlab Based High Level Synthesis Engine for Area And Power Efficient Arithme...Matlab Based High Level Synthesis Engine for Area And Power Efficient Arithme...
Matlab Based High Level Synthesis Engine for Area And Power Efficient Arithme...
 
MODELLING, ANALYSIS AND SIMULATION OF DYNAMIC SYSTEMS USING CONTROL TECHNIQUE...
MODELLING, ANALYSIS AND SIMULATION OF DYNAMIC SYSTEMS USING CONTROL TECHNIQUE...MODELLING, ANALYSIS AND SIMULATION OF DYNAMIC SYSTEMS USING CONTROL TECHNIQUE...
MODELLING, ANALYSIS AND SIMULATION OF DYNAMIC SYSTEMS USING CONTROL TECHNIQUE...
 
NoC simulators presentation
NoC simulators presentationNoC simulators presentation
NoC simulators presentation
 
Introduction to embedded computing and arm processors
Introduction to embedded computing and arm processorsIntroduction to embedded computing and arm processors
Introduction to embedded computing and arm processors
 
PrismTech Integrated Communications Systems Modeling
PrismTech Integrated Communications Systems ModelingPrismTech Integrated Communications Systems Modeling
PrismTech Integrated Communications Systems Modeling
 
RTI-CODES+ISSS-2012-Submission-1
RTI-CODES+ISSS-2012-Submission-1RTI-CODES+ISSS-2012-Submission-1
RTI-CODES+ISSS-2012-Submission-1
 
introduction to mechatronics
introduction to mechatronicsintroduction to mechatronics
introduction to mechatronics
 

Más de Obeo

INCOSE IS 2023 | You deserve more than the best in class MBSE tool
INCOSE IS 2023 | You deserve more than the best in class MBSE toolINCOSE IS 2023 | You deserve more than the best in class MBSE tool
INCOSE IS 2023 | You deserve more than the best in class MBSE tool
Obeo
 
CapellaDays2022 | Politecnico di Milano | Interplanetary Space Mission as a r...
CapellaDays2022 | Politecnico di Milano | Interplanetary Space Mission as a r...CapellaDays2022 | Politecnico di Milano | Interplanetary Space Mission as a r...
CapellaDays2022 | Politecnico di Milano | Interplanetary Space Mission as a r...
Obeo
 
Defining Viewpoints for Ontology-Based DSLs
Defining Viewpoints for Ontology-Based DSLsDefining Viewpoints for Ontology-Based DSLs
Defining Viewpoints for Ontology-Based DSLs
Obeo
 
Development of DSL for Context-Aware Mobile Applications
Development of DSL for Context-Aware Mobile ApplicationsDevelopment of DSL for Context-Aware Mobile Applications
Development of DSL for Context-Aware Mobile Applications
Obeo
 

Más de Obeo (15)

INCOSE IS 2023 | You deserve more than the best in class MBSE tool
INCOSE IS 2023 | You deserve more than the best in class MBSE toolINCOSE IS 2023 | You deserve more than the best in class MBSE tool
INCOSE IS 2023 | You deserve more than the best in class MBSE tool
 
CapellaDays2022 | Politecnico di Milano | Interplanetary Space Mission as a r...
CapellaDays2022 | Politecnico di Milano | Interplanetary Space Mission as a r...CapellaDays2022 | Politecnico di Milano | Interplanetary Space Mission as a r...
CapellaDays2022 | Politecnico di Milano | Interplanetary Space Mission as a r...
 
Gestion applicative des données, un REX du Ministère de l'Éducation Nationale
Gestion applicative des données, un REX du Ministère de l'Éducation NationaleGestion applicative des données, un REX du Ministère de l'Éducation Nationale
Gestion applicative des données, un REX du Ministère de l'Éducation Nationale
 
Sirius Web Advanced : Customize and Extend the Platform
Sirius Web Advanced : Customize and Extend the PlatformSirius Web Advanced : Customize and Extend the Platform
Sirius Web Advanced : Customize and Extend the Platform
 
Sirius Web 101 : Create a Modeler With No Code
Sirius Web 101 : Create a Modeler With No CodeSirius Web 101 : Create a Modeler With No Code
Sirius Web 101 : Create a Modeler With No Code
 
Sirius Project, Now and In the Future
Sirius Project, Now and In the FutureSirius Project, Now and In the Future
Sirius Project, Now and In the Future
 
Visualizing, Analyzing and Optimizing Automotive Architecture Models using Si...
Visualizing, Analyzing and Optimizing Automotive Architecture Models using Si...Visualizing, Analyzing and Optimizing Automotive Architecture Models using Si...
Visualizing, Analyzing and Optimizing Automotive Architecture Models using Si...
 
Defining Viewpoints for Ontology-Based DSLs
Defining Viewpoints for Ontology-Based DSLsDefining Viewpoints for Ontology-Based DSLs
Defining Viewpoints for Ontology-Based DSLs
 
Development of DSL for Context-Aware Mobile Applications
Development of DSL for Context-Aware Mobile ApplicationsDevelopment of DSL for Context-Aware Mobile Applications
Development of DSL for Context-Aware Mobile Applications
 
SimfiaNeo - Workbench for Safety Analysis powered by Sirius
SimfiaNeo - Workbench for Safety Analysis powered by SiriusSimfiaNeo - Workbench for Safety Analysis powered by Sirius
SimfiaNeo - Workbench for Safety Analysis powered by Sirius
 
Get into MBSE-MBSA process with a dedicated toolchain
Get into MBSE-MBSA process with a dedicated toolchainGet into MBSE-MBSA process with a dedicated toolchain
Get into MBSE-MBSA process with a dedicated toolchain
 
Capella annual meeting 2022
Capella annual meeting 2022Capella annual meeting 2022
Capella annual meeting 2022
 
Générez automatiquement vos diagrammes d'architecture | Webinaire Obeo SmartEA
Générez automatiquement vos diagrammes d'architecture | Webinaire Obeo SmartEAGénérez automatiquement vos diagrammes d'architecture | Webinaire Obeo SmartEA
Générez automatiquement vos diagrammes d'architecture | Webinaire Obeo SmartEA
 
Capella (once again) in space, meeting nanosatellites
Capella (once again) in space, meeting nanosatellitesCapella (once again) in space, meeting nanosatellites
Capella (once again) in space, meeting nanosatellites
 
Identifier et suivre les applications à risque pour des processus métier | We...
Identifier et suivre les applications à risque pour des processus métier | We...Identifier et suivre les applications à risque pour des processus métier | We...
Identifier et suivre les applications à risque pour des processus métier | We...
 

Último

result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
Tonystark477637
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
rknatarajan
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Christo Ananth
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 

Último (20)

UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSUNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 

Simulation with Python and MATLAB® in Capella

  • 1. Copyright © 2005-2022 PGM All Rights Reserved. Simulation with Python and MATLAB® in Capella DESS (Dynamic Execution and System Simulation) add-on Shanghai PGM Technology Co., Ltd. v2.0 | 9/3/2022
  • 3. System Engineering 3 Shanghai PGM Technology Co., Ltd. PGM is short for Pu Gou Moutain, which is a mountain full of treasure, record in “Shan Hai Jing” (Classic of Mountains and Rivers, the earliest annals of geography in China, about 2,500 years ago).
  • 4. System Engineering 4 Shanghai PGM Technology Co., Ltd. PGM is a leading provider of MBSE solution and consulting service in China. • MBSE training • MBSE-transition consulting • RE training • Software development process consulting • Implementation of MBSE solution • Implementation of RE solution • Implementation of ALM solution • Support of MBSE System • Support of RE System • Support of ALM System • Co-Design of complex systems as MBSE experts • Review MBSE models of complex systems Consulting IT Implementation IT Support Co-Design
  • 6. System Engineering 6 1. Modeling and transition of the overall requirements model 2. Modeling of ATA system models 3. Integration to the overall integration model Overall Requirements Model OA SA LA ATA System Models LA PA SA Transition Integration of LA LA Integration of PA PA Overall Integration Model Overview Of Our Solution in COMAC
  • 7. System Engineering 7 Overview Of Our Solution in Xiaomi Vehicle
  • 9. System Engineering 9 Motivation Challenge: how to verify the architecture design is correct? • Is the mode and state machine consistent with scenarios? • Is the function decomposition appropriate? • Can the coordination of various functions achieve the desired results? • … Consistency ? Correctness ?
  • 10. System Engineering 10 Solution ü An extension to make state machine and functional data flow executable. Use a control panel to interact with the excuting model, and automatically record execution process as a scenario. Judge if the sequence of functions and interactions is desirable by comparing manual scenarios and auto-record scenarios. ü During state machine and functional data flow execution, MATLAB® or Python code (Modelica and other simulation languages under development) embedded in functions can be directly invoked to simulate the operation effect of the architecture.
  • 11. System Engineering 11 Main Features of DESS Add-on • Execution and animation of statemachines • Execution of functional date flows • Auto-generation of scenarios • System simulation with MATLAB® or Python code embedded in functions • Export of SCXML based on statemachines
  • 13. System Engineering 13 Execution Rules of State Machine (1/3) Based on Mealey machine, as follows: • The trigger of transition can be functional exchange, time event or change event • The guard of transition can directly reference property values from relative component • Different state machine can use “Gen” mechanism to trigger each other
  • 14. System Engineering 14 Execution Rules of State Machine (2/3) When transition occurs, the sequence of function and Gen is as follows: 1. Execute do function of pre-state 2. Generate doGen Trigger of pre-state 3. Trigger arrives 4. Guard of transition can reference property value 5. Execute exit function of pre-state 6. Generate exitGen Trigger of pre-state 7. Execute effect function of transition 8. Generate effectGen Trigger of transition 9. Execute entry function of post-state 10. Generate entryGen Trigger of post-state
  • 15. System Engineering 15 Execution Rules of State Machine (3/3) Display rules during execution are as follows: • Current state/mode is highlighted by red • Transition to current state is highlighted by yellow • States/modes and transitions that have been through are highlighted by grey • States/modes and transitions that have not been through display as default The process of execution will be record as scenarios automatically
  • 16. System Engineering 16 Our extension can support execution of function data flow other than mode/state machine. The rule is based on Petri-net, as follows: • Add initial node, the function connected to initial node will be executed at first • The beginning condition of a function’s execution is that all input ports has at least one token • The execution of function will consume one token on each input port • After execution, a function will produce one token on each output port • A token will move from the output port to the input port immediately after it is produced • The process of execution will be record as scenarios automatically Execution Rules of Function Data Flow Execution Execution Execution
  • 17. System Engineering 17 Execution Rules of the Whole Model If some components have MSM while others don’t, our extension can make a hybrid-execution of state machine rule and function data flow rule: • Components with MSM will execute under state machine rule, and others under function data flow rule • At the border between state machine rule and function data flow rule, triggers in state machine are equal to tokens in function data flow
  • 18. System Engineering 18 Control Panel Users can use control panel to interact with mode/state machines during execution: • Select the target to send triggers • Select the trigger to be sent, and send it • Define the value of the trigger to be sent ( the value will be used when relative function has embedded M code ) • History of triggers that have been sent during execution
  • 19. System Engineering 19 MATLAB® or Python Code Embedded in Function Users can invoke MATLAB®/Python editor to edit embedded code by function’s right-click menu: • The first several lines of MATLAB®/Python function is auto-generated, re- using function name and functional input/output • Property value and exchange item of relative component and function can be referenced • Breakpoints can be added in the codes to debug while execution Users can also create Capella functions by existing simulation codes.
  • 20. System Engineering 20 Display Options for Execution • The number of functions and interfaces invoked in execution for a real system simulation is very large (from thousands to millions). Sometimes it’s impossible to highlight MSM and update scenarios in real time. So we need display options to improve execution efficiency in some cases. • If the real-time update option is closed, the execution process will be record as xml file, which can be partially inserted into scenario after execution.
  • 21. System Engineering 21 Export of SCXML • We can export each statemachine of the model into SCXML files
  • 23. System Engineering 23 Logical Architecture of a Simple System This simple system has a controller and an engine. The manual order from the operator will be parsed by the controller and delivered to the engine.
  • 24. System Engineering 24 MSM: Controller The controller has two modes: StandBy and Parsing
  • 25. System Engineering 25 MSM: Engine The engine has two modes: Down and Up
  • 26. System Engineering 26 Embedded Python Code for Function parseOrder Property value from Capella model can be referenced by “propertyData” in Python codes. Exchange Item from Capella model can also be refenrenced by “exchangeItemData” in Python codes.
  • 27. System Engineering 27 Execution Effect of Simple Example EngineController_Python操作视频_2.1.mp4 (命令行)
  • 29. System Engineering 29 Introduction to MPAR Example • MPAR (Multi-Functional Phased Array Radar) performs both scanning (searching) and tracking tasks. Most of its simulation codes come from MPARSearchTrackExample in MATLAB® 2019a. • This example intends to show how to use DESS to do system simulation. It’s not about how to design a real phased array Radar. So it only uses baseband signal, and simplified signal processing. - This picture comes from MATLAB® 2019a
  • 30. System Engineering 30 Logical Architecture of MPAR • MPAR consists of five subsystems: Radar managing subsystem, antenna subsystem, signal processing subsystem, data processing subsystem and display subsystem. MPAR will search, confirm and track targets under the control of simulation configurator. • Radar managing subsystem, antenna subsystem and simulation configurator has MSM, while others don’t.
  • 31. System Engineering 31 MPAR MSM: Simulation Configurator • After receiving StartOrder from simulation controller, simulation configurator will initialize MPAR simulation environment, and send initialization signal to different subsystems. • When simulation is on, the configurator will update simulation time at the end of each dwell.
  • 32. System Engineering 32 MPAR MSM: Radar Managing Subsystem • After receiving initialization signal, Radar managing subsystem will initialize job queue, and enter working mode. • In working mode, Radar managing subsystem will get current job at the beginning of each dwell, and provide job information and beam direction to other subsystems.
  • 33. System Engineering 33 MPAR MSM: Antenna Subsystem • After receiving initialization signal, antenna subsystem will initialize the phased array, and enter Stand_By mode. • In each dwell, antenna subsystem will working through Transmitting mode and Receiving mode for every pulse, until all pulses are finished.
  • 34. System Engineering 34 Embedded Simulation Code for MPAR Functions (Partial) getCurrentJob generateDetection updateTrackAndJob
  • 35. System Engineering 35 Execution Effect of MPAR Example MPAR_Demo_v3.0.mp4 (命令行)
  • 36. System Engineering 36 Values of System Simulation by DESS The consistency between system architecture design and system simulation is guaranteed. The granularity of system simulation code is refined to function level, which is better to maintain and reuse. It gives engineers a chance to simulate the rough behavior of system in a very early stage, with no detailed design.
  • 37. System Engineering marketing@pgmse.com Shanghai PGM Technology Co., Ltd. 218, South Building, No. 2966 Jinke Road, Shanghai, China