Problem Set 4 for MAE280A Linear Systems Theory, Fall 2017: due Tuesday November 28, 2017, in class

Similar documents
MAE143A Signals & Systems, Final Exam - Wednesday March 16, 2005

HOMEWORK 4: MATH 265: SOLUTIONS. y p = cos(ω 0t) 9 ω 2 0

Basics of Electric Circuits

EM Oscillations. David J. Starling Penn State Hazleton PHYS 212

Name:... Section:... Physics 208 Quiz 8. April 11, 2008; due April 18, 2008

Chapter 10: Sinusoidal Steady-State Analysis

Lecture 35: FRI 17 APR Electrical Oscillations, LC Circuits, Alternating Current I

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

Chapter 3: Capacitors, Inductors, and Complex Impedance

Circuit Analysis-III. Circuit Analysis-II Lecture # 3 Friday 06 th April, 18

This is the number of cycles per unit time, and its units are, for example,

Module 03 Linear Systems Theory: Necessary Background

Lecture 7. Please note. Additional tutorial. Please note that there is no lecture on Tuesday, 15 November 2011.

Physics 11b Lecture #15

Physics 4B Chapter 31: Electromagnetic Oscillations and Alternating Current

to have roots with negative real parts, the necessary and sufficient conditions are that:

e jωt y (t) = ω 2 Ke jωt K =

AC analysis. EE 201 AC analysis 1

Control Systems I. Lecture 4: Diagonalization, Modal Analysis, Intro to Feedback. Readings: Emilio Frazzoli

E2.5 Signals & Linear Systems. Tutorial Sheet 1 Introduction to Signals & Systems (Lectures 1 & 2)

Lecture XXVI. Morris Swartz Dept. of Physics and Astronomy Johns Hopkins University November 5, 2003

MAE143A Signals & Systems - Homework 5, Winter 2013 due by the end of class Tuesday February 12, 2013.

ECE 201 Fall 2009 Final Exam

2.3 Oscillation. The harmonic oscillator equation is the differential equation. d 2 y dt 2 r y (r > 0). Its solutions have the form

Prof. Shayla Sawyer CP08 solution

Module 08 Observability and State Estimator Design of Dynamical LTI Systems

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Physics 8.02 Spring 2003 Experiment 17: RLC Circuit (modified 4/15/2003) OBJECTIVES

Driven RLC Circuits Challenge Problem Solutions

Dynamic circuits: Frequency domain analysis

Solution via Laplace transform and matrix exponential

First and Second Order Circuits. Claudio Talarico, Gonzaga University Spring 2015

Notes on the Periodically Forced Harmonic Oscillator

A system that is both linear and time-invariant is called linear time-invariant (LTI).

Chapter 33. Alternating Current Circuits

4. Sinusoidal solutions

1 (30 pts) Dominant Pole

Laboratory handout 5 Mode shapes and resonance

(Refer Slide Time: 00:32)

Unstable Oscillations!

Chapter 2: Complex numbers

PHYSICS 110A : CLASSICAL MECHANICS HW 2 SOLUTIONS. Here is a sketch of the potential with A = 1, R = 1, and S = 1. From the plot we can see

Physics for Scientists & Engineers 2

MAT292 - Calculus III - Fall Solution for Term Test 2 - November 6, 2014 DO NOT WRITE ON THE QR CODE AT THE TOP OF THE PAGES.

Control Systems Design

Linear and Nonlinear Oscillators (Lecture 2)

Homework 6 Solutions

Wave Phenomena Physics 15c

Wave Phenomena Physics 15c

Springs: Part I Modeling the Action The Mass/Spring System

Ordinary differential equations

ALTERNATING CURRENT. with X C = 0.34 A. SET UP: The specified value is the root-mean-square current; I. EXECUTE: (a) V = (0.34 A) = 0.12 A.

2.4 Harmonic Oscillator Models

Damped harmonic motion

12 Chapter Driven RLC Circuits

Lecture 15. LC Circuit. LC Oscillation - Qualitative. LC Oscillator

Transform Solutions to LTI Systems Part 3

Sinusoids. Amplitude and Magnitude. Phase and Period. CMPT 889: Lecture 2 Sinusoids, Complex Exponentials, Spectrum Representation

Chapter 21: RLC Circuits. PHY2054: Chapter 21 1

CMPT 889: Lecture 2 Sinusoids, Complex Exponentials, Spectrum Representation

21 Linear State-Space Representations

2.4 Models of Oscillation

University of TN Chattanooga Physics 1040L 8/18/2012 PHYSICS 1040L LAB LAB 4: R.C. TIME CONSTANT LAB

Observability. It was the property in Lyapunov stability which allowed us to resolve that

Lecture 2 and 3: Controllability of DT-LTI systems

Oscillations. Simple Harmonic Motion of a Mass on a Spring The equation of motion for a mass m is attached to a spring of constant k is

2 Growth, Decay, and Oscillation

TLT-5200/5206 COMMUNICATION THEORY, Exercise 3, Fall TLT-5200/5206 COMMUNICATION THEORY, Exercise 3, Fall Problem 1.

Networks and Systems Prof. V. G. K. Murti Department of Electrical Engineering Indian Institution of Technology, Madras

2B30 Formal Report Simon Hearn Dr Doel

1. (10 points) Find the general solution to the following second-order differential equation:

Keble College - Hilary 2014 CP3&4: Mathematical methods I&II Tutorial 5 - Waves and normal modes II

Inductance, Inductors, RL Circuits & RC Circuits, LC, and RLC Circuits

Linear Algebra and ODEs review

The Harmonic Oscillator


2.1 Exponential Growth

Signals and Systems. Problem Set: The z-transform and DT Fourier Transform

/ \ ( )-----/\/\/\/ \ / In Lecture 3 we offered this as an example of a first order LTI system.

ELECTROMAGNETIC OSCILLATIONS AND ALTERNATING CURRENT

Oscillations and Electromagnetic Waves. March 30, 2014 Chapter 31 1

EECE 301 Signals & Systems Prof. Mark Fowler

I. Impedance of an R-L circuit.

Analysis III for D-BAUG, Fall 2017 Lecture 10

Problem 1: Lagrangians and Conserved Quantities. Consider the following action for a particle of mass m moving in one dimension

16.362: Signals and Systems: 1.0

EE102 Homework 2, 3, and 4 Solutions

CALIFORNIA INSTITUTE OF TECHNOLOGY Control and Dynamical Systems

Frequency Response of Linear Time Invariant Systems

EXAM 3: SOLUTIONS. B = B. A 2 = BA 2 cos 0 o = BA 2. =Φ(2) B A 2 = A 1 cos 60 o = A 1 2 =0.5m2

Assignment 8. [η j, η k ] = J jk

MET 487 Instrumentation and Automatic Control. Lecture 3

Massachusetts Institute of Technology Physics 8.03 Fall 2004 Final Exam Thursday, December 16, 2004

Topic 1: Simple harmonic motion

MATH 251 Week 6 Not collected, however you are encouraged to approach all problems to prepare for exam

221B Lecture Notes on Resonances in Classical Mechanics

Lecture 2: Controllability of nonlinear systems

Discrete and continuous dynamic systems

Chap 4. State-Space Solutions and

Physics 4 Spring 1989 Lab 5 - AC Circuits

Vibrations and waves: revision. Martin Dove Queen Mary University of London

Transcription:

Problem Set 4 for MAE8A Linear Systems Theory, Fall 7: due Tuesday November 8, 7, in class Problem Controllability and reachability Consider the C-circuit depicted in class on Slide 3 of the Controllability lecture sequence. u + _ C + C + v v - - C-circuit example state is the set of capacitor voltage! apple state equation ẋ(t) = C C The state-space system is described by Transition function/matrix exponential 3 / C! 4 C " # 5t ẋ t = / C x e C t / C t + u /! e C t. C = e C t Solution " # e C t Z " For our particular choice of resistors and capacitors, we rewrite the state equations in units of seconds t x x(t) = () 4 as! e C t + C e C (t x () C e C (t ẋ t = x t + u t. Find a control signal, u If C=C t, for t [, ] that transfers the state fromand applex()= then the state is always a sca So [t,t ]= : 5 x =, to x Likewise, =. to transfer 7 x to the origin =e C t x() +! apple [Bonus] Find the minimum-energy control signal. Compute the energy. So C[t,t ]= as well : Hint for both parts: look at the Slides 4 and 5 of the Controllability notes. Solution: The solution for LTI system is When C C we will find that t x(t) = e A(t t) x(t ) + e A(t τ) Bu(τ)dτ, t we substitute the matrix A, B and state of the systems at two different time. 5 x() = = e A( ) + e A( τ) u(τ)dτ, 7 since matrix A is diagonal then we have e At e t = e t and also, e A( τ) = Example e ( τ) e (τ ) e ( τ) = e (τ ). [t,t ]=C[t,t ]=

Now let us check if the system is reachable, C = [ B AB ] = rank of matrix C is, hence the system is reachable. 4 Use the solution equation above and see that we want to drive the zero-state solution x zs (t) = e A( τ) u(τ)dτ, 5 from x zs () = to x zs () = e 7 A. Now we are allow to apply results from Lecture 4, W (, ) = e A( τ) [ ] [ ] e A( τ) T dτ = e (τ ) [ e (τ ) ] e (τ ) e (τ ) dτ W (, ) = [ e (τ ) e (τ ) ] [e (τ ) e (τ )] [ e (τ ) e dτ = 3(τ ) ] dτ e 3(τ ) 4e 4(τ ) W (, ) = [ ( e )/ ( e 3 ] )/3 ( e 3 )/3 ( e 4 ) According to Lecture 4, we need to find η such that 5 x zs () = e A = W 7 (, )η ImW (, ), then, for t [, ] control function, U(t) = B(t) T e A( t)t η = [ ] [ e t ] e (t ) η. The minimum energy is E = U(τ) dτ = x zs () T W (, ) x zs (). Problem Observers with real aeroengine data The file signal.dat contains data from an experiment at United Technologies esearch Center examining combustion instabilities in a jet engine single-nozzle rig. The combustion instability manifests as an audible single tone, sometimes called hooting or howling coming from the engine. The instability is undesirable and causes NO x pollution. The data file contains three columns of numbers: the current time, the pressure signal inside the combustor, and the heat release rate measured with a thermal sensor. You task is to build an observer to estimate the time delay between the peaks in the pressure signal and the peaks in the heat release rate signal. You need to build an observer to do this.

(i) Plot the data versus time to see the main oscillation in the data is around Hz. You can use MATLAB s play function to listen to it, since the data is sampled at 5kHz. Here is the zoomed plot of pressure versus time. Note that there are about.5 cycles in.6 seconds or 8 Hz approximately. 8 6 4 pressure (units) - -4-6 -8.66.68.7.7.74.76.78 Figure : Plot for task (i). (ii) Plot the absolute value of the FFT of the pressure data to show that the main frequency is at.573 Hz. Here a zoomed in view using stem plot of the abs(fft(pressure)). You see that bin 69 is the max. This represents 69 cycles in the data of 6384 samples at 5 Hz or f = 69 6384 5 =.573Hz. (iii) Convert the heat release rate, which is necessarily positive, to a more symmetric signal by taking its logarithm. Call this lheat. (iv) Show that, the signals x i (t) = A cos(ωt + φ) and x q (t) = A sin(ωt + φ) satisfy the state equation xi (t + ) cos ω sin ω xi (t) =. x q (t + ) sin ω cos ω x q (t) x i (t + ) = A cos(ω(t + ) + φ) = A cos(ωt + φ + ω) = A[cos(ωt + φ) cos(ω) sin(ωt + φ) sin(ω)] = x i (t) cos(ω) x q (t) sin(ω) and x q (t + ) = A sin(ω(t + ) + φ) = A sin(ωt + φ + ω) = A[sin(ωt + φ) cos(ω) + cos(ωt + φ) sin(ω)] = x q (t) sin(ω) + x i (t) cos(ω)

amplitude 4.8.6.4..8.6.4. 67 675 68 685 69 695 7 75 7 75 7 bin number + Figure : Plot for task (ii). so we have, xi (t + ) = x q (t + ) [ cos ω sin ω sin ω cos ω ] [ xi (t) x q (t) ] Note: since we are incrementing time, not by second, but by. seconds, we need to take ω = π.573. =.646 c /s.

(v) Accordingly, argue for the following being a state-space realization for pressure and for lheat. x p i (t + ) cos ω sin ω x p x p i (t) q(t + ) x h i (t + ) = sin ω cos ω x p q(t) cos ω sin ω x h x h i (t), q (t + ) sin ω cos ω x h q (t) x p i (t) pressure(t) = x p q(t) lheat(t) x h i (t). x h q (t) That is, this model describes pressure= A cos(ωt + φ p ) and lheat= B cos(ωt + φ h ) with the same frequency ω but differing amplitudes A and B and differing phases φ p and φ h. Note that this model has no input signal, since the audible oscillation is self-supporting. This is fairly obvious, since both pressure and lheat are described by separate signals with the same frequency. (vi) If you had the full dimension 4 state x(t) available, determine an approach to compute A, B, ωt + φ p and ωt + φ h at that time from the state elements. From part (iv) we see that A = (x p i (t)) + (x p q(t)) and ωt + φ p = atan(x p q(t), x p i (t)). and also B = (x h i (t)) + (x h q (t)) and ωt + φ h = atan(x h q (t), x h i (t)). (vii) Work a bit harder and derive a formula for estimating φ h φ p as a function of the state. Work even harder still and express this phase difference at this ω as a time delay. Start with the following trigonometric formulæ. So, AB cos(φ h φ p ) = AB cos[(ωt + φ h ) (ωt + φ p )], = AB cos(ωt + φ h ) cos(ωt + φ p ) + AB sin(ωt + φ h ) sin(ωt + φ p ), = x h i (t) x p i (t) + xh q (t) x p q(t). AB sin(φ h φ p ) = AB sin[(ωt + φ h ) (ωt + φ p )], = AB sin(ωt + φ h ) cos(ωt + φ p ) AB cos(ωt + φ h ) sin(ωt + φ p ), = x h q (t) x p i (t) xh i (t) x p q(t). φ h φ p = atan(ab sin(φ h φ p ), AB cos(φ h φ p )), [ ] = atan x h q (t) x p i (t) xh i (t) x p q(t), x h i (t) x p i (t) + xh q (t) x p q(t). Since this is a radian phase difference of a signal at radian frequency ω radians/sec, the time difference is τ = φh φ p. ω

(viii) Using the value ω = π.573 rad/s, write this model in MATLAB. Call the matrices A and C as usual. Do not forget to include the sampling time of T s =. s. (ix) Show that the entire state is observable from the two outputs for this model. We can check the rank of the observability matrix, which is the controllability matrix of A and C. rank(ctrb(a,c ))=4 (x) Select an appropriate place for observer poles and determine using place an observer output-injection gain. Note that this is all in discrete time. I tried two selections:.98 eig(a) and.975 eig(a). Both were found using commands like L=place(A,C,.98*eig(A)). (xi) Write the MATLAB code to do the following. (a) Start from an initial state estimate of, say, zero and run this observer, taking the two measurements, pressure(t) and lheat(t) as inputs and yielding state estimate ˆx(t) as its output. In general we have observer In this problem we do have u(t) = so ˆx(t + ) = (A LC)ˆx(t) + Bu(t) + Ly(t). ˆx(t + ) = (A LC)ˆx(t) + Ly(t) Since we want all elements of the state estimate, we have Ā = (A LC), B = L, C = eye(4), D = and our observer is defined as the following system, observ=ss(a-lc, L,eye(4),zeros(4,),/5) Here are the zoomed plots of state estimates with each set of poles. (b) Apply your formula from step?? to compute the time delay estimate between pressure and heat release rate over the entire data set. (xii) Plot your estimate over time. Let s take things slowly. Here are the sin term plot(time,xhq.*xpi-xhi.*xpq) and the cos term plot(time,xhi.*xpi+xhq.*xpq), where xpi = xhat(:,); xpq = xhat(:,); xhi = xhat(:,3); xhq = xhat(:,4); Now consider the computed phase difference: atan(xhq.*xpi-xhi.*xpq,xhi.*xpi+xhq.*xpq). We see that the computed phase difference is jumping over π a lot. Let s unwrap it. This suggests that the computed phase difference via atan(.,.) is unreliable, since it is drifting over time. Take a backward step and use the mean sin and cos terms to compute

5 poles.98*eig(a) 4 3 xhat - - -3-4.3.4.5.6.7.8.9.. atan(mean(xhq.*xpi-xhi.*xpq),mean(xhi.*xpi+xhq.*xpq)) = -.555. Now add the phase difference from the differentiator, π, and the negatively sloped memoryless nonlinearity, π, to get a total phase difference of 4.73 radians or a time delay of τ = 4.73/(ω.) =.36 seconds. Hint: I get something like delay τ=3.7 ms on average. Welcome to the world of state estimation. The time delay is a central modeling parameter describing the propagation time of the fuel exiting the nozzle to the flame front.

4 poles.975*eig(a) 3 xhat - - -3.3.4.5.6.7.8.9-3 ABsin( h - p ) plot ABsin( h - p ) -.5.5.5 3 3.5 Figure 3: AB sin plot: mean -3.354e-35.

.5-3 ABcos( h - p ) plot.5 h - p ) ABcos( -.5 - -.5.5.5.5 3 3.5 Figure 4: AB cos plot: mean 5.9494e-34. 4 computed phase difference plot 3 computed phase difference - - -3-4.5.5.5 3 3.5 Figure 5: φ h φ p plot: mean -.663.

Unwrapped computed phase difference plot 9 8 unwrapped phase difference 7 6 5 4 3.5.5.5 3 3.5 Figure 6: Unwrappped φ h φ p plot.