0% found this document useful (0 votes)
10 views18 pages

MECH0023 Week 02 Notes

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views18 pages

MECH0023 Week 02 Notes

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

MECH0023

DYNAMICS
&CONTROL

WEEK 02
Laplace techniques
for modelling and
analysing complex
systems

View and edit this document in Word on your computer, tablet or phone.
Where you see this sign you need to enter your own thoughts, examples, or complete some
working-out. You can edit text and insert content such as pictures, shapes and tables.
CONTENTS
1. M odelling Com plex System s ............................................................................... 3
2. Actuators and Servosystem s .............................................................................. 4
3. Electrohydraulic Actuators ................................................................................. 5
Example 1: Modelling an Electrohydraulic Servosystem ............................................... 6
4. Exam ple 2: M odelling a Soldering R obot ......................................................... 10
5. M odelling Com plex System s in the Laplace Dom ain ........................................ 12
6. The s-plane Diagram : a Visual R epresentation of Transfer Functions ............ 13
7. Exam ple 3: I nspecting Transfer Functions on the s-plane .............................. 15
8. Exam ple 4: The Soldering R obot M odel ........................................................... 16
on the s-plane ....................................................................................................... 16
9. Exam ple 5: DC M otor M odel - a M ATLAB Tutorial ............................................ 17

2
1. Modelling Complex Systems
We have seen (in part 01 and previous years’ dynamical modelling examples) that the behaviour of
dynamic systems can be described by mathematical expressions, for example:

… describes the response of a 2nd order system to a ‘ramp’ input. That expression is not very
helpful in revealing key features easily (and remember: “all models are wrong” anyway!)
• Is this well-damped?
• Does it respond quickly?
• What’s the steady state behaviour after transient responses have died away?
[these are rhetorical questions!]
This is only a 2nd order system, so we can imagine that for higher-order models it will become
unworkable to find expressions for the response in the time domain.
Instead, modelling in the Laplace domain means that however complex the system it can always be
split up into parts which are no more complicated than a 2nd order component. That’s as tricky as it
will get.
So the general approach to creating a model is:

3
2. Actuators and Servosystems
In Part 1 we looked at DC motors which are extremely common for providing position control.
However they are not the only type of actuator. Here is a very general indication of some different
types and their suitability for a servo system, that is to say: position control.

Bandwidth Suitability for


Max Force / (ability to respond to position
Actuator type size fast changes in input) Power / size control

Electric Motors Medium Medium-high Medium Good


Pneumatic
Medium-low Medium-high Medium-high Bad
cylinder
Electrohydraulic
Very high High Very high Good
servosystem
Internal
Combustion High Medium-low High Medium-low
Engine
‘Smart
Low Low Low Medium-low
materials’
Choose a
specific ? ? ? ?
example

You will notice important omissions from the table: cost (!), durability, power supply requirements,
maintenance requirements… Depending on the application, one or more of those criteria could be
the most important in selecting an actuator.
Type some reasons why your chosen actuator type would be used in a specific situation:

Take as much space as you like to include pictures of the actuator, pictures of it in use, details of its
price, size, weight, power supply, any special limitations / features (e.g. can it be used in the
presence of explosive gases/vapours? Does it cause electromagnetic interference?)

4
3. Electrohydraulic Actuators
With a very high power-to-volume ratio, very high maximum force and very high aptitude for
position control, electrohydraulic actuators are used in applications requiring motion control of large
loads. The precision required to manufacture cylinders and control valves which operate reliably
under hundreds of bars of pressure means that these systems are expensive.
Some applications include fly-by-wire control surfaces (‘flaps’) on aircraft, flight simulators, the
Wembley stadium seating and tidal turbine examples are from Shepcote Engineering.

Space for notes & examples of hydraulic position control systems.

5
Example 1: Modelling an Electrohydraulic
Servosystem
General components and operation. An electrohydraulic servosystem comprises:
• An electrically operated valve
‘Tank’ (≈0) Supply which controls the flow of…
pressure Ps Valve ‘spool’ • extremely high-pressure hydraulic
displacement fluid to a…
x(t) • hydraulic cylinder with a…
• position sensor which informs a…
• digital controller.

Flow rate Supply


Q1(t) Ps

y(t)
M
Pressure P1(t)
Volume V1(t)
Area A1 Area A2

First, some notes about how this works in general terms:


• If x(t) moves in a positive direction that controls the size of opening of the valve connecting the
supply pressure, Ps, to the left hand side of the cylinder.
o The supply pressure, Ps, is assumed to be constant, irrespective of the load.
• P1 is not equal to Ps even though they’re connected, because …

• When the valve is open positively: on the left hand side of the piston there is P1 (less than Ps)
and on the right hand side of the piston there is Ps. And yet there is a resultant force to the
Right, because …

• When the valve is open in a negative direction: on the left hand side of the piston there is
‘Tank’ pressure which is assumed to be negligibly small. On the right hand side of the piston
there is Ps. Therefore there is a resultant force to the Left.
• All the moving mass (load plus piston) is assumed to have a constant mass, M, which is
accelerated by the resultant force.
• Since the forces involved will be so high, friction will be relatively minimal.

6
Let’s get creating a model, starting with the governing equations:

Valve orifice flow equations


When x(t) is positive: 𝑄𝑄1 (𝑡𝑡) = 𝑘𝑘𝑣𝑣 𝑥𝑥(𝑡𝑡)�𝑃𝑃𝑠𝑠 − 𝑃𝑃1 (𝑡𝑡)
When x(t) is negative: 𝑄𝑄1 (𝑡𝑡) = ?

Cylinder flow: 𝑄𝑄1 (𝑡𝑡) = ?

Piston kinetics: (Newton’s 2nd Law) ? = 𝑀𝑀𝑦𝑦̈ (𝑡𝑡)

Where, 𝑘𝑘𝑣𝑣 is a valve constant dependent on the size & shape of the particular valve.
𝑘𝑘1 is the bulk modulus of the hydraulic fluid – i.e. describing how compressible it is. “But liquid isn’t
compressible?!” Not usually. But the fluid is bound to have tiny bubbles of air, and the pipes which
contain it are not rigid. These are very high pressures we’re talking about here.
This system is clearly non-linear for at least two reasons:
1.
2. The valve flow is proportional to the square root of the pressure difference across it.
… but we’ll try the small perturbation method (as before, in the magnetic levitation example) to
create a linear approximation about a normal operating point.
The aspect of this model which we can most easily control is: valve spool position, x(t), so we’ll
consider that the input.
The output of the system is the cylinder position, y(t).
Other variables - Q1(t) and P1(t) - are not of specific interest.
We’ll therefore combine these governing equations to create one model which relates the valve
spool position, x(t), to the cylinder position y(t).
We’ll use a positive value of x(t) as the operating point just for example, and start by linearising the
valve orifice equation:
𝑄𝑄1 (𝑡𝑡) = 𝑘𝑘𝑣𝑣 𝑥𝑥(𝑡𝑡)�𝑃𝑃𝑠𝑠 − 𝑃𝑃1 (𝑡𝑡)
This function of two variables could be imagined as a surface, e.g. below. It’s also possible of
course to have functions depending on 3 or more variables, in which case we can’t visualise them in
Cartesian geometry.
Here is a “slice” through that surface at the
operating point, X0, illustrating how Q1
depends on (Ps – P1(t)).

7
Considering how Q1 varies with these two independent variables, we can use two linear tangents to
that surface to create two linear approximations and hence one linear model. NB even though Q1
will still depend on two variables it will still be a linear model.
We’ll use “small perturbation variables” to represent the small variations about the operating point:
q1’(t) = Q1(t) – Q0, x’(t) = x(t) – x0, etc…

So the nonlinear valve orifice equation 𝑄𝑄1 (𝑡𝑡) = 𝑘𝑘𝑣𝑣 𝑥𝑥(𝑡𝑡)�𝑃𝑃𝑠𝑠 − 𝑃𝑃1 (𝑡𝑡)
becomes…

The cylinder flow equation is already linear. Using the small perturbation variables it’s written:
𝑝𝑝̇1 (𝑡𝑡)
𝑞𝑞1 (𝑡𝑡) = 𝐴𝐴1 𝑦𝑦̇ (𝑡𝑡) +
𝑘𝑘1
In the Laplace domain that is:

The piston kinetics equation is also linear. Using the small perturbation variables it’s written:
𝑝𝑝1 (𝑡𝑡)𝐴𝐴1 = 𝑀𝑀𝑦𝑦̈ (𝑡𝑡)
In the Laplace domain that is:

By combining these three equations we can then rearrange to one linear transfer function:
𝑘𝑘1 𝐴𝐴1 𝑐𝑐𝑥𝑥1
𝑌𝑌(𝑠𝑠) 𝑀𝑀
=
𝑋𝑋(𝑠𝑠) 𝑘𝑘 𝐴𝐴2
𝑠𝑠 �𝑠𝑠 2 + 𝑐𝑐𝑝𝑝1 𝑘𝑘1 𝑠𝑠 + 1𝑀𝑀 1 �

Don’t panic! Although this transfer function might not mean anything to you, as mentioned, any
transfer function can be split into parts which are no more complicated than a 2nd order component.
so in this case we have:
𝑌𝑌(𝑠𝑠) 1 𝜔𝜔𝑛𝑛2
= 𝐾𝐾
𝑋𝑋(𝑠𝑠) 𝑠𝑠 (𝑠𝑠 2 + 2𝜁𝜁𝜁𝜁𝑛𝑛 𝑠𝑠 + 𝜔𝜔𝑛𝑛2 )

𝑘𝑘1 𝐴𝐴21 𝑐𝑐𝑝𝑝1 𝑘𝑘1


Where, 𝜔𝜔𝑛𝑛2 = ; 𝜁𝜁 = ; and
𝑀𝑀 2𝜔𝜔𝑛𝑛

𝐾𝐾 = ……

8
Rapid Interpretation of the Transfer Function Model
Remember the long time-domain expression at the start of this section…

Although this is needed for plotting a graph of the response, this is not too easy to interpret / to
understand… and this was just the response to one type of input (in this case a step response).
In comparison, the transfer function model can be interpreted much more easily in general terms:

Here we have an integrator, just like in


the DC motor example. That means that 𝜔𝜔𝑛𝑛 depends on k1 which is
given a constant input, x(t), the output the ‘stiffness’ of the fluid.
position would end up increasing at a When the cylinder is nearly
The constant
constant rate – it will be moving at a retracted, the volume of
speed at which the
constant speed. Just like the DC motor: fluid is smaller and so there
cylinder moves is
turn it on, and it will run at a steady is less compression: 𝜔𝜔𝑛𝑛
found from K.
speed. becomes high frequency.

𝑌𝑌(𝑠𝑠) 1 𝜔𝜔𝑛𝑛2
= 𝐾𝐾
𝑋𝑋(𝑠𝑠) 𝑠𝑠 (𝑠𝑠 2 + 2𝜁𝜁𝜁𝜁𝑛𝑛 𝑠𝑠 + 𝜔𝜔𝑛𝑛2 )

When the valve is first opened, there’s a


transient response which is 2nd order. 𝜁𝜁 depends on cp1, which depends on
This means it might have some x(t) (the spool displacement). When
oscillations (although they will decay). the valve is almost shut (x(t) ≈ 0)
The magnitude, frequency and duration the damping becomes very low.
of the oscillations are given by 𝜔𝜔𝑛𝑛 and 𝜁𝜁.

9
4. Example 2: Modelling a Soldering Robot
In that interpretation of the 2nd order component of the
hydraulic servosystem the behaviour is described in general
terms, e.g. “damping becomes very low”.
In most applications it matters “How low damping?!” In the
following example, we see how to find out specific response
performance characteristics, quite easily, from transfer
functions.

Description:
A DC motor is driven by a current amplifier, to provide
thrust. The thrust output is K times the voltage input.
The moving mass is M kg, and the friction drag from
the gears and linear bearing is approximately C times
the velocity in m/s
The open loop block diagram is shown below
(fill in the blanks!). The Open Loop Transfer
Function (OLTF) is simply all those blocks
multiplied together.

??(s) ?? ??(s) ??
??
?? ??

We’ve seen (Part 01) that a DC motor needs position feedback to be used as a position servo, and
that’s what is done for this soldering robot. The position sensor gives a voltage proportional to
position: 0 to 1 V covers positions of 0 to 1m.
The desired position is specified by a voltage, R(s), which also uses the scale 1 Volt per metre.
That changes the transfer function to the following Closed Loop Transfer Function (CLTF):

10
Interpreting a Second Order Transfer Function Model:
If we look at the expression for the time response of a 2nd order step response, we can identify
specifically how each parameter affects the response.
Since all 2nd order transfer function components always behave like this, we will never need to do
this analysis again!
Overshoot (%):

Time to first peak (Tp):

Settling time*
* to within 5% of steady-state value:

For this specific soldering robot application, we can look at how these depend on the robot
parameters: K, C, and M:

Damping ratio: Natural Frequency:

Again: all standard 2nd order transfer function components will have this form, so we just need to
plug in values for any specific example.
This is most useful in design and modelling stages to predict what the performance will be before
building something. But once a machine / device exists, modelling is still useful to predict the effect
of changes – which may be deliberate or accidental.
E.g. the soldering tip on this robot breaks. The new replacement version is now made with
recyclable materials and weighs 20% more.
If M increases…

11
5. Modelling Complex Systems in the Laplace
Domain
• More complex systems are just replication of the standard transfer function components.
• Each component is never more complicated than the 2nd order component.
• The overall behaviour is the sum of the contributions of each part.
E.g. multi-link robots like these:

Next time you see a motorised device which can move in more than one direction, write it here…

12
6. The s-plane Diagram: a Visual Representation of
Transfer Functions
Even quicker than looking up standard expressions for TF components, there are graphical methods
for visualising at a glance some of the key features of transfer functions:
• stability,
• frequency and damping of any oscillatory components,
• decay time of any lags,
• ‘type’ of the system: steady state behaviour, and suitability for servo applications.

The key is that the Laplace variable, s, is a complex variable and may have real and imaginary
parts:

s = σ + jω
So if we take the example of a first order lag, it
is possible to plot this function on a complex
plane, using both real and imaginary parts of s:

G(s) is said to have a ‘pole’ 1 at s = 1/ τ ,


This pole position corresponds to the value of s
which would solve the characteristic equation of the
denominator:
𝑻𝑻𝑻𝑻𝑻𝑻𝑻𝑻 𝑪𝑪𝑪𝑪𝑪𝑪𝑪𝑪𝑪𝑪𝑪𝑪𝑪𝑪𝑪𝑪𝑪𝑪𝑪𝑪𝑪𝑪𝑪𝑪𝑪𝑪𝑪𝑪 𝑬𝑬𝑬𝑬𝑬𝑬𝑬𝑬𝑬𝑬𝑬𝑬𝑬𝑬𝑬𝑬 𝑯𝑯𝑯𝑯𝑯𝑯𝑯𝑯

This approach becomes much more useful when a transfer function has several poles, and zeros
(values of s which make the numerator = 0)

1
I haven’t been able to reliably determine whether this is so called because of the appearance of a ‘spike’ or
‘pole’ on the s-plane.

13
For a 1st order lag the pole lies at s = 1/ τ.
For 2nd order components, the roots to the characteristic equation are found from the ‘normal’
quadratic formula for solving 2nd order polynomials.
Characteristic equation:
𝑠𝑠 2 + 2𝜁𝜁𝜁𝜁𝑛𝑛 𝑠𝑠 + 𝜔𝜔𝑛𝑛2 = 0

Compare that to:


𝑎𝑎𝑎𝑎 2 + 𝑏𝑏𝑏𝑏 + 𝑐𝑐 = 0

Which is solved by:

−𝑏𝑏 ± √𝑏𝑏 2 − 4𝑎𝑎𝑐𝑐


𝑠𝑠 =
2𝑎𝑎
For the standard form of 2nd order TF, a = 0.
If 𝑏𝑏 2 − 4𝑎𝑎𝑎𝑎 is positive there will be two real roots.
If 𝑏𝑏 2 − 4𝑎𝑎𝑎𝑎 is negative there will be two complex roots, whose positions are intrinsically linked to
𝜁𝜁 and 𝜔𝜔𝑛𝑛 as shown above, therefore 𝜁𝜁 and 𝜔𝜔𝑛𝑛 can be calculated from the s-plane coordinates if
required.
So the positions of complex poles on the s-plane tell us at a glance about oscillatory behaviour of
any linear system.

This diagram is super-important and will be used frequently through the course.

14
7. Example 3: Inspecting Transfer Functions on
the s-plane
To provide electrical power to the soldering robot motor we need a
powerful amplifier. Imagine the electrical engineering department
have suggested two possible circuits, and they have provided the
transfer function for each:
Output current to motor, I(s), as a function of the control
voltage, V(s).

(i)

(ii)

Glancing at these TFs it’s not possible to tell much about their behaviour. We
don’t even know if they’re stable (it’s quite possible for electrical amplifiers to be
unstable).
MATLAB’s function roots() function can quickly tell us whether there are any roots on the right
hand side of the s-plane, to answer the question of stability. And check out “pzmap()”…

Property Amplifier G1(s) Amplifier G2(s)

Positions of zeros >> roots([-5 -1])


ans = -0.2

Positions of poles >> roots([2 11 32 63])


ans = -3.5 + 0i
-1 + 2.8i
-1 - 2.8i

Pole Zero ‘map’ >> pzmap([-5 -1],[2 11 32 63])

15
8. Example 4: The Soldering Robot Model
on the s-plane
𝐾𝐾
𝑌𝑌(𝑠𝑠)
The closed loop transfer function from Example 2 was: = 𝑀𝑀
𝐶𝐶 𝐾𝐾
𝑅𝑅(𝑠𝑠) 2
�𝑠𝑠 +𝑀𝑀𝑠𝑠+𝑀𝑀�

We plot the poles of the system to predict its performance (rise time, overshoot, settling time etc.)
The poles are the roots to the characteristic equation:
𝑇𝑇𝑦𝑦𝑦𝑦𝑦𝑦 𝑐𝑐ℎ𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎 𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒 ℎ𝑒𝑒𝑒𝑒𝑒𝑒 = 0
−𝑏𝑏±√𝑏𝑏2 −4𝑎𝑎𝑎𝑎
Which, being quadratic, can be solved with the ‘good old’ quadratic formula: 𝑠𝑠 =
2𝑎𝑎

𝐶𝐶
𝐶𝐶𝐶𝐶𝐶𝐶𝐶𝐶𝐶𝐶𝐶𝐶𝐶𝐶𝐶𝐶 𝑡𝑡𝑡𝑡𝑡𝑡𝑡𝑡𝑡𝑡𝑡𝑡 𝑡𝑡ℎ𝑒𝑒 𝑠𝑠𝑠𝑠𝑠𝑠𝑠𝑠𝑠𝑠𝑠𝑠𝑠𝑠𝑠𝑠𝑠𝑠 ℎ𝑒𝑒𝑒𝑒𝑒𝑒: 𝑠𝑠 = − ±⋯
2𝑀𝑀

These poles can be calculated for any numerical values of K, C & M. MATLAB or MS Excel can be
used to plot how the pole positions change as any of the values of K, C and/or M vary.

Varying friction, C: Varying Mass, M:

The course moodle page has a MS Excel workbook with these equations already populated. It
contains instructions too. Download it and “play around”.

16
9. Example 5: DC Motor Model - a MATLAB Tutorial

Referring to the DC motor


model we derived in Week 1,
here is an example of some
specific parameters (from
Matlab’s control tutorials
bit.ly/1R5WLR2) :

J moment of inertia of the rotor 3.23 x10-6 kg.m2


b motor viscous friction constant 3.51 x10-6 N.m.s
Kb electromotive force constant 0.0274 V/rad/sec
Kt motor torque constant 0.0274 N.m/Amp
R electric resistance 4.0 Ohm
L electric inductance 2.75 x10-6 H

In MATLAB, we can enter these parameters as follows: (cut & paste this into the command line)

>> J = 3.23E-6;
>> b = 3.51E-6;
>> K = 0.0274;
>> R = 4.0;
>> L = 2.75E-6;

Then there are many ways to analyse this model.


a) The transfer function can be created as follows (there are other ways to do this):
>> s = tf('s');
>> motorTF = K/(s*((J*s+b)*(L*s+R)+K^2))
b) Plot the poles and zeros (although there are no zeros in this case) of this transfer function:
>> pzmap(motorTF);
c) Investigate the positions of the three roots by zooming-in (there are definitely three although
it may not look like it at first. Hint: two are near the origin)
You could also use MATLAB’s command line to calculate the characteristic roots:

17
>> denominator = motorTF.den{1};
>> motor_poles = roots(denominator)
d) How about a step response? (showing the angle of the motor vs time)
>> step(motorTF)
To see the transient response you’ll need to zoom in to the first 0.1 seconds,
or use the axis() command to re-scale the graph axes to [Xmin ,Xmax ,Ymin ,Ymax ]:
>> axis([0,0.1,0,3])
e) Read MATLAB’s help documentation for each of these commands.
You might want to copy & paste some notes here – feel free to copy pages & pages!
f ) Try using MATLAB to further investigate the transfer functions in Example 3 (and any others in
these notes or elsewhere!)

18

You might also like