Linear System Theory

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

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

Linear System Theory

Lab 1: Dynamic Simulation Using Simulink and Matlab

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

CHAPTER 6 STATE SPACE: FREQUENCY RESPONSE, TIME DOMAIN

Simulink Tutorial 1 CPE562

System Simulation using Matlab

Simulink Modeling Tutorial

MAT 17A - UHP - DISCUSSION #10 December 1, 2015

Simple Harmonic Motion Investigating a Mass Oscillating on a Spring

Computational Study of Chemical Kinetics (GIDES)

(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(

1 Overview of Simulink. 2 State-space equations

MODELLING A MASS / SPRING SYSTEM Free oscillations, Damping, Force oscillations (impulsive and sinusoidal)

System Parameters and Frequency Response MAE 433 Spring 2012 Lab 2

Leaf Spring (Material, Contact, geometric nonlinearity)

_CH01_p qxd 1/20/10 8:35 PM Page 1 PURPOSE

Analysis of Dynamic Systems Using Bond Graph Method Through SIMULINK

This tutorial is intended to familiarize you with the Geomatica Toolbar and describe the basics of viewing data using Geomatica Focus.

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

Matrix-Vector Operations

Depletion Analysis of an Oilfield

Lab 1g: Horizontally Forced Pendulum & Chaotic Motion

A First Course on Kinetics and Reaction Engineering Example S3.1

MATLAB BASICS. Instructor: Prof. Shahrouk Ahmadi. TA: Kartik Bulusu

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

LAB 2 - ONE DIMENSIONAL MOTION

Introduction to Simple Harmonic Motion

Hooke s Law. Equipment. Introduction and Theory

EXPERIMENT: THE SPRING II Subtitle: Time Dependence of Oscillations

Matrix-Vector Operations

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

Chem 1 Kinetics. Objectives. Concepts

Physics 1021 Experiment 1. Introduction to Simple Harmonic Motion

Lab 13: Ordinary Differential Equations

AHL 9.1 Energy transformation

EXPERIMENT 7: ANGULAR KINEMATICS AND TORQUE (V_3)

Lab 1: Jumping Right In

Lab 1 Uniform Motion - Graphing and Analyzing Motion

Work and Energy. This sum can be determined graphically as the area under the plot of force vs. distance. 1

State Feedback Controller for Position Control of a Flexible Link

LAB 4: FORCE AND MOTION

9. Introduction and Chapter Objectives

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

ECE 203 LAB 1 MATLAB CONTROLS AND SIMULINK

cha1873x_p02.qxd 3/21/05 1:01 PM Page 104 PART TWO

CometScore Tutorial

Coefficient of Friction Lab

Experiment A11 Chaotic Double Pendulum Procedure

Rigid Body Kinetics :: Virtual Work

Air Resistance. Experiment OBJECTIVES MATERIALS

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

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

Chapter 5. Forces in Two Dimensions

Physics 103 Laboratory Fall Lab #2: Position, Velocity and Acceleration

Gis Unit TropMed Mahidol U.

Measuring earthquake-generated surface offsets from high-resolution digital topography

PHYSICS - CLUTCH CH 01: UNITS & VECTORS.

Environmental Systems Research Institute

Experiment 1: Linear Regression

A First Course on Kinetics and Reaction Engineering Example 4.6

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

Investigating Weather with Google Earth Student Guide

Mathematical Modelling Using SimScape (Electrical Systems)

Geometric Nonlinear Analysis of a Cantilever Beam

Laboratory handout 5 Mode shapes and resonance

Stoichiometric Reactor Simulation Robert P. Hesketh and Concetta LaMarca Chemical Engineering, Rowan University (Revised 4/8/09)

Lab 3: Quanser Hardware and Proportional Control

Aspen Plus PFR Reactors Tutorial using Styrene with Pressure Drop Considerations By Robert P. Hesketh and Concetta LaMarca Spring 2005

APPENDIX 1 MATLAB AND ANSYS PROGRAMS

PHY 111L Activity 2 Introduction to Kinematics

LAB 2: INTRODUCTION TO MOTION

You may use your books and notes. Moreover, you are encouraged to freely discuss the questions..which doesn't mean copying answers.

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

Motion in Two Dimensions Reading Notes

Homework 1 Solutions

Graphical User Interface for Design Stabilizing Controllers

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

Motion with Constant Acceleration

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

17 M00/430/H(2) B3. This question is about an oscillating magnet.

The Spring-Mass Oscillator

5. Polynomial Functions and Equations

Solving Differential Equations on 2-D Geometries with Matlab

Spin transport in Magnetic Tunnel Junctions

Boyce/DiPrima 10 th ed, Ch 1.1: Basic Mathematical Models; Direction Fields

EXERCISE 12: IMPORTING LIDAR DATA INTO ARCGIS AND USING SPATIAL ANALYST TO MODEL FOREST STRUCTURE

Pre-Lab Exercise Full Name:

Response of a Physical Mechanical System

Matlab Sheet 4. Conditional Statements and Loops

January 18, 2008 Steve Gu. Reference: Eta Kappa Nu, UCLA Iota Gamma Chapter, Introduction to MATLAB,

1. In Activity 1-1, part 3, how do you think graph a will differ from graph b? 3. Draw your graph for Prediction 2-1 below:

Introduction to Matlab

Chapter 5: Forces in Two Dimensions. Click the mouse or press the spacebar to continue.

b. What is the force of red team on right side of the rope? c. Is it the same as the blue team? d. What is the Sum of the Forces?

Chapter 3 Kinematics in Two Dimensions; Vectors

Coupling Physics. Tomasz Stelmach Senior Application Engineer

A SHORT INTRODUCTION TO ADAMS

BUILDING BASICS WITH HYPERCHEM LITE

Transcription:

Linear System Theory - Introduction to Simulink Prof. Robert X. Gao Electromechanical Systems Laboratory Department of Mechanical Engineering

Outline Block Diagram Introduction Launching Simulink Modeling Procedure System Modeling with Simulink - Example Summary Practice 2 /21

Block Diagram Definition: A block diagram is an interconnection of blocks representing basic mathematical operations in such a way that the overall diagram is equivalent to the system s mathematical model. Components: Summer Addition and subtraction Gain Multiplication Integrator Integration Constant No Input, Output Never Changes Base: Input Output Equation State Variable Equations 3 /21

An Example of Block Diagram For the given system, Block Diagram 4 /21

Introduction Definition: Simulink is a software package that enables you to model, simulate, and analyze systems whose outputs change over time. - Mathworks Features: Model based Design Graphical Programming Icon - Driven Build Systems by Drawing Block Diagrams Example Plane Take - Off Applications: Aerospace and Defense Automotive Communications Electronics and Signal Processing Medical Instrumentation Etc. 5 /21

Launching Simulink Launch MATLAB and Specify Work Directory Launch Simulink Type simulink in command window Click Start Simulink Library Browser Block Search Select Library Select Block Block Description 6 /21

Modeling Procedure Defining the Problem Identifying System Components OUTSIDE SIMULINK Modeling System with Equations Building the Simulink Block Diagrams Running the Simulation MODELING IN SIMULINK Validating the Simulation Results 7 /21

Example 4.7 A Parachute Jumper and a Mechanical Model Values: Mass of the Parachute M p Mass of the Jumper M j Drag Coefficient of Parachute B p Drag Coefficient of Jumper B j Spring Constant of Riser K R 10 kg 60 kg 100 N/(m/s) 10 N/(m/s) 400 N/m Conditions: t = 0 as the moment the parachute opens Risers fully extended, no deformation Velocity: v j = 20 m/s, v p = 20 m/s Constant = 9.807 m/s^2 8 /21

Free body Diagrams 9 /21

Equilibrium Equations Equilibrium Equations M x B x K ( x x ) M g p p p p R j p p M x B x K ( x x ) M g j j j j R j p j Re write 1 xp [ Bx p p KR ( xj xp ) M pg ] M p 1 x j [ Bx j j KR ( xj xp ) M jg ] M j 10 /21

Start a New Model From the Library Browser, File New Model Launch the Programming Interface Drag Block Components From Library into This Area 11 /21

Programming 12 /21

Modeling of Parachute 1 xp [ Bx p p KR ( xj xp ) M pg ] M p x p x p x p ( x x ) j p 13 /21

Modeling of Jumper 1 x j [ Bx j j KR ( xj xp ) M jg ] M j ( x x ) j p x j x j x j Time 14 /21

Output Ports Assignment Sequence Variable 1 Displacement of Parachute 2 Velocity of Parachute 3 Acceleration of Parachute 4 Displacement of Jumper 5 Velocity of Jumper 6 Acceleration of Jumper 7 Spring Elongation 8 Time 15 /21

Run the Simulation Script % DEMONSTRATION OF EXAMPLE 4.7 PARACHUTE % 1. Value Assignment Mp = 10; % mass of parachute 10 kg Mj = 60; % mass of jumper 60 kg Bp = 100; % drag coef. of parachute 100 N/(m/s) Bj = 10; % drag coef. of jumper 10 N/(m/s) KR = 400; % spring constant of riser 400 N/m % 2. Simulation Execution sim('parachute'); Run the Script (F5) 16 /21

Simulation Result Workspace Output Variables 17 /21

Visualization of Result % PLOT THE SIMULATION RESULT % OUTPUT VARIABLE : yout % TIME OUTPUT: tout figure; subplot(4,1,1); % 1ST PLOT plot(tout,yout(:,1),'b','linewidth',3); % PLOT DISP. OF PARACHUTE VS. TIME hold on;grid on; plot(tout,yout(:,4),'--r','linewidth',3); % PLOT DISP. OF JUMPER VS. TIME ylabel('meter','fontsize',22); % SET YLABLE set(gca,'fontsize',16); % SET FONT SIZE OF AXES subplot(4,1,2); % 2ND PLOT plot(tout,yout(:,2),'b','linewidth',3); % PLOT VELOCITY OF PARACHUTE VS. TIME hold on;grid on; plot(tout,yout(:,5),'--r','linewidth',3); % PLOT VELOCITY OF JUMPER VS. TIME ylabel('meter/sec.','fontsize',22); % SET YLABLE set(gca,'fontsize',16); % SET FONT SIZE OF AXES subplot(4,1,3); % 3RD PLOT plot(tout,yout(:,3),'b','linewidth',3); % PLOT ACCELERATION OF PARACHUTE VS. TIME hold on;grid on; plot(tout,yout(:,6),'--r','linewidth',3); % PLOT ACCELERATION OF JUMPER VS. TIME ylabel('meter/sec.^2','fontsize',22); % SET YLABLE set(gca,'fontsize',16); % SET FONT SIZE OF AXES subplot(4,1,4); % 4TH PLOT plot(tout,yout(:,7),'k','linewidth',3); % PLOT ELONGATION ylabel('meter','fontsize',22); % SET YLABLE xlabel('time/sec.','fontsize',22); % SET XLABLE set(gca,'fontsize',16); % SET FONT SIZE OF AXES grid on; 18 /21

Plot 40 meter 20 Parachute Jumper meter/sec. 0 0 0.5 1 1.5 2 2.5 3 3.5 4 30 20 10 0 0 0.5 1 1.5 2 2.5 3 3.5 4 meter/sec. 2 100 0-100 -200 0 0.5 1 1.5 2 2.5 3 3.5 4 meter/sec. 2 4 2 0 0 0.5 1 1.5 2 2.5 3 3.5 4 Time/sec. Elongation 19 /21

Summary Introduction to Block Diagram Introduction to Simulink Demonstration of Model based Design Demonstration of Simulink Operation 20 /21

Practice Launch MATLAB Get Familiar with Matrix Operations Try to Solve a Simple Problem with MATLAB Try to Solve a Simple Problem with Simulink 21 /21