• Nie Znaleziono Wyników

Automation Systems Lecture 2 - Mathematical Models of Dynamical Systems Jakub Mozaryn

N/A
N/A
Protected

Academic year: 2021

Share "Automation Systems Lecture 2 - Mathematical Models of Dynamical Systems Jakub Mozaryn"

Copied!
28
0
0

Pełen tekst

(1)

Automation Systems

Lecture 2 - Mathematical Models of Dynamical Systems

Jakub Mozaryn

Institute of Automatic Control and Robotics, Department of Mechatronics, WUT

Warszawa, 2019

(2)

Mathematical modelling for control systems

Real processes, and thus control systems, have nonlinear properties:

turbulences,

multiple stable states, hysteresis,

energy losses due to friction.

In practice, to simplify the mathematical description, there is carried lin- earization, enabling the formulation of the approximate description of a linear phenomenon, in vicinity of the operating point (this point corre- sponds to the nominal or average operating conditions of the system).

Linearization steps

1 description of the phenomenon in the form of differential equations,

2 linearization,

3 operational calculus: differential equations → algebraic equations.

(3)

6 step approach to modelling

STEP 1: Define the system and its components.

STEP 2: Formulate the mathematical model and fundamental necessary assumptions based on basic physical principles.

STEP 3: Obtain differential equations representing the mathematical model.

STEP 4: Solve equations for the desired output variables.

STEP 5: Examine the assumptions and solutions.

STEP 6: If necessary, reconsider and redesign the system.

(4)

Description of linear models

The basic forms of mathematical description of the system dynamical properties are:

Equations of Motion: equations of system dynamics in form of differential equations.

Transfer function.

State Space Equations (not covered in the course).

In the case of dynamical system (process) with one input signal x (t) and one output signal y (t) equation of motion describes the relationship between the output signal y (t) and the input signal x (t) in a following form:

y (t) = f (x (t)) (1)

(5)

Description of linear models / systems

Principle of superposition:

f (x1+ x2) = f (x1) + f (x2), and f (0) = 0. (2) Space of solutions of the equation that satisfies (2) is a linear space.

Homogeneity (implies scale invariance):

Function f (x , y ) is said to be homogeneous of degree k if

f (βx , βy ) = βkf (x , y ), and f (0) = 0, (3) where: β - constatnt coefficient.

Linear system

Homogenous system, which preserve the principle of superposition.

Nonlinear system

The system, which does not preserve the principle of superposition

(6)

Linearity - example

Using the appropriate theorems and assummptions, check whether the system described by the equation

y (t) = ax (t) + b (4)

where: y - output signal, x - input signal, a = const, b = const - constant parameters,

is linear.

(7)

Description of linear models / systems

General form of the differential equation describing linear system:

an

dny dtn+ an−1

dn−1y

dtn−1+ · · · + a0y = bm

dmx dtm + bm−1

dm−1x

dtm−1+ · · · + b0x (5) where: y - output signal, x - input signal, ai, bi - constant coefficients.

(8)

Proportional elements

Figure 1:Proportional element - voltage divider

Input signal x (t) - voltage U1(t).

Output signal y (t) - voltage U2(t).

Dynamics equation -

relationship between input and output signal:

U2(t) = R2 R1+ R2

U1(t) (6)

General equation of proportional element

y (t) = kx (t) (7)

(9)

First order lag elements

Figure 2:First order lag element - RL filter

Input signal x (t) - voltage U1(t).

Output signal y (t) - voltage U2(t).

Dynamics equation -

relationship between input and output signal:

L R

dU2(t)

dt + U2(t) = U1(t) (8)

General equation of first order lag element

Tdy (t)

dt + y (t) = kx (t) (9)

(10)

First order lag elements - equivalents

Figure 3:First order lag elements a) αRΘV dpdt2(t) + p2(t) = p1(t) b) RJd ω(t)dt + ω(t) = R1M(t) c) RLdUdt2(t) + U2(t) = U1(t) General equation of first order lag element

Tdy (t)

dt + y (t) = kx (t) (10)

(11)

Static characteristic

Static characteristics

Static characteristic fs describes the dependence of the output signal y of the system from the input signal x in steady state.

Steady state

Steady state is a state in which all derivatives of the input signal and output signal are equal to zero. In such a situation the output signal has a steady value.

Figure 4:Static characteristics of linear system.

(12)

Linearization

Creation of linear description of the system, based on nonlinear description of this system is called linearization.

Linearization of nonlinear description in the form of nonlinear algebraic equations is called static linearization. (There are no derivatives) Linearization of nonlinear description in the form of nonlinear differential equations is called the dynamic linearization.

Methods of static linearization

secant method: obtain the best relation between the linear and nonlinear description of a system in the specified range of changes of the independent variable (input).

tangent method: obtain the best relation between the linear and nonlinear description of a system for a given value of the

independent variable (input), and hence a particular value of the dependent variable (output).

(13)

Static linearization

Figure 5:Static linearization; a) secant method, b) tabgent method.

In control system design, there is considered the behavior of plant/system in a vicinity of a specified operating point. Therefore in practical appli-

(14)

Tangent method

Process of linearization using tangent method involves:

replacement of the curve representing nonlinear relationship y = f (x ) with its tangent at operating point,

transfer the origin to operating point,

replacement in mathematical model absolute variables x and y with deviations of these variables from operating point - incremental variables ∆x and ∆y .

Static characteristics obtained using linearized equation, in terms of the specified operating point, is a linear function. It can be also obtained by linearization of real characteristics in terms of the same operating point.

(15)

Static linearization

Example [homework]

Determine the linearized function that describes the dependence of the mass flow Q of the fluid flowing through the valve, from the pressures p1 and p2and the distance x of the plug from the valve seat.

Q(t) = απd · x (t)p

2ρ(p1(t) − p2(t)) (11) We look for the linear function in following form (find coefficients)

QL(t) = b1∆x (t) + b2∆p1(t) + b3∆p2(t) (12)

(16)

Dynamic linearization - example

Example: non-homogenous function

y = mx + b (13)

The nominal operating point - {x0, y0}, y0= f (x0) Taylor series expansion about the operating point

y = f (x ) = f (x0) +df dx|x =x0

(x − x0) 1! +d2f

dx2|x =x0

(x − x0)2

2! + ... (14) The slope (first derivative) over the operating point isa good approxima- tion of the curve over small range.

Therefore

y = f (x0) +df

dx|x =x0(x − x0) = y0+ m(x − x0) (15) and finally

y − y 0 = m(x − x0) → ∆y = m∆x (16)

(17)

Dynamic linearization

An example of differential equation, which describes linear relationship between functions x (t), y (t) and their derivatives.

F [y (t), ˙y (t), ¨y (t), . . . , y(n)(t), x , ˙x (t), ¨x (t), . . . , x(m)(t)] = 0 (17) During dynamic linearization, functions x (t), y (t) and their derivatives are treated analogously to variables of implicit function.

n

X

i =0

( ∂F

∂y(i )



y0(i )

∆y(i ) )

+

m

X

j =0

( ∂F

∂x(j )



x(j )0

∆x(j ) )

= 0 (18)

where:

∆y = y (t) − y0, ∆y(1)= d ∆y

dt , . . . , ∆y(n)= dn∆y dtn

∆x = x (t) − x0, ∆x(1)= d ∆x

, . . . , ∆x(m)= dm∆x

m

(18)

Dynamic linearization - example

Linearize the following differential function

y (t) = 2x (t)2+ x (t) ˙x (t) + 2¨x (t)2 (19) The nominal operating point - {x0, y0}, x0= 1, ˙x0= 0, ¨x0= 0.

Using Taylor series expansion around the operating point

∆y (t)+[−4x (t)− ˙x (t)]0∆x (t)−[x (t)]0∆¨x (t)−[4¨x (t)]0∆¨x (t) = 0. (20) In the nominal operating point, the linearized model of the system, has the following form

∆y (t) − 4∆x (t) − ∆ ˙x (t) = 0. (21) Nonlinear static characteristic of the system (14)

y = 2x2. (22)

Linear static characteristic (the tangent of nonlinear characteristic in op- erating point, all time derivatives are equal to zero)

∆y = 4∆x . (23)

(19)

Laplace transform

Replacing differential equation with transfer function (algebraic equation) needs transition from the time domain (t) to the complex plane (s).

f (t) ⇔ f (s), where s = c + j ω (24) where: c - real part coefficient, ω - conjugate part coefficient.

Laplace transform

f (s) = L[f (t)] =

Z

0

f (t)e−stdt (25)

Inverse Laplace transform - Riemann-Mellin integral

f (t) = L−1[f (s)] = 1 2πj

c+j ω

Z

c−j ω

F (s)estds (26)

(20)

Laplace transform of the linear systems

Laplace transform is used for an analysis of control systems. As a tool for graphical analysis, complex plane S is used, where multiplication by s has the effect of differentiation and division by s has the effect of integration.

Analysis of complex roots of a linear equation, may disclose information about the frequency characteristics and the stability of the system.

To determine the function’s Laplace transform the following conditions must be met:

f (t) has a finite value in any finite interval, f (t) has a derivative df (t)dt in any finite interval,

there exists a set of real numbers X for which the integral

R

0

e−ct is absolutely convergent.

(21)

Laplace transform of the linear systems

Linear system is described by following differential equation an

dny dtn+an−1

dn−1y

dtn−1+· · ·+a0y = bm

dmx dtm+bm−1

dm−1x

dtm−1+· · ·+b0x (27) Using the n-th derivative property of the Laplace transform

L dny dtn



= sny (s) − sn−1y (0+) − · · · − yn−1(0+) (28) and assuming that initial conditions are zero, one obtains

L dny dtn



= sny (s) (29)

Laplace transform of the linear dynamic system (22) with zero initial conditions take the following form

y (s)(a sn+a sn−1+· · ·+a ) = x (s)(b sm+b sm−1+· · ·+b ) (30)

(22)

Transfer function

Transfer function

For continuous-time input signal x (t) and output y (t), the transfer func- tion G (s) is the linear mapping of the Laplace transform of the input, X (s) = L[x (t)], to the Laplace transform of the output Y (s) = L[y (t)] at zero initial conditions:

y (s)(ansn+an−1sn−1+· · ·+a0) = x (s)(bmsm+bm−1sm−1+· · ·+b0) (31) G (s) = y (s)

x (s) =bmsm+ bm−1sm−1+ · · · + b0 ansn+ an−1sn−1+ · · · + a0

(32) Numerator

M(s) = bmsm+ bm−1sm−1+ · · · + b0 (33) Denominator - characteristic equation

N(s) = ansn+ an−1sn−1+ · · · + a0 (34)

(23)

Determination of static characteristics from transfer function

x0= lim

t→∞x (t), y0= lim

t→∞y (t), (35)

using the final value theorem y0= lim

t→∞y (t) = lim

s→0sy (s) = lim

s→0sG (s)x (s) (36) For the input signal in the form of the unit step

x0= const ⇒ x (s) =1

sx0 (37)

y0

x0 = lim

s→0G (s). (38)

Finally, the static characteristcs has a form y =b0

x (39)

(24)

Methods for determining the transient response of the system

an

dny dtn+an−1

dn−1y

dtn−1+· · ·+a0y = bm

dmx dtm+bm−1

dm−1x

dtm−1+· · ·+b0x (40) Classic:

Assumption of the initial conditions x (0), y (0).

Solution of differential equations.

Using transfer function:

f (t) = L−1[y (s)] = L−1[G (s)x (s)] (41) To perform Laplace transform and its reverse, which are the basic oper- ations of a transfer function calculus, it is often sufficient to know basic properties of transfer fuctions and tables of transfer fuctions.

(25)

Typical input signals

Unit step (Heaveside function)

x (t) =

 1(t) for t ≥ 0

0 for t < 0 x (s) =1

s Step with constant value

x (t) =

 xst1(t) for t ≥ 0

0 for t < 0 x (s) = xst

1 s Impulse - Dirac delta function

x (t) = δ(t) =

 0 for t 6= 0

∞ for t = 0 x (s) = 1

Ramp

(26)

System properties

Changes of output signal y (t) as a response to a specific change of an input signal x (t)

Figure 7:Example of a transient response of the dynamical system

(27)

Table of transfer functions

...

(28)

Automation Systems

Lecture 2 - Mathematical Models of Dynamical Systems

Jakub Mozaryn

Institute of Automatic Control and Robotics, Department of Mechatronics, WUT

Warszawa, 2019

Cytaty

Powiązane dokumenty

The sinusoidal sygnal is an unique input signal, and a resulting output signal for a linear time invariant (LTI) system, as well as signals throughout the system, is sinusoidal in

REMARK: The number of elements present in the block diagram may be larger than the number of structural elements in the block diagram - since some components may be influenced by

In the case of controlled objects, in which increase of the control signal u causes an increase in output (transfer function G ob (s) is positive), the other action the regulator

Controlled process is a technological process that is under influence of disturbances, where an external control (control) algorithm performs the desired action and enforces

The requirements related to the steady state are formulated by determining the so-called static accuracy of the control system - perimissible values of deviations of the system

It can be used to controller tuning in the control systems where processes are described by static higher order lag elements, controller settings are selected based on the

It can be used to controller tuning in the control systems where processes are described by static higher order lag elements, controller settings are selected based on the

tangent method: obtain the best correspondence between linear and non-linear description of a system for a given value of the independent variable (input), and hence a particular