CDS 101: Lecture 2.1 System Modeling

Similar documents
CDS 101: Lecture 2.1 System Modeling

CDS 101: Lecture 2.1 System Modeling. Lecture 1.1: Introduction Review from to last Feedback week and Control

CDS 101/110: Lecture 2.1 System Modeling. Model-Based Analysis of Feedback Systems

CALIFORNIA INSTITUTE OF TECHNOLOGY Control and Dynamical Systems

CDS 101/110a: Lecture 8-1 Frequency Domain Design

CDS 101/110a: Lecture 10-1 Robust Performance

EAD 115. Numerical Solution of Engineering and Scientific Problems. David M. Rocke Department of Applied Science

Comments on A Time Delay Controller for Systems with Uncertain Dynamics

Math 128A Spring 2003 Week 12 Solutions

CDS 101/110a: Lecture 2.1 Dynamic Behavior

CALIFORNIA INSTITUTE OF TECHNOLOGY Control and Dynamical Systems

Dr Ian R. Manchester Dr Ian R. Manchester AMME 3500 : Review

EE2351 POWER SYSTEM OPERATION AND CONTROL UNIT I THE POWER SYSTEM AN OVERVIEW AND MODELLING PART A

Final Examination Thursday May Please initial the statement below to show that you have read it

CDS 101/110a: Lecture 1.1 Introduction to Feedback & Control. CDS 101/110 Course Sequence

CDS 101/110a: Lecture 2.1 Dynamic Behavior

PARAMETER IDENTIFICATION, MODELING, AND SIMULATION OF A CART AND PENDULUM

CDS 110: Lecture 2-2 Modeling Using Differential Equations

2.72 Elements of Mechanical Design

Torques 1.0 Two torques We have written the swing equation where speed is in rad/sec as:

Mechanical Oscillations

2.010 Fall 2000 Solution of Homework Assignment 1

2002 Prentice Hall, Inc. Gene F. Franklin, J. David Powell, Abbas Emami-Naeini Feedback Control of Dynamic Systems, 4e

(Refer Slide Time: 00:01:30 min)

Lecture 1: Introduction to System Modeling and Control. Introduction Basic Definitions Different Model Types System Identification

MAE106 Laboratory Exercises Lab # 6 - Vibrating systems

Investigation of a Ball Screw Feed Drive System Based on Dynamic Modeling for Motion Control

System Modeling. Lecture-2. Emam Fathy Department of Electrical and Control Engineering

Step Motor Modeling. Step Motor Modeling K. Craig 1

ET3-7: Modelling II(V) Electrical, Mechanical and Thermal Systems

Mechatronics Assignment # 1

ME 563 HOMEWORK # 7 SOLUTIONS Fall 2010

Control for. Maarten Steinbuch Dept. Mechanical Engineering Control Systems Technology Group TU/e

T1 T e c h n i c a l S e c t i o n

Lab 5: Nonlinear Systems

ET3-7: Modelling I(V) Introduction and Objectives. Electrical, Mechanical and Thermal Systems

CDS 101/110: Lecture 3.1 Linear Systems

CDS 101/110: Lecture 3.1 Linear Systems

Automatic Control Systems. -Lecture Note 15-

AME 301: Differential Equations, Control and Vibrations

FEEDBACK CONTROL SYSTEMS

Introduction to Feedback Control

Lecture 12. Upcoming labs: Final Exam on 12/21/2015 (Monday)10:30-12:30

First Order Systems of Linear Equations. or ODEs of Arbitrary Order

EQUIVALENT SINGLE-DEGREE-OF-FREEDOM SYSTEM AND FREE VIBRATION

SCHOOL OF ELECTRICAL, MECHANICAL AND MECHATRONIC SYSTEMS. Transient Stability LECTURE NOTES SPRING SEMESTER, 2008

WORK SHEET FOR MEP311

AMME3500: System Dynamics & Control

Math 266: Ordinary Differential Equations

SAMPLE SOLUTION TO EXAM in MAS501 Control Systems 2 Autumn 2015

ME 328 Machine Design Vibration handout (vibrations is not covered in text)

Introduction to Control (034040) lecture no. 2

Dynamic Modeling. For the mechanical translational system shown in Figure 1, determine a set of first order

Steady State Modeling of Doubly Fed Induction Generator

Vibration Control Prof. Dr. S. P. Harsha Department of Mechanical & Industrial Engineering Indian Institute of Technology, Roorkee

ASEISMIC DESIGN OF TALL STRUCTURES USING VARIABLE FREQUENCY PENDULUM OSCILLATOR

STATIONARY AND TRANSIENT VIBRATIONS OF DAVI VIBROINSULATION SYSTEM.

Performance of Feedback Control Systems

Modelling the Dynamics of Flight Control Surfaces Under Actuation Compliances and Losses

Lesson 9: Predator-Prey and ode45

Investigating a pendulum

CALIFORNIA INSTITUTE OF TECHNOLOGY Control and Dynamical Systems

Control Systems Design, SC4026. SC4026 Fall 2009, dr. A. Abate, DCSC, TU Delft

ECSE 4962 Control Systems Design. A Brief Tutorial on Control Design

Each element of this set is assigned a probability. There are three basic rules for probabilities:

Oscillations Simple Harmonic Motion

CDS 101: Lecture 5-1 Reachability and State Space Feedback

Lecture 5. Labs this week: Please review ME3281 Systems materials! Viscosity and pressure drop analysis Fluid Bulk modulus Fluid Inertance

:= 0.75 Ns m K N m. := 0.05 kg. K N m. (a.1) FBD and forces. (a.2) derive EOM From the FBD diagram, Newton's 2nd law states:

State Space Representation

Chapter 14 Oscillations. Copyright 2009 Pearson Education, Inc.

LECTURE 12. STEADY-STATE RESPONSE DUE TO ROTATING IMBALANCE

Chaos and Dynamical Systems

Vibrations Qualifying Exam Study Material

(a) Find the transfer function of the amplifier. Ans.: G(s) =

CDS 101: Lecture 4.1 Linear Systems

PHYSICS 289 Experiment 1 Fall 2006 SIMPLE HARMONIC MOTION I

Chapter 5 Design. D. J. Inman 1/51 Mechanical Engineering at Virginia Tech

MEM 255 Introduction to Control Systems: Modeling & analyzing systems

3 Forces and pressure Answer all questions and show your working out for maximum credit Time allowed : 30 mins Total points available : 32

Contents. Dynamics and control of mechanical systems. Focus on

Linear Control Systems Solution to Assignment #1

Lecture 5. Labs this week:

Prob. 1 SDOF Structure subjected to Ground Shaking

Model of a DC Generator Driving a DC Motor (which propels a car)

2.004 Dynamics and Control II Spring 2008

School of Mechanical Engineering Purdue University. ME375 ElectroMechanical - 1

Dr Ian R. Manchester

MEAM 510 Fall 2012 Bruce D. Kothmann

Positioning Control of One Link Arm with Parametric Uncertainty using Quantitative Feedback Theory

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING. MSc SYSTEMS ENGINEERING AND ENGINEERING MANAGEMENT SEMESTER 2 EXAMINATION 2015/2016

D(s) G(s) A control system design definition

DESIGN SUPPORT FOR MOTION CONTROL SYSTEMS Application to the Philips Fast Component Mounter

MCE493/593 and EEC492/592 Prosthesis Design and Control

Dynamic Analysis on Vibration Isolation of Hypersonic Vehicle Internal Systems

(Refer Slide Time: 1: 19)

Control of Wind Turbine Generators. James Cale Guest Lecturer EE 566, Fall Semester 2014 Colorado State University

Review: stability; Routh Hurwitz criterion Today s topic: basic properties and benefits of feedback control

Plan of the Lecture. Review: stability; Routh Hurwitz criterion Today s topic: basic properties and benefits of feedback control

Forces and two masses.

Transcription:

CDS 0: Lecture. System Modeling Richard M. Murray 4 Octoer 004 Goals: Define what a model is and its use in answering questions aout a system Introduce the concepts of state, dynamics, inputs and outputs Provide examples of common modeling techniques: differential equations, difference equations, finite state automata Reading: Åström and Murray, Analysis and Design of Feedack Systems, Ch Advanced: Lewis, A Mathematical Approach to Classical Control, Ch Week : Introduction Review from to Feedack last week and Control Actuate Sense Control = Sensing + Computation + Actuation Compute Feedack Principles Roustness to Uncertainty Design of Dynamics Many examples of feedack and control in natural & engineered systems: BIO BIO ESE ESE CS CDS

Model-Based Analysis of Feedack Systems Analysis and design ased on models A model provides a prediction of how the system will ehave Feedack can give counter-intuitive ehavior; models help sort out what is going on For control design, models don t have to e exact: feedack provides roustness Weather Forecasting Control-oriented models: inputs and outputs The model you use depends on the questions you want to answer A single system may have many models Time and spatial scale must e chosen to suit the questions you want to answer Formulate questions efore uilding a model Question : how much will it rain tomorrow? Question : will it rain in the next 5-0 days? Question 3: will we have a drought next summer? Different questions different models CDS 3 q k m m Example #: Spring Mass System Applications Flexile structures (many apps) Suspension systems (eg, Bo ) Molecular and quantum dynamics Questions we want to answer How much do masses move as a function of the forcing frequency? What happens if I change the values of the masses? Will Bo fly into the air if I take that hill at 5 mph? Modeling assumptions Mass, spring, and damper constants are fixed and known Springs satisfy Hooke s law Damper is (linear) viscous force, proportional to velocity CDS 4

q k Modeling a Spring Mass System m m Model: rigid ody physics (Ph ) Sum of forces = mass acceleration Hooke s law: F = k(x x rest ) Viscous friction: F = v mq&& = k( q q) kq mq&& = k( u q) k( q q) q& 3 Converting models to state space form Construct a vector of the variales that are required to specify the evolution of the system Write dynamics as a system of first order differential equations: dx n p = f( x, u) x, u dt q y = h( x) y q& q q& q d = k k ( q q) q q dt & m m q& k3 k ( u q) ( q q) q& m m m q y = q State space form CDS 5 Frequency Response for a Mass Spring System q k m m Steady state frequency response Force the system with a sinusoid Plot the steady state response, after transients have died out Plot relative magnitude and phase of output versus input (more later) Phase (deg) Magnitude (db) 0 0 0-0 -0-30 -40-50 -60 0-90 -80-70 Frequency Response Matla simulation (see handout) function dydt = f(t, y,...) u = 0.0035*cos(omega*t); dydt = [ y(3); y(4); -(k+k)/m*y() + k/m*y(); k/m*y() - (k+k3)/m*y() - /m*y(4) + k3/m*u ]; t,y] = ode45(dydt,tspan,y0,[], k, 0. 0 k, k3, m, m,, omega); Frequency (rad/sec) CDS 6-360 3

Modeling Terminology State captures effects of the past independent physical quantities that determines future evolution (asent external excitation) q m m Inputs descrie external excitation Inputs are extrinsic to the system dynamics (externally specified) Dynamics descries state evolution update rule for system state function of current state and any external inputs Outputs descrie measured quantities Outputs are function of state and inputs not independent variales Outputs are often suset of state k Example: spring mass system State: position and velocities of each mass: q, q, q&, q& Input: position of spring at right end of chain: Dynamics: asic mechanics Output: measured positions of the masses: q, q CDS 7 Modeling Properties Choice of state is not unique There may e many choices of variales that can act as the state Trivial example: different choices of units (scaling factor) Less trivial example: sums and differences of the mass positions (HW.4) Choice of inputs and outputs depends on point of view Inputs: what factors are external to the model that you are uilding Inputs in one model might e outputs of another model (eg, the output of a cruise controller provides the input to the vehicle model) Outputs: what physical variales (often states) can you measure Choice of outputs depends on what you can sense and what parts of the component model interact with other component models Can also have different types of models Ordinary differential equations for rigid ody mechanics Finite state machines for manufacturing, Internet, information flow Partial differential equations for fluid flow, solid mechanics, etc CDS 8 4

Differential Equations Differential equations model continuous evolution of state variales Descrie the rate of change of the state variales dx Both state and time are continuous variales = f ( xu, ) dt y = h( x) Example: electrical power grid Swing equations && δ+ D & δ = ω0 P B δ δ + G δ δ && δ + D & δ = ω P B δ δ + G δ δ ( sin( ) cos( )) ( sin( ) cos( )) 0 State: Inputs: Outputs: Descrie how generator rotor angles (δ i ) interact through the transmission line (G, B) Staility of these equations determines how loads on the grid are accommodated rotor angles, velocities ( δ, & i δ i ) power loading on the grid (P i ) voltage levels and frequency (ased on rotor speed) CDS 9 Finite State Machines Finite state machines model discrete transitions etween finite # of states Represent each configuration of system as a state Model transition etween states using a graph Inputs force transition etween states Example: Traffic light logic Car arrives on E-W St Timer expires Timer expires Car arrives on N-S St State: Inputs: Outputs: current pattern of lights that are on + internal timers presence of car at intersections current pattern of lights that are on CDS 0 5

Difference Equations Difference eqs model discrete transitions etween continuous variales Discrete time description (clocked transitions) xk+ = f( xk, uk) New state is function of current state + inputs yk+ = h( xk+ ) State is represented as a continuous variale Example: CD read/write head controller (implemented on DSP) howstuffworks.com Controller operation (every /44,00 sec) Get analog signal from read head Determine the data (/0) plus estimate the location of the track center Update estimate of wole Compute where to position disk head for next read (limited y motor torque) State: Inputs: Outputs: estimated center, wole read head signal commanded motion Performance specification Keep disk head on track center Reject disturances due to disk shape, shaking and umps, etc CDS Example #: Predator Prey FOX http://www.math.duke.edu/education/ccp/ materials/diffeq/predprey/contents.html Questions we want to answer Given the current population of raits and foxes, what will it e next year? If we hunt down lots of foxes in a given year, what will the effect on the rait and fox population e? How do long term changes in the amount of rait food availale affect the populations? Modeling assumptions The predator species is totally dependent on the prey species as its only food supply. The prey species has an external food supply and no threat to its growth other than the specific predator. CDS 6

Example #: Predator Prey (/) Discrete Lotka-Volterra model State R k # of raits in period k F k # of foxes in period k Inputs (optional) u k amount of rait food Outputs: # of raits and foxes Dynamics: Lotka-Volterra eqs Rk+ = Rk + r( u) Rk afkrk F = F d F + af R k+ k f k k k Matla simulation (see handout) Discrete time model, simulated through repeated addition 350 300 50 00 50 00 50 0 850 870 890 90 930 Comparison with data Parameters/functions r (u) rait irth rate (per year) (depends on food supply) d f fox death rate (per year) a interaction term CDS 3 Summary: System Modeling Model = state, inputs, outputs, dynamics dx = dt y f ( xu, ) = h( x) x y = f( x, u ) k+ k k = h( x ) k+ k+ Principle: Choice of model depends on the questions you want to answer q k m m function dydt = f(t,y, k, k, k3, m, m,, omega) u = 0.0035*cos(omega*t); dydt = [ y(3); y(4); -(k+k)/m*y() + k/m*y(); k/m*y() - (k+k3)/m*y() - /m*y(4) + k3/m*u ]; CDS 4 7