Sunteți pe pagina 1din 18

ECM2105 - Control Engineering

Dr Mustafa M Aziz (2013)

________________________________________________________________________________

SYSTEM DYNAMICS (REVISION)


1. Mechanical Systems 2. Electrical Systems 3. Electromechanical Systems The DC Motor 4. Linearisation of Nonlinear Systems ________________________________________________________________________________ The common form of representing control systems is to use block diagrams; the system is represented by a box and the signals of temperature, voltage, fluid flow etc. are represented by directed lines. A system is a black box which has an input and an output. A general engineering system is shown as:
Input, u(t)

System

Output, y(t)

Examples:
Input Fuel

Power station
Power station

Output Electricity

Input Electric power

Electric motor
Electric motor

Output Mechanical rotation

Normally the system is described by a mathematical model. The question you may ask: Why use mathematical models to represent engineering systems? The answer to this question is to predict the dynamical behaviour of the system. The model can be used to predict the outcome of an experiment without actually undertaking that experiment. This saves time and money in most cases including time for the process design, comparing process designs and undertaking speculative process redesigns. In some industries, it also improve safety as the model can be used to predict the outcome of unsafe operation and fault conditions that could lead to a situation where the system is dangerous and/or is damaged. For example: How will the system perform if a particular form of control system is used? (Save money by providing an answer before the control system is implemented) How will the heating system perform if a larger boiler/power plant is commissioned? (Is it worthwhile purchasing the more costly piece of plant?) What will happen in a nuclear reactor if a pump fails and the coolant is lost to part of the reactor core? (By predicting the peak temperature in the core, the possibility of thermal damage and hence unsafe operation can be assessed) Can a crane lift and transfer a specified load quickley and smoothly without introducing excessive oscillation (or swing)? (Can the crane actually do a useful job carrying this load?) What is the effect of driving a heavy lorry over a bridge? What are the dynamic forces that the bridge must cope with? Are there any undesirable dynamic effects? What is the effect of a cross wind? (Finding out before the bridge is built seems to be a good idea! - see pictures below of

ECM2105 - Control Engineering

Dr Mustafa M Aziz (2013)

________________________________________________________________________________ Tacoma Narrows Bridge -Washington- that collapsed on the 7th of Nov 1940 due to windinduced vibrations: wind frequency matched the natural or resonance frequency of the structure leading to rapid periodic oscillations of the structure aerodynamic flutter).

The proposed aircraft design satisfies all previous design specifications for normal flight conditions but how will it cope with extreme conditions? The pipework in the factory/ship/whatever is connected to the power unit which acts as a source of vibration. How will this vibration travel around the area? What are its acoustic effects? What is the relative effect of placing passive dampers at a number of selected point on the circuit? Can active vibration control technology improve on passive mechanisms?

1. Mechanical Systems The basic forms of the mechanical system building blocks are springs, dashpots (dampers) and masses. Springs represent the stiffness of a system, dashpots the forces opposing motion, i.e. frictional or damping effects, and masses the inertial or resistance to acceleration. The equations governing the motion of mechanical systems are often directly or indirectly formulated from Newtons law of motion. 1.1. Translational Motion In translational motion, the system building blocks can be considered to have: - a force, u(t) in Newtons (N), as an input and - a displacement, y(t) in metres (m), as an output. These variables are functions of time. Newtons law of motion states that the algebraic sum of forces acting on a rigid body in a given direction is equal to the product of the mass of the body and its acceleration in the same direction: forces = ma where m denotes the mass and a = d2y(t)/dt2 is the acceleration in the direction of motion. 1.1.1. Spring Any mechanical element that undergoes a change in shape when subjected to a force can be characterised by a stiffness element (usually the spring). The stiffness of a spring is described by the relationship between the force u(t) used to extend or compress a spring
output, y(t) input, u(t) k

ECM2105 - Control Engineering

Dr Mustafa M Aziz (2013)

________________________________________________________________________________ and the resulting extension or compression y(t), as shown in the figure. For a linear spring, we have: u(t) = ky(t) where k is the spring constant or stiffness (N/m). The bigger the value of k the bigger the forces have to be to stretch or compress the spring and so the greater the stiffness. Laplace transform is: U(s) = kY(s)
Viscous fluid

1.1.2. Dashpot The dashpot (damper) represents the type of forces experienced when we endeavour to push an object through a fluid or move an object against frictional forces. In the ideal case, the damping or resistive force u(t) is proportional to the velocity dy/dt of the piston, i.e. u(t) = bdy(t)/dt where b is the frictional coefficient (N-s/m). The larger the value of b the greater is the damping force at a particular speed. Laplace transform is: U(s) = bsY(s)-by(0) 1.1.3. Mass The mass block exhibits the property that the bigger the mass the greater is the force required to give it a specific acceleration. By Newton's law of motion:
b

Piston

output, y(t) input, u(t)

output, y(t)

u(t) = m

d 2 y(t) dt 2

input, u(t)

where the constant of proportionality between the force and the acceleration is the mass m (in kg).
dy(0) Laplace transform is: U(s) = m s 2 Y(s) sy(0) dt

Example:

y(t)
Develop a model for the mass, spring and dashpot system shown in the figure.

m
b

u(t)

ECM2105 - Control Engineering

Dr Mustafa M Aziz (2013)

________________________________________________________________________________ Solution: The net force applied to the mass m can be found from the free-body diagram:

y(t) ky(t) m bdy(t)/dt


and according to Newton's law forces = ma: u ( t ) ky( t ) b Rearranging: dy( t ) d 2 y( t ) =m dt dt 2

u(t)

m Laplace transform is:

d 2 y(t) dy( t ) +b + ky( t ) = u ( t ) 2 dt dt

(ms 2 + bs + k )Y(s) (ms + k ) y(0) m

dy(0) = U(s) dt

1.2. Rotational Motion Rotational mechanical systems are handled in the same way as translational mechanical systems, except that: - torque, T(t) (Newton-metres), replaces force and - angular displacement, (t) (radians), replaces the translational displacement. The equivalent three system blocks for rotational motion are a torsional spring, a rotary damper and the moment of inertia, i.e. the inertia of a rotating mass. The extension of Newtons law of motion for rotational motion states that the algebraic sum of moments or torques about a fixed axis is equal to the product of the inertia and the angular acceleration about the axis: torques = J where J denotes the moment of inertia (kg.m2) and = d2(t)/dt2 is the angular acceleration (rad/s2).
1.2.1. Torsional spring Rotational stiffness is usually associated with a torsional spring (such as the mainspring of a clock, or with a relatively thin shaft). With a torsional spring the angle rotated (t) is proportional to the torque T(t), i.e.
T(t) (t)

K
T(t) (t) K

T(t) = K(t) where K is the spring constant (N-m/rad). Laplace transform is: T(s) = K(s)

ECM2105 - Control Engineering

Dr Mustafa M Aziz (2013)

________________________________________________________________________________
1.2.2. Rotary damper With the rotary damper a cylinder is rotated in a fluid and the resistive torque T(t) is proportional to the angular velocity, i.e.

T(t) = Bd(t)/dt where B is the friction constant (N-m-s/rad). Laplace transform is: T(s) = bs(s) - b(0)
1.2.3. Moment of inertia Is the resistance of an object to changes in its angular velocity. It is related to the torque through:

T(t) (t)

T(t) (t)

T(t) = J

d 2 (t) dt 2

m
J

where J is the inertia (kg-m2 = N-m-s2/rad).


& ( 0) Laplace transform is: T (s) = Js 2 (s) Js(0) J

Example: Derive the differential equation describing the rotational system shown in the following figure.

T K J B
T

Solution:

K(t)

Bd(t)/dt

ECM2105 - Control Engineering

Dr Mustafa M Aziz (2013)

________________________________________________________________________________ 2. Electrical Systems The basic elements of passive electrical systems are resistors, capacitors and inductors. Kirchhoff's two laws are used to develop mathematical models of electrical circuits. They are: Kirchhoff's current law: The total current flowing towards a junction is equal to the total current flowing out from that junction, i.e. the algebraic sum of the currents at the junction is zero: currents = 0 Kirchhoff's voltage law: The algebraic sum of all voltages taken around a closed path in a circuit is zero: voltages = 0 2.1. Resistor Using Ohm's law, the potential difference v(t) across a resistor at any instant is proportional to the current i(t) through it, i.e. v(t) = Ri(t) where R is the resistance in Ohms (). Laplace transform is: V(s) = RI(s) 2.2. Capacitor For a linear capacitor we have,
i(t) = C dv(t) dt
i(t)

R
v(t)

i(t)

C
v(t)

where i(t) is the current through the capacitor, v(t) is the potential difference across it and C is the capacitance in Farads (F). Laplace transform is: I(s) = CsV(s)-Cv(0)

The voltage across the capacitor can be obtained by integrating the current through it over time from 0 to t: t 1 v( t ) = i()d + const C0 I(s) Laplace transform is: V(s) = sC 2.3. Inductor
For a fixed linear inductor, the potential difference v(t) across it is proportional to the rate of change of current through it, i.e.
di(t) v(t) = L dt

i(t)

v(t)

ECM2105 - Control Engineering

Dr Mustafa M Aziz (2013)

________________________________________________________________________________ where L is the inductance in Henrys (H). Laplace transform is: V(s) = LsI(s)-Li(0)

Example: A resistor-inductor-capacitor network is shown below. Find a mathematical model that describes the relationship between the input voltage vi(t) and the output voltage vo(t). L R i(t)

vi(t) C

vo(t)

Solution:

3. Electromechanical Systems The DC Motor


There are many electromechanical devices, such as potentiometers, motors, and generators. Here we present the mathematical model of a DC motor which is one of the most widely used prime movers in industry today and is used in variable speed applications (e.g. domestic appliances, robotics, automation, toys, computer peripherals). A motor is an electromechanical component that yields a displacement output for a voltage input, that is, a mechanical output generated by an electrical input. The mechanical output is used to drive an external load. A DC motor consists of a rotating cylinder called the armature with a current carrying conductor wrapped around it. The armature is placed in a magnetic field between two stationary poles as shown below.

ECM2105 - Control Engineering

Dr Mustafa M Aziz (2013)

________________________________________________________________________________
Magnetic flux

Force

Current

Left-hand rule

Brushes

The principles of operation are as follows: The brushes (spring-loaded carbon contacts) contact the rotating commutator causing current ia to flow in the armature conductors. The current carrying armature conductor, in the presence of the magnetic field Bf produced by a stationary permanent or electro-magnet, experiances a force F given by: F = Bfial whose direction is given by the left-hand rule, and where l is the length of the armature conductor cutting the magnetic field. The commutator insures that the current changes direction in the armature coil every half cycle to maintain the contineous motion of the rotor. The force F develops a turning torque proportional to the armature current, i.e. Tm ia that rotates the armature and shaft where the load is normally connected. The movement of the armature conductor in the magnetic field induces a voltage at the conductor terminals according to Faraday's law. This voltage is called the back electromotive force or emf and is proportional to the angular velocity of the armature, i.e. vb d/dt. There are two methods of controlling the speed of a DC motor: 1. Field control: hold the armature current constant and control the torque via the field voltage (using electromagnets). 2. Armature control: hold the field constant and control the torque via the armature voltage (using permanent magnets). We will develop the dynamic equations for the armature-controlled, permanent magnet DC motor system shown schematically below.

ECM2105 - Control Engineering

Dr Mustafa M Aziz (2013)

________________________________________________________________________________

R
+

ia(t)
Tm = Kmia
d dt

Inertial load
J
+ _

va

Armature circuit

vb = K b

L and R represent the inductance and resistance of the motor's armature circuit, and the voltage vb represents the generated back emf which is proportional to the shaft velocity d/dt. The torque Tm generated by the motor is proportional to the armature current ia. The inertia represents the combined inertia of the motor armature and the load, and B is the total viscous friction acting on the output shaft. The differential equations of the motor armature circuit and the inertial load are:
v a ( t ) = Ri a ( t ) + L di a ( t ) d( t ) + Kb dt dt

and

d 2 ( t ) d( t ) = K m i a (t ) B 2 dt dt

4. Linearisation of Nonlinear Systems 4.1. Nonlinearity Definition 1: A system is said to be linear if the principle of superposition applies. The principle of superposition states that if the input signal u1(t) produces an output y1(t), input u2(t) produces an output y2(t) and a1 and a2 are constant numbers then the input a1u1(t) + a2u2(t) produces the output a1y1(t) + a2y2(t).

a1u1(t) + a2u2(t)

Linear system

a1y1(t) + a2y2(t)

Definition 2: A system is said to be nonlinear if the principle of superposition does not apply. Example: Test whether f(x) = 5x is linear.

f(x)

Output
0
Solution:

Input

ECM2105 - Control Engineering

Dr Mustafa M Aziz (2013)

________________________________________________________________________________ Adding individual outputs: Input a1x1 produces output f(a1x1) = 5a1x1 Input a2x2 produces output f(a2x2) = 5a2x2 Adding: f(a1x1) + f(a2x2) = 5ax1 + 5ax2 Since the resultant output can be calculated as the sum of the separate output responses, then superposition applies linear system. Resultant output response: Input a1x1 + a2x2 produces output: f(a1x1 + a2x2) = 5(a1x1 + a2x2) = 5a1x1 + 5a2x2

Example: Test whether f(x) = 2x2 is linear.

f(x)
Output

0
Solution: Adding individual outputs:

Input

Resultant output response:

Exercises: Use the above definitions to test which of the following is linear and which is nonlinear:
(i) (ii) (iii) f(x) = 5cos(x) f(x) = 4ln(x) d 2 y( t ) dy( t ) + + y( t ) = u ( t ) dt dt 2

10

ECM2105 - Control Engineering

Dr Mustafa M Aziz (2013)

________________________________________________________________________________ (iv) d 2 y( t ) dy( t ) + y( t ) + y( t ) = u ( t ) 2 dt dt d 2 y( t ) dy( t ) + u (t ) + y( t ) = u ( t ) 2 dt dt

(v)

4.2. Nonlinear systems


The following are examples of physical systems. 1) A RLC electrical circuit with capacitance voltage y(t) and applied voltage u(t). By applying Kirchhoffs voltage law, the differential equation is:
u(t) R L

y(t) C

RC

dy( t ) d y( t ) + LC + y( t ) = u ( t ) dt dt 2

2) A diode allows current to flow only in one direction. In the forward bias region, the current/voltage characterestic (and hence resistance) is not linear and can be described by: i = io(e
ev(t)/2kT

i i(t) v(t)

1)

3) A vehicle system with mass m, external force u(t), displacement y(t), and friction coefficient b. By Newtons second law, we have the following differential equation: m d 2 y( t ) dy( t ) +b = u(t) 2 dt dt

y(t) u(t) & (t ) by

4)

Nonlinear spring f(y(t))

f(y)

y(t) u(t)
y

m
b

A spring-mass-damper system with mass m, damping constant b, non-linear spring f[y(t)], and displacement y(t). By Newtons second law, the dynamic equation is: d 2 y( t ) dy( t ) m +b + f [ y( t )] = u ( t ) 2 dt dt

11

ECM2105 - Control Engineering

Dr Mustafa M Aziz (2013)

________________________________________________________________________________ 5) A pendulum, which can be viewed as a one-link robot manipulator, is shown in the figure. The parameters of the pendulum are the length of the link (from the rotating point to the centre of the mass of the ball) L, the mass of the ball m, the coefficient of friction in the rotating point B, the acceleration of gravity g, the applied torque T(t) and joint angle (t). It is assumed that the link is massless and the ball is very small. The dynamic equation is: d 2( t ) d( t ) mL +B + mgL sin(( t )) = T( t ) 2 dt dt
2

B T L

mgsin()

mg

It is noted that the dynamic equations described in (1) and (3) are linear and the dynamic equations described in (2), (4) and (5) are nonlinear. The systems described in (1), (3), (4) and (5) are singleinput and single-output systems (SISO). In this course we mainly study dynamics and control of single-input and single-output linear systems. A general form of a single-input and single-output linear time-invariant system is defined by:
d n y( t ) d n 1 y( t ) dy( t ) + a + L + a1 + a 0 y( t ) n 1 n n 1 dt dt dt d m u(t) d m 1u ( t ) du ( t ) = bm + b m 1 + L + b1 + b 0 u(t) m m 1 dt dt dt

where y(t) is the output of the system and u(t) is the input. The coefficients an and bn are real constants and n m.

4.3. Linearisation Concepts


Most physical systems have generally nonlinear characteristics. However, over a small range of input values around an operating point a system can be described by a linear model. Linear approximations allow us to apply linear analysis techniques to design controllers and study the behaviour of systems. For example, the following graph shows the measured output voltage from a depth sensor that regulates the level of a liquid in a tank. The characteristic of the sensor is clearly nonlinear, but for small operating values around the point (us,ys), called the operating or equilibrium point, the behaviour of the sensor can be described by a linear approximation (straight line).

12

ECM2105 - Control Engineering

Dr Mustafa M Aziz (2013)

________________________________________________________________________________
y
Pump

Measured results

Inflow

Depth sensor

Sensor voltage

ys
Linear approximation Operating region

Outflow

us
u

Level in tank

If we operate the system such that liquid level in the tank stays within the operating region, u, we can use this linear approximation. However, outside this region the linear formula would no longer be valid.

f(x) f f(xo)

xo

To find a linear mathematical model of the nonlinear system f(x), we can expand f(x) into a Taylor series around the operating point (xo,f(xo)):
f (x) = f (x o ) + df dx (x x o ) d 2 f + 2 1! dx (x x o ) 2 +L 2!

x =xo

x =xo

If the variation around the operating point, x = x xo, is small we may neglect the higher-order terms in x and we have:
f (x) f (x o ) + df dx (x x o )
x=xo

(1)

or
f (x) f (x o ) = df dx x
x =xo

13

ECM2105 - Control Engineering

Dr Mustafa M Aziz (2013)

________________________________________________________________________________
df dx

f(x) = cx

c=

x=xo

The resulting approximation yields a straight line relationship between the change in f(x) and x with the constant of proportionality, c, being the slope of this line at xo.

Example: Linearise f(x) = 5cos(x) about x = /2.


f(xo) = 5cos(/2) = 0
c= df dx = 5 sin( x ) x = x = 5
o

f(x) f(x) -5x

x=xo

/2

The linear approximation around xo can be found using equation (1):


x

f (x) f (x o ) +

df dx

(x x o )
x=xo

5( x / 2)

Exercises: Linearise the following functions:


(i) (ii) (iii) f(x) = 3sin(2x) about x = /4 f(x) = 2x2 + 3 about x = 0 f(x) = 8ln(x) about x = 5

14

ECM2105 - Control Engineering

Dr Mustafa M Aziz (2013)

________________________________________________________________________________

4.4. Linearising differential equations

Nonlinear spring, f(y(t))

y(t)

m
b

u(t)

Example: Consider the mechanical system shown in the above figure with a non-linear spring. The nonlinear model is: m d 2 y( t ) dy( t ) +b + f [ y( t )] = u ( t ) 2 dt dt

Find the linearised model of this system around the equilibrium point (us,ys). Solution: 1. Determine the equilibrium point (us,ys). This often corresponds to the steady-state condition of the system. Hence at u = us the equilibrium point can be found by setting all the time derivatives to zero in the differential equation (d2y/dt2 = 0 and dy/dt = 0) and solving: f(ys) = us for ys. 2. Linearise the differential equation for small excursions about the equilibrium point. Let y = ys + y and u = us + u and substitute into the differential equation: m Since ys is a constant: d 2 ( y s + y) d 2 y = dt 2 dt 2
d ( y s + y) dy = dt dt

d 2 ( y s + y) d( y s + y) +b + f ( y s + y) = u s + u 2 dt dt

Expanding f(ys + y) using equation (1): f ( y s + y) = f ( y s ) + cy where c = df ( y) dy

y = ys

15

ECM2105 - Control Engineering

Dr Mustafa M Aziz (2013)

________________________________________________________________________________ Substituting into the differential equation: m d 2 y dy +b + f ( y s ) + cy = u s + u 2 dt dt

But since f(ys) = us, then we have: m This equation is linear. It is normal practice at this stage to simplify the notation by replacing the symbols y and u by y and u (equivalent to measuring the value of the input and output relative to the equilibrium values): d2y dy m 2 + b + cy = u dt dt (2) d 2 y dy +b + cy = u 2 dt dt

Example: If f(y(t)) = ky2 in the previous example, linearise the differential equation.
Solution:

Exercise: Linearise the following differential equation for small excursions about y = /4:
d2y dy + 2 + cos( y) = 0 2 dt dt

16

ECM2105 - Control Engineering

Dr Mustafa M Aziz (2013)

________________________________________________________________________________

TUTORIAL PROBLEM SHEET 2


1. Derive the differential equation describing the relationship between the input of the force u(t) and the output displacement y(t) for the system shown in the following figure

y(t) b1

m
b2
where b1 and b2 are the frictional coefficients.

u(t)

2. Derive the relationship between the potential difference across the inductor, y(t), and the input u(t) potential for the circuit shown below.

u(t)

y(t)

3. Show that the following first-order differential equation is linear, i.e. superposition holds:
dy( t ) = ay( t ) + ku ( t ) dt

where a and k are constants. 4. Use a Taylor series expansion to derive the linearised model of the function f(x) = 0.5x3 around the point xo = 2.

5. A shock absorber system is shown with wall friction coefficient B and a nonlinear spring. Find the linearised differential equation for this system around ys = 1. The nonlinear spring force is defined by f(y(t)) = 1 e-y(t).

f(y(t))

m
y(t) u(t)

6. The relationship between the force u(t) used to stretch a spring and its extension is given by u(t) = ky(t)3, where k is a constant. Linearise this equation for an equilibrium point of (us,ys).

17

ECM2105 - Control Engineering

Dr Mustafa M Aziz (2013)

________________________________________________________________________________ 7. Derive the dynamic equation for rotational angle (with respect to the inertial reference) of the simplified single-axis satellite shown in the figure. This space satellite has a moment of inertia J. Fc is the jet control force about the centre of the mass, and there is also some disturbance moments MD on the satellite due primarily to solar pressure acting on the solar panels.

MD d Jet Fc

8. The flow of traffic in a single lane can be described by the following equation:
dy( t ) = V k 1e k 2 / y ( t ) dt

Reference

where y(t) is the relative distance between two cars, V is a constant velocity of the lead car, k1 and k2 are real positive constants. Your tasks are: a) obtain the equilibrium value ys that results in dy(t)/dt = 0. b) linearise the equation around ys, and write the resulting linearised equation. 9. A pendulum, which can be viewed as a one-link robot manipulator, is shown in the figure. The parameters of the pendulum are the length of the link (from the rotating point to the centre of the mass of the ball) L, the mass of the ball m, the coefficient of friction in the rotating point B, the acceleration of gravity g, the applied torque T(t) and joint angle (t). It is assumed that the link is massless and the ball is very small. a) develop the mathematical model of the pendulum system b) prove that this model is nonlinear c) linearise the model around the equilibrium point.

mg

18

S-ar putea să vă placă și