Causal Block Diagram: compiler to LaTeX and DEVS Nicolas Demarbaix - - PowerPoint PPT Presentation

causal block diagram compiler to latex and devs
SMART_READER_LITE
LIVE PREVIEW

Causal Block Diagram: compiler to LaTeX and DEVS Nicolas Demarbaix - - PowerPoint PPT Presentation

Causal Block Diagram: compiler to LaTeX and DEVS Nicolas Demarbaix Overview Introduction Theoretical background Design & Implementation Conclusion 2 Introduction 3 Introduction Why ? Clear and detailed description


slide-1
SLIDE 1

Causal Block Diagram: compiler to LaTeX and DEVS

Nicolas Demarbaix

slide-2
SLIDE 2

Overview

  • Introduction
  • Theoretical background
  • Design & Implementation
  • Conclusion

2

slide-3
SLIDE 3

Introduction

3

slide-4
SLIDE 4

Introduction

4

Why?

  • Clear and detailed description in LaTeX
  • Simulating model using PypDEVS
  • Plugging CBD as component into CoupledDEVS
slide-5
SLIDE 5

Introduction

5

How?

  • Using Python based CBD model
  • Compile to LaTeX format
  • Compile to DEVS format
slide-6
SLIDE 6

Technical background

6

slide-7
SLIDE 7

Technical background

Preparation

  • Construction of Dependency Graph
  • Identify Strong Components
  • Identify cyclic Components and verify Linearity

7

slide-8
SLIDE 8

Technical background

CBD to DEVS mapping

  • Causal Block Diagram -> Single Atomic Devs
  • Strong Component -> State in the Atomic Devs
  • Block Computation in State

8

slide-9
SLIDE 9

Technical background

Dynamic Rate Change

  • Check allowed user-defined deviation
  • Update block rate accordingly

9

Christis, N., 2012-2013. Research internship 2: Hybrid systems.

slide-10
SLIDE 10

Design & Implementation

10

slide-11
SLIDE 11

General Design

11

  • Starting from an arbitrary CBD model
  • Flatten the CBD model if it is hierarchical
  • Construct the Dependency Graph
  • Check for algebraic loops and linearity
slide-12
SLIDE 12

Design - CBD to LaTeX

12

  • 3 general parts
  • 1. Causal Block Diagram description
  • 2. Dependency Graph description
  • 3. Solution
slide-13
SLIDE 13

CBD to LaTeX example

13

slide-14
SLIDE 14

Implementation - CBD to LaTeX

14

  • Graphical Representation using TikZ package
  • Document contains information about:
  • 1. Block type and equation
  • 2. Component structure and block dependencies
  • 3. Solution (either direct or via solver)
slide-15
SLIDE 15

Design - CBD to DEVS

15

  • 3 parts
  • 1. CBDState

= State Definition

  • 2. CBD

= AtomicDEVS

  • 3. Root

= CoupledDEVS

slide-16
SLIDE 16

Implementation - CBD to DEVS

16

  • Initially propagate block values
  • For each non-determined component create a state
  • Compute blocks upon transition:

current component next component

  • Compute linear algebraic loops using Gaussian

Solver

slide-17
SLIDE 17

CBD to DEVS example

17

slide-18
SLIDE 18

Conclusion

18

  • The CBD to LaTeX Compiler provides clear information

about the CBD

  • The CBD to DEVS Compiler generates a AtomicDEVS

model that produces the same results

Future work

  • Complete dynamic rate monitoring
  • Automatically provide input/output ports for the

AtomicDEVS and the corresponding external transition

slide-19
SLIDE 19

Questions?