EE/ME/AE324: Dynamical Systems. Chapter 4: Block Diagrams

Similar documents
Linear System Theory

ES205 Analysis and Design of Engineering Systems: Lab 1: An Introductory Tutorial: Getting Started with SIMULINK

Lab 1: Dynamic Simulation Using Simulink and Matlab

Lab 1 Uniform Motion - Graphing and Analyzing Motion

Double Inverted Pendulum (DBIP)

PHYSICS 211 LAB #3: Frictional Forces

Lecture 14 - Using the MATLAB Control System Toolbox and Simulink Friday, February 8, 2013

Rotary Motion Servo Plant: SRV02. Rotary Experiment #11: 1-DOF Torsion. 1-DOF Torsion Position Control using QuaRC. Student Manual

Simulink Modeling Tutorial

1 Overview of Simulink. 2 State-space equations

Lab 3: Quanser Hardware and Proportional Control

SRV02-Series Rotary Experiment # 1. Position Control. Student Handout

LAB 2 - ONE DIMENSIONAL MOTION

Rotary Motion Servo Plant: SRV02. Rotary Experiment #01: Modeling. SRV02 Modeling using QuaRC. Student Manual

Simulink Tutorial 1 CPE562

CONTROL SYSTEMS LABORATORY ECE311 LAB 1: The Magnetic Ball Suspension System: Modelling and Simulation Using Matlab

Chem 1 Kinetics. Objectives. Concepts

Coefficient of Friction Lab

General Physics I Lab. M1 The Atwood Machine

Newton's 2 nd Law. . Your end results should only be interms of m

Lab 4 Numerical simulation of a crane

The Control of an Inverted Pendulum

Analysis of Dynamic Systems Using Bond Graph Method Through SIMULINK

Using web-based Java pplane applet to graph solutions of systems of differential equations

AMS 132: Discussion Section 2

CHAPTER 6 STATE SPACE: FREQUENCY RESPONSE, TIME DOMAIN

Dynamical Systems. Mechanical Systems

2.004 Dynamics and Control II Spring 2008

PHYSICS 211 LAB #8: Periodic Motion

PHY221 Lab 2 - Experiencing Acceleration: Motion with constant acceleration; Logger Pro fits to displacement-time graphs

EE 4314 Lab 1 Handout Control Systems Simulation with MATLAB and SIMULINK Spring Lab Information

Experiment # 5 5. Coupled Water Tanks

Lab 6a: Pole Placement for the Inverted Pendulum

ECE 320 Linear Control Systems Winter Lab 1 Time Domain Analysis of a 1DOF Rectilinear System

Companion. Jeffrey E. Jones

Rotary Flexible Joint

M61 1 M61.1 PC COMPUTER ASSISTED DETERMINATION OF ANGULAR ACCELERATION USING TORQUE AND MOMENT OF INERTIA

Developing a Scientific Theory

Lab 11 Simple Harmonic Motion A study of the kind of motion that results from the force applied to an object by a spring

ECE 203 LAB 1 MATLAB CONTROLS AND SIMULINK

(t) ), ( ) where t is time, T is the reaction time, u n is the position of the nth car, and the "sensitivity coefficient" λ may depend on un 1(

Appendix A Prototypes Models

Rotary Flexible Link. Workbook FLEXGAGE. Student Version

a. Follow the Start-Up Procedure in the laboratory manual. Note the safety rules.

EXPERIMENT 4 ONE DIMENSIONAL MOTION

first name (print) last name (print) brock id (ab17cd) (lab date)

Date Course Name Instructor Name Student(s) Name. Atwood s Machine

1. Write the symbolic representation and one possible unit for angular velocity, angular acceleration, torque and rotational inertia.

HOW TO USE MIKANA. 1. Decompress the zip file MATLAB.zip. This will create the directory MIKANA.

Applications of Newton's Laws

Math 261 Sampling Distributions Lab Spring 2009

Motion II. Goals and Introduction

State Feedback Controller for Position Control of a Flexible Link

PHY 123 Lab 4 The Atwood Machine

Linear Experiment #11: LQR Control. Linear Flexible Joint Cart Plus Single Inverted Pendulum (LFJC+SIP) Student Handout

System Simulation using Matlab

PRELAB IMPULSE AND MOMENTUM

MAT300/500 Programming Project Spring 2019

Mathematical Analysis of System Dynamics Model of a Peer-to-Peer Network. Vincent J. Papia

Lab 1: Numerical Solution of Laplace s Equation

through any three given points if and only if these points are not collinear.

Forces and Newton s Second Law

Laboratory 11 Control Systems Laboratory ECE3557. State Feedback Controller for Position Control of a Flexible Joint

Pre-Lab Exercise Full Name:

Work and Energy. We re going to use the same apparatus that we used in last week s Newton s Laws lab. A string is attached to a car of mass m

Experiment 81 - Design of a Feedback Control System

Fig. 1 Simple BJT (NPN) current mirror and its test circuit

Experiment A11 Chaotic Double Pendulum Procedure

1 M62 M62.1 CONSERVATION OF ANGULAR MOMENTUM FOR AN INELASTIC COLLISION

Date: Summer Stem Section:

BMEN 398: MATLAB Module: Higher Order Differential Equations; SIMULINK Fall 2005 Updated 8/21/2005 Hart

Experiment 4 Oscillations

Department of Electrical and Computer Engineering. EE461: Digital Control - Lab Manual

NUMB3RS Activity: Clearing All Obstacles. Episode: Hot Shot

IFM Chemistry Computational Chemistry 2010, 7.5 hp LAB2. Computer laboratory exercise 1 (LAB2): Quantum chemical calculations

Constant velocity and constant acceleration

Computational Study of Chemical Kinetics (GIDES)

ISSP User Guide CY3207ISSP. Revision C

YTÜ Mechanical Engineering Department

THE CONSERVATION OF ENERGY - PENDULUM -

EE 4443/5329. LAB 3: Control of Industrial Systems. Simulation and Hardware Control (PID Design) The Torsion Disks. (ECP Systems-Model: 205)

Physics 326 Lab 6 10/18/04 DAMPED SIMPLE HARMONIC MOTION

Safety: BE SURE TO KEEP YOUR SMART CART UPSIDE-DOWN WHEN YOU RE NOT ACTIVELY USING IT TO RECORD DATA.

Massachusetts Institute of Technology Dynamics and Control II

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

EGC221: Digital Logic Lab

Quanser NI-ELVIS Trainer (QNET) Series: QNET Experiment #02: DC Motor Position Control. DC Motor Control Trainer (DCMCT) Student Manual

Hands-on Lab 3. System Identification with Experimentally Acquired Data

Using SkyTools to log Texas 45 list objects

Some tools and methods for determination of dynamics of hydraulic systems

Lab 01: Harmonic Motion I. Theory: Three experiments. The first we measure the oscillation of a spring, the second of a rubber band (non-linear).

Extra Credit Final Practice

Introduction to Matlab

RC Circuits. Equipment: Capstone with 850 interface, RLC circuit board, 2 voltage sensors (no alligator clips), 3 leads V C = 1

EEL2216 Control Theory CT1: PID Controller Design

Chapter 4. Forces and the Laws of Motion. CH 4 Forces and the Laws of Motion.notebook. April 09, Changes in Motion. A. Force

Lab Activity H4 It s Snow Big Deal

Name, Date, Period. R Θ R x R y

A Brief Introduction To. GRTensor. On MAPLE Platform. A write-up for the presentation delivered on the same topic as a part of the course PHYS 601

Inverted Pendulum System

Transcription:

EE/ME/AE324: Dynamical Systems Chapter 4: Block Diagrams and Computer Simulation

Block Diagrams A block diagram is an interconnection of: Blocks representing math operations Wires representing signals (info.) and their flow Commonly y used to analyze/simulate systems Common elements include: Summers Gains blocks Integrators Given the simple system: x = Ax+ fa( t)

Diagrams for Input Output Eqns. Assuming a system in I/O Eqn. form with a single output and no input derivatives: 1. Solve eqn. for highest h output t derivative (HOD) 2. Connect integrators in series to generate the output signal from the HOD 3. Generate the HOD from 1. using a summer block and scaled versions (gain blocks) of the integrator outputs and the input. Given the simple MSD system of Ex. 3.1: Mx + Bx + Kx = f () t a

1. Solving for x yields: Ex. 3.1 1 x= a( () M Bx Kx+ f t 2. Create a chain of two integrators, and 3. Use the result of 1. above to complete the diagram:

Ex. 3.2 Revisited EoM with B = 0: M 1x1+ K1x1= K2( x2 x1) M x + K ( x x ) = f ( t ) 2 2 2 2 1 Resulting I/O eqn.: ( 4) f a M Mx + Ax () 2 1 1 1+ KKx 2 1 1 = K 2f a t where A= M ( K + K ) + M K 2 1 2 1 2

1. Solving for the HOD: Ex. 3.2 Revisited ( ) = [ + () ] x Ax K K x K f t 4 1 () 1 1 2 1 1 2 a MM 2 1 2. Create a chain of four integrators, and 3. Use the result of 1. above to complete the diagram:

Diagrams for State Variable Models If the system is written in state-spacespace form: q=aq+bu y=cq+du The block diagram follows naturally: u q q dt q y

Diagrams for State Variable Models (Ex. 4.4) If the system is written in terms of n state eqns., but is not written in Matrix form: 1. Draw an integrator for each state variable 2. Build the terms needed to form the derivative of each state variable (as specified by the EoM) using the states, inputs, gains and summers 3. Build the terms needed to form the outputs

Ex. 4.4 If the state variables ab are defined ed as: x1 x 1 x 1 x1 q= q = = x 2 x 2 x 2 x2 x 1 1 f ( a t ) K ( ) ( ) 1x1 Bx 1 1 B3 x 1 x 2 K3x1 x2 M 1 x 2 1 [ Kx ] 2 2 Bx 2 2 + B3( x 1 x 2) + K3( x1 x2) M 2 [ ]

Ex. 4.4 The block diagram consists of two strings of integrators, i.e., one for x1 and one for x2, with all signals being fed into the summers corresponding to forces acting on the freebody diagrams

Running Simulink with Matlab Simulink is a companion package to Matlab provides a graphical user interface (GUI) based method of programming based on signal flow similar to modeling using block diagrams Matlab can be used to set up Simulink models and Simulink data can be passed to Matlab for further analysis and visualization models can be used for real time, hardware inthe loop system testing using DAQ hardware See recommended text for more details: Steven Karris, Introduction to Simulink with Engineering Applications http://www.orchardpublications.com

Running Simulink with Matlab Simulink provides apre defined library of blocks that can be used to quickly model systems Commonly used libraries/blocks include: Continuous Integrator (click to set ICs) Math Operations Sum (click to change shape and input signs), Gain Sources Clock, Constant, Step, Fun. generator Sinks Scope, (save) To workspace

Running Simulink Simulations Follow these steps to create a Simulink simulation: 1. Start Matlab and type Simulink at prompt 2. Click blank page icon in upper left of Simulink Library Browser to open new model 3. Drag blocks from library folders into the model window, e.g., integrator, sum, gain, step, etc. 4. Arrange blocks so that they represent the system model in an orderly way, connecting them by dragging using wires, etc. 5. Double click on blocks with parameters to change them as needed 6. Setup simulation, e.g., stop time, using Simulation > Configuration Parameters menu in model window

Create the Simulink Model Below Questions: What does this model represent? How does increasing B change the system response?

Associated Matlab Script

In class Design Challenge Our next class will meet in 163 CAMP You will form groups of no more than three students You will simulate Example 4.7 and try to solve a design challenge posed at the start of class Students in groups that successfully solve the challenge and submit printouts of their work will be awarded a 2% bonus toward their project grades You are encouraged to get a head start on the challenge if desired by reviewing Example 4.7, etc.

Questions?

In class Design Challenge Form groups of no more than three students Simulate Example 4.7 and try to solve a design challenge Students in groups that successfully solve the challenge and submit printouts of their work, e.g., Matlab and Simulink files with clearly labeled l plots showing their results, will be awarded a 2% bonus toward their final grades

Ex. 4.7: Problem Statement A skydiver jumps from an airplane. Assume: no wind, the parachute opens at t=0 with the risers fully extended (no stretch ) and provides viscous damping relative to a fixed reference, initial i i speed of the jumper and parachute are 20 m/s Challenge: Find values for B p and K R that ensure a steady state velocity of 5 m/s or less with max. jumper deceleration limited to one g or less using the following parameters: M = 10 kg, M = 60 kg, B = 10 N s/m p j j

Computer Lab Assignment Assume references are selected such that displacement of jumper and parachute are zero when t=0, i.e., system at EQ when x p =x j =0 EoM: 1 x ( ) p = Bpx p + KR xj xp + M pg M p 1 x = B x K x x + M ( ) j j j R j p jg M j Now model this system in Matlab and Simulink

You have approx. 40 minutes to work solve the Challenge Solution on Next Page!

Solution Assume references are selected such that displacement of jumper and parachute are zero when t=0, i.e., system at EQ when x p =x j =0 In steady-state, x = x = 0 x = x = x ( ) p + j p j p j tv (terminal velocity). Sub. into EoM yields: x tv M M g = 5 m/s B + B p ( ) p + j M M g Bp = B x j tv ( 10 + 60) 10 10 = 130 N m/s 5 j

Solution for K R =40, B p =130 Run simulation varying K R until specifications met:

Is this a practical solution (explain your answer)?

% Matlab script to simulate Ex. 4.7 using a state space model clear % Define system parameters g=9.81; Mp= 10; Mj= 60; Bj= 10; xpdot_ss= 5; Bp= (Mp+Mj)*g/xpdot_ss Bj; % Solved from EoM in steady state KR= 40; t_stop= 20;% Selected by trial and error % State matrices A= [0 1 0 0; KR/Mp Bp/Mp KR/Mp 0;0 0 0 1;KR/Mj 0 KR/Mj Bj/Mj]; B= [0;1;0;1]; C= [eye(4);kr/mj 0 KR/Mj Bj/Mj]; % Last row specifies accel. of jumper D= [zeros(4,1);1]; IC=[0;20;0;20]; % Initial conditions as per problem statement sim('ex4 sim(ex4_7) 7') % Calls the Simulink model

figure(); subplot(2,1,1); 1); plot(tout,y(:,1),tout,y(:,3)) tout title('displacement of parachute (blue) and jumper (green)') xlabel('time [s]'); ]); ylabel('displacement [m]') ]) subplot(2,1,2); plot(tout,y(:,3) y(:,1)) title('relative displacement of risers') xlabel('time [s]'); ylabel('displacement [m]') figure();subplot(2,1,1); plot(tout,y(:,2),tout,y(:,4)) title('velocity of parachute (blue) and jumper (green)') ) xlabel('time [s]'); ylabel('velocity [m/s]') subplot(2,1,2); plot(tout,y(:,5)) title('acceleration of jumper') xlabel('time [s]'); ylabel('acceleration [m/s^2]')

Simulink Model of Ex. 4.7

Questions?