Cyber-Physical Systems Modeling Physical Dynamics IECE 553/453 Fall - - PowerPoint PPT Presentation

cyber physical systems modeling physical dynamics
SMART_READER_LITE
LIVE PREVIEW

Cyber-Physical Systems Modeling Physical Dynamics IECE 553/453 Fall - - PowerPoint PPT Presentation

Cyber-Physical Systems Modeling Physical Dynamics IECE 553/453 Fall 2020 Prof. Dola Saha 1 Modeling Techniques Models that are abstractions of system dynamics (how system behavior changes over time) Modeling physical phenomena


slide-1
SLIDE 1

1

Cyber-Physical Systems Modeling Physical Dynamics

IECE 553/453– Fall 2020

  • Prof. Dola Saha
slide-2
SLIDE 2

2

Modeling Techniques

Ø Models that are abstractions of system dynamics

(how system behavior changes over time)

§ Modeling physical phenomena – differential equations § Feedback control systems – time-domain modeling § Modeling modal behavior – FSMs, hybrid automata, … § Modeling sensors and actuators –calibration, noise, … § Hardware and software – concurrency, timing, power, … § Networks – latencies, error rates, packet losses, …

slide-3
SLIDE 3

3

Modeling of Continuous Dynamics

Ø Ordinary differential equations, Laplace

transforms, feedback control models, …

slide-4
SLIDE 4

4

Example CPS System

Ø Helicopter Dynamics

slide-5
SLIDE 5

5

Modeling Physical Motion

Ø Six Degrees of Freedom § Position: x, y, z § Orientation: roll (!!), yaw (!"), pitch (!#)

slide-6
SLIDE 6

6

Notation

Ø Functions of this form are known as continuous-time signals

Orientation can be represented in the same form

slide-7
SLIDE 7

7

Notation

slide-8
SLIDE 8

8

Newton’s Second Law

slide-9
SLIDE 9

9

Orientation

slide-10
SLIDE 10

10

Torque: Angular version of Force

Just as force is a push or a pull, a torque is a twist. Units: newton-meters/radian, Joules/radian

Ty(t ) = r f (t )

angular momentum, momentum

slide-11
SLIDE 11

11

Rotational Version of Newton’s Law

If the object is spherical, this reluctance is the same around all axes, so it reduces to a constant scalar I (or equivalently, to a diagonal matrix I with equal diagonal elements I).

slide-12
SLIDE 12

12

For a spherical object

slide-13
SLIDE 13

13

Simplified Model

Ø Model-order Reduction

slide-14
SLIDE 14

14

Simplified Model of Helicopter

Ø the force produced by the tail rotor must counter the

torque produced by the main rotor

Ø Assumptions:

§ helicopter position is fixed at the origin § helicopter remains vertical, so pitch and roll are fixed at zero

Ø the moment of inertia reduces to a scalar that

represents a torque that resists changes in yaw

slide-15
SLIDE 15

15

Feedback Control Problem

Control system problem: Apply torque using the tail rotor to counterbalance the torque of the top rotor. A helicopter without a tail rotor, like the one below, will spin uncontrollably due to the torque induced by friction in the rotor shaft.

slide-16
SLIDE 16

16

Linear System

Ø Block with mass M connected to a wall through spring Ø Velocity Ø Friction (static, Coulomb, Viscous) is not a linear function of Ø For simplicity, we only consider viscous friction Ø Spring force (linear in operating range ) Ø Thus we can model it as a linear system

˙ y = dy/dt

<latexit sha1_base64="gtp8sD+lMa51KX4tUFxd5uzmA=">AB9HicbVDLSsNAFJ3UV62vqks3g0VwVRMrPhZC0Y3LCvYBbSiTyaQdOnk4c1MIod/hxoUibv0Yd/6NkzSIrwMDh3Pu4d45TiS4AtP8MEoLi0vLK+XVytr6xuZWdXuno8JYUtamoQhlzyGKCR6wNnAQrBdJRnxHsK4zuc787pRJxcPgDpKI2T4ZBdzjlICW7IEbQprMLt3kyIVhtWbWzRz4L7EKUkMFWsPqu87T2GcBUEGU6ltmBHZKJHAq2KwyiBWLCJ2QEetrGhCfKTvNj57hA6242AulfgHgXP2eSImvVOI7etInMFa/vUz8z+vH4J3bKQ+iGFhA54u8WGAIcdYAdrlkFESiCaGS61sxHRNJKOieKnkJFxlOv78l3SO61aj3rg9qTWvijrKaA/to0NkoTPURDeohdqIonv0gJ7QszE1Ho0X43U+WjKzC76AePtEwlIkmg=</latexit>

˙ y

<latexit sha1_base64="K3cjxgOarOi85M8VpXbW5wJzl9M=">AB7nicbVDLSsNAFL2pr1pfVZdugkVwVRIVH7uiG5cV7APaUCbTSTt0MgkzN0IJ/Qg3LhRx6/e482+cpEHUemDgcM49zL3HjwX6DifVmlpeWV1rbxe2djc2t6p7u61dZQoylo0EpHq+kQzwSVrIUfBurFiJPQF6/iTm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SU8zIrDKIFYkQnqIx6RvKUiUl+bXzuwjo4zsQEhTXNu5+nMiRaFSeibzhDpifrZeJ/Xj/WwYWXUh7FmnA8XxTEzNbCzl63R1QSrFliCMKSmltPESYW0CquQhXGY4+35kXQadfekfnJ7WmteFXGU4QAO4RhcOIcm3EAL2oDhHh7hGV4sYT1Zr9bvLVkFTP78AvW+xe0/o9a</latexit>
slide-17
SLIDE 17

17

Transfer Function

Ø Description of the input-output relation for a linear system Ø Ratio of the output of a system to the input of a system Ø Laplace domain considering its initial conditions and

equilibrium point to be zero

Ø Time domain representation is Impulse Function

slide-18
SLIDE 18

18

Transfer Function

Ø Newton’s Law Ø Applying Laplace Transform with zero initial condition Ø Transfer Function

m¨ y = u − k1 ˙ y − k2y

<latexit sha1_base64="yb+L/rDFG98hp2zIdwHprx3Mdxk=">ACHicbVDLSsNAFJ34rPUVdenCYBHcWJWfCyEohuXFewD2hAmk0k7dDIJMxMhCzd+CtuXCji1k9w5984SYOo9cDAuefcOzP3uBElQprmpzY3v7C4tFxZqa6urW9s6lvbXRHGHOEOCmnI+y4UmBKGO5JIivsRxzBwKe65k6vc791hLkjIbmUSYTuAI0Z8gqBUkqPvBUPC2WaZBfx0cRJrWw4LfOikSWOXjPrZgFjlglqYESbUf/UBegOMBMIgqFGFhmJO0UckQxVl1GAscQTSBIzxQlMEACzstFsmMA6V4h9ydZg0CvXnRAoDIZLAVZ0BlGPx18vF/7xBLP0zOyUsiVmaPqQH1NDhkaeiuERjpGkiSIQcaL+aqAx5BJlV21COE8x8n3yrOk26hbzXrz5rjWuizjqIBdsA8OgQVOQtcgzboATuwSN4Bi/ag/akvWpv09Y5rZzZAb+gvX8BnaWafQ=</latexit>

¨ y = d2y(t)/dt2

<latexit sha1_base64="tROhjtHLJpavwygwOUi5YON6YM=">ACAnicbZDLSsNAFIYn9VbrLepK3ASLUDc1acXLQi6cVnBXqCNZTKZtkMnF2ZOhBCG1/FjQtF3PoU7nwbkzSIWn8Y+PjPOZw5v+Vz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c/5h5j+Wz6iQmjZVCiura+sbxc3S1vbO7p6f9AWXsAxaWGPebxrIUEYdUlLUslI1+cEORYjHWt8n+adF8IF9dwnGfrEcNDQpTbFSCaWqd46UDxHtRj2R0hGYVwRpzcZBimejc1Ij6GYS1NrYdxUy1pVywSXQc+hDHI1TXSH3g4cIgrMUNC9HTNl0aEuKSYkbjUDwTxER6jIekl6CKHCPKVo3hSeIMoO3x5LgSZu78jQg5QoSOlUw6SI7E3yw1/8t6gbSvjIi6fiCJi2cP2QGD0oNpb3BAOcGShQkgzGnyV4hHiCMsk3ZLWQnXqS5+V16Gdq2q16v1x/Ny4y6vowiOwDGoAB1cgZ4AE3QAhi8gnfwAT6VN2WiTJWv2WhBye8cgUp3z8ZxKaZ</latexit>
slide-19
SLIDE 19

19

State Space Representation

Ø Mathematical model of a physical system § Set of input, output and state variables § Related by first-order differential equations or difference equations

slide-20
SLIDE 20

20

State Space Equation

Ø Let’s consider displacement and velocity as state variables Ø Using Newton’s Law: Ø In Matrix form:

m¨ y = u − k1 ˙ y − k2y

<latexit sha1_base64="yb+L/rDFG98hp2zIdwHprx3Mdxk=">ACHicbVDLSsNAFJ34rPUVdenCYBHcWJWfCyEohuXFewD2hAmk0k7dDIJMxMhCzd+CtuXCji1k9w5984SYOo9cDAuefcOzP3uBElQprmpzY3v7C4tFxZqa6urW9s6lvbXRHGHOEOCmnI+y4UmBKGO5JIivsRxzBwKe65k6vc791hLkjIbmUSYTuAI0Z8gqBUkqPvBUPC2WaZBfx0cRJrWw4LfOikSWOXjPrZgFjlglqYESbUf/UBegOMBMIgqFGFhmJO0UckQxVl1GAscQTSBIzxQlMEACzstFsmMA6V4h9ydZg0CvXnRAoDIZLAVZ0BlGPx18vF/7xBLP0zOyUsiVmaPqQH1NDhkaeiuERjpGkiSIQcaL+aqAx5BJlV21COE8x8n3yrOk26hbzXrz5rjWuizjqIBdsA8OgQVOQtcgzboATuwSN4Bi/ag/akvWpv09Y5rZzZAb+gvX8BnaWafQ=</latexit>
slide-21
SLIDE 21

21

Actor Model

Ø Mathematical Model of Concurrent Computation Ø Actor is an unit of computation Ø Actors can § Create more actors § Send messages to other actors § Designate what to do with the next message Ø Multiple actors may execute at the same time

slide-22
SLIDE 22

22

Actor Model of Systems

ØA system is a function that

accepts an input signal and yields an output signal.

ØThe domain and range of the

system function are sets of signals, which themselves are functions.

ØParameters may affect the

definition of the function S.

slide-23
SLIDE 23

23

Actor Model of the Helicopter

Ø Input is the net torque of the

tail rotor and the top rotor. Output is the angular velocity around the y-axis.

Ø Parameters of the model are

shown in the box. The input and output relation is given by the equation to the right.

slide-24
SLIDE 24

24

Composition of Actor Model

slide-25
SLIDE 25

25

Actor Models with Multiple Inputs

slide-26
SLIDE 26

26

Modern Actor Based Platforms

Ø Simulink (The MathWorks) Ø Labview (National Instruments) Ø Modelica (Linkoping) Ø OPNET (Opnet Technologies) Ø Polis & Metropolis (UC Berkeley) Ø Gabriel, Ptolemy, and Ptolemy II

(UC Berkeley)

Ø OCP, open control platform

(Boeing)

Ø GME, actor-oriented meta-

modeling (Vanderbilt)

Ø SPW, signal processing worksystem

(Cadence)

Ø System studio (Synopsys) Ø ROOM, real-time object-oriented

modeling (Rational)

Ø Easy5 (Boeing) Ø Port-based objects (U of Maryland) Ø I/O automata (MIT) Ø VHDL, Verilog, SystemC (Various)

slide-27
SLIDE 27

27

Example LabVIEW Screenshot