control chap2

108
CONTROL SYSTEMS THEORY Transfer Function of Physical Systems CHAPTER 2 STB 35103

Upload: mohd-ashraf-shabarshah

Post on 12-Jun-2015

991 views

Category:

Technology


7 download

TRANSCRIPT

Page 1: Control chap2

CONTROL SYSTEMS THEORY

Transfer Function of Physical Systems

CHAPTER 2STB 35103

Page 2: Control chap2

Objectives To learn about transfer functions. To develop mathematical models from

schematics of physical system.

Page 3: Control chap2

Review on Laplace transform

Learn about transfer function Electric network Translational mechanical system Rotational mechanical system

You will learn how to develop mathematical model.

Present mathematical representation where the input, output and system are different and separate.

Solving problems in group and individual

Overview

Page 4: Control chap2

Introduction A differential equation An equation that involves the derivatives

of a function as well as the function itself. If partial derivatives are involved, the equation is called a partial differential equation; If only ordinary derivatives are present, the equation is called an ordinary differential equation.

Page 5: Control chap2

Introduction Differential equations. How to obtain?

Physical law of the process Differential equation

Examples : Mechanical system (Newton’s laws)Electrical system (Kirchhoff’s laws)

Page 6: Control chap2

Introduction

Page 7: Control chap2

Introduction

Page 8: Control chap2

Introduction RLC circuit

~KVL~Ohm’s law

Page 9: Control chap2

Introduction Control system can be represented using a mathematical model. E.g. LED circuit

Mathematical model is based on the schematic of physical systems.

Page 10: Control chap2

Introduction

Differential equation

0

( ) 1( ) ( ) ( )

tdi t

L Ri t i d v tdt C

Page 11: Control chap2

Introduction• Differential equation describes the

relationship between the input and output of a system.

c(t) outputr(t) input

1 1

1 0 1 01 1

( )( )

n n m m

n m mn n m m

d c t d c t d r t d r ta a c t b b b r t

dt dt dt dt

Page 12: Control chap2

IntroductionIt is easier if we can see the input and the output clearly such as in the figure below.

Page 13: Control chap2

Type of input test

Test waveforms used in control systems

Page 14: Control chap2

Laplace transform review

Table 2.1Laplace transform table

Page 15: Control chap2

Laplace transform review

Table 2.2Laplace transformtheorems

Page 16: Control chap2

Transfer function What is transfer function?

Transfer function is output divided by input.

)()(

)(sG

sR

sC

FunctionTransferInput

Output

Page 17: Control chap2

Transfer function

Page 18: Control chap2

Transfer function Limited to linear system

What is linear system? A system that has two mathematical properties:

Homogeneity and additivity.

Homogeneity

Page 19: Control chap2

Transfer function

Additivity

Page 20: Control chap2

Transfer functionExample:Find the transfer function represented by

Solution:

The transfer function G(s) is

)()(2)(

trtcdt

tdc

)()(2)( sRsCssC

2

1

)(

)()(

ssR

sCsG

Page 21: Control chap2

Transfer functionExample:Find the transfer function represented by

Solution:

The transfer function G(s) is

)(3.0)(5.0)(

trtcdt

tdc

)(3.0)(5.0)( sRsCssC

5.0

3.0

)(

)()(

ssR

sCsG

Page 22: Control chap2

Transfer functionExample:Given the transfer function for a system is

The input for the system, r(t), is a unit step.r(t)=u(t), assuming zero initial conditions.

What is the output, c(t), of the system?

)2(

1)(

ssG

Page 23: Control chap2

Transfer functionSolution:Refer to Table 2.1. Laplace transform for a unit step input is 1/s. We know that

so

FunctionTransferInput

Output

2

1

2

11

)()()(

)()(

)(

ss

ss

sGsRsC

sGsR

sC

Page 24: Control chap2

Transfer functionExpanding the partial fraction, we get

Taking the inverse Laplace transform (use Table 2.2) of each term,

2

2/12/1)(

ss

sC

tetc 2

2

1

2

1)(

Page 25: Control chap2

Transfer function You are going to apply transfer function in

three types of mathematical modeling.

Electric network Translational mechanical system Rotational mechanical system

Page 26: Control chap2

Electric Network Transfer Functions We are only going to apply transfer function to

the mathematical modeling of electric circuits for passive networks (resistor, capacitor and inductor).

We will look at a circuit and decide the input and the output.

We will use Kirchhoff’s laws as our guiding principles. Mesh analysis Nodal analysis

Page 27: Control chap2

Electric Network Transfer FunctionsComponent Voltage-

CurrentCurrent-voltage

Voltage-charge

ImpedanceZ(s)=

V(s)/I(s)

AdmittanceY(s)=I(s)/V(s)

Page 28: Control chap2

Electric Network Transfer FunctionsSimple circuit via mesh analysisWe can obtain transfer function using Kirchhoff’s voltage law and summing voltages around loops or meshes. This method is called loop or mesh analysis.

Page 29: Control chap2

Electric Network Transfer FunctionsExample:Find the transfer function relating the capacitor voltage, Vc(s), to the input voltage, V(s), in figure below

Page 30: Control chap2

Electric Network Transfer FunctionsSolution:Redraw the circuit using Laplace transform. Replace the component values with their impedance values.

Page 31: Control chap2

Electric Network Transfer FunctionsDetermine the input and the output for the circuit. For this circuit,Input is V(s)Output is VC(s)

Next, we write a mesh equation using the impedance as we would use resistor values in a purely resistive circuit.

Page 32: Control chap2

Electric Network Transfer Functions

We obtain

)()(1

sVsICs

RLs

(2.7)

Page 33: Control chap2

Electric Network Transfer FunctionsIf we look at Eq.2.7, we can only find the input, V(s). In order to calculate the transfer function we must have the output which is VC(s).

From the circuit,

CssIsVC

1)()(

Page 34: Control chap2

Electric Network Transfer Functions

CssVsICs

sIsV

C

C

)()(

1)()(

(2.8)

Substituting Eq.2.8 into Eq.2.7.

LCs

LR

s

LC

RCsCLsCs

RLsCssV

sV

sVCssVCs

RLs

C

C

1/1

1

11

1

)(

)(

)()(1

2

2

Page 35: Control chap2

Electric Network Transfer FunctionsWe can also present our answer in block diagram

Page 36: Control chap2

Electric Network Transfer Functions Solution summary

L

Using mesh analysis

Page 37: Control chap2

Electric Network Transfer FunctionsSimple circuit via nodal analysisWe obtain the transfer function using Kirchhoff’s current law and summing current flowing from nodes. This method is called nodal analysis.

Page 38: Control chap2

Electric Network Transfer FunctionsExample:

We will try to solve the previous example but this time using nodal analysis.

node

Page 39: Control chap2

Electric Network Transfer FunctionsSolution:We will look at the current flowing in and out of the node whose voltage is VC(s). We assume the current leaving the node is positive and current entering the node is negative.

LCs

LR

s

LC

sV

sV

LsR

sVsV

Cs

sVLsR

sVsV

Cs

sV

C

CC

CC

1/1

)(

)(

0/1

)(/1

)(

2

Page 40: Control chap2

Electric Network Transfer FunctionsComplex circuit via mesh analysisTo solve a complex circuit we will perform the

following steps.1. Replace passive elements values with their

impedances.2. Replace all sources and time variables with their

Laplace transform.3. Assume a transform current and a current

direction in each mesh.4. Write Kirchhoff’s voltage law around each mesh.5. Solve the simultaneous equations for the output.6. Form the transfer function.

Page 41: Control chap2

Electric Network Transfer Functions Find the transfer function, I2(s)/V(s)

Output I2(s)

Input V(s)

Page 42: Control chap2

Electric Network Transfer Functions

2Mesh

around voltages

applied of Sum

)(

2Mesh around

impedances

of Sum

)(

meshes two

thecommon to

impedances

of Sum

1Mesh

around voltages

applied of Sum

)(

meshes two

thecommon to

impedances

of Sum

)(

1Mesh around

impedances

of Sum

21

21

sIsI

sIsI

Page 43: Control chap2

Electric Network Transfer Functions

)2(0)(1

)(

)1()()()()(

221

211

sICs

RLssLsI

sVsLsIsILsR

We need to solve both equation (1) and (2) to get the value of I2(s) and V(s).

You can use substitution method or Cramer’s rule

Page 44: Control chap2

Electric Network Transfer FunctionsIt is easier if we use Cramer’s rule

where

)(0

)()(

)(

1

2

sLsVLs

sVLsR

sI

CsRLsLs

LsLsR1

)(

2

1

Page 45: Control chap2

Electric Network Transfer FunctionsForming the transfer function, G(s), yields

1212

21

22

)(

)()(

RsLCRRLCsRR

LCsLs

sV

sIsG

Page 46: Control chap2

Example Solve using mesh analysis and Nodal

analysis

Page 47: Control chap2

Mesh analysis method Write the mesh equations :

Solving the equations for I2(s):

Page 48: Control chap2

Mesh analysis method

Page 49: Control chap2

Nodal analysis method Write the nodal equations :

Page 50: Control chap2

Nodal analysis method

Page 51: Control chap2

Mechanical Systems Types of Mechanical Systems

•Translational Systems •Rotational Systems

Page 52: Control chap2

Translational Mechanical System Transfer Function We are going to model translational

mechanical system by a transfer function. In electrical we have three passive

elements, resistor, capacitor and inductor. In mechanical we have spring, mass and viscous damper.

Page 53: Control chap2

Translational Mechanical System Transfer Function In electrical we have resistance, capacitance and

inductance but in mechanical we have, spring constant (K), viscous damper (fv) and mass (M).

We are going to find the transfer function for a mechanical system in term of force-displacement (i.e. forces are written in terms of displacement)

Page 54: Control chap2

Translational Mechanical System Mass

f(t) represents the applied force, x(t) represents the displacement, and M represents the mass. Then, in accordance with Newton’s second law,

Where v(t) is velocity and a(t) is acceleration. It is assumed that the mass is rigid at the top connection point and that cannot move relative to the bottom connection point.

Page 55: Control chap2

Translational Mechanical System Damper

Damper is the damping elements and damping is the friction existing in physical systems whenever mechanical system moves on sliding surface. The friction encountered is of many types, namely stiction, coulomb friction and viscous friction force

In friction elements, the top connection point can move relative to the bottom connection point. Hence two displacement variables are required to describe the motion of these elements, where B is the damping coefficient

Page 56: Control chap2

Translational Mechanical System Spring

The final translational mechanical element is a spring. The ideal spring gives the elastic deformation of a body. The defining equation from Hooke’s law, is given by

Page 57: Control chap2

Translational Mechanical System Transfer FunctionForce-velocity, force-displacement, and impedance translational relationshipsfor springs, viscous dampers, and mass

Page 58: Control chap2

Translational Mechanical System Transfer FunctionSimple system

Assumption Movement to the left is assumed to be positive. positive +ve

Page 59: Control chap2

Translational Mechanical System Transfer Function Draw a free body diagram, placing on the

body all forces that act on the body either in the direction of motion or opposite to it.

Use Newton’s law to form a differential equation of motion by summing the forces and setting the sum equal to zero.

Assume zero initial conditions, we change the differential equation into Laplace form.

Page 60: Control chap2

Translational Mechanical System Transfer FunctionExample:

Find the transfer function, X(s)/F(s), for the system in Figure (a).

Page 61: Control chap2

Translational Mechanical System Transfer Function

Draw the free body diagram Place on the mass all forces felt by the mass. Assume the mass is travelling toward the right. Use Laplace transform.

Page 62: Control chap2

Translational Mechanical System Transfer Function

How do we get the equation? Answer:

[sum of impedances]X(s) = [sum of applied forces] Movement to the left is positive

Page 63: Control chap2

Translational Mechanical System Transfer Function

The equation in Laplace form is

2( ) ( ) ( )vMs f s K X s F s

Page 64: Control chap2

Translational Mechanical System Transfer Function

Solving for the transfer function

2

( ) 1( )

( ) v

X sG s

F s Ms f s K

Page 65: Control chap2

Translational Mechanical System Transfer Function Complex system Find transfer function, X2(s)/F(s)

Page 66: Control chap2

Translational Mechanical System Transfer Functiona. Forces on M1 due only to motion of M1

b. forces on M1 due only to motion of M2(sharing);

c. all forces on M1

Page 67: Control chap2

Translational Mechanical System Transfer Functiona. Forces on M2 due only to motion of M2;b. forces on M2 due only to motionof M1 (sharing);c. all forces on M2

Page 68: Control chap2

Example Solve for G(s) = X2(s)/F(s)

Page 69: Control chap2
Page 70: Control chap2

Exercise Solve for G(s) = X2(s)/F(s)

Friction, fv (Damper)

Page 71: Control chap2

Rotational Mechanical System

Page 72: Control chap2

Rotational Mechanical System Transfer Functions We are going to solve for rotational

mechanical system using the same way as the translational mechanical systems except

Torque replaces force Angular displacement replaces translational

displacement

Page 73: Control chap2

Rotational Mechanical System Transfer Functions In translational mechanical system we

have three elements; spring, damper and mass. In rotational mechanical system we have; spring, damper and inertia.

Page 74: Control chap2

Rotational Mechanical System Transfer FunctionsTorque-angular velocity, torque-angular displacement, and impedancerotational relationships for springs, viscous dampers, and inertia

Page 75: Control chap2

Rotational Mechanical System Transfer FunctionsSimple system

Assumption Anti-clockwise movement is assumed to be

positive

Page 76: Control chap2

Rotational Mechanical System Transfer FunctionsExample:

Find the transfer function, θ(s)/T(s)

Page 77: Control chap2

Rotational Mechanical System Transfer Functions

Draw the free body diagram

JΘ(s)

T(s)

Js2θ(s)

Dsθ(s)

Kθ(s)

Page 78: Control chap2

Rotational Mechanical System Transfer Functions We will use

[sum of impedances]θ(s) = [sum of applied torque]

Based on the free body diagram, the equation of motion is

2 ( ) ( )

( )we know transfer function, ( ), is

( )

Js Ds K s T s

sG s

T s

2

2

( ) 1

( )

1

s

T s Js Ds K

JD K

s sJ J

Page 79: Control chap2

Rotational Mechanical System Transfer Functions Complex system Find transfer function θ2(s)/T(s)

Page 80: Control chap2

Rotational Mechanical System Transfer Functionsa. Torques on J1due only to themotion of J1b. torques on J1due only to themotion of J2c. final free-bodydiagram for J1

Page 81: Control chap2

Rotational Mechanical System Transfer Functionsa. Torques on J2due only to themotion of J2;b. torques on J2due only to themotion of J1c. final free-bodydiagram for J2

Page 82: Control chap2

Laplace transform review The Laplace transform is defined as

Where

Inverse Laplace transform, to get f(t) given F(s), is

0

( ) ( ) ( ) stf t F s f t e dt

s j

1 1( ) ( )

2

jst

j

F s F s e dsj

Page 83: Control chap2

Laplace transform review

Table 2.1Laplace transform table

Page 84: Control chap2

Laplace transform review

Table 2.2Laplace transformtheorems

Page 85: Control chap2

Laplace transform reviewExampleFind the inverse Laplace transform of

F(s)=1/s

F(s)=1/s2

F(s)=1/(s+3)

Page 86: Control chap2

Laplace transform reviewExample:Find the inverse Laplace transform of

AnswerWe use frequency shift theorem, item 4 in Table 2.2, and Laplace

transform of f(t)=u(t), item 3 in Table 2.1

If inverse transform of F(s)=1/s2 is tu(t), the inverse transform of F(s+a)=1/(s+a)2 is e-attu(t).

Hence, f(t)=e-3ttu(t)

3

1)(

s

sF

Page 87: Control chap2

Laplace transform reviewExample:Find the inverse Laplace transform of

AnswerWe use frequency shift theorem, item 4 in Table 2.2, and Laplace

transform of f(t)=tu(t), item 3 in Table 2.1

If inverse transform of F(s)=1/s2 is tu(t), the inverse transform of F(s+a)=1/(s+a)2 is e-attu(t).

Hence, f(t)=e-3ttu(t)

2( ) 1/ ( 3)F s s

Page 88: Control chap2

Laplace transform reviewCan you solve this question using Table 2.1 and Table 2.2?

Or this question

3( ) 1/ ( 3)F s s

3 2

2

2 6 7( )

5

s s sF s

s s

Page 89: Control chap2

Laplace transform reviewWe can find the inverse Laplace transform for complicated function by changing the function to a sum of simpler term for which we know the Laplace transform of each term.

The result is called partial-fraction expansion

Page 90: Control chap2

Partial fraction expansionLet’s take F(s)=N(s)/D(s)

In order for us to do the partial-fraction expansion we need to make sure the order of N(s) is smaller than or equal to the order of D(s).

N(s) <= D(s)

Page 91: Control chap2

Partial fraction expansionWhat will we do if

N(s) >= D(s) ?

Answer.We will divide N(s) by D(s) successively until

the result has a remainder whose numerator is of order less that its denominator (polynomial division).

Page 92: Control chap2

Partial fraction expansionPolynomial long divisionExample:Divide x2+9x+14 by x+7

Answer

Page 93: Control chap2

Partial fraction expansionDivide 3x3 – 5x2 + 10x – 3  by  3x + 1

Answer:

Page 94: Control chap2

Partial fraction expansionCan be divided into 3 cases.

1. Roots of the denominator of F(s) are real and distinct

2. Roots of the denominator of F(s) are real and repeated

3. Roots of the denominator of F(s) are complex or imaginary

Page 95: Control chap2

Partial fraction expansion: Case 1Roots of the denominator of F(s) are real and distinctExample of an F(s) with real and distinct roots in the denominator is

2( )

( 1)( 2)F s

s s

Page 96: Control chap2

Partial fraction expansion: Case 1Solution

To find K1, we multiply Eq. (2.1) by (s+1), which isolates K1. Thus

1 22

( )1 2 ( 1) ( 2)

K KF s

s s s s

(2.1)

1

1

2

2

22

2

22

1

s

s

Ks

Ks

Page 97: Control chap2

Partial fraction expansion: Case 1Change value K1 and K2 gives

Using Table 2.1, the inverse Laplace transform is ??

1 22( )

1 2 ( 1) ( 2)

2 2 2( )

1 2 ( 1) ( 2)

K KF s

s s s s

F ss s s s

2( ) (2 2 ) ( )t tf s e e u t

Page 98: Control chap2

Partial fraction expansion: Case 1Problem: Given the following differential equation, solve for y(t) if all initial condition are zero. Use Laplace transform.

2

212 32 32 ( )

d y dyy u t

dtdt

Page 99: Control chap2

Partial fraction expansion: Case 2Roots of the denominator of F(s) are real and repeatedExample of an F(s) with real and repeated roots in the denominator is

Roots of (s+2)2 in the denominator are repeated.

2

2( )

( 1)( 2)F s

s s

Page 100: Control chap2

Partial fraction expansion: Case 2 We write the partial-fraction expansion as a sum

of terms. Each factor of the denominator forms the denominator of each term.

Each multiple root generates additional terms

consisting of denominator factors of reduced multiplicity.

31 22 2

2( )

( 1) ( 2)( 1)( 2) ( 2)

KK KF s

s ss s s

(2.2)

Page 101: Control chap2

Partial fraction expansion: Case 2 We can solve for K1 using method in case 1

in Eq.2.2.

Next step is to isolate K2 by multiplying Eq. 2.2 by (s+2)2

1 21

22

( 2) s

Ks

2 12 3

22 2

1 1

Ks K s K

s s

(2.3)

Page 102: Control chap2

Partial fraction expansion: Case 2 Solve for K2 using the same method as

Case 1 in Eq.2.3.

To get the value of K3 we need to differentiate Eq.2.3 with respect to s,

22

22

( 1) s

Ks

1 32 2

22

1 1

s sK K

s s

(2.4)

Page 103: Control chap2

Partial fraction expansion: Case 2 Using the method in case 1. K3 can be

found if we let s approach -2. (-2 comes from the denominator of K3)

Changing K1, K2 and K3 with their respective values

3 22

22

( 1) s

Ks

31 22 2

2

2( )

( 1) ( 2)( 1)( 2) ( 2)

2 2 2

( 1) ( 2)( 2)

KK KF s

s ss s s

s ss

Page 104: Control chap2

Partial fraction expansion: Case 3Roots of the denominator of F(s) are complex or imaginaryExample of an F(s) with complex roots in the denominator is

We can expand the function in partial fractions as

2

3( )

2 5F s

s s s

2

31 2

3 3( )

1 2 1 22 5

1 2 1 1

F ss s j s js s s

KK K

s s j s j

Page 105: Control chap2

Partial fraction expansion: Case 3Solve for K1 using similar method in case 1.

Solve for K2 using similar method in case 1.

1 2

0

3 3

52 5s

Ks s

2

1 2

3 32 1

1 2 20s j

K js s j

Page 106: Control chap2

Partial fraction expansion: Case 3K3 is found to be the complex conjugate of K2

Changing K1, K2 and K3 with their respective values

3

1 2

3 32 1

1 2 20s j

K js s j

3 / 5 3 2 1 2 1( )

20 1 2 1 2

j jF s

s s j s j

(2.5)

Page 107: Control chap2

Partial fraction expansion: Case 3Inverse Laplace transform for Eq.2.5 is

Using equation

andInto Eq.2.6

1 2 1 2

2 2 2 2

3 3( ) 2 1 2 1

5 20

3 34 2

5 20 2 2

j t j t

j t j t j t j tt

f t j e j e

e e e ee

j

cos2

j je e

sin

2

j je e

j

(2.6)

Page 108: Control chap2

Partial fraction expansion: Case 3The final result is

3 3 1( ) cos 2 sin 2 0.6 0.671 cos 2

5 5 2

where arctan 0.5 26.57

t tf t e t t e t