Click here to load reader

Chapter 2 Modeling of Control Systems NUAA-Control System Engineering

Embed Size (px)

Citation preview

  • Chapter 2Modeling of Control SystemsNUAA-Control System Engineering

    Control System Engineering-2008

    How to analyze and design a control system*uThe first thing is to establish system model (mathematical model)

    Control System Engineering-2008

    *Content in Chapter 22-1 Introduction2-2 Establishment of differential equation and linearization2-3 Transfer function2-4 Structure diagram2-5 Signal-flow graphs

    Control System Engineering-2008

    *2-1 Introduction on mathematical models

    Control System Engineering-2008

    *System modelDefinitionMathematical expression of dynamic relationship between input and output of a control system. Mathematical model is foundation to analyze and design automatic control systemsNo mathematical model of a physical system is exact. We generally strive to develop a model that is adequate for the problem at hand but without making the model overly complex.

    Control System Engineering-2008

    *LaplacetransformFouriertransformThree modelsDifferential equation Transfer functionFrequency characteristicTransfer functionDifferential equationFrequency characteristicLinear systemStudy time-domain responsestudy frequency-domain response

    Control System Engineering-2008

    *Modeling methodsAnalytic method

    According toNewtons Law of MotionLaw of Kirchhoff System structure and parameters the mathematical expression of system input and output can be derived. Thus, we build the mathematical model ( suitable for simple systems).

    Control System Engineering-2008

    Modeling methods*System identification method Building the system model based on the system inputoutput signal This method is usually applied when there are little information available for the system.Black box: the system is totally unknown. Grey box: the system is partially known.Neural Networks, Fuzzy Systems

    Control System Engineering-2008

    *Why Focus on Linear Time-Invariant (LTI) SystemWhat is linear system?systemsystemsystemIs y(t)=u(t)+2 a linear system-A system is called linear if the principle of superposition applies

    Control System Engineering-2008

    Advantages of linear systemsThe overall response of a linear system can be obtained by

    *-- decomposing the input into a sum of elementary signals -- figuring out each response to the respective elementary signal-- adding all these responses together. Thus, we can use typical elementary signal (e.g. unit step ,unit impulse, unit ramp) to analyze system for the sake of simplicity.

    Control System Engineering-2008

    *What is time-invariant system?A system is called time-invariant if the parameters are stationary with respect to time during system operationExamples

    Control System Engineering-2008

    *2.2 Establishment of differential equation and linearization

    Control System Engineering-2008

    *Differential equationLinear ordinary differential equations --- A wide range of systems in engineering are modeled mathematically by differential equations--- In general, the differential equation of an n-th order system is writtenTime-domain model

    Control System Engineering-2008

    *How to establish ODE of a control system--- list differential equations according to the physical rules of each component;--- obtain the differential equation sets by eliminating intermediate variables; --- get the overall input-output differential equation of control system.

    Control System Engineering-2008

    *Examples-1 RLC circuitDefining the input and output according to which cause-effect relationship you are interested in.

    Control System Engineering-2008

    *According to Law of Kirchhoff in electricity

    Control System Engineering-2008

    It is re-written as in standard form

    *Generallywe setthe output on the left side of the equationthe input on the right side the input is arranged from the highest order to the lowest order

    Control System Engineering-2008

    *Examples-2 Mass-spring-friction systemWe are interested in the relationship between external force F(t) and mass displacement x(t)Define: inputF(t); output---x(t)Gravity is neglected.

    Control System Engineering-2008

    *By eliminating intermediate variables, we obtain the overall input-output differential equation of the mass-spring-friction system.Recall the RLC circuit systemThese formulas are similar, that is, we can use the same mathematical model to describe a class of systems that are physically absolutely different but share the same Motion Law.

    Control System Engineering-2008

    *Examples-3 nonlinear systemIn reality, most systems are indeed nonlinear, e.g. then pendulum system, which is described by nonlinear differential equations. It is difficult to analyze nonlinear systems, however, we can linearize the nonlinear system near its equilibrium point under certain conditions.

    Control System Engineering-2008

    Linearization of nonlinear differential equationsSeveral typical nonlinear characteristics incontrol system.

    *inputoutput0Saturation (Amplifier)inputoutput0Dead-zone (Motor)

    Control System Engineering-2008

    *Methods of linearization1Weak nonlinearity neglected2Small perturbation/error method Assumption: In the system control process, there are just small changes around the equilibrium point in the input and output of each component. If the nonlinearity of the component is not within its linear working region, its effect on the system is weak and can be neglected.This assumption is reasonable in many practical control system: in closed-loop control system, once the deviation occurs, the control mechanism will reduce or eliminate it. Consequently, all the components can work around the equilibrium point.

    Control System Engineering-2008

    *The input and output only have small variance around the equilibrium point.This is linearized model of the nonlinear component. ExampleA(x0,y0) is equilibrium point. Expanding the nonlinear function y=f(x) into a Taylor series about A(x0,y0) yieldsSaturation (Amplifier)

    Control System Engineering-2008

    *Notethis method is only suitable for systems with weak nonlinearity.

    RelaySaturation For systems with strong nonlinearity, we cannot use such linearization method.

    Control System Engineering-2008

    *Flash toiletExample-4 modeling a nonlinear systemProblem: Derive the differential equation of water tank (the cross-sectional area of the water tank is C).Q1: inflow per unit timeQ2: outflow per unit timeInitial water level: H0Q10=Q20=0Define: InputQ1,OutputH

    45

    Control System Engineering-2008

    *Solution: Outflow or inflow within dt time should be equal to the total amount of water changeQ1-Q2dt , that is: According to Torricelli Theorem, the water yield is in direct proportion to the square root of the height of water level, thus:

    It is obvious that this formula is nonlinear, On the basis of the Taylor Series expansion of functions around operation points (Q10,H0 )We have

    Control System Engineering-2008

    Therefore, the Linearized Differential Equations of the water tank is:*

    Control System Engineering-2008

    ExerciseE1. Please build the differential equations of the following two systems.*OutputInputOutputInputxAB

    Control System Engineering-2008

    *Solutions.(1) RC circuit(2) Mass-spring system

    Control System Engineering-2008

    *2-3 Transfer function

    Control System Engineering-2008

    *Solving Differential EquationsExampleSolving linear differential equations with constant coefficients: To find the general solution (involving solving the characteristic equation) To find a particular solution of the completeequation (involving constructing the family of a function)

    Control System Engineering-2008

    *WHY need LAPLACE transform?DifficultEasy

    Control System Engineering-2008

    *Laplace TransformThe Laplace transform of a function f(t) is defined aswhere is a complex variable.

    Control System Engineering-2008

    *Examples Step signal: f(t)=A

    Control System Engineering-2008

    *Laplace transform table

    f(t) F(s)f(t) F(s)(t) 11(t) t

    Control System Engineering-2008

    *Properties of Laplace Transform(1) Linearity(2) Differentiationwhere f(0) is the initial value of f(t).Using Integration By Parts method to prove

    Control System Engineering-2008

    *(3) Integration

    Using Integration By Parts method to prove

    Control System Engineering-2008

    (5) Initial-value Theorem*4Final-value Theorem

    The final-value theorem relates the steady-state behavior of f(t) to the behavior of sF(s) in the neighborhood of s=0

    Control System Engineering-2008

    *(6)Shifting Theorema. shift in time (real domain)b. shift in complex domain (7) Real convolution (Complex multiplication) Theorem

    Control System Engineering-2008

    *Inverse Laplace transformDefinitionInverse Laplace transform, denoted by is given by

    where C is a real constantNote: The inverse Laplace transform operation involving rational functions can be carried out using Laplace transform table and partial-fraction expansion.

    Control System Engineering-2008

    *Partial-Fraction Expansion method for finding Inverse Laplace TransformIf F(s) is broken up into componentsIf the inverse Laplace transforms of components are readily available, then

    Control System Engineering-2008

    Poles and zerosPolesA complex number s0 is said to be a pole of a complex variable function F(s) if F(s0)=.

    *Examples:zeros: 1, -2 poles: -3, -4;poles: -1+j, -1-j;zeros: -1ZerosA complex number s0 is said to be a zero of a complex variable function F(s) if F(s0)=0.

    Control System Engineering-2008

    *Case 1: F(s) has simple real polesParameters pk give shape and numbers ck give magnitudes.Partial-Fraction Expansion Inverse LT

    Control System Engineering-2008

    *Example 1Partial-Fraction Expansion

    Control System Engineering-2008

    *Case 2: F(s) has simple complex-conjugate polesExample 2Laplace transformPartial-Fraction Expansion Inverse Laplace transformApplying initial conditions

    Control System Engineering-2008

    *Case 3: F(s) has multiple-order polesThe coefficients corresponding to the multi-order poles are determined asSimple polesMulti-order poles

    Control System Engineering-2008

    *Example 3Laplace transform:Applying initial conditions:Partial-Fraction Expansion s= -1 is a 3-order pole

    Control System Engineering-2008

    *Determining coefficients:Inverse Laplace transform:

    Control System Engineering-2008

    *With aid of MATLAB1. Laplace Transform L=laplace(f)

    2. Inverse Laplace TransformF=ilaplace(L)>> syms t>> L=laplace(t)L=1/s^2>> L=laplace(sin(t))L=1/(s^2+1)>> F=ilaplace(L)F=sin(t)

    Control System Engineering-2008

    *Transfer functionConsider a linear system described by differential equationAssume all initial conditions are zero, we get the transfer function(TF) of the system as

    Control System Engineering-2008

    *Example 1. Find the transfer function of the RLC1) Writing the differential equation of the system according to physical law:2) Assuming all initial conditions are zero and applying Laplace transformSolution:

    Control System Engineering-2008

    ExerciseFind the transfer function of the following system :*

    Control System Engineering-2008

    **Transfer function of typical components

    ComponentODETF

    Control System Engineering-2008

    Properties of transfer functionThe transfer function is defined only for a linear time-invariant system, not for nonlinear system.All initial conditions of the system are set to zero.The transfer function is independent of the input of the system.The transfer function G(s) is the Laplace transform of the unit impulse response g(t).*

    Control System Engineering-2008

    **How poles and zeros relate to system responseWhy we strive to obtain TF models?Why control engineers prefer to use TF model?How to use TF model to analyze and design control systems?

    we start from the relationship between the locations of zeros and poles of TF and the output responses of a system

    Control System Engineering-2008

    **Position of poles and zerosTransfer functionTime-domain impulse response

    Control System Engineering-2008

    **Transfer functionTime-domain impulse responsePosition of poles and zeros

    Control System Engineering-2008

    **Transfer functionTime-domain impulse responsePosition of poles and zeros

    Control System Engineering-2008

    **Position of poles and zerosTransfer functionTime-domain impulse response

    Control System Engineering-2008

    **Transfer functionTime-domain dynamic responsePosition of poles and zeros

    Control System Engineering-2008

    **Summary of pole position & system dynamics

    Control System Engineering-2008

    *Note: stability of linear single-input, single-output systems is completely governed by the roots of the characteristics equation.Characteristic equation-obtained by setting the denominator polynomial of the transfer function to zero

    Control System Engineering-2008

    *Transfer function(TF) models in MATLABSuppose a linear SISO system with input u(t), output y(t), the transfer function of the system isDescending power of sTF in polynomial form>> Sys = tfnumden>> [num, den] = tfdata (sys)

    Control System Engineering-2008

    *TF in zero-pole form>> sys = zpkz, p, k>> [z, p,k] = tfdata (sys) Transform TS from zero-pole form into polynomial form

    >> [z, p, k] = tf2zp(num, den)

    Control System Engineering-2008

    Review questionsWhat is the definition of transfer function?When defining the transfer function, what happens to initial conditions of the system?Does a nonlinear system have a transfer function?How does a transfer function of a LTI system relate to its impulse response?Define the characteristic equation of a linear system in terms of the transfer function.

    *

    Control System Engineering-2008

    *2-4 Block diagram and Signal-flow graph (SFG)

    Control System Engineering-2008

    Block diagramThe transfer function relationship *can be graphically denoted through a block diagram.

    Control System Engineering-2008

    *Equivalent transform of block diagram1 Connection in series

    Control System Engineering-2008

    *2.Connection in parallel

    Control System Engineering-2008

    *3. Negative feedback

    M(s)R(s)Y(s)Y(s)G(s)H(s)U(s)R(s)_Transfer function of a negative feedback system:

    Control System Engineering-2008

    *Signal flow graph (SFG)SFG was introduced by S.J. Mason for the cause-and-effect representation of linear systems.Each signal is represented by a node.Each transfer function is represented by a branch.

    Control System Engineering-2008

    Block diagram and its equivalent signal-flow graph*111

    Control System Engineering-2008

    Note*A signal flow graph and a block diagram contain exactly the same information (there is no advantage to one over the other; there is only personal preference)

    Control System Engineering-2008

    Masons rule* path gain of the kth forward path.value of for that part of the block diagram that does not touch the kth forward path.N total number of forward paths between output Y(s) and input U(s)

    Control System Engineering-2008

    *Example 1Find the transfer function for the following block diagramSolution.123612346123456

    Control System Engineering-2008

    *Example 1Find the transfer function for the following block diagramSolution.Applying Masons rule, we find the transfer function to be

    Control System Engineering-2008

    *Example 2Find the transfer function for the following SFGSolution.

    Control System Engineering-2008

    *Solution.Applying Masons rule, we find the transfer function to beExample 2Find the transfer function for the following SFG

    Differential equations is the most basic mathematical model of control systems. *** ***