The Process. 218 Technical Applications of Computers

Similar documents
9. Introduction and Chapter Objectives

INTRODUCTION TO TRANSFER FUNCTIONS

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

Chapter 10: Sinusoidal Steady-State Analysis

CHAPTER 6 STATE SPACE: FREQUENCY RESPONSE, TIME DOMAIN

Analog Signals and Systems and their properties

EECE251 Circuit Analysis I Lecture Integrated Program Set 3: Circuit Theorems

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

Transient Analysis of First-Order Circuits: Approaches and Recommendations

Electrical Circuits I

Lab Experiment 2: Performance of First order and second order systems

Physics 116A Notes Fall 2004

Computer Problems for Methods of Solving Ordinary Differential Equations

EIT Review. Electrical Circuits DC Circuits. Lecturer: Russ Tatro. Presented by Tau Beta Pi The Engineering Honor Society 10/3/2006 1

Module 25: Outline Resonance & Resonance Driven & LRC Circuits Circuits 2

Continuous Dynamics Solving LTI state-space equations גרא וייס המחלקה למדעי המחשב אוניברסיטת בן-גוריון

Chapter 10 AC Analysis Using Phasors

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

2005 AP PHYSICS C: ELECTRICITY AND MAGNETISM FREE-RESPONSE QUESTIONS

Basic Procedures for Common Problems

Course roadmap. ME451: Control Systems. Example of Laplace transform. Lecture 2 Laplace transform. Laplace transform

e st f (t) dt = e st tf(t) dt = L {t f(t)} s

Laplace Transforms Chapter 3

Physics for Scientists & Engineers 2

Linear Systems Theory

Introduction to Modern Control MT 2016

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

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

Step Response of First-Order Systems

Math Homework 3 Solutions. (1 y sin x) dx + (cos x) dy = 0. = sin x =

Question: Total. Points:

Linear System Theory

1. Review of Circuit Theory Concepts

Electrical Circuits I

First-order transient

EE 3120 Electric Energy Systems Study Guide for Prerequisite Test Wednesday, Jan 18, pm, Room TBA

Compare the measured behavior with desired behavior, and

Math 310 Introduction to Ordinary Differential Equations Final Examination August 9, Instructor: John Stockie

Modeling and Simulation Revision IV D R. T A R E K A. T U T U N J I P H I L A D E L P H I A U N I V E R S I T Y, J O R D A N

EE292: Fundamentals of ECE

Besides resistors, capacitors are one of the most common electronic components that you will encounter. Sometimes capacitors are components that one

Math 315: Differential Equations Lecture Notes Patrick Torres

0 t < 0 1 t 1. u(t) =

ECE2262 Electric Circuit

Solving a RLC Circuit using Convolution with DERIVE for Windows

Identification Methods for Structural Systems

Lecture 39. PHYC 161 Fall 2016

Signals and Systems Chapter 2

Simulink Modeling Tutorial

Pre-calculus is the stepping stone for Calculus. It s the final hurdle after all those years of

Control Systems Design

f = 1 T 6 a.c. (Alternating Current) Circuits Most signals of interest in electronics are periodic : they repeat regularly as a function of time.

x gm 250 L 25 L min y gm min

EG4321/EG7040. Nonlinear Control. Dr. Matt Turner

Linear Systems. Linear systems?!? (Roughly) Systems which obey properties of superposition Input u(t) output

EECE 2150 Circuits and Signals Final Exam Fall 2016 Dec 16

RC Circuit (Power amplifier, Voltage Sensor)

STATE VARIABLE (SV) SYSTEMS

Review of Linear Time-Invariant Network Analysis

Transfer func+ons, block diagram algebra, and Bode plots. by Ania- Ariadna Bae+ca CDS Caltech 11/05/15

Linear dynamical systems with inputs & outputs

Lecture 6: Impedance (frequency dependent. resistance in the s- world), Admittance (frequency. dependent conductance in the s- world), and

RC, RL, and LCR Circuits

Distance in the Plane

Designing Information Devices and Systems II Spring 2016 Anant Sahai and Michel Maharbiz Midterm 2

25. Chain Rule. Now, f is a function of t only. Expand by multiplication:

(amperes) = (coulombs) (3.1) (seconds) Time varying current. (volts) =

EIT Quick-Review Electrical Prof. Frank Merat

In addition to resistors that we have considered to date, there are two other basic electronic components that can be found everywhere: the capacitor

Experiment Guide for RC Circuits

Basic Electronics. Introductory Lecture Course for. Technology and Instrumentation in Particle Physics Chicago, Illinois June 9-14, 2011

EIE/ENE 104 Electric Circuit Theory

ECE 314 Signals and Systems Fall 2012

Problem 1: (3 points) Recall that the dot product of two vectors in R 3 is

Designing Information Devices and Systems I Fall 2018 Lecture Notes Note Introduction to Capacitive Touchscreen

Topic 5 Notes Jeremy Orloff. 5 Homogeneous, linear, constant coefficient differential equations

Modeling and Experimentation: Compound Pendulum

ECE Networks & Systems

Class #12: Experiment The Exponential Function in Circuits, Pt 1

Math 308 Week 8 Solutions

Circuit Analysis. by John M. Santiago, Jr., PhD FOR. Professor of Electrical and Systems Engineering, Colonel (Ret) USAF. A Wiley Brand FOR-

2 Background: Fourier Series Analysis and Synthesis

8 sin 3 V. For the circuit given, determine the voltage v for all time t. Assume that no energy is stored in the circuit before t = 0.

16.30 Estimation and Control of Aerospace Systems

Lecture 2. Introduction to Systems (Lathi )

Math 307 Lecture 19. Laplace Transforms of Discontinuous Functions. W.R. Casper. Department of Mathematics University of Washington.

AC Circuits III. Physics 2415 Lecture 24. Michael Fowler, UVa

Ordinary Differential Equations

Chapter 6. Second order differential equations

Laboratory I: Impedance

EE/ME/AE324: Dynamical Systems. Chapter 7: Transform Solutions of Linear Models

Control Systems Engineering (Chapter 2. Modeling in the Frequency Domain) Prof. Kwang-Chun Ho Tel: Fax:

Lesson 8 Electrical Properties of Materials. A. Definition: Current is defined as the rate at which charge flows through a surface:

D C Circuit Analysis and Network Theorems:

Lab #3 Linearity, Proportionality, and Superposition

CHAPTER 1 REVIEW Section 1 - Algebraic Expressions

EE 40: Introduction to Microelectronic Circuits Spring 2008: Midterm 2

Introduction to Controls

ECE-202 FINAL April 30, 2018 CIRCLE YOUR DIVISION

base 2 4 The EXPONENT tells you how many times to write the base as a factor. Evaluate the following expressions in standard notation.

Transcription:

ble. Right now, we will introduce simulink on transfer functions with the simple transfer function for the differential equation, dx(t)/dt + x(t) = u(t). Our input signal of u(t) will be the step funtion. Remember how to transform this DE into a transfer function: there is no s^2, so the first is the 1 in front of the first derivation and then a constant of 1, or 1/(s^2 + 1). Type simulink in the MATLAB command window; in upper left select open a new; and then repeat the design as shown below. {Expand Simulink and Sources, then move the step into the open window; you will find the transfer function block under Continuous ; double click on the transfer function block, where your num should be [1] and your den [1 1]; okay the settings which will close that windown; and then interconnect the step block to the transfer function by grabbing he little male connector and pulling to the female connnector. Now, all we need is scope block to look at the output, which is under Sinks --drag it into the design window and interconnect. 218 Technical Applications of Computers

Start the simulaton under Simulation at the top of the design window; and double click on the Scope block so you can see the output. {If it does not look like the plot below, then click on the autoscale, it is a binocular symbol.} 16-3: The Transfer Function. Much of the awe of the Transfer Function, besides with practical uses, will dissappear as you remember how often in Circuit Analysis classes you used techniques like Norton s Theorem, Thevenin s Theorem, and the Superposition Theory to explain and characterize what was in a black box in terms of what it looked like and how it behaved at the input and output. In other words, the internal represention of the black box does not have to be the same as what is actually in the black box as for example in terms of how resistors, capacitors, and inductors--even power sources, in order for that representation to accurately model the internal behavior for input and output. For example you recall how in Theven s Theorem, at the output you measured the open circuit voltage and the closed circuit current to form a single power source and resistance to represent the black box behavior. And if you find any or all of this theory too difficult, simply fall back on this initial definition of the Transfer Function, G(s), as a black box diagram with a single input, U(s) and single output, Y(s) like in Figure 6-1. Figure 6-1: Block Diagram Representation of Transfer Function. The symbols of representation like U for input and Y for output are common in most technical books, especially on Control Engineering; and the s for input or output is a function of s lets us know that a mathematical transform has taken place to convert the DE into an algebraic equation using the famous and classical LaPlace transform. In terms of what you have known and used in circuit analysis, if the black box was a simple amplifier, then the Output, Y, over the Input, U, would be the gain of the black box. A more precise definition of the transfer function, G(s), would be the LaPlace transform of the output divided by the LaPlace transform of the input. Dwell on this Figure 6-1 for a while, as it is one of the most important concepts you will find for the practical application of MATLAB and Simulink to the solution of technical problems. 16-4: LaPlace Transform, parameters in s. Wikipedia starts their definition of the LaPlace Transform with the widespread areas of applications in math, physcics, optics, electrical engineering, control engineering, signal processing, and probability theory, all applications we will Technical Applications of Computers 219

come to in chapters to follow as we have behind us some appreciation for the concepts and equations of the transfer function, the LaPlace Tranform, the Fourier Transform, and State-Space Equations. Both the LaPlace Transform, L, and the Fourier Transform are math techniques for the solution of differential and integral equations; but so detailed are many aerodynamic and control engineering problems that solutions are expedited with an up front conversion of DEs into functions of s through the LaPlace transform, then after solution of the large problems, to convert back from s parameters into DEs through integration. {Most often in the usage of standard tables of LaPlace transforms.} Wikipedia continues in their history and defintion of the LaPlace transform with the statement that these transformation are from the timedoman {recall that DEs often are integrated or differentiated with respect to time, t} to the frequency domain of angular frequency in radians/sec or cycles/ sec. f(t) represents the original function in the DE form and as a function of time, t; and F(s) represents the function transformed into algebraic variables of s with the LaPlace transform. F(s) = f(t) after it is multiplied by e^(-st) and dt which is integrate over time, or Equation 5-1: Definition of the LaPlace Transform, L. Fs ( ) = Lf() t = ( eð st) 16-5: State-Space Variable Equations. We naturally think of space variables as the x,y, and z coordinates of the cartersian coordinate system like where an object moves in three dimensional space with a precise location of x, y, and z. Well, to combine such space coordinates with state variables in a little more complex, but is so feasible in the discrip- 220 Technical Applications of Computers 0

tion of many mechanical, electrical, and control systems in terms of both space and state, where the state variables describe the state or states inside the black box. For example, if the LCR circuit of the next section is under analysis, one state would be the magnetic energy stored in the inductor and another state would be the electric energy stored in the capacitor. Before we start applying the State-Space equations to such an LCR circuit, let us show the two statespace equations in their general equation form as shown in Equations 6-2. Equations 6-2a,b: The State-Space Equations. x = Ax + Bu y = Cx + Du where you immediately recognize x, y, and the derivative of x, dot x, as the physical parameters of space. You even recognize y as the standard symbol for output and u for input, and are leading naturally to start looking for the State variables thus hitting on A, B, C, and D as the variables of state. It is impossible to stress how important these equations for state-space variables are in computer and engineering applications; and if we had like in other chapters one DE of chapter emphasis, for this chapter it would be the two State-Space Equations of Equatons 6-2. Of course only the top of the two equations is a DE, which could be written as dx/dt = Ax of Bu; and the second equation is recognized as a simple linear equation of to solve for y with the variables of x and input, u, and the constants of C and D. Literature on the subject, like in the currently popular Wikepedia, stresses how state variables are user-defined which also serves to tell us that there are several ways to define the internal states for any given system or black box. It is easy to think too much of State-Space. Once again, we can easily go from a DE like dx(t)/dt + x(t) = 0 {with initial condition of x(0) = 1 and a solution required over the interval 0 to 10} to the State-Space format of: x = Ax(t) + Bu(t) y(t) = Cx(t) + Du(t) and it is understood that x is the state ; u(t) the input; and y(t) the output. Therefore the first of the two equations above is called the state equation, and the second the output equation. Now we start plugging our DE into the standard state-space format by allowing y(t) = x(t); therefore: Technical Applications of Computers 221

dx(t)/dt = -1x(t) y(t) = x(t) and A = -1, C = 1, B = 0, and D = 0 {recall that u(t) is also 0. It feel good about a solution, let us solve it by Simulink with a model block as follows. This time in Simulink, and with a new model window, grab the State-Space block and a scope block, interconnect, and double click on the State-Space block. Fill in A thru D as agreed above, respetively - 1,0,1, and 0 and with an initial condition of 1. Then run Start under Simulation. {Oh, don t forget to hit Apply before you close the State-Space window for Block Parameters.} NOTE: Aren t you impressed that you can so easily with Simulink visualize a DE, and even more so that you can easily get into the State-Space format? 16-6: Solution of Second Order DE by State-Space. It is a little more challenge to setup the Simulink of the following DE, and especially to first put it in standard State-Space format. 2*x + 2*x + 4x = 3*u(t) and once again u(t) is the unit step input funtion, this time the time interval is 10 seconds, or 0 to 10 seconds; and we have two initial conditions of x(0) = 2 and x (0) = -1. We will use the same block model as shown above; but this time, however, our A,B,C, D, and initial conditions will be quite different. It is also a little more complicated to put this second order DE into standard state-space 222 Technical Applications of Computers

form. The state is a state vector of two components, x1 and x2, so that each will have a state equation: x1 = Ax1 + Bu and x2 = Ax2 + Bu Define {you can do anything by definition} x1 = x and x2 = x1 with the first state equation of x1 = x2; and the second state equation, x2, is found by substituting x1 and x2 into the original DE. {Actually for x2 put x1, maing the second derivative of x1, or x1 = to the first derivative of x2, or x2 ; therefore the DE now becomes: 2*x2 + 2*x2 + 4*x1 = 3*u(t), and the state-space form is: x1 = x2 and x2 = -4*x1-2*x2 + 3*u(t) and the matrix format would be: x1 0 1 x1 0 x1 = + u(t), y(t) =[1 0] x2-4 -2 x2 4 x2 where you see A = [0 1; -4-2], B = [0,4], C = [1 0], and D = 0. Thus use the same block diagram, but fill in the new appropriate A,B,C, and D and with the initial conditions of [2-1]. And by double clicking again on the scope and using the autoscale, you see the plot on the left with a neat little dip and then a hump before leveling off. Electric Circuit. 16-6: Concepts/Techniques Applied to the These concepts and techniques of engineering math become quite clear as we apply them to an electric circuit like the one shown in Figure 6-2. You can see by the skematic symbols for vin, L, R, and C that it is a simple series LCR circuit with a single power source, vin, an inductor, L, a single resistor R1, and a capacitor, C. {The same circuit of chapter 1.} If a unit step input were applied to the LCR circuit of Figure 6-2 instantly the capacitor would act like a short and the inductor like an open, indicating the stored energy state of the capacitor as v Technical Applications of Computers 223