SECTION 7: FREQUENCY DOMAIN ANALYSIS. MAE 3401 Modeling and Simulation

Similar documents
Introduction to Signals and Systems Lecture #9 - Frequency Response. Guillaume Drion Academic year

Modeling and Analysis of Systems Lecture #9 - Frequency Response. Guillaume Drion Academic year

Frequency Response Analysis and Design Tutorial

Bode Plots. Hamid Roozbahani

CHAPTER 6 INTRODUCTION TO SYSTEM IDENTIFICATION

Välkomna till TSRT15 Reglerteknik Föreläsning 5. Summary of lecture 4 Frequency response Bode plot

LECTURE FOUR Time Domain Analysis Transient and Steady-State Response Analysis

Bode and Log Magnitude Plots

Poles and Zeros of H(s), Analog Computers and Active Filters

Boise State University Department of Electrical and Computer Engineering ECE 212L Circuit Analysis and Design Lab

EE Experiment 8 Bode Plots of Frequency Response

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District DEPARTMENT OF INFORMATION TECHNOLOGY DIGITAL SIGNAL PROCESSING UNIT 3

Bode plot, named after Hendrik Wade Bode, is usually a combination of a Bode magnitude plot and Bode phase plot:

Lecture 17 z-transforms 2

ECE : Circuits and Systems II

, answer the next six questions.

Lecture 3 Complex Exponential Signals

The Discrete Fourier Transform. Claudia Feregrino-Uribe, Alicia Morales-Reyes Original material: Dr. René Cumplido

Pole, zero and Bode plot

Complex Digital Filters Using Isolated Poles and Zeroes

CHAPTER 6 Frequency Response, Bode. Plots, and Resonance

EEL2216 Control Theory CT2: Frequency Response Analysis

2.1 BASIC CONCEPTS Basic Operations on Signals Time Shifting. Figure 2.2 Time shifting of a signal. Time Reversal.

Cleveland State University MCE441: Intr. Linear Control Systems. Lecture 12: Frequency Response Concepts Bode Diagrams. Prof.

BSNL TTA Question Paper Control Systems Specialization 2007

System analysis and signal processing

Low Pass Filter Introduction

Microelectronic Circuits II. Ch 9 : Feedback

AC BEHAVIOR OF COMPONENTS

PYKC 13 Feb 2017 EA2.3 Electronics 2 Lecture 8-1

Lab 6: Building a Function Generator

Frequency Response Analysis

Kent Bertilsson Muhammad Amir Yousaf

Department of Electronic Engineering NED University of Engineering & Technology. LABORATORY WORKBOOK For the Course SIGNALS & SYSTEMS (TC-202)

Frequency Division Multiplexing Spring 2011 Lecture #14. Sinusoids and LTI Systems. Periodic Sequences. x[n] = x[n + N]

Department of Electronics &Electrical Engineering

Low Pass Filter Rise Time vs Bandwidth

A filter is appropriately described by the transfer function. It is a ratio between two polynomials

1.What is frequency response? A frequency responses the steady state response of a system when the input to the system is a sinusoidal signal.

Class #16: Experiment Matlab and Data Analysis

ECE 3155 Experiment I AC Circuits and Bode Plots Rev. lpt jan 2013

Signals and Systems Using MATLAB

Lecture 9. Lab 16 System Identification (2 nd or 2 sessions) Lab 17 Proportional Control

Lab 6 rev 2.1-kdp Lab 6 Time and frequency domain analysis of LTI systems

Demonstrating in the Classroom Ideas of Frequency Response

ECE 203 LAB 2 PRACTICAL FILTER DESIGN & IMPLEMENTATION

DIGITAL FILTERS. !! Finite Impulse Response (FIR) !! Infinite Impulse Response (IIR) !! Background. !! Matlab functions AGC DSP AGC DSP

v(t) = V p sin(2π ft +φ) = V p cos(2π ft +φ + π 2 )

3.2 Measuring Frequency Response Of Low-Pass Filter :

Active Filter Design Techniques

Digital Processing of Continuous-Time Signals

Lab 1: Simulating Control Systems with Simulink and MATLAB

Digital Processing of

ijdsp Workshop: Exercise 2012 DSP Exercise Objectives

Resonator Factoring. Julius Smith and Nelson Lee

[ á{tå TÄàt. Chapter Four. Time Domain Analysis of control system

10. Introduction and Chapter Objectives

THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering. EIE2106 Signal and System Analysis Lab 2 Fourier series

Discrete Fourier Transform (DFT)

Modeling Amplifiers as Analog Filters Increases SPICE Simulation Speed

Structure of Speech. Physical acoustics Time-domain representation Frequency domain representation Sound shaping

SAMPLING THEORY. Representing continuous signals with discrete numbers

CHAPTER 9. Sinusoidal Steady-State Analysis

Electric Circuit Theory

SMS045 - DSP Systems in Practice. Lab 1 - Filter Design and Evaluation in MATLAB Due date: Thursday Nov 13, 2003

STATION NUMBER: LAB SECTION: Filters. LAB 6: Filters ELECTRICAL ENGINEERING 43/100 INTRODUCTION TO MICROELECTRONIC CIRCUITS

Electrical Engineering. Control Systems. Comprehensive Theory with Solved Examples and Practice Questions. Publications

EES42042 Fundamental of Control Systems Bode Plots

Digital Signal Processing

JNTUWORLD. 6 The unity feedback system whose open loop transfer function is given by G(s)=K/s(s 2 +6s+10) Determine: (i) Angles of asymptotes *****

Advanced Circuits Topics Part 2 by Dr. Colton (Fall 2017)

Communication Engineering Prof. Surendra Prasad Department of Electrical Engineering Indian Institute of Technology, Delhi

Practice Test 3 (longer than the actual test will be) 1. Solve the following inequalities. Give solutions in interval notation. (Expect 1 or 2.

Fourier Analysis. Chapter Introduction Distortion Harmonic Distortion

Open Loop Frequency Response

Chapter 3 Exponential and Logarithmic Functions

Design and comparison of butterworth and chebyshev type-1 low pass filter using Matlab

George Mason University Signals and Systems I Spring 2016

ECE438 - Laboratory 7a: Digital Filter Design (Week 1) By Prof. Charles Bouman and Prof. Mireille Boutin Fall 2015

EXPERIMENT 8: LRC CIRCUITS

EE202 Circuit Theory II , Spring

Review of Filter Types

PROBLEM SET 6. Note: This version is preliminary in that it does not yet have instructions for uploading the MATLAB problems.

Background (What Do Line and Load Transients Tell Us about a Power Supply?)

Instruction Manual for Concept Simulators. Signals and Systems. M. J. Roberts

y(n)= Aa n u(n)+bu(n) b m sin(2πmt)= b 1 sin(2πt)+b 2 sin(4πt)+b 3 sin(6πt)+ m=1 x(t)= x = 2 ( b b b b

Signals A Preliminary Discussion EE442 Analog & Digital Communication Systems Lecture 2

Lecture 18 Stability of Feedback Control Systems

FX Basics. Filtering STOMPBOX DESIGN WORKSHOP. Esteban Maestre. CCRMA - Stanford University August 2013

Kerwin, W.J. Passive Signal Processing The Electrical Engineering Handbook Ed. Richard C. Dorf Boca Raton: CRC Press LLC, 2000

Section 7.2 Logarithmic Functions

Sect Linear Equations in Two Variables

Experiment 2: Transients and Oscillations in RLC Circuits

Agilent Time Domain Analysis Using a Network Analyzer

EE228 Applications of Course Concepts. DePiero

PHYS225 Lecture 15. Electronic Circuits

IIR Filter Design Chapter Intended Learning Outcomes: (i) Ability to design analog Butterworth filters

FREQUENCY RESPONSE AND PASSIVE FILTERS LABORATORY

Electrical & Computer Engineering Technology

Advanced Digital Signal Processing Part 5: Digital Filters

Transcription:

SECTION 7: FREQUENCY DOMAIN ANALYSIS MAE 3401 Modeling and Simulation

2 Response to Sinusoidal Inputs

Frequency Domain Analysis Introduction 3 We ve looked at system impulse and step responses Also interested in the response to periodic inputs Fourier theory tells us that any periodic signal can be represented as a sum of harmonically related sinusoids The Fourier series: 2 cos 2 sin 2 where and are given by the Fourier integrals Sinusoids are basis signals from which all other periodic signals can be constructed Sinusoidal system response is of particular interest

Fourier Series 4

System Response to a Sinusoidal Input 5 Consider an order system poles:,, Real or complex Assume all are distinct Transfer function is: (1) Apply a sinusoidal input to the system sin Output is given by (2)

System Response to a Sinusoidal Input 6 Partial fraction expansion of (2) gives (3) Inverse transform of (3) gives the time domain output cos sin (4) transient steady state Two portions of the response: Transient Decaying exponentials or sinusoids goes to zero in steady state Natural response to initial conditions Steady state Due to the input sinusoidal in steady state

Steady State Sinusoidal Response 7 We are interested in the steady state response cos sin (5) A trig. identity provides insight into : where cos sin tan sin Steady state response to a sinusoidal input sin is a sinusoid of the same frequency, but, in general different amplitude and phase sin Where (6) and tan

Steady State Sinusoidal Response 8 sin sin Steady state sinusoidal response is a scaled and phase shifted sinusoid of the same frequency Equal frequency is a property of linear systems Note the term in the numerator of (3) will affect the residues Residues determine amplitude and phase of the output Output amplitude and phase are frequency dependent sin

Steady State Sinusoidal Response 9 sin Linear System sin Gain the ratio of amplitudes of the output and input of the system Phase phase difference between system input and output Systems will, in general, exhibit frequency dependent gain and phase We d like to be able to determine these functions of frequency The system s frequency response

10 Frequency Response A system s frequency response, or sinusoidal transfer function, describes its gain and phase shift for sinusoidal inputs as a function of frequency.

Frequency Response 11 System output in the Laplace domain is Multiplication in the Laplace domain corresponds to convolution in the time domain Consider an exponential input of the form where is the complex Laplace variable: Now the output is (1)

Frequency Response 12 (1) We re interested in the steady state response, so let the upper limit of integration go to infinity (2) Time domain response to an exponential input is the time domain input multiplied by the system transfer function What is this input? (3) If we let 0, i.e. let, then we have (4)

Euler s Formula 13 Recall Euler s formula: cos sin (5) From which it follows that and cos sin (6) (7)

Frequency Response 14 We re interested in the sinusoidal steady state system response, so let the input be cos A sum of complex exponentials in the form of (3) We ve let in the first term and in the second 2 (8) According to (4) the output in response to (8) will be (9)

Frequency Response 15 (9) is a complex function of frequency Evaluates to a complex number at each value of Has both magnitude and phase Can be expressed in polar form as where It follows that (10) and (11)

Frequency Response 16 Using (11), the output given by (9) becomes (12) where, again (13) and (14)

Frequency response Function 17 is the system s frequency response function Transfer function, where (15) A complex valued function of frequency at each is the gain at that frequency Ratio of output amplitude to input amplitude at each is the phase at that frequency Phase shift between input and output sinusoids Another representation of system behavior Along with state space model, impulse/step responses, transfer function, etc. Typically represented graphically

Plotting the Frequency Response Function 18 is a complex valued function of frequency Has both magnitude and phase Plot gain and phase separately Frequency response plots formatted as Bode plots Two sets of axes: gain on top, phase below Identical, logarithmic frequency axes Gain axis is logarithmic either explicitly or as units of decibels (db) Phase axis is linear with units of degrees

Bode Plots 19 Units of magnitude are db Magnitude plot on top Logarithmic frequency axes Units of phase are degrees Phase plot below

Interpreting Bode Plots 20 Bode plots tell you the gain and phase shift at all frequencies: choose a frequency, read gain and phase values from the plot For a 10KHz sinusoidal input, the gain is 0dB (1) and the phase shift is 0. For a 10MHz sinusoidal input, the gain is 32dB (0.025), and the phase shift is 176.

Interpreting Bode Plots 21

Decibels db 22 Frequency response gain most often expressed and plotted with units of decibels (db) A logarithmic scale Provides detail of very large and very small values on the same plot Commonly used for ratios of powers or amplitudes Conversion from a linear scale to db: 20 log Conversion from db to a linear scale: 10

Decibels db 23 Multiplying two gain values corresponds to adding their values in db E.g., the overall gain of cascaded systems Negative db values corresponds to sub unity gain Positive db values are gains greater than one db Linear 60 1000 40 100 20 10 0 1 db Linear 6 2 3 1/ 20.707 6 0.5 20 0.1

Value of Logarithmic Axes db 24 Gain axis is linear in db A logarithmic scale Allows for displaying detail at very large and very small levels on the same plot Gain plotted in db Two resonant peaks clearly visible Linear gain scale Smaller peak has disappeared

Value of Logarithmic Axes db 25 Frequency axis is logarithmic Allows for displaying detail at very low and very high frequencies on the same plot Log frequency axis Can resolve frequency of both resonant peaks Linear frequency axis Lower resonant frequency is unclear

Gain Response Terminology 26 Corner frequency, cut off frequency, 3dB frequency: Frequency at which gain is 3dB below its low frequency value ~5 of peaking 2 This is the bandwidth of the system 1.45 0.23 2 Peaking Any increase in gain above the low frequency gain

27 Response of 1 st and 2 nd Order Factors This section examines the frequency responses of first and second order transfer function factors.

Transfer Function Factors 28 We ve already seen that a transfer function denominator can be factored into firstand second order terms 2 The same is true of the numerator 2 2 2 2 2 Can think of the transfer function as a product of the individual factors For example, consider the following system 2 Can rewrite as 1 1 2

Transfer Function Factors 29 1 1 2 Think of this as three cascaded transfer functions,, or 1 1 2

Transfer Function Factors 30 In the Laplace domain, transfer function of a cascade of systems is the product of the individual transfer functions In the time domain, overall impulse response is the convolution of the individual impulse responses Same holds true in the frequency domain Frequency response of a cascade is the product of the individual frequency responses Or, the product of individual factors Instructive, therefore, to understand the responses of the individual factors First and second order poles and zeros

First Order Factors 31 First order factors Single, real poles or zeros In the Laplace domain:,,, In the frequency domain Pole/zero plots:,,,

First Order Factors Zero at the Origin 32 A differentiator Gain: Phase: 90,

First Order Factors Pole at the Origin 33 An integrator 1 1 Gain: 1 1 Phase: 90,

First Order Factors Single, Real Zero 34 Single, real zero at Gain: Phase: tan for for for for 0 90

First Order Factors Single, Real Zero 35 Corner frequency: 2 1.414 3 45 For, gain increases at: 20/ 6/ From ~0.1 to ~10, phase increases at a rate of: ~45 / Rough approximation

First Order Factors Single, Real Pole 36 Single, real pole at 1 Gain: Phase: for 1 tan for for 1 1 for 1 0 1 90

First Order Factors Single, Real Pole 37 Corner frequency: 0.707 3 45 For, gain decreases at: 20/ 6/ From ~0.1 to ~10, phase decreases at a rate of: ~ 45 / Rough approximation

Second Order Factors 38 Complex conjugate zeros 2 Complex conjugate poles 1 2, 1

2 nd Order Factors Complex Conjugate Zeros 39 Complex conjugate zeros at 2 Gain: for for for 2 Phase: for 0 for 2 90 for 180

2 nd Order Factors Complex Conjugate Zeros 40 Response may dip below low freq. value near Peaking increases as decreases Gain increases at 40/ or 12/ for Corner frequency depends on damping ratio, increases as decreases At, 90 Phase transition abruptness depends on

2 nd Order Factors Complex Conjugate Poles 41 Complex conjugate zeros at 1 2 Gain: Phase: for for 1 1 0 for 1 2 for for 1 90 2 for 1 1 180

2 nd Order Factors Complex Conjugate Poles 42 Response may peak above low freq. value near Peaking increases as decreases Gain decreases at 40/ or 12/ for Corner frequency depends on damping ratio, increases as decreases At, 90 Phase transition abruptness depends on

Pole Location and Peaking 43 Peaking is dependent on pole locations No peaking at all for 1/ 2 0.707 0.707 maximally flat or Butterworth response

Frequency Response Components Example 44 Consider the following system 20 20 1 100 The system s frequency response function is 20 20 1 100 As we ve seen we can consider this a product of individual frequency response factors 20 20 1 1 1 100 Overall response is the composite of the individual responses Product of individual gain responses sum in db Sum of individual phase responses

Frequency Response Components Example 45 Gain response

Frequency Response Components Example 46 Phase response

47 Bode Plot Construction In this section, we ll look at a method for sketching, by hand, a straight line, asymptotic approximation for a Bode plot.

Bode Plot Construction 48 We ve just seen that a system s frequency response function can be factored into first and secondorder terms Each factor contributes a component to the overall gain and phase responses Now, we ll look at a technique for manually sketching a system s Bode plot In practice, you ll almost always plot with a computer But, learning to do it by hand provides valuable insight We ll look at how to approximate Bode plots for each of the different factors

Bode Form of the Transfer function 49 Consider the general transfer function form: 2 2 We first want to put this into Bode form: 1 1 1 1 2 1 2 1 The corresponding frequency response function, in Bode form, is 1 1 2 1 1 1 2 1 Putting into Bode form requires putting each of the first and second order factors into Bode form

First Order Factors in Bode Form 50 First order frequency response factors include:,, For the first factor,, is a positive or negative integer Already in Bode form For the second two, divide through by, giving 1 and Here,, the corner frequency associated with that zero or pole, so 1 and

Second Order Factors in Bode Form 51 Second order frequency response factors include: 2 and Again, normalize the coefficient, giving 1 and / Putting each factor into its Bode form involves factoring out any DC gain component Lump all of DC gains together into a single gain constant,

Bode Plot Construction 52 Frequency response function in Bode form Product of a constant DC gain factor,, and firstand second order factors Plot the frequency response of each factor individually, then combine graphically Overall response is the product of individual factors Product of gain responses sum on a db scale Sum of phase responses

Bode Plot Construction 53 Bode plot construction procedure: 1. Put the sinusoidal transfer function into Bode form 2. Draw a straight line asymptotic approximation for the gain and phase response of each individual factor 3. Graphically add all individual response components and sketch the result Next, we ll look at the straight line asymptotic approximations for the Bode plots for each of the transfer function factors

Bode Plot Constant Gain Factor 54 Constant gain Constant Phase

Bode Plot Poles/Zeros at the Origin 55 0: zeros at the origin 0: poles at the origin Gain: Straight line Slope 20 6 0 at 1 Phase: 90

Bode Plot First Order Zero 56 Single real zero at Gain: 0 for 20 6 for Straight line asymptotes intersect at,0 Phase: 0 for 0.1 45 for 90 for 10 for 0.1 10 1

Bode Plot First Order Pole 57 Single real pole at Gain: 0 for 20 6 for Straight line asymptotes intersect at,0 Phase: 1 1 0 for 0.1 45 for 90 for 10 for 0.1 10

Bode Plot Second Order Zero 58 Complex conjugate zeros: Gain:, 0 for 40 12 for Straight line asymptotes intersect at,0 2 1 dependent peaking around Phase: 0 for 90 for 180 for dependent slope through Sketch as step change at for low, 90 / for high, or in between

Bode Plot Second Order Pole 59 Complex conjugate poles: Gain:, 0 for 40 12 for Straight line asymptotes intersect at,0 1 2 1 dependent peaking around Phase: 0 for 90 for 180 for dependent slope through Sketch as step change at for low, 90 / for high, or in between

Bode Plot Construction Example 60 Consider a system with the following transfer function 10 20 400 The sinusoidal transfer function: 10 20 400 Put it into Bode form 10 20 400 Represent as a product of factors 20 1 400 1 0.5 20 1 400 1 0.5 20 1 1 1 400 1

Bode Plot Construction Example 61

Bode Plot Construction Example 62

63 Relationship between Pole/Zero Plots and Bode Plots It is also possible to calculate a system s frequency response directly from that system s pole/zero plot.

Bode Construction from Pole/Zero Plots 64 Transfer function can be expressed as Numerator is a product of first order zero terms Denominator is a product of first order pole terms is a point on the imaginary axis represents a vector from to represents a vector from to Gain is given by Phase can be calculated as Σ Σ Possible to evaluate the frequency graphically from a pole/zero diagram Not done in practice, but provides useful insight

Bode Construction from Pole/Zero Plots 65 Consider the following system: 3 2 1.75 21.75 Evaluate at 2.5/ Gain: 2.5... 2.5... Phase: 2.5 0.389 8.2 2.5 3 2.5 39.8 2 0.75 20.6 2 4.25 64.8 2.5 45.5

66 Frequency and Time Domains A system s frequency response and it s various time domain responses are simply different perspectives on the same dynamic behavior.

Frequency and Time Domains 67 We ve seen many ways we can represent a system order differential equation Bond graph model State variable model Impulse response Step response Transfer function Frequency response/bode plot Time domain representations Frequency domain representations All are valid and complete models They all contain the same information in different forms Different ways of looking at the same thing

Time/Frequency Domain Correlation 68....

69 Frequency Domain Analysis in MATLAB As was the case for time domain simulation, MATLAB has some useful functions for simulating system behavior in the frequency domain as well.

System Objects 70 MATLAB has data types dedicated to linear system models Two primary system model objects: State space model Transfer function model Objects created by calling MATLAB functions ss.m creates a state space model tf.m creates a transfer function model

State Space Model ss( ) 71 A: system matrix B: input matrix C: output matrix D: feed through matrix sys = ss(a,b,c,d) sys: state space model object State space model object will be used as an input to other MATLAB functions

Transfer Function Model tf( ) 72 sys = tf(num,den) Num: vector of numerator polynomial coefficients Den: vector of denominator polynomial coefficients sys: transfer function model object Transfer function is assumed to be of the form Inputs to tf( ) are Num = [b1,b2,,br+1]; Den = [a1,a2,,an+1];

Frequency Response Simulation bode( ) 73 [mag,phase] = bode(sys,w) sys: system model state space, transfer function, or other w: optional frequency vector in rad/sec mag: system gain response vector phase: system phase response vector in degrees If no outputs are specified, bode response is automatically plotted preferable to plot yourself Frequency vector input is optional If not specified, MATLAB will generate automatically May need to do: squeeze(mag) and squeeze(phase) to eliminate singleton dimensions of output matrices

Log spaced Vectors logspace( ) 74 f= logspace(x0,x1,n) x0: first point in f is 10 x1: last point in f is 10 N: number of points in f f: vector of logarithmically spaced points Generates and logarithmically spaced points between Useful for generating independent variable vectors for log plots (e.g., frequency vectors for bode plots) Linearly spaced on a logarithmic axis