CIS 4930/6930: Principles of Cyber-Physical Systems

Similar documents
Model-Based Design. Chapter Modeling Physical Dynamics Newtonian Mechanics

Rotational & Rigid-Body Mechanics. Lectures 3+4

Rigid body simulation. Once we consider an object with spatial extent, particle system simulation is no longer sufficient

Robot Control Basics CS 685

Noise - irrelevant data; variability in a quantity that has no meaning or significance. In most cases this is modeled as a random variable.

Rotational Motion. Chapter 4. P. J. Grandinetti. Sep. 1, Chem P. J. Grandinetti (Chem. 4300) Rotational Motion Sep.

Lesson Rigid Body Dynamics

Chapter 4 The Equations of Motion

Introduction to Controls

Control Systems I. Lecture 2: Modeling and Linearization. Suggested Readings: Åström & Murray Ch Jacopo Tani

ECEN 420 LINEAR CONTROL SYSTEMS. Lecture 6 Mathematical Representation of Physical Systems II 1/67

A DARK GREY P O N T, with a Switch Tail, and a small Star on the Forehead. Any

6. 3D Kinematics DE2-EA 2.1: M4DE. Dr Connor Myant

Introduction to Haptic Systems

Manipulator Dynamics 2. Instructor: Jacob Rosen Advanced Robotic - MAE 263D - Department of Mechanical & Aerospace Engineering - UCLA

Control Systems I. Lecture 2: Modeling. Suggested Readings: Åström & Murray Ch. 2-3, Guzzella Ch Emilio Frazzoli

Rigid body dynamics. Basilio Bona. DAUIN - Politecnico di Torino. October 2013

Review: control, feedback, etc. Today s topic: state-space models of systems; linearization

Applications of Eigenvalues & Eigenvectors

EECE 3620: Linear Time-Invariant Systems: Chapter 2

School of Engineering Faculty of Built Environment, Engineering, Technology & Design

Properties of LTI Systems

General Physics I. Lecture 10: Rolling Motion and Angular Momentum.

Artificial Intelligence & Neuro Cognitive Systems Fakultät für Informatik. Robot Dynamics. Dr.-Ing. John Nassour J.

INC 341 Feedback Control Systems: Lecture 2 Transfer Function of Dynamic Systems I Asst. Prof. Dr.-Ing. Sudchai Boonto

Chapter 1 Fundamental Concepts

CP1 REVISION LECTURE 3 INTRODUCTION TO CLASSICAL MECHANICS. Prof. N. Harnew University of Oxford TT 2017

New Mexico State University Klipsch School of Electrical Engineering. EE312 - Signals and Systems I Fall 2017 Exam #1

1.4 Unit Step & Unit Impulse Functions

Signals and Systems Chapter 2

1.17 : Consider a continuous-time system with input x(t) and output y(t) related by y(t) = x( sin(t)).

AC&ST AUTOMATIC CONTROL AND SYSTEM THEORY SYSTEMS AND MODELS. Claudio Melchiorri

AB-267 DYNAMICS & CONTROL OF FLEXIBLE AIRCRAFT

Synthesis and Inductive Learning Part 3

Basic Equations of Elasticity

Stress, Strain, Mohr s Circle

Linear Systems Theory

Lecture 8 Analyzing the diffusion weighted signal. Room CSB 272 this week! Please install AFNI

Dynamics. 1 Copyright c 2015 Roderic Grupen

Spacecraft Dynamics and Control

Differential and Difference LTI systems

General Relativity ASTR 2110 Sarazin. Einstein s Equation

Cyber-Physical Systems Modeling and Simulation of Continuous Systems

Unit IV State of stress in Three Dimensions

Lecture 2. Introduction to Systems (Lathi )

2. CONVOLUTION. Convolution sum. Response of d.t. LTI systems at a certain input signal

Exercises for Multivariable Differential Calculus XM521

ECE557 Systems Control

信號與系統 Signals and Systems

Wave and Elasticity Equations

信號與系統 Signals and Systems

CS 480/680: GAME ENGINE PROGRAMMING

Lecture 1: Introduction Introduction

Time Response of Dynamic Systems! Multi-Dimensional Trajectories Position, velocity, and acceleration are vectors

Translational and Rotational Dynamics!

Chapter 6: Momentum Analysis

2 Classification of Continuous-Time Systems

Lecture 11 Overview of Flight Dynamics I. Dr. Radhakant Padhi Asst. Professor Dept. of Aerospace Engineering Indian Institute of Science - Bangalore

Dynamics and Control of Rotorcraft

Nonlinear Control Lecture 7: Passivity

LOWELL WEEKLY JOURNAL

Lecture 2 ELE 301: Signals and Systems

Control Systems. Time response

Motion in Space. MATH 311, Calculus III. J. Robert Buchanan. Fall Department of Mathematics. J. Robert Buchanan Motion in Space

Introduction to Modern Control MT 2016

Analog Signals and Systems and their properties

SYSTEMTEORI - KALMAN FILTER VS LQ CONTROL

In this section, mathematical description of the motion of fluid elements moving in a flow field is

Kinematics (special case) Dynamics gravity, tension, elastic, normal, friction. Energy: kinetic, potential gravity, spring + work (friction)

State space control for the Two degrees of freedom Helicopter

16.30 Estimation and Control of Aerospace Systems

AE/ME 339. Computational Fluid Dynamics (CFD) K. M. Isaac. Momentum equation. Computational Fluid Dynamics (AE/ME 339) MAEEM Dept.

Rigid Body Rotation. Speaker: Xiaolei Chen Advisor: Prof. Xiaolin Li. Department of Applied Mathematics and Statistics Stony Brook University (SUNY)

General Definition of Torque, final. Lever Arm. General Definition of Torque 7/29/2010. Units of Chapter 10

Basic concepts in DT systems. Alexandra Branzan Albu ELEC 310-Spring 2009-Lecture 4 1

If the symmetry axes of a uniform symmetric body coincide with the coordinate axes, the products of inertia (Ixy etc.

10 Transfer Matrix Models

Control Systems! Copyright 2017 by Robert Stengel. All rights reserved. For educational use only.

Teaching State Variable Feedback to Technology Students Using MATLAB and SIMULINK

Exercise 1: Inertia moment of a simple pendulum

Flight Dynamics & Control Equations of Motion of 6 dof Rigid Aircraft-Kinematics

1/30. Rigid Body Rotations. Dave Frank

BIBO STABILITY AND ASYMPTOTIC STABILITY

Modeling and Experimentation: Compound Pendulum

Lecture 13 - Wednesday April 29th

MECH 5312 Solid Mechanics II. Dr. Calvin M. Stewart Department of Mechanical Engineering The University of Texas at El Paso

The integrating factor method (Sect. 1.1)

1. Find the solution of the following uncontrolled linear system. 2 α 1 1

Spontaneous Speed Reversals in Stepper Motors

Control Systems. Time response. L. Lanari

Entrance Exam, Differential Equations April, (Solve exactly 6 out of the 8 problems) y + 2y + y cos(x 2 y) = 0, y(0) = 2, y (0) = 4.

Ordinary differential equations. Phys 420/580 Lecture 8

Physics 101 Lecture 11 Torque

Chapter 1 Fundamental Concepts

Differential Equation (DE): An equation relating an unknown function and one or more of its derivatives.

The first order quasi-linear PDEs

CSE 140: Components and Design Techniques for Digital Systems. Lecture 9: Sequential Networks: Implementation

MAE 323: Lecture 1. Review

Lecture Notes of EE 714

Discrete and continuous dynamic systems

Transcription:

CIS 4930/6930: Principles of Cyber-Physical Systems Chapter 2: Continuous Dynamics Hao Zheng Department of Computer Science and Engineering University of South Florida H. Zheng (CSE USF) CIS 4930/6930: Principles of CPS 1 / 29

Modeling Techniques Models are abstractions of system dynamics (i.e., how things change over time): Examples: Continuous dynamics - ordinary differential equations (ODEs) Discrete dynamics - finite-state machines (FSMs) Hybrid systems - a variety of hybrid system models H. Zheng (CSE USF) CIS 4930/6930: Principles of CPS 2 / 29

Modeling Continuous Dynamics Classical mechanics is the study of mechanical parts that move. Motion of mechanical parts can often be modeled using ordinary differential equations (ODEs). ODEs can also be applied to numerous other domains including circuits, chemical processes, and biological processes. ODEs used in tools such as LabVIEW (from National Instruments) and Simulink (from The MathWorks, Inc.). ODEs only work for smooth motion where linearity, time invariance, and continuity properties hold. Non-smooth motion, such as collisions, require hybrid (mixture of continuous and discrete) models (see next lecture). Feedback control can stabilize unstable systems. H. Zheng (CSE USF) CIS 4930/6930: Principles of CPS 3 / 29

2.1 Model of Helicopter Dynamics x Roll z Pitch y Yaw H. Zheng (CSE USF) CIS 4930/6930: Principles of CPS 4 / 29

Position Position is represented by six functions: x : R R y : R R z : R R roll θ x : R R yaw θ y : R R pitch θ z : R R where the domain represents time and the co-domain (range) represents position or orientation along the axis. Collecting into two vectors: x : R R 3 θ : R R 3 where x represents position and θ represents orientation. H. Zheng (CSE USF) CIS 4930/6930: Principles of CPS 5 / 29

Newton s Second Law F(t) = Mẍ(t) where F is the force vector, M is the mass, and ẍ is second derivative of x (i.e., the acceleration). Velocity can be determined as follows: t > 0, ẋ(t) = ẋ(0) + = ẋ(0) + 1 M Position can be determined as follows: t > 0, x(t) = x(0) + 0 ẋ(τ)dτ = x(0) + tẋ(0) + 1 M ẍ(τ)dτ 0 0 F(τ)dτ τ 0 0 F(α)dαdτ H. Zheng (CSE USF) CIS 4930/6930: Principles of CPS 6 / 29

Rotational Version of Newton s Second Law The rotational version of force is torque: T x (t) T y (t) T z (t) T(t) = d dt (I(t) θ(t)) = d dt I xx (t) I xy (t) I xz (t) I yx (t) I yy (t) I yz (t) I zx (t) I zy (t) I zz (t) θ x (t) θ y (t) θ z (t) where T is the torque vector and I(t) is the moment of inertia tensor that represents reluctance of an object to spin. When I(t) is a constant I, this reduces to: T(t) = I θ(t) H. Zheng (CSE USF) CIS 4930/6930: Principles of CPS 7 / 29

Rotational Version of Newton s Second Law (cont) Rotational acceleration: Rotational velocity: θ(t) = T(t) I θ(t) = θ(0) + 1 I 0 T(τ)dτ Orientation: θ(t) = θ(0) + 0 θ(τ)dτ = θ(0) + t θ(0) + 1 I τ 0 0 T(α)dαdτ H. Zheng (CSE USF) CIS 4930/6930: Principles of CPS 8 / 29

Feedback Control Problem A helicopter without a tail rotor will spin uncontrollably due to the torque induced by friction in the rotor shaft. Control system problem: apply torque using the tail rotor to counter the torque of the main rotor. H. Zheng (CSE USF) CIS 4930/6930: Principles of CPS 9 / 29

Model-Order Reduction: Simplified Helicopter Model main rotor shaft tail body M θ y (t) = T y (t)/i yy θ y (t) = θ y (0) + 1 I yy 0 T y (τ)dτ H. Zheng (CSE USF) CIS 4930/6930: Principles of CPS 10 / 29

2.2 Actor Model of Systems A system is a function that relates an input x to an output y: x : R R, y : R R The domain and range of the system function are sets of signals, which are functions: S : X Y where X = Y = (R R). Parameters may affect the definition of the function S. H. Zheng (CSE USF) CIS 4930/6930: Principles of CPS 11 / 29

Actor Model of the Helicopter Input is the net torque of the tail rotor. Output is the angular velocity around the y axis. Parameters are I yy and θ y (0). The system function is: θ y (t) = θ y (0) + 1 I yy 0 T y (τ)dτ H. Zheng (CSE USF) CIS 4930/6930: Principles of CPS 12 / 29

Composition of Actor Models t R, y(t) = ax(t) y = ax a = 1/I yy t R, y (t) = i + 0 i = θ y (0) x (τ)dτ H. Zheng (CSE USF) CIS 4930/6930: Principles of CPS 13 / 29

Actor Models with Multiple Inputs S : (R R) 2 (R R) t R, y(t) = x 1 (t) + x 2 (t) y(t) = x 1 (t) x 2 (t) H. Zheng (CSE USF) CIS 4930/6930: Principles of CPS 14 / 29

2.3 Properties of Systems Causal systems Memoryless systems Linearity and time invariance Stability H. Zheng (CSE USF) CIS 4930/6930: Principles of CPS 15 / 29

Causal Systems A system is causal if its output depends only on current and past inputs. Formally, a system is causal if for all x 1,x 2 X and τ R: x 1 t τ = x 2 t τ S(x 1 ) t τ = S(x 2 ) t τ where x t τ is the restriction in time to current and past inputs. A system is causal if for two inputs x 1 and x 2 that are identical up to (and including) time τ, the outputs are identical up to (and including) time τ. A system is strictly causal if for all x 1,x 2 X and τ R: x 1 t<τ = x 2 t<τ S(x 1 ) t τ = S(x 2 ) t τ y(t) = x(t 1) is strictly causal, y(t) = cx(t) is causal. Strictly causal actors are useful for constructing feedback systems. H. Zheng (CSE USF) CIS 4930/6930: Principles of CPS 16 / 29

depend on values of the input x(t) for t > t 1 Causal Systems The future input cannot impact the now output A Causal system (with zero initial conditions) cannot have a non-zero output until a non-zero input is applied. Input Causal System Non-Causal System Input t t Output Output t t Most systems in nature are causal But we need to understand non-causal systems because theory shows that the best systems are non-causal! So we need to find causal systems that are as close to the best non-causal systems!!! 4/ H. Zheng (CSE USF) CIS 4930/6930: Principles of CPS 17 / 29

Memoryless Systems A system has memory if the output depends not only on the current inputs, but also on past inputs (or future inputs, if not causal). In a memoryless system, the output at time t depends only on the input at time t. Formally, a system is memoryless if there exists a function f : A B such that for all x X and for all t R: (S(X))(t) = f(x(t)) The Integrator is not memoryless, but the adder is. A strictly causal, memoryless system has a constant output for all inputs. H. Zheng (CSE USF) CIS 4930/6930: Principles of CPS 18 / 29

Linearity and Time Invariance A system is linear if it satisfies the superposition property: x 1,x 2 X and a,b R,S(ax 1 + bx 2 ) = as(x 1 ) + bs(x 2 ) The helicopter example is linear if and only if θ y (0) = 0. Integrator is linear when i = 0, and scale factor/adder are always linear. Linearity: A system is linear if superposition holds: x 1 (t) x 2 (t) Linear System Linear System y 1 (t) y 2 (t) x(t) = a 1 x 1 (t)+ a 2 x 2 (t) Linear System y(t) = a 1 y 1 (t)+ a 2 y 2 (t) x 1 (t) y 1 (t) H. Zheng (CSE USF) CIS 4930/6930: Non-Linear Principles of CPS 19 / 29

Linearity and Time Invariance A system is time invariant if: Time-Invariance x X and τ R,S(D τ (x)) = D τ (S(x)) Physical View: The system itself does not change with time Ex. A circuit with fixed R,L,C is time invariant. where D τ : Actually, X YR,L,C isvalues a delay change slightly suchover that time (D due to τ (x))(t) temperature = & aging x(teffects. τ). A circuit with, say, a variable R is time variant Helicopter example (assuming is that not someone timeor invariant something is changing unless the Rno value) initial angular rotation, and Technical the integral View: A system starts is time atinvariant. (TI) if: x(t) t x(t) x(t-t 0 ) system y(t) y(t-t 0 ) y(t) t x(t-t 0 ) t y(t-t 0 ) t t 0 t 0 7/9 H. Zheng (CSE USF) CIS 4930/6930: Principles of CPS 20 / 29

Stability A system is bounded-input bounded-output (BIBO) stable if the output signal is bounded for all input signals that are bounded. Consider a continuous-time system with input w and output v. The input is bounded if there is a real number A < such that w(t) A for all t R. The output is bounded if there is a real number B < such that v(t) B for all t R. The system is stable if for any input bounded by some A, there is some bound B on the output. H. Zheng (CSE USF) CIS 4930/6930: Principles of CPS 21 / 29

Open-Loop Helicopter Helicopter example is not stable. Consider input T y = u where u is a unit step input: t R, u(t) = { 0, t < 0 1, t 0 The system function is: θ y (t) = θ y (0) + 1 I yy 0 T y (τ)dτ H. Zheng (CSE USF) CIS 4930/6930: Principles of CPS 22 / 29

2.4 Feedback Control Feedback control is used to achieve stability. These systems measure the error (difference between actual and desired behavior) and use this information to correct the behavior. ψ e K H. Zheng (CSE USF) CIS 4930/6930: Principles of CPS 23 / 29

Mathematical Analysis θ y (t) = θ y (0) + 1 = θ y (0) + K I yy Not easy to solve. Assume Ψ = 0. I yy 0 0 T y (τ)dτ (Ψ(τ) θ y (τ))dτ θ y (t) = θ y (0) K I yy 0 θ y (τ)dτ The solution: θ y (t) = θ y (0)e Kt/I yy u(t) θ y (t) approaches 0 when t becomes large (K is positive). H. Zheng (CSE USF) CIS 4930/6930: Principles of CPS 24 / 29

Mathematical Analysis (cont) Assume initially at rest with a non-zero desired angular velocity: θ(0) = 0 Ψ(t) = au(t) Substitute in and simplify as follows: After some magic: θ y (t) = K I yy = K I yy = Kat I yy 0 0 (Ψ(τ) θ y (τ))dτ adτ K K I yy 0 I yy 0 θ y (τ)dτ θ y (t) = au(t)(1 e Kt/I yy ) θ y (τ)dτ H. Zheng (CSE USF) CIS 4930/6930: Principles of CPS 25 / 29

Helicopter Model with Separately Controlled Torques (a) (b) (c) H. Zheng (CSE USF) CIS 4930/6930: Principles of CPS 26 / 29

Mathematical Analysis Suppose the torque to the top rotor is: T t = bu(t) Suppose the desired angular rotation is: Ψ(t) = 0 Input to the original control system is: x(t) = Ψ(t) + T t (t)/k = (b/k )u(t) The solution is: θ y (t) = (b/k )u(t)(1 e Kt/I yy ) H. Zheng (CSE USF) CIS 4930/6930: Principles of CPS 27 / 29

Concluding Remarks This lecture introduces two modeling techniques that describe physical dynamics: ODEs and actor models. This lecture emphasizes the relationship between these models. The fidelity of a model (how well it approximates the system) is a strong factor in the success or failure of any engineering effort. H. Zheng (CSE USF) CIS 4930/6930: Principles of CPS 28 / 29

Continuous vs Discrete Signals Sampling Continuous, also called continuous time, signals defined as Continuous and discrete signals can be related through the sampling operation in the x : R R sense that a discrete signal can be obtained by performing sampling on a continuoustime signal with the uniform sampling period as presented in Figure 1.3. Since Discrete, also called discrete time, signals defined as is a given quantity, we will use x : Z Z in order to simplify notation. f(t) T 2T 3T t Δ f(kt)=f[k] T 2T 3T kt Figure 1.3: Sampling of a continuous signal H. Zheng (CSE USF) CIS 4930/6930: Principles of CPS 29 / 29