1
Cyber-Physical Systems Modeling Physical Dynamics
IECE 553/453– Fall 2020
- Prof. Dola Saha
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
1
2
Ø Models that are abstractions of system dynamics
§ 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, …
3
Ø Ordinary differential equations, Laplace
transforms, feedback control models, …
4
Ø Helicopter Dynamics
5
Ø Six Degrees of Freedom § Position: x, y, z § Orientation: roll (!!), yaw (!"), pitch (!#)
6
Ø Functions of this form are known as continuous-time signals
Orientation can be represented in the same form
7
8
9
10
Just as force is a push or a pull, a torque is a twist. Units: newton-meters/radian, Joules/radian
angular momentum, momentum
11
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).
12
13
Ø Model-order Reduction
14
Ø the force produced by the tail rotor must counter the
Ø 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
15
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.
16
Ø 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
k1 ˙ y(t)
<latexit sha1_base64="+jfL/g5kJILg0SL25rYwPOnySRg=">AB+HicbVDLSsNAFJ3UV62PRl26CRahbkpixceu6MZlBWsLbQiT6aQdOnkwcyPEkC9x40IRt36KO/GSRpErQcGDufcw71z3IgzCab5qVWldW16rtY3Nre26vrN7J8NYENojIQ/FwMWSchbQHjDgdBAJin2X0747u8r9/j0VkoXBLSQRtX08CZjHCAYlOXp95qRWNhqHkCZE4cvWG2zALGIrFK0kAluo7+ocIk9mkAhGMph5YZgZ1iAYxwmtVGsaQRJjM8oUNFA+xTafF4ZlxqJSx4YVCvQCMQv2ZSLEvZeK7atLHMJV/vVz8zxvG4J3bKQuiGhA5ou8mBsQGnkLxpgJSoAnimAimLrVIFMsMAHVa0o4SLH6feXF8ndctqt9o3J43OZVlHFe2jA9REFjpDHXSNuqiHCIrRI3pGL9qD9qS9am/z0YpWZvbQL2jvX7nqk0Q=</latexit>k2y
<latexit sha1_base64="5MPsh1nmYyghzWxkNOX/rSjxWkI=">AB7XicbVDLSsNAFL2pr1pfVZdugkVwVZIqPnZFNy4r2Ae0oUymk3bsZCbMTIQ+g9uXCji1v9x5984SYOo9cCFwzn3cu89fsSo0o7zaZWldW18rlY3Nre2d6u5eR4lYtLGgnZ85EijHLS1lQz0oskQaHPSNefXmd+94FIRQW/0lEvBCNOQ0oRtpInekwbcySYbXm1J0c9iJxC1KDAq1h9WMwEjgOCdeYIaX6rhNpL0VSU8zIrDKIFYkQnqIx6RvKUiUl+bXzuwjo4zsQEhTXNu5+nMiRaFSeibzhDpifrZeJ/Xj/WwYWXUh7FmnA8XxTEzNbCzl63R1QSrFliCMKSmltPESYW0CquQhXGY4+35kXQadfekfnJ7WmteFXGU4QAO4RhcOIcm3EAL2oDhHh7hGV4sYT1Zr9bvLVkFTP78AvW+xe0/o9a</latexit>17
Ø 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
18
Ø Newton’s Law Ø Applying Laplace Transform with zero initial condition Ø Transfer Function
¨ y = d2y(t)/dt2
<latexit sha1_base64="tROhjtHLJpavwygwOUi5YON6YM=">ACAnicbZDLSsNAFIYn9VbrLepK3ASLUDc1acXLQi6cVnBXqCNZTKZtkMnF2ZOhBCG1/FjQtF3PoU7nwbkzSIWn8Y+PjPOZw5v+VzJkHXP5XC3PzC4lJxubSyura+oW5utaUXCEJbxOe6FpYUs5c2gIGnHZ9QbFjcdqxJpdpvXNHhWSewOhT0Hj1w2ZARDYg3Unb5texCF8bl9G9XisAIHhzakOFDLelXPpM2CkUMZ5WoO1I+7ZHAoS4QjqXsGboPZoQFMJpXOoHkvqYTPCI9hJ0sUOlGWUnxNp+4tja0BPJc0HL3J8TEXakDB0r6XQwjOXfWmr+V+sFMDw1I+b6AVCXTBcNA6Bp6V5aDYTlAPE8BEsOSvGhljgQkqZWyEM5SHX+fPAvtWtWoV+vXR+XGR5HEe2iPVRBjpBDXSFmqiFCLpHj+gZvSgPypPyqrxNWwtKPrONfkl5/wL6cJdK</latexit>˙ y = dy(t)/dt
<latexit sha1_base64="aIws2OcJyNj53toanO+vtFpxc+8=">AB+XicbVDLSsNAFJ3UV62vqEs3wSLUTU2s+FgIRTcuK9gHtKFMJpN26OTBzE0hP6JGxeKuPVP3Pk3TtIgaj1w4XDOvTP3HifiTIJpfmqlpeWV1bXyemVjc2t7R9/d68gwFoS2SchD0XOwpJwFtA0MO1FgmLf4bTrTG4zvzulQrIweIAkoraPRwHzGMGgpKGuD9wQ0mR27SY1OD5xYahXzbqZw1gkVkGqEBrqH+oJ0js0wAIx1L2LTMCO8UCGOF0VhnEkaYTPCI9hUNsE+lneabz4wjpbiGFwpVARi5+nMixb6Uie+oTh/DWP71MvE/rx+Dd2mnLIhioAGZf+TF3IDQyGIwXCYoAZ4ogolgaleDjLHABFRYlTyEqwzn3ycvks5p3WrUG/dn1eZNEUcZHaBDVEMWukBNdIdaqI0ImqJH9IxetFR70l61t3lrStm9tEvaO9fKmWTfA=</latexit>19
Ø Mathematical model of a physical system § Set of input, output and state variables § Related by first-order differential equations or difference equations
20
Ø Let’s consider displacement and velocity as state variables Ø Using Newton’s Law: Ø In Matrix form:
21
Ø 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
22
ØA system is a function that
ØThe domain and range of the
ØParameters may affect the
23
Ø Input is the net torque of the
Ø Parameters of the model are
24
25
26
Ø 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)
27