Modelling and Control of A Gas Pressure Reduction System
Modelling and Control of A Gas Pressure Reduction System
Modelling and Control of A Gas Pressure Reduction System
A Thesis Submitted to
by
Sunderland Polytechnic,
in collaboration with
February 1989
BEST COPY
AVAILABLE
TEXT IN ORIGINAL IS
CLOSETO THE EDGEOF
THE PAGE
11
- -
SUMMARY
redundancies which have to be built into the system because of the poor
and used to assess the current system's design and performance using
contrasting design methods are employed. The first using the standard
version of Ziegler and Nichols' ultimate method based upon phase margin
The resulting closed loop designs are found to be robust and to achieve
ACKNOWLEDGEMENTS
worthwhile discussions.
Finally, but not least, to Miss E. Moss for her patience and
DECLARATION
other University.
*LkLQ-r-
,
I. Fletcher
(Candidate)
-V-
To
CONTENTS
Page No.
SUMMARY ii
ACKNOWLEDGEMENTS iii
DECLARATION iv
DEDICATION v
1. INTRODUCTION 1
References 12
2.1 Introduction 14
2.2 AGI Str uctures 16
2.2.1 Regulators 19
2.3 Mathematical Modelling of the AGI System Elements 21
2.3.1 Valve Characterisation 21
2.3.1.1 Steady State Characterisation of
Regulator Flow Profiles 23
2.3.1.2 Evaluation of the Regulator
Coefficients Cv, Cg 24
2.3.1.3 Application of the Universal Gas
Sizing Equation 26
2.3.2 Actuator Dynamics -1 32
2.3.3 Pipeline Modelling 37
2.3.3.1 Pipeline Restrictions 39
2.3.3.2 Pipeline Capacities 43
2.3.3.3 Complete Discretised Pipeline Model 45
2.3.3.4 A Comparison of the Effects of the
Restriction Modelling Techniques
upon the Pipeline Behaviour 45
2.3.3.5 Evaluation of the Minimum Number of
Stages Necessary to Adequately
Reflect the Pipeline Dynamics 50
2.3.3.6 Construction of the Downstream
Dynamics for the Proposed AGI
Simulation 50
2.3.4 Interstage Pipework Modelling 54
2.3.5 System Signal Conditioning 55
2.4 Discuss ion and Validation of the AGI Simulation 56
References 65
Nomenclature 67
3.1 Introduction 71
3.2 Ziegler-Nichols Ultimate Method 72
3.3 The Modified Ultimate Method 75
3.4 Phase Margin Compensation 82
- vii -
Page No.
Page No.
6. PRACTICALEVALUATION
OF CONTROL
TECHNIQUES
USINGAN
EXPERIMENTALTEST RIG 224
7. CONCLUSIONS 269
References 275
APPENDICES 276
AI PROGRAMS
COMPUTER 276
Page No.
AIII ALTERNATIVE
DESIGNMETHODS
FORUSE IN AGI STATION
CONTROL 368
AIII. 1 An Alternative Method of Designing SISO
Proportional Plus Integral Controllers Using
Approximate Models 369
AIII. 2 A Digital Alternative to Control System Design 385
-1-
CHAPTER1
INTRODUCTION
L
discovery of the North Sea fields and it now supplies over sixteen
from the offshore reserves via production platforms and supplied to the
refining and then feeds it into the 36"/42" diameter national transmission
country.
St. Fergus is the largest reception terminal comprising 17 Rolls
Royce RB211 controlled compressors. Typical flowrates through St. Fergus
are in the region of 100 Million sft3/hr with the outlet pressure being
typically 75 bar G. As a direct result of these large volumetric flow
to
co
ception
two Liquid Natural Gas (LNG) plants at Dynever Arms in Wales and the
from the national transmission system pipeline during the summer months
holder stations. When the demand for gas becomes excessive during the
winter months the LNG is vaporised and exported back into the national
The Isle of Grain site is by far the larger, comprising six vaporisers
supplies gas to the twelve British Gas Regional Authorities via some
3,500 miles of high pressure pipeline. The gas is extracted from the
200 AGI's throughout the United Kingdom, each one capable of passing up
flow rate. Each station is monitored from the regional Grid Control
Centre which has the facility to adjust the flow set points for closed
loop control, and open the loop to control directly the position of the
350 lbf/in2 and 550 lbf/in2 G to ensure continuity of supply and limit
V
I-
to >b
c 4-3
1-4
c:
cr-
S-
c
0
o
NC 4-3
to O
Q) "r.
S- 4J
Cl- it
E+- 4-3
O N1 N
U . I-
S-
(A
w
0-S.
-
E
L- 4-)
0 N
NC >
v) O L')
G) "r
i 4)
G (ö 0
E 4J .r-
O v) (A
V N
. I-
E
ä-
r
(ß
C
0
o . r.
'r. CO 4J
+-) c b
n. "r-
a) E
U
()
c4-) a) N
"1
O CD C:) Kt
aý r. 9.0 Ln mNO
S .0
N
N
C)
S..
0
NOO oööö0
dO CO tz Ict N
vr
-6-
these stations is typically 10" WGto 30" WGand represents the final
pressure reduction.
The rising consumption of gas in recent years has not only
increased the average flow rates through the AGI's but has also enlarged
consisting of single stream operation with first stage pressure cut and
second stage volumetric with high and low pressure overrides. The main
equipment.
d) Poor fault detection and isolation.
stage pressure control and use the second regulator for the
zones.
In 1980, a working party was set up to investigate the application
strategies.
iv) To reduce revenue costs by changing the maintenance philosophy
minimum.
The work involved within the scope of this text addresses parts
raising the high pressure override by 205 Kn/m2 (30 psi). An estimate
aspect alone.
characterised the dynamics of the first stage pressure cut using a first
network. At the same time this first order relationship was taken by
Brown and Todd [1.4] and used to form the basis of a stability analysis
which will solve the stability problems and improve station performance
irrespective of the individual site's topology and/or construction.
- 10 -
an AGI station.
ranges.
The study commencesby first considering the hardware and
can be assessed.
Chapter 3 presents a controller tuning strategy which uses an
ideal relay to automate the Ziegler-Nichols [1.5] approaches presently
which most affect the system's performance and to assess its stability
stations. The test rig provides a means by which the controller design
References (Chapter 1)
CHAPTER
2
MODELFORAN ABOVEGROUND
INSTALLATION
- 14 -
2.1 Introduction
upon real plant. Amongthe problems that may be encountered are excessive
tune the control schemes and/or study the plant's behaviour are carried
with demand. Finally the operation of all tests are limited within a
of the process.
The word modelling, in an engineering context, has two principal
meanings. The first is associated with physical models where actual hard-
tunnel testing of aircraft and towing tanks for ship design are examples
will then represent the behaviour of the system. These equations, together
- 15 -
or, indeed, the effects of varying any parameter within the jurisdiction of
the designer.
of the plant and this, in itself, can be a formidable task. The dynamic
equations are inherently more complex than the corresponding steady state
relationships (to which they must reduce as a special case) and their
formulation demands a knowledge of, or at least a familiarity with, very
this and the unrelenting factor of time, some approximations are, therefore,
inevitable even at this stage and it is largely a question of judgement
based on personal, or colleagues experiences.
framework to simulate any of the 200 AGI's that exist in practice. More-
of the model.
The flow controller set-point is adjusted remotely from the grid control
ýý
4) vo
0 4J CC
a E
3 vý Co
0N a)
a)
(1) E N
v
"r
LN
L +' 0 I--
NC
> "r
a)
O0 c r0r- a
m
54-3 "ý0)0
tp ii
41
+b Q) C
NV) 0 O
V
N
tio
4)
N
S-
H
Eo
ro4,
asp
ir
4) M
mo N Q1
,- "r Q. N
.4-
c +ý
"r- co O
w 4J
CL.
O
Cr
0 tu
CL
I-
N c)
4)
C cl)
C.i
"r L
OO
a>E
4-3 ns c>
0) i 0
Q) 4-- S.
bý CV
NN C IN
0
"r U
S.- li.
I-
C)
U 4)
"r- 4-,
4-
-
ia
O
- 18 -
spi SP2
Valve 1 Valve 2
a. Pressure Control
Orifice
plate
b. Volumetric Control
of the high pressure overrides failing to work then ultimately the stream
shut valve.
2.2.1 Regulators
main types of control valve, Fisher's V25 (generally NTS's : typical flow
angular rotation of the ball, thus varying the aperture, machined into the
- 20 -
Cr,
arran
ball, available for gas flow. Its maximum flow capacity is approximately
30% greater than that available through other types of regulator of the
same diameter.
Fisher's Jetstrear regulator (2.3) is available in sizes between
cylinder via hydraulic fluid, applying pressure to the solid rubber inner
bung which expands radially to decrease the annular area within the valve
body and reduce the flow. Because the relationship between the valve stem
separate factors (2.4) based on the results of static and dynamic tests,
these being: -
regulator.
- 22 -
Rubber
Air in diaphragm
Solid arrangement
rubber
bung
many different types and sizes of control valve that occur within the
syster in practice.
steady state flow rates of gases through the many different types and
cv 2.1
.....
derived from Bernoulli's equation and the continuity equation and differing
only in the pressure term that is incorporated to describe the gas density
effects, i. e.
to describe data collected from air tests upon particular control valves
(2.7). Most of these formulae are intended for use over a restricted range
of pressure drop conditions and a more general expression to cover the flow
the transition in flow regime which occurs at a critical ratio of inlet and
of this "Universal gas sizing equation" within the proposed valve model
output flow would be dependent upon the surrounding system pressure (psi
Absolute) and temperature T°(R) conditions and the various constants
position; the first indicating the basic flow capacity of the valve for
the critical drop, whilst the latter measures the extent of the pressure
recovery of the valve. The inclusion of constants C2 and G allows for the
values. of C2 and G for some of the more commonly encountered types of gas.
P2<0,02
i
A Pf A ýlý
Q= 59.64 Cv Pl 2.4
.....
The coefficient Cg is dependent upon the critical flow (Qc) through the
regulator, that is, the maximumflow through the valve at a fixed stem
Qc = C2 Cg Pi 2.5
.....
Figure 2.6 illustrates the use of equations 2.4 and 2.5 in determining
of 1000 psiA.
Although the above methodology is presented in terms of imperial
equation for any regulator is the recording of the device's steady state
flow profile. Figure 2.7 illustrates the flow characteristics of a 10"
V25 throttling ball valve, derived from manufacturer's details. By
100
Incompressible
flow
75
Critical
flow
OOO
50 Measured
000 data
/O 0
00 O
O
O
25
ýdýj
3z,
0
0 0.2 0.4 0.6 0.8 1.0
/67
Fig. 2.6: Fisher V25 70%open characteristic; showing application of Universal Gas
equation to determine Cv and Cg coefficients
0
-28-
VALVE TRAVEL(%) CL
0 w
cx
°2 O O
r
N
O
N
N
w
cy-
a
J
+J
I-
00
W
cy-
W U
U-
U (0
Cl s
0
Ln W 3
n I-
0
ýO
o,
a,
Lý
tn N
CV G1.
p
Q) Lo
Ln rtsC
iY
o
N
M
4-4-
00
S-
CL
O
N
'F- N
G) d
Ln ro E
ý ro
N 0!
+)
bN
ýö C
v3
++ o
NM
C1
LL-
000°o0000°
ý` f
O 47 %0 -t rn
I
29
the valve's stem position can be determined. Figure 2.8a displays these
maximumvalues, where
Cv (100%) = 2760 ) based upon
' imperial
and C9 (100%) = 56600 measurements
II. 1 (2.10) which includes a report upon the modelling of a 4" Axial flow
3
° 90
U-
80
u..
O
ü 70
60
W
a
50
40
30
CG% CV%
20
10
b 20 30 40 50 60 70 80 90 100
0
PERCENTAGE
OF TOTALTRAVEL
al a2 a3 av a5
4 490 10,100
6 1,140 22,300
8 1,680 34,400
10 2,760 56,600
12 3,690 75,600
16 5,820 119,000
1 14 297
2 51 796
4 86 2,087
6 300 5,371
8 765 13,530
mission system at present, the most prevalent being the Fisher pneumatic
inlet control pressure (or current) and valve stem position, is often
stem from one extremity to the other are typically 3-15 psig, these
to the convertors to permit greater flowrates into and out of the chamber
by working from larger pressures.
- 33 -
equipment being tabulated in Figure 2.11. All measured inputs and outputs
analysis techniques was obtained for both the charging and discharging
conditions, the resulting system time constants being 0.93 seconds and
Air
supply
Fairch
I/P col
Actuator
pressure
Steam di
transduci
C "ý
E
CL
O of
CL
t\
""- LO tD ko
f\ Ul)
V O O O
p
0 U
O O O
ý
v1 N = CO ZA N rr-
M M rn
O Ö OO '.0 0
"ý "O qzr "O I[)
S
cf
44 O(V I CD 1 Or- 1
0
O Q1 C) Q)
" 4- >bm I ß 4) ce
4) 4.. a + to i )4Ä
4-3 a) i«- i"r- S- -r- o
4A a
N GJ II. CJß C. O'3 d
+) CCE CCE CCE
"r- to GJ "r- CO G1 "ý to d 4)
U
S- JmI-- Jcni
o -im
4)
V X
E 0
d a) U U
M
+V r "r 0 p a
N
CL
C O C.
O N 4-3
N O r- c
ý q:r to U
N E
N d
i-/ Q1 Q) QCJ
C Q1 "r- "r
Cl) C GJ VI E N
a E Q G)
YC
"ý- i 14) O UL) 4-3
W a S- r-
M LO
O O
4--
O
N
C
O"
. I-
U
G. i U . I-
O w
P-4 4j I U . I-
of U N U
00 O co T7 ci
CD 0 CD w O.
m N
"ý 54) N 4-3 O to
F- + co S-
O 'C i "r- OE 4)
r- (D u J O r-
r40 OOO S..
t N
LG S- t 40 r- C VI
J(o MO. yl
". - C r- CN to r_ C)
to OO ýp "r i O . r.
1i(3a: NCF-- Na Lt.
- 36 -
sNN
Li
of cu
Mm
NN
OO
^^
m
1(
NN
r- m
I"1
I N.
ý
"ý.
O
Lri /r1 ON 00 O
rri
"X
1o ý. 0-
- 37 -
XK 2.7
H i+s .....
where K represents the scaling necessary to ensure that the outputs remain
times for the range of types and sizes of Fisher regulators employed.
part of the process in the simulation will reproduce the salient features
computing time.
Pipelines constitute distributed parameter systems and a
P rý
M1 M2
V
Q1 Q2
R T
to find the minimum value for n which will yield acceptable results.
One major advantage of the approach is that the resulting model is well
following: -
(i) Wall frictional forces, which are one of the major
(ii) The pressure head that occurs due to the geography of the
pipeline.
One such equation that satisfies the above criteria, and whose
accuracy has been proven in practice (2.23) over medium and high pressure
where
K' = 4.95286
gas density and the pipeline wall friction factor (f) is determined from
a Moody Chart (Figure 2.14) using the following equation which evaluates
the system Reynold's number for natural gas with a specific density (G)
of 0.6
[Q]
Re = 88802.16 2.8b
.....
steady state pressure profile at some specific flow level, under the
following assumptions (2.18): -
(i) The properties of the gas do not vary significantly over a cross
cc
LU No-0
w
W CD KZ) Ö C> io
8 w
CID
J= N
Jý UO
W O
J cD
CY O
=x (1) tC
.< (n O Q'
CL, J N
O
cr)
Z
W I
CY G)
W
1I CO O
E
a)
I--
4)
CL
O.
1 . r.
O
IýW
L
O
S-
o
V U
m
4-
i-
O a
O 0
O
x Ln
W . r.
U
L
v-
N
4J
N
rC
w
f-ýt
O
O
ww LL.
CD Co %0 Ln'-
ö00 ö öö r-
ö0 CO 0
ZCY- N 0
c2 C:) O
a
O
VV Ö
LL LL
- 42 -
Temperature
(°K)
400
300
200
100
10 20 30 40 50 60 flow (m3/sec)
Density
(Kg/m')
60
50
40
30
20
10
60 flow (m3/sec)
Gas velocity
U=K. (dP)'
M=p. V for constant specific density. The above equations are applicable
if, and only if, the Mach number of the gas flowing does not exceed 0.2.
calculated using equation 2.9 with equation 2.10 above, then the pipeline
resistor' which fits directly into the proposed pipeline modelling scheme.
This 'new' equation would have the benefit of reducing the number of
P. V = m. R. T
results in
= K. M 2.12
.....
Under the following assumptions -
(i) Negligible temperature changes occur.
and density respectively, that occurred during the testing of a 4" Axial
valve (2.10). The tests were carried out for flow variations of up to
55 m3/sec (7 Nsft3/hr), at valve differential pressures ranging from
350 Kn/m2 (50 psi) to 2400 Kn/m2 (350 psi). It is evident from these
results that only small changes in system temperature and density have
Now
RVT-
K= =p. R.T = constant
assumptions
A= P"Q
Pb being the base pressure and V the pipeline section volume. Note: Pb
the previously developed equations, 2.10 and 2.13, in the form and
flow (Q), pipeline dimensions (L, D) and the numberof sections considered
(n).
based upon an actual scheme existing within the North Thames region.
Fisher V25 throttling ball valve, see section 2.3.1, supplying 18 miles of
developed.
"o-0
Eý
cý o
_im
r-
0
0
U
a)
5ý.
C) Q)
r-
U
43
a) d)
E 73
4)
U
N E
U
0
G)
I
E
Co "r
r-- r-
U
0.
. r-
d
d
"r
Cl
+-) S C4
10
0 ý t0 "r
3
4-3
m
N
cr_I
r-
N
LL
- 47 -
Panhandle Restriction
Ku 10.904 11.145
PU 1722.0 1705.0
where
Kc = 4.907
Ti = 1435.0
Open
56
54
52
50
10 20 30 40 50 60 time (rains)
Flow rate
Msft3 /hr M3/sec
6.5
50
6.0
45. nt
5.5 le equatio
-essible
mation
5.0. 40
(mins)
Pressure
psi Kn/m2
3590
520
3580
518 1
3570
1 3560
516
3550
514
(mins)
Pressure
psi Kn/m2
3450
500.
498.
3425
nt
496
le equation
494 essible
oration
3400
492
(mi ns)
experiencing a +20% load flow change, for various values of n. Figure 2.18
illustrates the responses derived from the above test. From these
responses it was found that for 4 and above stages the differences between
stages was found in a similar study (2.16) upon a pipeline model employing
possible.
% open
56
54
52
50
ne (mi ns )
Flow Rate
Msft3/hr, m3/sec
6.5.
50
6.0
:oe
/
_. -n=1
ýý'e"'Ool"
45 ---n2
.
5.5
n8
'/_"/ n=16
5.0. 40
time (minn)
b. Valve volumetric throughput -Q
Pressure
psi Kn/mz
518
3570
3560
516
3550
514
3540
e (mins)
Pressure
psi Kn/m2
,
500. 3450.
-"-n=1
---n2
498. `ý n=4
-""-
" ýý --- n=8
3425 ýA'n= 16
,
496.
494"
3400 "' `ý --
492.
10 20 30 time (mins)
a.
a)
c
r-
a)
U
CL
N 4)
I
W
E
T
ai co
I
N
a)
a 0
U
i
r.
"r
E
cý S-
o
N N L
d U CL)
N CD
c
.ý 0
o. .r-
4)
43
N
N
N C3
N X N
d -
r
as
U
aý =
"E
"r cor- C)
C- N( CJ
C-
N U r- 0)
C9
I'ý 4J 0)
w s- LA-
4- 41
c)
r-"r
.I
x ..
.-
N
a
- 54 -
noted that since the model parameters are all dependent upon the pipe-
line's dimensions the nodes need not necessarily be equally spaced; one
determine the pipeline's steady state pressure profile using equation 2.9.
P(2) = 3410.4492
P(3) = 3391.7720
that model the pipeline's capacity, equation 2.14b, and also provide the
K(1) = 9.1499
K(2) = 9.1252
K(3) = 9.1003
K(4) = 9.0752
Now since each section is of equal volume, then the section capacity
C=1.9551
The above pipeline parameters provide one steady state starting point
valve system, Figure 2.19, affects the operation of both the first and
- 55 -
combined a small volume model of this type with a valve's flow character-
Chapter 4.
Since the sensing lines are constructed from small bore pipe, the sensing
volumes are very small. This in conjunction with the fact that the flow
rates within the sensing lines are small, and therefore the pressure
large, with respect to those of the process, that the use of a unity gain
model is permissible.
- 56 -
± Ps*, where Ps* is the transducer input range, and the output signal
2.20 was derived. Note the inclusion of the signals saturation levels
were implemented.
the form detailed in Figure 2.21, from which the multivariable nature of
the process is clearly evident. Since current policy dictates the use
system's behaviour.
(iii) Very high controller gains can be applied without adversely
U)
L.1..
S.-
L
c)
v
L
4)
0
44
v
"r
4)
0
O
4-T
U'
xc CD S..
C U
G3
ü
to
Si-
a,
"r
Z3
O
U
I---
C
C)
N
U..
- 58 -
c
0
.I
4J
N
C:
Gr.
O
4-
O
^'
W
as
fL1
T
"r
r"
r`
cv
c4
cý,
LL.
- 59 -
Kc Ti
subroutine.
Validation of the resulting AGI model was not straightforward
since the simulation was 'general' and not of any one particular situation.
In addition, no real data was currently available in a form suitable for
themselves. Over the years they had independently developed their own
accuracy of the package has been proven over a number of years and
values of the P+I controllers were selected to be those listed in Table 2.2.
Figure 2.23.
that has been carried out to provide controller settings for telemetry
from the simulations requiring only minimal adjustment when they were
754 5200
5190
752
5180
750
50 100 time (secs)
Pressure a. Interstage volume pressure - Pu
psi Kn/m2
500.02
3447.6
500.01
500.00 4 3447.5
(secs
b. Pipeline inlet pressure - PIN
Fig. 2.22: Model validation results for the AGI station; time records
(1 of 2) illustrating the response of the AGI simulations to a 35 Kn/m2
(5 psi) change in interstage volume pressures set point
-6Z-
% Open
42
40
38
36
34
32
(secs;
c. Valve stem displacements - X1, X2
Fig. 2.22: Model validation results for the AGI station; time
(2 of 2) records illustrating the response of the AGI simulations
to a 35 Kn/m2 (5 psi) change in interstage volume
pressures set point
Pressure - b3 -
psi Kn/M2
5200
750
5000
700
4800
4600
650
(secs)
3480
504
3470
502
3460
1 3450
500
50 100 time (secs
b. Pipeline inlet pressure - PIN
Fig. 2.23: Model validation results for the AGI station; time records
(1 of 2) illustrating the response of the AGt simulations to a 35 Kn/mz
(5 psi) change in pipeline inlet pressures set point
- 64 -
`,ä Open
50
40
30
50 100 time (secs)
References (Chapter 2)
2.19 Rachford Jr, H. H., Dupont, T. "A fast, high accuracy model
by
for transient flow in gas pipeline systems variational
methods". Society of Petroleum Engineers of AMIE, Paper No.
SPE4005,1972.
Nomenclature (Chapter 2)
Modelling of a Pressure Reduction System
P Pressure (Kn/m2)
P(l)'P(2)
etc. Pipeline section pressures (Kn/m2)
Re Reynold's number-
s Laplace operator
t Time (s)
T Temperature (R)
AGI Simulation
CHAPTER
3
AGI CONTROL
THE PRESENT PHILOSOPHY
- 71 -
3.1 Introduction
hardware and control theory make new operational strategies feasible for
the control of natural gas. Not unexpectedly, however, the first attempts
The main reasons for this are their successful use in a wide range of
applications and the fact that ground rules for efficient operation are
forward.
variety of methods have been suggested (3.2,3.3 and 3.4), the British
Gas approach being basically trial and error based on operator experience
due to the significant problems that arise practically. Two methods which
- 72 -
have retained their popularity are the open loop process reaction curve
method and the closed loop ultimate sensitivity method, both proposed
'step response' of the open loop system. For this to be effective the
system must be type 0, that is, contain no open loop pure integrators,
conditions are only possible when inflow matches outflow, and this
that any proposed tuning strategy must be carried out with the system in
closed loop.
The chapter commenceswith. a comparative study between two
Hagglund (3.5 and 3.6) and concludes with the application of the latter
to the AGI model developed in chapter 2, after the resulting software had
ments.
This is the value of gain (for a controller with only proportional mode
implies that the Nyquist curve of the open loop frequency response must
Ku 3.1
UT' .....
-73-
Pu were determined in the following way: tune out any reset or derivative
action from the controller, leaving only the proportional mode. Maintain
the controller on automatic, i. e. leave the loop closed. With the gain of
the proportional mode set to some low arbitrary value impose an upset on
the process (move the set point for a few seconds then return it to the
original value) and observe the responses. If the output response grows,
reduce the controller gain; if the response damps out increase the controller
can then be obtained by using empirical formulae which rely on Ku and Pu.
(i) The process transfer function must be at least third order and
(ii) For a system with long time constants the technique is a very
slow process.
(iii) If the critical gain is exceeded then the system becomes unstable.
(iv) It is difficult to automate the procedure, and perform it in such
KU G(s)
a. "Ultimate" method
Kc Ti Td
p 0.50 Ku - -
PI 0.45 Ku Pu/1.2
-
0.60 K11 Pu/2.0 Pu/8.0
PIO
and Hagglund (3.5 and 3.6) is to replace the variable gain element with an
ideal relay. The purpose of this relay is twofold, firstly the possibility
of the system going unstable is prevented since the output will be forced
G(s) = -- 3.2
.....
would only be true if the plant's frequency response behaved as a low pass
filter making the affect of all frequencies other than the fundamental
the amplitude of the relay characteristic (D) can be used to limit the
[N(A)B is purely real then the resulting limit cycle must occur when the
plant's frequency response intersects the negative real axis. Under these
conditions the ultimate period (Pu) may be read directly from the output
response. To ensure that this test is comparable with the ultimate method
- 76 -
1cba
- R(AT 7
a. I<1
G(jU-Uu)
b. G(Jl1u)I=1
IG(JWu)I >1
C.
a means of extrapolating the ultimate gain (Ku) from the closed loop
relay test data is required. Inspection of equations 3.1 and 3.2 reveals: -
Ku = rf(A) 3.4
.....
Thus by determining the factor N(A) for the particular relay employed,
then we can directly find the ultimate gain (Ku). In practice, this
amplitude (A).
The system in Figure 3.3 illustrates the hardware/software
inclusion of the plant's operating limits into the tuning scheme will
this technique less complex than PID"self-tuners (3.8 and 3.9) it also
Ku Pu
r,
C-
U
()
4)
td
a)
S
E
0
S-
4-)
c)
(/1
4-3
a)
0
4)
N
N
a)
U
4J
C
4)
U
a
N
a)
i
t0
s
4-
0
a)
tO
ri
M
U-
- 79 -
were determined from the above results and the Ziegler-Nichols look up
tables (Figure 3.1). Figure 3.4 displays the responses of the above
process described.
Kc Ti Td
p 4.845 - -
PI 4.361 5.325 -
PID 5.814 3.195 0.799
techniques (3.10) detunes the system based upon the empirical choice of
a maxinun limit, placed upon the closed loop gain of the Ziegler-Nichols
to the limit, using a suggested starting value for single input single
Kc = Kcz/n/F
Ti = Tiz/n. F
where Kcz/n and Tiz/n are the PI controller settings obtained from the
Scaled
units
1"
11 11
V
0. s.
time
0 10 20 30 (seconds)
a. Proportional control
Scaled
units
1.5
t. o
0.5
1 t"
iI
time
00 10 20 30
..
(seconds)
Scaled
units
Set point
1.5
Output
I'
1.0
I
0.5
I
0 time
10 20 30 (seconds)
method with the modified ultimate method presented above will provide a
Unfortunately because of its adaptive nature this method can be very time
The following section investigates a closed loop design method which will
determine the controller parameters based upon system gain or phase margin
plant's gain and frequency when it intersects the negative real axis,
then phase lead compensation must be added if any specified phase margin
indeed only the use of a three term controller will provide phase lead
allow for the inclusion of the integral action in the initial tuning
gain and period for the plant plus integrator system we will leave the
margin is to be found: -
Om= argil + jW. Ti) .....
3.6
- 83 -
D
S G(s)
o
a. Block diagram
1 1/Ku
N(A) V,,
u
ým
\
\
Kc(1 + sT1) designed
to establish
/
compensated frequency i
response at this point
when w=w
u
G(s)
contour
b. Nyquist diagram
IGC(jW)I-IG(jW)l 3.7
=1.....
Since only limited information about the plant plus integrator
system's behaviour is made available from the tuning exercise, Ku and Wu,
then it must form the basis for the following analysis. By designing the
the means of calculating the integrator's time constant (Ti) for any
Ti =- tan 4'rn
3.8
.....
Pu
_ tan
frequency, then we must allow for the gain of the integrator (1/Wu).
Thus
w 3.9
lGUWu)I= .....
l ='cll +
ýGc(iWu) ..... 3.10
Wu.Ti
11
Then
ICý(j4Ju)I 3.11
sinKC 1 .....
c
- 85 -
Now by placing equations 3.9 and 3.11 into equation 3.7, and
and a PID controller. At the ultimate frequency the phase will be -7,
Now for any specified phase margin the system phase must be equal to
by using the quarter decay ratio suggested by Ziegler and Nichols (3.2)
Ti = 4Td 3.15
.....
Then a unique solution exists; after some manipulation we find that
taným + (1 + tan2ým)i
Td = 3.16
'u .....
To achieve the phase margin at the ultimate frequency then the open loop
`1
Kc +j Wu. Td +-Jý-] = Ku .....
3.17
Ater placing equation 3.14 into the above and applying standard
- 86 -
3.15,3.16 and 3.18 will provide the necessary controller parameter values
needed to obtain the desired phase margin. Hagglund (3.11) takes this
work one step further by producing a look up table for tuning three term
greater flexibility that the new method provides, compared to the Ziegler-
Kc Ti Td
PI 1.143 3.386 -
PID 6.852 4.911 1.223
Scaled
units
Set point
1.5
"- Output
/
0.5
0f -, ---ý- time
0 20 30 (seconds)
10
a. Proportional and integral control
Scaled
units
1.5
1.0
0.5
- time
0 10 20 30 (seconds)
limits are not exceeded at all times. The second example involves a flow
the remote boundary pressure at Ulverston. The only means available for
3 aý
ouc
Lrl
( r. Q)
mE CD-
0 r, o.
+. º
CD
a) to=c'.j
Lt. > .- (1)
E
a)
U
r-0
i
cc
oa) o
(A (0
S- +-º G,1
G)4- i
> 4-
0 u
N
Q.
'
a
0
e
a)
i
0
i
i
a)
N
N
aý
N
O
a
O
L
a-
cJ
-C
a..i
n
4-
G) O
L
i-ý U
N -I
Q) f0
E
"n
v
-s
lp U
v V)
rn
LL.
- 90 -
line valve situated between the regulator and the boundary whose maximum
specification:
(i) Pipeline rating (at inlet) of 350 psiG, at the line valve
275 psiG.
developed for the AGI station in Chapter 2. Setting up the model with
its maximumpredicted load flow and selecting a boundary set point to
satisfy point (iv) above resulted in the following static conditions for
pneumatic hardware, but for the purposes of this work was considered to
be set to unity.
which when tuned for a 60 degrees phase margin provided the controller
parameters
Kc = 3.15
Ti = 1505
working range of the system. Figure 3.8b shows the response of the
Pressure
(psiG)
40
3501-.. _........,..,.. _.. _.. -.. _... _.. _.. _... _.. _.. _
30
200 time
(hours)
350. _.. ý .... ... ... _.. _.. _... _.. ,..... _
300.
250
200 time
01234 (hours)
above. Examination of the results clearly shows that under these conditions
the pipeline inlet pressure limit would be infringed. Two solutions were
recommended. The first was simply to lower the set point. The second was
ultimate method to the actual system, after construction, has provided both
£200,000, whereas the development of the more accurate and flexible micro-
saving.
flow control system sited at the Bishop Auckland test facility and consisted
v
0
L
Q.
r-0
a,
0
S-
0
U 'C7
41
c
L O
41 vo U
c 0 t
b
LL. O
C.
4-
O
-I--
O
4J
5-
0
r- 4-3
(0 (0 "r
ý, C
"r C U
N N C)
C rty
-aI--
C . ýC
=U
+-) (1) a
C U (cc.
u E I- b
U Cs
a a i S.. N
0 Q "r- G) "r
N co
C' C L
a1 "r
I -"
a
r""r +ý
S1-- ýý dr-
..
Q. "r
tC U
b
04-
4J
.. >0 (A
Y S- C)
(4)
1-4
N
NN
GJ tcS
N
C. ý
N
i N "'
G)
4-3 C "r
D N S-
E
N
0 Ld
O U "r .C
0 ý4-)
S- Q'
u (4-)
S. r0
E
G1 b
L) S_ CJ
co (+J
m 3 co
'O
i-
"r
2N
+ý
of
CV)
C,
1-I-
- 95 -
values into the system's critical gain and period was not straightforward,
for. Firstly the signal convertors employed had different gains, thus
BBCconvertor gains
Kcon - 3.19a
egre ti convertor gains """".
4ir.
Ku = AD 3.20
.....
flow, via equation 3.21, for insertion into the PI control algorithm.
Thus allowance for this nonlinear gain must also be made when determining
the peak limit cycle amplitude (A) for the Negretti PIPC84from the BBC
- 96 -
NC
EO
"1" U
N
"w
s. E
O aO
lt:r
C, N 4-
4-. HN
N O
O r- 0
M C., -
S. S-
4-) (
>
11 O
U i">
O
N 3
Cl- O-0
N rW
4- r
"r
r- fei
O" c0 4-)
"-- "r
4) -im vo
r
O CA CA
O
-o r
T0 GU
0- O CD "r
G. . LO U
'C M CV C a-ý
tß+ß
. r-
0E
'
{. "r
r-
a)
Cr 4-J
"r f0
4-'
LN
U
au'0a
4J
NC 0) a)
EO
c +ý
N
"r
"r U
+-3 C)
N 4
u "-,
a
nsaj
r- 4-,
aj(1)
O N
Id- - tO
44
4- 4- "r
O
O '^ N
M
C'0
LC) O S- CA
"r 04-
II 4J UO
(y "r
O U S" O
N "r 0.
C)
N G"r-
G)
cl: 43 N
CD
U,
M
0
0
O
,.', oL C)
Q"
CL m NN "-
- 97 -
had been employed), one would not expect an exact reproduction of the
- 98 -
British Gas controller parameters. However, the fact that they are of
the same order supports the validity of the test results, a point
confirmed by the site engineer. The tuned values suggested that the
British Gas values might have been designed for a 45 degrees phase
One problem that can arise when applying the modified ultimate
a. Block diagram
Where
D- Relay magnitude
E- Hysteresis width Im
Re
irE
zu
1
T(Ä)
--- ---
Point determining
1. Frequency of limit cycle
- Wu G(s) contour
2. Amplitude of Limit cycle
- Ku
b. Nyquist diagram
rE)
where sin" TAJ 3.23
` .....
1 (E] l
7, +3 3.24
(A) ITT 7ý MY .....
the relay hysteresis width small with respect to its amplitude then
value of relay amplitude will exist. Under these conditions great care
off. Consider the third order plant previously described in Section 3.4: -
1
G(s) =s+s+s+ (equation 3.5)
with a relay amplitude of 10, with those determined for various values of
hysteresis width.
% Deviation
E Ku PU in Ku
gave comparable results to the above for a type 1 system, a system containing
modified ultimate technique presented within this section was applied to the
one problem that had not been encountered previously, namely that each
allowing information from one loop to influence the tuning of the other loop
i) Ensure that the second stage regulator does not change its steady
state position.
ii) Now, tune loop 1 as if the process was a single input single
relay/integrator combination.
procedure can be repeated from step ii), but with the loop 2
controller present.
- 102 -
critical values (table 3.7) and controller settings tuned for a 45 degree
phase margin (table 2.2) were utilised to obtain the closed loop step
Ku Pu
U,
C)c
Eo
.'(. )
+-) C)
in c
ý "r
ON
UO
O (M
ä. c
cO
G) s
EU
"r
"r
"0 (/
>1
U
"r LC)
r
O
aN
L\
Q) C
rL
r'
O LC)
S-
CM
0
U (A
ý-+ O
O.. C)
\C
-
G. +3
1- L
O
NE u1
r-y "r N
NNO
S.
GJ Oa
+ý
43 d
OE
LOO
G1-r-
"0 +J 0
C co >
+.
V1 Q)
C Cý
O 4J tC
"r t 4-J
43 43 N
t0 i.
r" 4- G)
OO +3
EO
"r 0) "r
(A N
iC
º-ý O "r
cý a
< vº c
0) 0
O j_ r
LN +)
+) d) +- U
q- .CC
4-) ri
OO 0- 43
L +3 O
tlý +) f-+
O S- C)
"r}3 N
>N
aý
S.. tö Ot G1
7 1.3 43
.O .
N O00
N
a) Eo000
S.. CD o
L1 YN
I N
r- e
G M
"r
E
O 000 rn
Z NN
LL-
- 104 -
second order. Since the relay tuning method presented requires the
controller's integrator within the tuning loop is that it will now limit
cycle at a gain and frequency when the plant's phase contribution is -90
The proportional, integral and derivative gains being evaluated via the
following equations designed for any desired phase margin within the range
0-90 degrees.
Kc =
Ku Wut + ITT
- Wut . Td 2
(since ,
Td - 2wu 3.27
and .....
Ti = 4Td
10 -45
-90
0.1
-135
0.01
I 1
4-180
100
Frequency (rads/sec)
a. Plant
100.9-
10 -45
-90
0.1 -135
0.01 `i-180
--
I E-6 I E-4 IE-2 1 100
Frequency (rads/sec)
b. Compensated plant
Fig. 3.13: Open loop frequency responses of the first stage pressure
cut and PID compensator, designed to approximate an
integrator using phase margin compensation techniques
- 106 -
Ti = 4. Td 3.28
.....
11
Td =-_
u 2WO
K (s+410)2 1
3.29
4W0L + os+ oIs .....
cancel the second order dynamics of the process when C=1 exactly,
however, for the majority of c values the maximumphase error is approxi-
gain.
The application of this method to the A. G. I. stations first stage
cut from 6895 to 5171 Kn/m2 (1000 to 750 psi) whilst passing 39.3 m3/sec
(5 1.,
tsft3/hr), for a 90 degree phase margin, produced the PID controller
parameters,
Kc = 8.1898
Ti = 0.696
Td = 0.174
The PID controller was applied to the system in the derivative on output
only form (3.16) to avoid problems with derivative kick on set point
3.8 to 34.5 Kn/mz (5 psi) set point changes in both loops simultaneously.
- 107-
Nominal pressure
psi Kn/m2
10
50
5-
time
0- 0 crnnrie
i
5 10 15 20
a. PID compensated
Nominal pressure
psi Kn/m2
10
50
5ý _ r.
time
0. 10 1'5 2b (seconds)
when
a) a unit step is applied to the k'th input with only the k'th
(ISE)
amounts of interaction.
categories: -
i) -1< index <0 derogatory interaction
Td - - 0.174 - 0.174 -
TSE 115.1 571.6 59.2 379.5 39.8 278.1
Interaction 0.724
-0.995 -0.951 0.468 -0.535 0.113
Index
3.9 Discussion
presented in table 3.1 and Fletcher (3.15) show that the critical values
trade off was examined in the previous section where table 3.6 compares
those obtained using an ideal relay. From the tabulated results the
revealed.
- 110 -
i) The D/E ratio should be > 100 (3.15) to best satisfy the
width (E) must be set greater than the output's noise amplitude
then a restriction is immediately placed upon the possible
this imposition of limits upon the magnitude of the plant's output could
method and make an allowance for its gain and phase in the calculations.
since this dictates the one frequency at which system information is known.
By including various known phase lead and phase lag compensators within the
the critical values that occur when the plant is tuned over its entire
available using the phase margin design technique. However the inclusion
application to type zero systems or type one for PID. Overall the
incorporating PID control within the first stage control loop. The use
of three term control in the first stage cut gave a twenty fold reduction
in closed loop interaction over the normally used twin PI control scheme,
table 3.8. A further reduction of one fourteenth was possible by
which, because of the extra phase advance supplied by the three term
clean signal was deemed prohibitive and the cheaper option of employing
References (Chapter 3)
Nomenclature (Chapter 3)
D Relay magnitude
Kc Controller gain
Kcon Controller conversion factor
Ki Integrator gain
Ku Ultimate gain
N(A) Amplitude dependent nonlinear function
s Laplace operator
Damping factor
W Angular frequency (rads/sec)
4
CHAPTER
ShALL SIGNALANALYSIS
4.1 Introduction
with the equations in the above form would require an extensive series of
numerical solutions with no guarantee that general rules for system design
would be realised.
erable body of work, based on frequency domain and root locus techniques,
open loop (figure 4.1). Figure 4.2 displays the trajectories followed by
the upstream regulator when the stem position of the downstream valve is
clearly illustrate the changes in process dynamics that occur with operating
point as well as the relative sensitivity of the first stage pressure cut to
the quiescent volumetric flow rate through the station. In its worst case,
this behaviour manifests itself as a hunting instability between the two
regulators. Figure 4.3 illustrates this using data recorded from experi-
- 117 -
E
v
4)
N
+-) (1)
E "r Q)
G) C 4- >
i3 I--"
(OO
.J -a: > >
E
ý- ctS
Oa
N
"r C
r- 3
"r- O
+ý E
vA O
5-
W 4-
_r_
4J CS
ý "r
+.) N
Ri "r
C)
NC
NO
> "r
C +ý
"r U
rp
OO
4J 4-)
C
"r
C
00
-r- 4--)
CO 4)
+31 U
N 4)
G
CD a)
C
Ct
co 41
4- 3
0 of
4-' C
OO
to U"r
i 4-)
> C") O co
(C i "r
"r L
"C N f0
N>
UO
"r iC
+) mo
f0 r
E (1)+)
C) C`"r
0 (O N
U4-º 0
V) 0G
I-
LL
NOO
O LO
NIA
Lf)'-
118 -
N
N
d1
L
fO
4)
NN "ý
Ei to
\G) Q
'L7
G) a)
X-
00
43
4-3
c
C
cu a)
U,
M
C)
Cl)
LO 0
CV U, C
N .C
I- C
Q) 4J
o- I
X CL
N aW C)
}
U, ON O+)
OO
N r- M "r
Xp
CO r O=0
+J U"r-
U
I^1 (U Cl.
C-4m
^y ", 7 r- GJ
(C O +)
Z S"" N
ý 4-)
CY)
C c-
oo
II
+-3 UO
U C.
OC
G) OO
Zr-A
iý i
C) 0
OO a
NNOO
NN (0
ZO
Iý i i 0-. -
a)
U i'
Q: N-, ý
O
i O
U)
co _O
1ýý4.3
V1 OU
UO
ii . r-
4-
ro V)
N (A
"1"
j !ý
OO +)
lD NZ
I
NZZ0
O "F}3
04-10
"'- r-
>O7
co s a)
4-) (1)
i--i i aC)f
>(
vag
V)
4J
N
S-
tO
C)
CC
"r-
4Z
Ob
Ny
NZ,
0N
10 r
CN,
O
0.
GJ O
0 ä-`v
i
Z
r- O
4-
N ""
N
0
4ýý
--I
L
ö
r-
U') O
t0 L.ý
- 119 -
N
V
OJ
In N
rL
c) O
E N+-
N
I- Lr
4) C
It, L G)
>+3
co O
rr
0 4-
N
"r- r-
-0 to
NX
-0 (CS
L
OO
U to
G)
LC
O
(1) G
4-) >,
"w"r"
Nr
C"1"
OU
vL N "r- fz
N
i (ö
N
S- y) 4)4)
NN
N yL O C)
N n
GJ Z
L y a)
r- ro >)
E
i ()
am Ö L
G/ Or
"r C
> 3 i
L
4.3 p N
aý >) O
O rn X-
to i
4-3 O
ul 0 4-1
ro
4. ) N 0 00
A 4-J .
4J C 4-)
(J
U
N º-ý y
N 4-)
C RS
b ý v
074)
C
+- O
0 4-
O
t G)
C.
II-
ON
4-3
CN
O G)
"r- +-i
rý -
Lr
+) G)
CA "'
=-
r
r 4-
O
C,
"r
C5 --T LL.
CC U
NNMM
VI yi t
CL C In
vvn
13
N
- 12u -
between the station inlet pressure regulator, a 4" Fisher V25, and the
The latter two are not often considered in detail but imply that great care
still popular, especially since, for security reasons, these tests are
ship between the input variables and the non-linear function. Clearly,
variables relative to the operating point then equation 4.2 can be re-
- 121 -
exists. By removing the starting value from the new linear relationship
[Yo = f(xIo, X2o, X30, ... )7, equation 4.5 can then be rewritten into the
äX 4.6
Ay =äi AX1 +äf AX2 + ex3+ ...
23 .....
necessary: -
i) A description of the non-linear phenomenon.
ii) The region of interest and point of operation.
X2
xl
over the required operating range would be required. One of the more
IC
P(n - 1) =s CQ(n - 1) - Q(n)]
where
3Q(n) -aQ(n) K(n)
Kn = _ -
aP(n - 1) aP(n) 2VP(n--n
terms of Q(4)
(sC). P(3) + Qload
Q(4) = 4.8a
.....
Now placing equation 4.8a into 4.7e for Q(4) and rearranging in
terms of P(3)
(SC)3 3
(Z2- ýl
+ (sC)2. + + (sC). (3)j P(1) + 01oad
.
R(2) =J
3( ý+ ýý
(sC)2. (sC).
+ +24 +T, Iý ++ +1
K3
2. Zý
4.8e
.....
The linear transfer function relationship between the first stage
pressure P(1) and the pipeline inlet and outlet flows, Q2 and Qload
where
[T2 13---K]+sc2[
Gp1(s) (sC)3
_ - + +
K4
. 3 21ý aj\"KyJ
(T3
+ (SO +2K3 +1+1.....
T14 4.9a
and
(
Gp2(s) (SC)4 + (sC)3 I
= K22K3 + K22K4 + K32Kal
2R--ý-K
determining the pipeline inlet pressure Pin from equation 4.9 was required,
since: -
[K? ]2
Pin=P(1)+ 4.10
.....
then
Pin = P(1) + Kin-Q2 4.11
.....
where
?
Kin
KiePin
= ý-- 1)2
= KIýJ` 4.11a
.....
The flow through the valves is described using the Fisher flow
j+ ( 3Q)
QXI P1I + P2 4.13
a1 la- 1 .....
aQ Kf1. Kf. Cv p
_ LF1i-i
(I' cos(h) + Kf1. Cg sin(o)
a1
4.13a
.....
where
Cv Pr ý p21ý
ý= Kfz. ý. I I 4.13d
.....
a=6.644E-6
X3 - 5.343E-4 X2 + 0.0229 X-0.02496 4.13e
.....
aCg
- 12.42E-8 X" + 25.424E-6 X3 - 18.363R-4 X2 + 0.067 X-0.104
3- --
4.13f
.....
This choice of flow ensures that the valves operate at the most
K(1) = 9.1499
K(2) = 9.1252
K(3) = 9.1003
K(4) = 9.0752
C = 1.9951
which when placed into equations 4.8 and 4.11a resulted in the linearised
K2 = 1.0586
K3 = 1.0529
K4 = 1.0471
between the first stage pressure and associated inlet, outlet flows
stem position's
X1 = 26.8%
X2 = 29.4%
K21 =a=2.353
K23 = _ -9.522E-3
a-
must first ensure that it exhibits the same behaviour as the non-linear
version from which it was derived. The basis for comparison was the
quiescent conditions: -
i) 5 psi change in SP1 (Figure 4.6)
Z
ý--ý
a
4)
N
E
G'Y
T
"CL
v
0
to
9
LO
C.
L.
- 130 -
Pressure
psi Kn/m2
10
60
8
6 40-
4-
1 20
2
oý 0
o time
(seconds)
a. Variation in interstage volume pressure - SPu
Pressure
psi Kn/m2
0.1
0.5
00
-0.5
-0.1
j time
(seconds)
b. Variation in pipline inlet pressure - 6PIN
Fig. 4.6: Linearised model validation results for the AGI station;
time records illustrate the simulations response to a step
change in volume set point
Pressure
psi Kn/m2
40 300
20.15C
0a
-20
-150
-40-
- 300
P- time
(seconds)
a. Variation in interstage volume pressure - SPu
Pressure
40
5- 000, #000
0ý0,
0
20
Pressure
psi Kn/m2
5
3'
Q.
-3
-time
(seconds)
a. Variations in interstage volume pressure - Ou
Pressure
psi Kn/m2
Non-linear
-'-Linear
5
---Set point
0-
-51
rýtime
0 6 12 (seconds)
Fig. 4.8: Linearised model validation results for the AGI station;
time records illustrate the simulations response to a
25% step change in load flow
where tests i) and ii) use the controller settings developed for chapter 2
and are designed to examine the small scale behaviour of the linear system,
linearisation exercise.
By visual inspection of Figures 4.6,7,8 it is evident that the
two model forms respond in the same fashion. Figure 4.8 [test iii)]
Coefficient of Determination
Pu Pin
parameters was not clear and their influence uncertain. To help clarify
equation [4.6] using the root locus technique [4.7] was desirable. In this
AGI system, two initial studies were carried out in an attempt to identify
the critical features relating to the first and second stage pressure cuts.
The studies included investigating the sensitivity of each individual stage
to operating point by solving the appropriate linearised equations over its
full working range and observing the resulting parameter variations. In
an incursion into the right half of the s-plane occurred by the roots of
can be shown to be
{Ka. Kl]
+ K11. =0 4.16
.....
i
P1
Infinite
- Q2
upstream
volume
Fisher
V25
-+-- 14' 18"
,
pipeline
a. Schematic diagram
Pc
regulators' parameters, K11, K12 and K13, when the system lies within the
defined steady state boundaries are displayed in figure 4.10. The effect
these variations have upon the first stage system stability is shown in
figure 4.11a, where the critical flow rates are displayed for interstage
volume pressures within the previously defined ranges and various values
regarding the stage's stability occur at low flows and high differential
pressures across the valve, a point that is more apparent from figure 4.11b,
unstable under the given controller settings and system conditions when
1/C < 29, that is an interstage volume length of greater than 48 metres
(160 feet approx. ) assuming the pipe diameter remains unchanged. More-
- 137-
Kii
Pu
6210 step
4 ,
Kn/M2
900 step
,
psi)
0' r
0 50 100 150 200 (m3/sec)
Flow 0
05 10 15 20 25 (Msft3 /hr)
(900)
0.1
(800)
700
600
500
05 10 15 20 25 (Msft3/hr)
b. Valve parameter
s
Fig. 4.10: Linearised upstream valve parameters variation over
(1 of 2) the AGI stations working range
- 138 -
0.2
Pu
m2 (psi )
(900)
0.1
(800)
(700)
(600)
(500)
0
0 50 100 150 200 (m3/sec)
Flow Q
05 (Msft3/hr)
10 15 20 25
P1sft3/hr f13/sec
20
Ps
6900 step
,;n/m2
10 1000 step
L A)
01 0
4000 5000 6000 -Kn/m2
(Pu) interstage volume
pressure
500 600 700 800 900 1000 psi
Q
a. Individual stability margins
t1sft3 /hr m3/sec
Kn/mz
Valve differential
pressure dPv
100 200 300 400 500 psi
b. Stability/instability bound
Fig. 4.11: First stage pressure cut systems stability margins over
the full working range of the AGI station, below which
unstable behaviour results
- 140 -
Imaginary
3
Q Open loi
0 Open l oi 2
Q Nominal
Ri
-1
-2
-3
Imaginary
Real
b. Stability assessment
Fig. 4.12: First stage cuts sensitivity; root loci display the
roots of the systems characteristic equation variation
with respect to the reciprocal of the interstage
(1)
volume constant
lc
- 141 -
margins of the system. However, this would make the interstage volume
occur.
section, the sensitivity and stability of the second stage pressure cut,
figure 4.13, were investigated. This initially requires the definition
of the British Gas design limits for the second stage pressure reduction.
equation
{Kin G (s)
1+ (Gc2(s). A2(s). K21 - K23). +,, =0..... 4.17
p2 s
where
Ka
A2(s)= 1 ST2
- 142 -
Infinite
upstream Qload
MMOO'
pressure
Fisher
V25
-0--1 rile 18" ý pipeline w to
a. Schematic diagram
K21 PIN
2760,4839
step 690 Kn/m2
(400,700 step
100 psi)
6
0. ' .º
0 50 100 150 200 m3/sec
Flow Q
05 10 15 20 25 Msft3/hr
.
a. Valve parameter 3Q
K22
PIN
0.3 m2 (psi )
0 (700)
0.2
0.1 0 (600)
0 (500)
0 (400)
0
0 50 100 150 200 m3/sec
Flow. Q
05 10 15 20 25 P1sft3/hr
K2
Pin
0.3 (psi)
(700)
0.2
0.1
(600)
(500)
(400)
0
0 50 100 150 200 m3/sec
Flaw Q
05 10 15 20 25 Msft3/hr
SQ2
Valve parameter ýi
c.
n
boundaries whilst varying the second stage upstream pressure between the
limits defined in section 4.5.1 revealed that, under the controller settings
given, there was no possibility that the roots would migrate into the right
4.18
.....
where
Ka
A, (s )+
srl
sensor/interface/actuator dynamics
Ka
A2(s) (Ka = 7.252E-3)
+ sr2
- 146-
Imaginary
Rea1
represent the pipeline dynamics and have orders that are purely dependent
upon the chosen number of stages during the modelling exercise (see section
2.3.3). The selection of a 4th order pipeline model optimised the trade
off between complexity in the design and analysis stage, and modelling
accuracy.
To complete the open loop system we must add the controllers,
The open loop transfer function can now be described via the
equation
Qt(s) = GP(s). Gc(s)
P111(s) N12(s)
4.20
.....
N21(s) F422(s)
D(s)
Placing equations 4.18 and 4.19 into the above and manipulating
we get
effects certain factors have upon the overall behaviour of the system,
regarding controller structure and design. Two parameters that also affect
this situation are the individual actuator time constants; the reason for
of such regulators with new devices that could possibly promote stability
problems. The final parameter considered was the length of the interstage
Kcl 1.53
Controller KC2 29.15
design Til 0.57
Tie 1.43
Actuator T1 1.00
dynamics z2 1.00
Interstage C 3.072E-3
volume
parameters, whilst replacing all others with their nominal values enables
the calculation of the root locus pole and zero locations. Appendix 1.3
C>0.145 secs
However, the results of the above analysis are only applicable
at the operating point at which the system was linearised, and the
controllers were designed. It has already been established that
critical flow rates that bound the stable/unstable regions of AGI system
ranges.
4.6 Discussion
The stability of the AGI system over its full working envelope,
figure 4.17, indicates few problem areas as the unstable behaviour only
arises at flow rates that are below the minimum capacity of the station.
However, the stability margins are critically dependent upon the tuning
- 150 -
Imaginary s
.5
0.5
Real s
a. Kc,
-1
-2
-0.5 0
b. "C2
,5
.0
'. 0
Real s
C. 1/TIi
-4
d. 1/Tie
Imaginary
.0
,5
.0
0.5
1.0
f. -1.5
-0.5 0 0.5 I
-1.5 -1.0
Real s
e. 1/ý1
.5
.o
.5
f. 1/c2
1.0
0.5
0.0
-0.5
-1.0
-1.5
0.5
9" 1/c
Qý
I-
rt%
N
S..
N
a)
LYr L
o) O G.
4-
4- MO tC
N CL N "r
CL aa "r
ýv -P Q) C G) ýº 3
N
.4
C. O
fq r-
--N
4-
r-
U
cu
Q "r
U, QL
O lD U
O
-a r
N
i 4ý :3
N
4- C)
LL.
OL
C "r "r
G"r
r3
to
C) f3 N
0
C: "r"
M
Q "I-> U
C fý "r
Lt
+ý 3
N
r- 3
r- O
"r
a)
.. -0
QO
CD QrN
0
0 tu (D
N r-" "r
"r
"r
NC
0
C.7
¢ C'
O
N r- "r
O t'0
4- S.
4)
CD G) 0.
-O
0
I-
9-P. -
O(
QL
+- O
"r 4-
I--
"r- N
CJ
"G
(ß 4)
V) L
U
C)
N 0
n7
E
v
s Ln C) L
i3
N
- 155 -
of the station.
The reduction in stability margins that occurs with decreasing
flow - pressure relationships, figure 2.7, and secondly, the British Gas
policy for transmission valve sizing, the latter stating that any valve
order to protect the pressure of the gas supply to the regions. Inspection
of figure 4.18 illustrates the effect that sizing of the transmission valves
in this way has upon normal system operating conditions when applied to a
steady state differential pressure of 250 psi, then only 63% of valve travel
only 30% of the maximumflow possible through the valve when operating within
the system.. This implies using the valve in a more non-linear part of its
instability problems.
The above work has also confirmed that greater stability margins
will arise by making the interstage volume smaller. However, this will also
O
x
CD
O OV CD OOOn U,
s
4-3
t
cý
c
N
. r.
N
i
O
>
O
d)
"r
b
S
4)
N
r (J
r- C
"r O
r) > "r
i U-o
"r C
r-OU O
G
E
"r
NO
"r C
N
NN
>'C
F-- C
(z O
Q1
CC
O "r
"r 4-'
N tic
NL
"r Q)
a
ýn O
i Q)
4
N
r0 N
C.7 C)
U
CD 0) co LO M 0 (N "r
4J
O
i
i->
T- "r
LC
C] "r
ö E
x Co
0 a)
E rn
0 U-
- 157 -
the bandwidth of the first stage cut, thereby making it fast enough to
problems; however the root loci analysis has established that the system
References (Chapter 4)
Nomenclature (Chapter 4)
Small Signal Analysis AGI Sensitivity and Stability Implications
function matrix
matrix
- 160 -
S Laplace operator
X(s) )
Polynomials relating to plant transfer
Y(s) )
function matrix
Z(s) )
5
CHAPTER
APPROACH
A MULTIVARIABLE TO THE DESIGNOF
AGI CONTROL
SYSTEMS
- 162 -
5.1 Introduction
however, which by definition contains more than one input and/or output,
exercise. Moreover, the availability of more than one input and/or output
the late 1950's, this sudden and dramatic increase in activity being
computer enabling more intricate and extensive studies than were previously
are now classed as optimal control theory [5.2,5.3,5.4]. The basis for
163 -
performance criteria were well defined, the method failed to become popular
states using the state space model and information about the other inputs
and outputs.
many new design techniques including modal control [5.6] and pole-shifting
[5.7]. Both techniques basically involve the use of a feedback controller
exploit the tools and insights which have made classical techniques so
- 164 -
Uncontrollable
and
Unobservable
with one input and one output (SISO). Multivariable systems (MIMO)
are based on vector feedback theory where the system descriptions are
one input will only affect its corresponding output. This translates to
The problems associated with this particular technique arise from the
and essentially inverses of the system. Thus, like the time domain
Array (INA) method [5.8] provided a much more powerful tool in the design
elements of the open loop compensated system are greater than the sum of
the magnitudes of the off diagonal elements in the same matrix row or
possible problems that may arise using this approach, consider the scalar
feedback control of a plant with two inputs and outputs described by the
transfer function matrix [5.11].
9li(s) 912(s)
Gis) = 5.1
.....
921(s) 922(s)
- 167 -
where the elements of the matrix represent the transfer functions between
relationship between the n'th system input and its m'th output.
associated input with the top feedback loop closed and the bottom loop
(s) .
u2 _ [922(s) - 912(s). K1. [1 + K1. g11(s)] 921(s)] .....
5.2
If the top feedback loop gain is high, as is generally the case for set
where det G(s) is the determinant of the transfer function matrix. Clearly,
an extra transmission term, due to the action of the top controller, has
been added to the direct transference g22(s), and it is this term that
introduces considerable difficulties in control terms.
Repeating the above analysis with the bottom loop closed and the
top loop open, the transfer function relating first input and output can,
Thus implying that acute multivariable difficulties will arise if det G(s)
has any zero's in the right half of the s-plane, since their presence will
introduce non-minimum phase relationships into the loop transfer functions.
are minimal.
It should be noted at this point, that the following work will
U
O
I-
0
d1
.wt
E +)
d)
NC
T fC
N
N
00
.
f0 I-
"r- U
03 CL
>O
"r- 0
C.
EO
tö
Os
4-) 41
'O L
G) +)
"r "r
r- 3
C-
aN
co E
C)
Yt
UU
(0 N
.0
'C7 G)
G) s
G) +-)
N
iO
( 41
r- (CS C
(U S- C)
U C.
Vn V)
LF r G.
Or- O
"r O
V1 I-
"N
rC E
AiO
C "r O
<0 r2
N
L)
cý
"r
LL.
- 169 -
(ii) m>n: There are not enough inputs to provide unique control.
x=A. x + B. u
5.5
y=C. .....
x+D. u
then the relationship between the transfer function description of the
system and the state space with no input feedforward terms, i. e. D=0,
can be shown to be
G(s) = C. (sI - A)-1. B
C.adj(sI - A). B
_ 5.6
et s- es...
spaces with that of the system state space. Therefore controllability and
eo = [B A. B A2. B
....
Am-1.BI
m1
eo = [CT CT.AT .... CT(AT)- ]
.....
5.7
reveals
det(sI - A) = det(sI - A)
Thus the poles of the transfer function are also the eigenvalues (A) of
the system matrix. It should be noted, however, that the poles of G(s)
G(s) = 5.8
0(s) .....
Decoupling Zeros
In the scalar case the system zeros determine the residues and
hence the proportion of the system modes which will be observed in the
output. The modes themselves are determined by the manner in which the
feedforward). The zeros which appear in the transfer function and cause
state space system, zeros can be placed at will in the complex plane.
Different arrangements for coupling into the system and for extracting
which represent the system modes and the external environment. That is,
Element Zeros
function matrix G(s) are termed element zeros and play no special role
in multivariable theory.
Transmission Zeros
Thus, with increasing loop gains, the closed loop poles approach
the roots of det G(s), that is, the open loop zeros. For the transfer
function matrix the zeros are determined from det N(s) = 0. The finite
zeros of det N(s) are called the transmission zeros of the system.
Eigenvalues of the system which are not present in D(s) have been cancelled
Note that in the study of matrix manipulators the order of the individual
matrix
00..... qm(s)
basis of an m-dimensional complex space. The matrices W(s) and V(s) are
[5.1] that, for unity feedback, H(s) = I, the closed loop transference
- 175 -
Thus, the relationship between the open loop and closed loop characteristic
transfer functions is exactly the same in both the scalar and multivariable
cases. Note also, that both characteristic transfer functions have the
loci of the return-ratio matrix T(s) is equal to the number of open loop
unstable poles. For the case of open loop stability the net sum of
5.12, shows that in the unity feedback case system interaction can be
- 176 -
all tend towards zero as frequency increases. Let us consider the open
loop transference matrix over the frequency ranges where the use of high
A(s) = a(s). I
= x(s). I
Q(s) = A(S) 5.17
.....
Hence the open loop system transfer function is the same as its
shown that the characteristic directions of the open and closed loop
transference matrices are the same. Since for minimal closed loop inter-
action the matrix R(s) must be diagonally dominant, then either the
characteristic gains are almost equal or, that one of the characteristic
- 177-
e1, where
E= Ce1,e2,.. ej,.. em] =1..... 5.18
vector alignment has been over this frequency range is possible using the
regarding the system's gain and phases when the system's eigenvectors lie
However by using the vector set at right angles to the eigenvectors, and
noting the gain and phase changes of this set as it passes through the
system a full picture is gained which can then be used to assess a system's
design integrity. This vector set is called the Singular Value Decompositions
vary with frequency form the system's Principal gains (d) and phases. The
if the characteristic loci and principal gains of the open loop transference
matrix deviate little from each other then we have a high integrity system,
- 178 -
system to remain closed loop stable whilst being subjected to the effects
AG(s) then the robustness of the system to these changes can be evaluated
via its relative stability matrix [5.15]. That is, the transfer function
relating the disturbance input AG(s) and its effect upon the output of the
closed loop system, the principal gains of this matrix identifying the
uncertainty bounds of the system and hence illustrating the effect of plant
relating any disturbance input to the process output the system sensitivity
any multivariable process. It should also be noted how similar the scalar
out to be the same; try to make sm[Q(s)] large at low frequencies and,
dl[Q(s)] small at high frequencies. Figure 5.4 illustrates a general
Gain
W1 W2 frequency
Generally
L >_1 High gain at low frequencies required for set point following,
disturbance rejection, and robustness with respect to parameter
changes.
<1 Low gain at high frequencies required for sensor noise rejection
and robustness with respect to unmodelled parameters.
The crossover region determining stability and robustness against gain
and phase changes.
transfer function matrix are badly aligned with the standard basis
interactive system.
but also eliminates all interaction by aligning them to the standard basis
vectors. Because normal systems tend towards zero gain as the frequency
approach:
At High Frequencies
At Low Frequencies
within the low frequency precompensator reducing its affect upon high
frequencies whilst also providing the necessary gain at low frequencies
K(s) =S Kt + Kh 5.29
.....
where
K(s) = Kjz at Low Frequencies
Kh at High Frequencies
the constant gain a being adjusted to provide the best separation of the
consultation with British Gas staff the final design was chosen to
satisfy:
(i) A bandwidth in the range of 0.5 }1 Hz to achieve a fast
minimal overshoot.
Figure 5.5 presents a graphical interpretation of these require-
ments. The next step is usually to check open loop stability: however
since this had already been confirmed (see chapter 4) the design could be
9io(w) rads/sec
IE
-vu
. \\
0
loglo(w) rads/sec
IE` IE-2 " ý"ý IE2
wo,
1\1,
J
-180 Phase (degrees)
was applied.
Kh = G"1(jlO) 5.30
.....
then great care must be taken not to violate the alignment already achieved
lm(s) I 5.31
.....
1s1 Wh
Compensation at an intermediate frequency is normally only
case we are also attempting to shape the loci into some stipulated form
Log gain
requency
rads/sec)
Phase
Frequency
(rads/sec)
1 0
nm(s) _ 5.32
.....
0
i. e.
I5I; i ým
s+1.0 0
s
AL(s) = 5.34
0s+0.85 .....
s
work had been chosen to take place at a frequency higher than the desired
bandwidth, allowing attenuation affects to reduce the effect of any
whose eigenvalues, and hence SISO open loop transfer functions were
- 189
Log Gain
requency
rads/sec)
.\
Pulse
Frequency
(rads/sec)
IE-3 1 IE3
Log Gain
Frequency
(rads/sec)
Phase
Frequency
(rads/sec)
approximately:
3.1
Xi (s) 5.35
s. Es 0.16 + .....
5.9, clearly satisfy the design specification. The integrity of the design
exercise was assessed using the principal gains of the system described in
section 5.2.5. Figure 5.10 shows the system to have high integrity to
process gain and phase changes as there are no major discrepancies between
cs
where
Ncll(s) = 1.4606s3 + 34.022s2 + 39.763s + 3.1924
Dc(s) = S3 + 10.2s2 + 2. Os
Nominal pressure
psi Kn/m2,
6%
21
Time
0"
seconds)
a. SP1 only
Nominal pressure
psi 1 Kn/m21
0.5.
0 Time
. ý, / 24 (seconds)
b. SP2 only
Log Gain
nd phases
Frequency
(rads/sec)
Pulse
Frequency
(rads/sec)
the dynamics of the controller prove too complex for this simple
the previous controller was minimised using steps (i) and (ii) above to
2.11(s + 1.0) 177.1(s + 1.0)'
s s
GC(s)* _ 5.38
.....
-2.472(s + 1.3) 198.3(s + 1.0)
s s
(d), show their similarity and hence the success of the proposed
linear fashion, any nonlinearities that are present can cause problems.
- 195 -
paa1
maginary
-i. 1.
-0.5
Real
Imaginary
-1.0
0.5
-0.5 1 0.5
-0.5
-1.0
b. Minimised PI control
Nominal pressure
psi Kn/m2
ý. ý
1.0 "ý. _
6
4 lume pressure
0.5
t pressure
00 Time
Y (seconds)
Nominal pressure
psi Kn/m2
1.0
4
0.5 I
2I
0" 0 Time
(seconds)
d. Minimised PI control
a)
r-
.n
i
>
I
I
E
N
t
4-+
O
C
O
rC
4)
C
a)
E
a)
r-
a.
G
"r
r0
U
"r
4)
U
S
a
(D
Q) E
G)
.C
4-3
U
4- N
0
UO
"r S-
(0 C
E0
G1 U
N a.
rn
z
a U-
- 198 -
Analysis of the AGI system has identified two cases which could cause
where
variations.
Secondly, the presence of actuator saturation, although
is possible by
using sensors.
b) Avoiding rapid changes in actuation by slugging the
specifications.
which are normally vastly oversized, but by the flow metering. Typically
AGI's operate with orifice plates which are rated between 15 and 25 Msft3/hr,
the minimum station flow being determined by the flow measurement devices
of maximumrated flow.
Application of the multivariable controller to the nonlinear
figures 5.13 and 5.14 to 5 psi changes in regulator set points. Inspection
controller performance over the working range, and therefore no need for a
more complex adaptive control scheme to compensate for the plant nonlinear-
ities.
techniques already used and well understood in the gas industry, into the
the performance requirements. The fact that this has also been achieved
Based upon this knowledge, the following section presents a quick and
techniques.
loop stable then Davison [5.15] showed that any m*m system described by
the transfer function matrix G(s) and unit step response matrix y(t), t>0,
- 200 -
Nominal pressure
psi Kn/m2
,. ý
6
A^
4u
I
4
--- Set point
I-
20 "- Interstage volume pressure
2" Pipeline inlet pressure
0 Time
o. 23 (seconds)
a. SP1 only
Nominal pressure
I
psil Kn/m2
0 123
-. -Time
(seconds)
b. SP2 only
Nominal pressure
psi j Kn/m2j
64
4
--- Set point
21 Interstage volume pressure
...
2 Pipeline inlet pressure
0 Time
0J (seconds)
23
Nominal pressure
psi Kn/m2
6
40
`F
/" Set point
---
/
20 -"- Interstage volume pressure
2I -"- Pipeline inlet pressure
0J 0 Time
.
(seconds)
6
40
4-
20
00 Time
123 (seconds)
b. SP2 only
Nominal pressure
psi I:n/n2
6
40
4.20
--- Set point
/"
-"- Interstage volume pressure
2/ Pipeline inlet pressure
0- Time
0 (seconds)
controller
[5.17], Porter [5.18] and Owens & Chotai [5.19] into the more dynamically
CS7
Gc(S) = [P] + 5.41
0....
of the initial slopes and steady state gains of the system's open loop
step responses, therefore avoiding any of the practical problems that may
From these tests, the proportional and integral gain matrices, P and I
5.42
.....
py(-)Icul-! -,. l
[I] =
where
[ý] is a matrix of initial gradients of the step responses
Because this particular method relies upon the assumption that the
models then the tuning matrices are included to compensate for any
offered by these tuning matrices, see section 6.7, that forms the
system upon which the characteristic locus design was performed, where
i o
[uJ_
o
produced the following step response data
0* 574 -0.512
Cy] =
0.0084 0.0060
1.889 0
2.768 1.792
By placing this data into equations 5.41 and 5.42 with unitary
displays the new closed loop behaviour when both loops speed of response
psi Kn/n2
1-
Time
5 10 (seconds)
a. SP1 only
Nominal pressure
psi Kn/m2
1.0 --
6
4
0.5
Time
00 'seconds)
b. SP2 only
psi Kn/m'-
Set point
j---
4!
-"- Interstage volume pressure
0.5-
Pipeline inlet pressure
2j
I
Time
o- 1d (seconds)
a. SP1 only
Nominal pressure
1--
psý'ý Kn/M2
0.5.
b. SP2 only
arise when the use of the first order models, upon which the tuning
techniques are based, fail to provide the accuracy required for design
predictions and show the problems that can arise when the design
techniques are applied to processes that exhibit non-minimum phase
behaviour.
i) Quantify the effect all loops have on all other loops and
of the system's steady state gains, by placing the resulting values into
the extended interaction quotient (shown here for a2*2 system) to form
where Pij is the relationship between the j'th manipulated and i'th
controlled variables thus giving some insight into how these variables
index bases all of its information upon the system's steady state gains
element. This loss of information could arise from one loop being
decoupled from another or, as is the case with our particular example,
problem was provided by the Relative Dynamic Gain Array (RDGA) [5.11]
The Average Dynamic Gain Array (ADGA) [5.22] relies upon open
loosely upon the ADGAwhich compares the step responses of the system
Solving all the above problems with very little computation unlike the
state space technique proposed by Davison and Plan [5.25] which requires
the solution of a set of diophantine equations, restricting its use to
From the previous section the method which provided the simplest
coefficient described by
TEk - IEk
Ik= -- 5.45
.....
where
< Ik <0 defines bad interaction
-1
Ik =0 defines no interaction
loop closed
signals with their bias levels removed Integral of Absolute Errors (IAE)
211
action more heavily then Integral of Square Errors (ISE) [5.27] has
pairings have already been determined using the relay tuning method
and 5.15) to 1 psi changes in set point provided the performance figures
psi A Kn/M21
5-
25-
A Time
0- 0
(seconds)
-25- pressure
-51 I'
assure
v
-50
-1o
a. Both loops simultaneously
Nominal pressure
psi Kn/m2
2-
10.
1
5j :
Tine
o0 (seconds
-5
-1 b. Upstream loop only (Ui - Pu)
Nominal pressure
psi Kn/n2
20
10
p Time
10 20 30 ý" 40' 50 (seconds)
.
`
-40 "/
"'ý
-300
c. Downstream loop only (U2 - Pin)
Nominal pressure
psi Kn/m2
30 200
15 100
0 Time
!I 10 20 30 40 50 (seconds)
-30 - -2
a. Both loops simultaneously
Nominal pressure
psi Kn/m2
100
4
50-
T--v- Time
0 10 20 30 40 50 (seconds)
Nominal pressure
psi Kn/m2
S. Se -. -. _.
1. S. S. S" -
Time
10 20 30 40 50 (seconds)
Interaction 0.776
Index -0.995 -0.003 -0.999
interaction when the full closed loop scheme is employed (figures 5.17a
presented in table 5.2 illustrates this interaction (large ISE's and poor
standard control scheme to have greater stability than that of the reverse
loop, a fact that is not apparent from the interaction indices alone.
5.9 Discussion
variable (MIPM10)
controllers improved interaction suppression and speed of
response, even over the PID control scheme developed in section 3.8.
set of open loop step responses was presented and analysed, providing
discussed, and developed using the ISE performance index to compare the
various devised control schemes' ability to maintain their set point values.
The technique also provides information regarding the best input-output
supported the scheme presently employed, although great care must be taken
provides has been shown to be insufficient on its own to base this choice
The above results are all based upon the theoretical AGI
mental test rig which was also constructed to simulate the behaviour of
an AGI station.
- 1179
-
References (Chapter 5)
Nomenclature (Chapter 5)
A Multivariable Approach to the Design of
AGI Control Systems
s Laplace operator
u Plant input
y Plant output
ýc Controllability matrix
ýi Misalignment angle
ýo Observability matrix
CHAPTER
6
OF CONTROL
PRACTICALEVALUATION TECHNIQUES
USINGAN EXPERIMENTAL
TEST RIG
- 225 -
6.1 Introduction
that can be gathered about the operation of such a system prior to any
experimental test rig; the test rig providing the hardware which can then
the case of the gas industry this provides the first stage of a stringent
that of a PRS system, the major difference being the variable which is
distinct sections, such that the inlet pressures can be controlled using
separate inlet regulators and isolated using solenoids. The main section
consists of the working stream whilst the second section provides the
instrumentation supplies for the electro-pneumatic convertors required to
drive the control valves. The test rig layout is presented in figure 6.1.
Basically, the main working stream consists of two series control valves
stream conditions.
The test rig is fitted with a variety of transducers, shown
xi
Main
regulator Pact 1 Pact 2
and filter
Dal1
tube
F-M
Pressure Control Pd
transducer valve
0
I/P converter
Outlet
flow
Actuation
11
Stream Instrumentation estrictor
inputs £
m isolation regulator P11 M2
0 solenoids
S2
Ps Pu Pin
dPq
O (L) 'C3
+3 E
r0 OE
r- (0
OO G)
C) > S.
a) +3
OC
'v 4-" 3
rts4- 0
o =-v
J 12 --
0
U
Q- (A "C
3 U, "r-
04--)
ý
N Q) \
0
0 OO
0
N EO
CY)O +)
"r UN
4- E
ä to "rto
"w
"C OÜ
"r "r
5.. s. Q)
O
O {-) >
Kr CA
i C.
C 4)"r
IQ
d fo 4. -
O +- 0-0
L7 CC
r c) (
N E
X "r "r N
N OO S-
M-rd-1
C X +) N
V d"r E
V) "r
tö
O -v
p
U')
ca r-ý 0
C7 Q. r-
r
04-) d
4-J ý
"r
'v E
G. to = aý c
Cif
c cý"ý i-) "r
O aJ i to N
t1') E 0- 4F- i-' CJ
OC i-
O
Xý C. N EE
VI CL r0 ON
C7O i i. +3
a+ {/) .)
ýý c: =C
U r0 V) N
ro "r (ý E
d 0 'II N (1)
E
r- U
"r-NG N
"1-' S.. (CS
CL co O C1
0 EE
00 O G1
N
U"re-
(I) ad
N
NN
N
O
N
rý
LL.
ON 001
O
O
4)
i
OV
N Q1
N +-"i
O> fC N
L r- r- a
a0.
EE a vno
c,.) (n L r-
- 229 -
Qý "r
C "r U1
"r r U)
ö ä E
+>
r N- cl
O tC " U)
C ý- lo O N
O
U O O O
0 0 U U
O O 0 0
N- N- N- N- LL) N 00 CV 00
N t0 - ti7=\ "_\ "\
C ". O " -O O. O OO
O O C C )
" ý
qcr
^
Iti'
N I +1 11 L
4)
t0 N
a
"r O N O 4)
4- C71 CY) 0)
U +-) 4.) ( +. +3 r0 i-) +) ( 4-) +-) (
C) "r"L70 "rTT= "r'a = -0 = 43
S. 'r. c t- i "
ý N (o 3: " 3 3 cC 3 nJ
" 4) "O C. G) - C. O Z7 C. O- Cl. E
CCE CC CCE CC
"r (0 (L) "r f; G1 "r (o Q) "r fTs (L) i
Jm I- I- m I- M F- N
-i . -J -J
N CL
GJ X
I-- N
a)
r U U Q U
"r p p E C3
C CL O
O C. CV N
N Lr) LO t
(V 4-3
O C
G. G') G1 0
X "r" "r i
L. J Q) (A N (d
G)
C C) C. a E
P--4 Pr- G-
CD r_ cz LO C)
Q -14
i IC O In O
y I I I I Z
C
O CD O O O
U
'oa) V M
N
N G.
ifo
r- GJ C
M i i
"r
(t d
QJ "r" V) w .-N N
o SCC O X
(TJ W CL 4-) 41
Vf (0 fö d
Vf
X '4-
C --
b O
Y N
O
O
co
U
L
S-
O LL- i
N y \O U
U) cu CD L)
S- d
S- N
p" C- N \N
(1) N Q- C
114
"r co m M
L7 0. ý-
> C7
(1) N CQ O U
p O r" 4. )
co . -" (C r- C
co
i S- "r i "r G)
X C) X a) X 4. ) O C7 E
J ä LL
: O= oö u
,N -0 S-10 (0
N C) N > 1 r-
0 r_ o r- U 4- a C: N
C f0 C to 4- (a C
ä
NF- NF" Oc F- cm
- 230 -
to vary: -
i) Mainstream flow conditions.
can be set up using a restrictor which adjusts the bleed rate of the
stem positions, the pressure cuts across each regulator can be controlled,
flexible link between the flow measurement device and the downstream
within this flexible link, however, inlet and outlet flows and pressures
adapted by simply changing the trim to one of the many types available.
- 231 -
Figure 6.4 shows the manufacturer's data for this particular type of
amplifiers) and 20 psig (60 psig for the convertor with volume booster
similar the behaviour is when compared to that of the AGI regulator. The
relationship between the voltage input and the actuator stem displacement
is of particular importance.
positioning of the standard valve, figures 6.6 and 6.7, indicate the
Return
spring
Standard Specification
ctuator
iaphragm
Body: Wrought 316 stainless steel
Air Motor Housing: Die cast aluminium,
epoxy coated finish
Diaphragm: Nitrile
Connections: NPT screwed
Stem/Plug/Seat: 316 stainless steel
MVO: Closes with lack of air
MVC: Opens with lack of air ve
m
Working limits: 350 b$r (wwithgut shock
at 20 C); 200 C
Characteristic: Linear
A 3.10 2.60
1/2" NPT C 1.25 1.10
E 0.50 0.43
F 0.32 0.27
0.11 Illustration
H 0.13
1/4" NPT 1 0.05 0.04 approximately
N 0.006 0.005 quarter full size
Fig. 6.4 Manufacturer's data for the Platon miniature air operated
control valve ('m' valve)
- 233 -
Standard Specifications
Full scale
10
Time
p5 10 15 ZO (seconds
% Output (X)
1001
(i)
8 i)
1-9 V change in P1
2-8 VM
4 3-7 V" P1
4-6 V" P1
% Input
20 40 60 80 90 (N)
0
a. Fixed step (0.1 V)
% Output (x)
_. __0.10 V"
80 V If
---0.40
60
40
20
0-1-- 1 op % Input
0 20 40 60 80 100 (Pi)
forces, into the actuator chamber then the bilinear effect can be
reduced with the added benefit of a much faster response (figure 6.8).
integrator and employing unity feedback. The data presented in Table 6.1
shows the peak amplitude (A) and period (Pu) of the resulting limit cycles
for various values of relay amplitude (D)
of the valve's stem position,
1 0.25 1.25
2 0.51 0.95
3 0.91 0.95
Table 6.1 Resulting limit cycles of the valve's stem position when
subjected to a modified ultimate test for the tuning of
PI controllers
- 237 -
Full scale
100
80
60 ment (X)
40
20
Time
0 seconds)
a. Dynamic response
% Output (X)
10
% Input
(M)
Pu = 1.07 seconds
then the following ultimate gain and frequency values were calculated.
4D
Ku = =5.1E 6.1
irT .....
2ir
steady state and dynamic responses of the test rig were investigated to
100
80
Went (X)
60
40
20
Time
0 seconds)
a. Dynamic response
output (X)
100
80
60
40
20
°%Input
20 40 60 80 100 (M)
0
b. Static response (0.4 V steps)
slowly opened. Both the interstage volume pressure (Pu) and the station's
upstream valve fully open then the inter-stage volume pressure settled
out at approximately the inlet pressure (P5), with some small pressure
dropped across the first stage valve, the final pressure drop across the
downstream regulator being much bigger as its restriction is greater.
chapter 2.
Repeating the exercise with the upstream regulator approximately
half open and the downstream valve closed the interstage volume pressure
rig, open loop step responses were performed about the previously specified
bias levels. Data capture was performed every two seconds. The form of
from the AGI station simulation presented in figure 6.12, the only
downstream control valve and its effect upon the interstage volume pressure,
100
80
60
-PS
40-
/I
201
I/
%/
Input
25 50 75 100 (M)
100
80-
60-
40- /
/
20-
% Input
0 (M)
0 25 50 75 100
b. Downstream regulator only
% Variation of
full scale
1.5
1.0
0.5
0
-0.5
-1.0
-1.5 Time
(minutes)
% Variation of a. Pu
full scale
1.5
1.0
0.5
0
-0.5
-1.0
-1.5 Time
0 2468 (minutes)
b. Pin
% Variation of
full scale
11
1.5
1.0
0.5
-0.5
-1.0
-1.5 } Time
0 2468 (minutes)
% Variation of a. Pu
full scale
1.5
1.0
V. 5
-0.5
-1.0
Time
-1.5 'minutes)
b. Pin
Pu Fin
0 time
-1
-2
Pu Pin
1
'i
0ý
lo
time
1i
-1 16-
-1
J
-2 i -2
models derived using the method of Recursive Least Squares (RLS). The
the present AGI station SISO control policy, in order to provide a basis
for comparing all future designs. The strategy involved the two stage
exercise upon the experimental test rig using an ideal relay with unity
periods:
Variation of
full scale
% Variation of a. G11(Putih11)
full scale
-2 Time
0 1234 (minutes)
b. G21 (PintiP11)
Variation of
full scale
-1
-2 Time
0 123 4 (minutes)
0ý
-1
-2 Time
'minutes)
d. G22 (Pin''M2)
N1 6.102 -5.600 - -
+-)aý No 0.226 -0.056 0.1709 0.2167
L D2 64.00 - - -
D1 41.60 40.00 40.00 40.00
Real
a. AGI simulation
Imaginary
a 0.1-
-o -0.1
0.1 0.1
0.1 0.2 1 0r? Or2
-
i 1
-o.
-o.
-0.
-0.21
b. AGI test rig
damps out these oscillations providing good set point following behaviour.
performance.
Chapter 5 illustrated a frequency response technique, the
% Variation of
full scale
10
Time
0 (minutes)
-10 in
a. SP1 only
Variation of
full scale
10
Time
0 minutes)
-10
b. SP2 only
gain matrices based upon information gathered from the open loop step
where
The steady state gain g(O) of the discrete time process can be
evaluated via
b, + bap
a, + a2"... + 6.6
.....
h(T) = bi 6.7
.....
Performing this analysis on all the elements that constitute
the multivariable discrete time plant the matrices G(O) and H(T) can be
yield
Zk+1 = zk + T. ek 6.9
.....
The controller parameter matrices are determined from the open
time models from experimental data sets obtained from the test rig. A
comparison of the resulting models and the open loop step responses of
equations 6.6 and 6.7 the following controller parameter matrices were
evaluated.
0014086 -0.13424 -1 II1 0
[P] =
0.00910 0 n2
[0.00133
10 22577 0
C11 =
-0.08171--1 11
0.17088 0.21673 0
% Variation of
full scale
-2 Time
minutes)
a. G11 (PutiMi)
% Variation of
full scale
Time
-2 ;minutes)
b. G21 (Pin'tin11)
Variation of
full scale
-2 Time
(minutes)
2
I
-1
-2 Time
0 minutes)
d. G22 (Pin'412)
biä'Z + b2ä-Z
Gij(z) _ a1z 2
nl, r
n2 and were investigated. The resulting controller's effect on
the closed loop performance is recorded for the following load conditions:
that the use of first order model approximations of the system transfer
magnitude would reduce the overshoot and the interaction present within
the system at the cost of speed of response. Figures 6.19 and 6.20 illustrate
this effect, displaying the responses of the closed loop system with the
the proportional gain tuning parameters were fixed to 0.05, and the integral
amounts of overshoot. Figure 6.21 shows the response of the system with
loop 1 dynamics in the closed loop, a value of 0.01 providing the fastest
% Variation of
full scale
10
0 Time
minutes)
-10 411
a. SP1 only
% Variation of
full scale
10
Time
0 minutes)
-10
b. SP2 only
Variation of
full scale
10
Time
0 ninutes)
-10 111
a. SP1 only
Variation of
full scale
10
Time
0 ninutes)
-10
b. SP2 only
Variation of
full scale
10
0 Time
(mi nutes)
-10 Pin
10
Time
0 minutes)
-10
b. SP2 only
Variation of
full scale
10
Time
0 (minutes)
-10 111
a. SP1 only
% Variation of
full scale
10
Time
0 minutes)
-10
b. SP2 only
0.1896 0.0715
[I] _
-0.1495 0.1974
6.7 Discussion
test rig with those obtained from the AGI simulation show, quantitively,
that the two systems exhibit much the same behaviour. Indeed, it was
difficulties were apparent when tuning controllers for the test rig as
had been encountered when dealing with the AGI simulation. This,
open loop transference matrix at high and low frequencies using the
[P] = EG(jwn)]-'
0
CI] = Gý,iwý )"
0I
where
The methods of Koivo and Porter also utilise the steady state
gains of the system in the design of the integrator gain matrix [I],
however in the design of the proportional gain matrix [P] they both
differ from the above technique in that they use the more simply evaluated
Koivo:
-1 ro
n
[G(O)] -1
10
[I] = "
0 ý2
- 264 -
Porter:
[HT]' -ý [A(T)i 0
[P] = .
01 n2
G(am)
=
0 n2'
-1
10
[Iý G(0)
0 12
However, since the methods are based on abstract measures of
set the matrices to detune the response and ensure stability and then vary
them during the adaptive stage using Luyben's method [6.9]. This involves
the closed loop response does not exceed some prespecified value,
shoot of
i. e.
-i IIi/Fl 0
0 II2/F2
/F
"0 1
12/F2
- 265 -
upon the closed loop response of the system to various disturbance inputs.
By studying the effect the tuning matrices have upon the system, possibly
References (Chapter 6)
Nomenclature (Chapter 6)
Practical Evaluation of Control Techniques
Using an Experimental Test Rig
KC Proportional gain
Ku Ultimate gain
S Laplace operator
CHAPTER7
CONCLUSIONS
- 270 -
work which commencedin the mid seventies when research was initiated
functions are: -
and regional PRS's, there arose the need to review and upgrade, wherever
improve the efficiency of control [7.2] and it is this task that has been
considered here.
The first half of the thesis presented an analysis into the
results and those obtained from ERS and the AGI test rig shows that the
simulations are accurate for the set of test signals considered. A further
multivariable nature of the system. Based upon the relay tuning technique
proposed by Astrom [7.5,7.6] the method forces each pressure control loop
may occur when using trial and error tuning or Ziegler-Nichols ultimate
method [7.7] as is currently the case. The process of adapting the relay's
starting values before tuning can commence. Basic guidelines for this choice
output saturation
results of this study indicate that, due to the restricted size of the
interstage pipework, it is the design of the upstream pressure control
occurring mainly at low station flowrates where the gains of the regulators
have been shown to be high, making it the ideal condition at which to tune
the controller to ensure stability over the station's working range. This,
stations.
One simple solution to this problem was to utilise the extra
of this scheme and the standard controller configuration, table 3.8, clearly
meant that such controllers are looked upon unfavourably within the gas
industry.
The second half of the thesis presented an analysis into the use
been considered based upon step response testing. Results are presented in
chapters 5 and 6 for applications on both the AGI simulation, and the
- 273 -
experimental test rig, the multivariable designs providing both the high
speed necessary for interaction suppression and the large stability margins
the station's complete working range. The main problem with these
operation. These problems arise when the first order step response models,
upon which the techniques are based, are no longer sufficient to adequately
'optimum' performance.
the reasons for the lack of commercial applications have included complexity,
pressure, the assumption here being that because the systems are so very
similar, any lessons learnt in the study of one system would apply directly
in both the analysis and the controller design for this system could be
felt that the use of a single tuning parameter in the digital pole place-
the technique upon the AGI experimental test rigs SISO control scheme
condition monitoring environment which will use both past and present plant
References (Chapter 7)
Conclusions
APPENDIXI
PROGRAMS
COMPUTER
L//
PROGRAM
1
INSTALLATION(AGI)
278
TAU1=1
TAU2=1
TIME=0.0
N=0
PS=6895.0
PU=5171.25
PIN=3447.5
PD=3447.71
P(1)=3429.024641
P(2)=3410.449235
P(3)=3391.772059
P(4)=3372.991458
IF(TYP. EQ. 'M')THEN
AVAL2=-16.413
AVAL1=-130.436
C11A=2.211
C11B=1.
C12A=177.1
C128=1.
C21A=-2.472
C21B=1.3
C22A=198.3
C22B=1.
ELSE
C******
C****** RELAY TUNED SISO PI CONTROLLERS
C******
AVAL1=-1192.5016
AVAL2=-139.3319
C11A=1.5276
C11B=1.7539
C12A=0.
C12B=0.
C21A=0.
C21B=0.
C22A=29.151
C22B=0.69814
ENDI F
R(1)=-3195.146972656
R(2)=-2835.608154297
QFIN=39.329
RDOT1=0.0
RDOT2=0.0
C******
C****** MAIN SIMULATION LOOP
C******
C****** UPSTREAM CONTROLLER
C******
10 ERROR1=SP1-PU
ERROR2=SP2-PIN
CON11=C11A*(ERROR1+AVAL1*C11B)
CON12=C12A*(ERROR2+AVAL2*C12B)
MCON1=CON11+CON12
C******
C****** UPSTREAM VALVE
C******
RDOT1=(MCON1-R(1))/TAU1
X1=R(1)
C******
C****** STEM POSITION SATURATION
C******
X1=(X1+PS)/(2*PS)
IF(X1. LT. 0.0)X1=0.0
IF(X1. GT. 1.0)X1=1.0
X1=X1*100.
C******
C****** FISHER VALVE FLOW EQUATION (V25)
C******
280
C******
C****** DATA OUTPUT ROUTINE
C******
IF(TIME. GE. TPRINT*N)THEN
PRINT 25, TIME, PU, PIN, XI, X2
25 FORMAT(5(1X, F13.7))
30 FORMAT(1X, F10.4,4(1X, F9.4), 3(1X, F10.3))
IF(FILE. EQ. 'Y')THEN
C******
C****** PRESSURES (psi)
C******
PGU=PU/6.895
PGIN=PIN/6.895
PG1=P(1)/6.895
PG2=P(2)/6.895
PG3=P(3)/6.895
WRITE(15,30)TIME, PGU,, PGIN, XI, X2
ENDIF
N=N+1
END IF
C******
C****** INTEGRATION ROUTINES
C******
CALL INTEG(ERROR1, AVAL1, T)
CALL INTEG(RDOT19R(1), T)
CALL INTEG(QDIFF, PU, T)
CALL INTEG(ERROR29AVAL29T)
CALL INTEG(RDOT2, R(2), T)
CALL INTEG(Z(1), P(1), T)
CALL INTEG(Z(2), P(2), T)
CALL INTEG(Z(3), P(3), T)
CALL INTEG(Z(4), P(4), T)
TIME=TIME+T
C******
C****** COMPLETE SIMULATION LOOP
C****** GOTO 10
STOP
END
FORTRAN
ROUTINEFORLINEARISINGTHE
c******
c******
C*****k
PROGRAMME TO LINEARISE THE AGI SIMULATION
AT DEFINED OPERATING POINTS
Gýcýcýcýk*9c
REAL N1l, N12, N21, N22, KF1, KF2, Kll, K129K13, K21, K22, K23, KIN,
+ G11, G12, G21, G22, K1, K2, K3, K4
DIMENSION Gi(10), G2(10), X(10), Y(10), D(10), N11(lO), N12(10),
N21(lO), N22(10), VOL(10), ACT(l0), DUM(10), DUM1(10)
c******
c****** OPERATING POINT DEFINITION
c****** PRINT *, 'Enter Initial Flow (Msft3/hr)'
ACCEPT *, QSS
PRINT *, 'Enter Upstream, Interstage & Downstream Pressures (Psi)'
ACCEPT *, PS, PU, PIN
ce 1 krr d. 11
rr%a, 1, -,
PH2=THETA2
DCV2=6.644E-6*X2**3-5.343E-4*X2**2+0.0229*X2-0.02496
DCV2=DCV2/100.
DCG2=-12.42E-8*X2**4+25.424E-6*X2**3-18.363E-4*X2**2
DCG2=DCG2+0.067*X2-0.104
DCG2=DCG2/100.
K21=KF1*KF2*SQRT(PU*(PU-PIN))/CG2*(CG2*DCV2-CV2*DCG2)*COS(PH2)
K21=K21+KF1*PU*DCG2*SIN(PH2)
K22=KF1*KF2*CV2*PIN*COS(PH2)/(2. *SQRT(PU*(PU-PIN)))
K22=K22+KF1*CG2*SIN(PH2)
K23=-KF1*KF2*CV2*SQRT(PU)*COS(PH2), (2. *SQRT(PU-PIN))
- 285 -
C******
C****** ACTUATOR & VOLUME POLYNOMIALS
c******
ACT(1)=1.
ACT(2)=TAU
VOL(1)=-K13
VOL(2)=CVOL
C******
C**** PIPELINE INITIAL CONDITIONS
C******
PIPD=(18. /12. )*0.3048
PIPL=0.75*5280*0.3048
PIPC=3.141592654*(PIPD**2)*PIPL/(4. *14.7*6.895)
PIPK=PIPL*(QSS**2)/(735.5812*(PIPD**5))
P1=SQRT(PIN**2-PIPK)
P2=SQRT(P1**2-PIPK)
P3=SQRT(P2**2-PIPK)
P4=SQRT(P3**2-PIPK)
c******
C****** PIPELINE POLYNOMIAL
C******
K1=QSS/SQRT(PIN-P1)
K2=QSS/SQRT(P1-P2)
K3=QSS/SQRT(P2-P3)
K4=QSS/SQRT(P3-P4)
KIN=2*QSS/(K1**2)
K2=K2/(2. *SQRT(P1-P2))
K3=K3/(2. *SQRT(P2-P3))
K4=K4/(2. *SQRT(P3-P4))
G1(1)=1.
G1(2)=PIPC*(3. /K2+2. /K3+1. /K4)
G1(3)=PIPC**2. *(2. /(K2*K3)+2. /(K2*K4)+1. /(K3*K4))
G1(4)=PIPC**3. /(K2*K3*K4)
G2(1)=0.
G2(2)=PIPC*4.
G2(3)=PIPC**2. *(3. /K2+4. /K3+3. /K4)
G2(4)=PIPC**3. *(2. /(K2*K3)+2. /(K2*K4)+2. /(K3*K4))
G2(5)=PIPC**4. /(K2*K3*K4)
C******
Cýic-kýcýcýcýr FORMULATION OF AG I SIMULATION'S
C****** MULTIVARIABLE TRANSFER FUNCTION
C******
AX=50. *K11/6895.
AY=50. *K21/6895.
AZ=K22*AX
C****** X POLYNOMIAL
C******
CALL POLK(G2, DUM, KIN)
CALL POLP(DUM, GI, X)
CALL ZPOL(DUM)
C******
C****** Y POLYNOMIAL
C******
CALL POLK(X, DUM, -K23)
CALL POLP(DUM, G2, Y)
CALL ZPOL(DUM)
-LÖ6-
C******
C****** NUMERATOR POLYNOMIAL'S
SUBROUTINE POLX(A, B, C)
C***
C****** POLYNOMIAL MULTIPLICATION
C******
DIMENSION A(10), B(10), C(10)
DO 10 I=1,10
C(I)=0.
10 CONTINUE
DO 20 I=1,6
DO 20 J=1,5
C(I+J-1)=C(I+J-1)+A(I)*B(J)
20 CONTINUE
RETURN
END
SUBROUTINE POLP(A, B, C)
C******
C****** POLYNOMIAL ADDITION
C******
DIMENSION A(10), B(10), C(10)
DO 10 I=1,10
C(I)=0.
10 CONTINUE
DO 20 I=1,10
C(I)=A(I)+B(I)
20 CONTINUE
RETURN
END
SUBROUTINE ZPOL(A)
C******
C*****k POLYNOMIAL ZEROING
C******
DIMENSION A(10)
DO 10 I=1,10
A(I)=0.
10 CONTINUE
RETURN
END
- 288 -
3
PROGRAM
ROUTINEFOREVALUATING
FORTRAN THE
AGI'S CHARACTERISTIC
EQUATION
- 289 -
c******
G****** PROGRAMME TO DETERMINE THE AGI SIMULATION'S
C****** CHARACTERISTIC EQUATION
C******
CHARACTERk4 PARA, CHAR
REAL D(20), X(20), Y(20), G(20), NUM(20), T(20), R(20),
+ P(20), KC1, KC2
C******
Ck***** INPUT OF PARAMETER'S NOMINAL VALUES
C******
PRINT *, 'ENTER KC1, KC2, T1, T2, TI1, TI2, C'
ACCEPT *, KC1, KC2, T1, T2, TI1, TI2, C
R(1)=KC1
R(2)=KC2
R(3)=1/TS
R(4)=1/T2
R(5)=1/TI1
R(6)=l/T12
R(7)=1/C
C******
C****** CALCULATE CHARACTERISTIC EQUATION'S
C****** ASSOCIATED WITH EACH PARAMETER
C******
N=0
1 FORMAT(A)
CALL POLYPLUS(T, L, R)
DO 5 N1,7
IF(N. EQ. 1)PARA='KC1'
IF(N. EQ. 2)PARA='KC2'
IF(N. EQ. 3)PARA='RT1'
IF(N. EQ. 4)PARA='RT2'
IF(N. EQ. 5)PARA='RTI1'
IF(N. EQ. 6)PARA='RTI2'
IF(N. EQ. 7)PARA='RC'
DO 10 I=1,7
P(I)=R(I)
10 CONTINUE
P(N)=0.
CALL POLYPLUS(D, L, P)
DO 20 I=1,10
NUM(I)=(T(I)-D(I))/R(N)
20 CONTINUE
PRINT *, ' '
PRINT *, 'FOR ', PARA, ' THEN'
DO 30 I=1, L
PRINT NUM=', NUM(I), ' DENOM=', D(I)
30 CONTINUE
PRINT *, 'HIT RETURN TO CONTINUE'
ACCEPT 1, CHAR
5 CONTINUE
STOP
END
290
SUBROUTINE POLYPLUS(Z, L, P)
C******
C****** CHARACTERISTIC EQUATION CALCULATION SUBROUTINE
C****** FORMULATION OF C. E
N=5
M=6
CALL POLYX(Y, N, KI, M, DUM1, L)
CALL POLYX(X, N, K2, M, DUM2, L)
CALL POLYX(G, N, K3, M, DUM3, L)
DO 20 I=1,10
Z(I)=DUM1(I)+DUM2(I)+DUM3(I)
20 CONTINUE
RETURN
END
SUBROUTINE POLYX(V, N, W, M, U, L)
C******
C****** POLYNOMIAL MULTIPLICATION SUBROUTINE
C******
INTEGER N, M, L
REAL V(20), W(20), U(20)
L=N+M-1
DO 10 I=L, 1, -1
U(I)=0.
DO 20 J=N, 1, -1
IF(N. GT. L)GOTO 20
U(I)=U(I)+V(J)*W(I-J+1)
IF((I-J+2). GT. M)GOTO 10
20 CONTINUE
10 CONTINUE
RETURN
END
- 292 -
4
PROGRAM
ROUTINEFORDESIGNINGPI CONTROLLERS
FORTRAN
BASEDUPONAPPROXIMATE
MODELS
- 293 -
C******
Ckk*kkk PI CONTROL USING APPROXIMATE MODELS
C****k* BASED UPON STEP RESPONSE DATA
c******
C******
DIMENSION T(1000), Y(1000), YMOD(1000), E(1000), SUMN(1000)
REAL K, NINIF, KI, K2
CHARACTER*20 ANS, NAME
OPEN(UNIT=2, FILE='STEP. DAT', STATUS='NEW')
5 FORMAT(A)
C******
C****** STEP RESPONSE DATA ENTRY ROUTINE
C****** PRINT *, ' ********* c******ýrýc***********************************'
PRINT *, '***** STEP RESPONSE DATA ENTRY *****'
PRINT *, ' *****************ýt*************ýký1c*******, kýl ***********'
PRINT
PRINT *, 'IS STEP RESPONSE DATA IN FILE - Y/N'
ACCEPT 5, ANS
IF(ANS. EQ. 'Y')THEN
PRINT *, 'ENTER FULL FILE NAME -'
ACCEPT 5, NAME
OPEN(UNIT=1, FILE=NAME, STATUS='OLD')
N=1
10 READ(1, *, END=15)T(N), Y(N)
PRINT *'N, T(N), Y(N)
N=N+1
GOTO 10
15 N=N-1
ELSE
PRINT *, 'ENTER NUMBER OF STEP RESPONSE READINGS'
ACCEPT *, N
PRINT *, 'ENTER DATA FROM t=0 TO t=tmax'
PRINT *, ' '
DO 18 I=19N
PRINT *, 'ENTER TIME, Y(t) FOR DATA POINT ', I
ACCEPT T(I), Y(I)
18 CONTINUE
ENDIF
C******
C,k,ýnk*** FIRST ORDER MODELLING OF STEP RESPONSE
K=(Y(N-1)+Y(N))/2.
SLOPE1=0.
NSLOPE=O
NTAU=O
DO 20 I=29N
IF(Y(I). GE. O. 632*K. AND. NTAU. EQ. O)NTAU=I
SLOPEI=(Y(I)-Y(I-1))/(T(I)-T(I-1))
IF(SLOPEI. GE. SLOPE)THEN
SLOPE=SLOPE1
NSLOPE=I
ENDIF
20 CONTINUE
THETA«(SLOPE*T(NSLOPE)-Y(NSLOPE))/SLOPE
TSLOPE-(Y(NTAU)-Y(NTAU-1))/(T(NTAU)-T(NTAU-1))
THT=(0.632*K+TSLOPE*T(NTAU)-Y(NTAU))/TSLOPE
TAU=THT-THETA
294
PRINT *, '*****ýcýc********************************************'
PRINT *, '*
PRINT *, '* 1st ORDER MODELLING OF STEP RESPONSE GIVES
PRINT *, '* *'
PRINT 30, '* ', K, ' * EXP(-S *', THETA, ' ) *'
PRINT *, '* ----------------------------
PRINT 30, '* (1+S *', TAU, ' ) *'
PRINT
PRINT *, '*********************************************** *****'
30 FORMAT(1X, A, 2(F8.3, A))
C******
C****** CALCULATION OF MODELS STEP RESPONSE
C******
DO 40 I=19N
IF(T(I). LE. THETA)THEN
YMOD(I)=0.
ELSE
YMOD(I)=K*(1-EXP((-T(I)+THETA)/TAU))
ENDIF
E(I)=Y(I)-YMOD(I)
WRITE(2, *)T(I), Y(I), YMOD(I), E(I)
40 CONTINUE
CLOSE(UNIT=2)
C******
C****** CALCULATION OF THE NORM OF THE MODELLING ERROR
C******
PEAK=1
L=1
SUMN(1)=0.
DO 50 I=2, N
IF(PEAK. EQ. 1. AND. E(I-1). LT. E(I))THEN
L=L+1
PEAK=-1
SUMN(L)=E(I-1)
ELSE IF(PEAK. EQ. -1. AND. E(I-1). GT. E(I))THEN
L=L+1
PEAK=1
SUMN(L)=E(I-1)
ENDIF
50 CONTINUE
NINIF=O
DO 60 I=2, L
NINIF=NINIF+ABS(SUMN(I)-SUMN(I-1))
60 CONTINUE
NINIF=NINIF+ABS(E(N))
C******
C****** OUTPUT OF CONTROLLER DESIGN LIMITATIONS
C*k**** BASED UPON MODELLING ERROR
C******
PRINT
PRINT *, ' *******ýk** +c***************** ºc************************'
PRINT
IF(NINIF/K. LT. 1. )THEN
PRINT '* INTEGRAL ACTION CAN BE APPLIED IN THE FORM - *'
PRINT *, '* *1
PRINT *, '* K1(1 + K2/(K1*S)) *1
ELSE
PRINT *, '* NO INTEGRAL ACTION CAN BE APPLIED THUS
PRINT *' '* PROPORTIONAL CONTROL ONLY WITH THE BOUNDS - *'
PRINT *, '* *1
ENDIF
- 295 -
DO 50 I=19N
YUP(I)=Y1(I)+EPS(I)
YDOWN(I)=Y1(I)-EPS(I)
50 CONTINUE
C****** STORE CLOSED
C****** LOOP RESPONSE DATA
C******
OPEN(UNIT=2, FILE='DATAFILE. DAT'9STATUS='NEW')
DO 70 I=19N
WRITE(2,60)T(I), YMOD(I), YUP(I), YDOWN(I), WA(I), ZETA(I), EPS(I)
60 FORMAT(7(1X, F8.5))
70 CONTINUE
CLOSE(UNIT=2)
PRINT *0
PRINT *, '*** CLOSED LOOP ***'
PRINT *, '*** BOUNDS INFORMATION IS RECORDED IN ***'
PRINT
PRINT *, '*** DATAFILE. DAT ***'
PRINT *, '*** ***'
PRINT *, '*** ARRANGED AS INDICATED BELOW ***'
PRINT *, '*** ***'
PRINT *, '*** T, YMOD, YUP, YDOWN, WA, ZETA, EPS ***'
PRINT *, '*** ***'
PRINT *, '71cß+c************************** c***********'
100 RETURN
END
APPENDIXII
PUBLICATIONS
APPENDIX NOT COPIED
ON INSTRUCTION FROM
UNIVERSITY
- 368 -
APPENDIXIII
ALTERNATIVEDESIGNMETHODS
AIII. 1
OF DESIGNINGSISO
METHOD
AN ALTERNATIVE
PLUS INTEGRALCONTROLLERS
PROPORTIONAL
USINGAPPROXIMATE
MODELS
3/u
ultimate method [1] which utilises limit cycle theory to prevent the
the system cannot limit cycle, using an ideal relay, if the order of
the process is less than third or second if an integrator and ideal relay
upon the use of approximate models to the plant's open loop step response,
-+SSr
ý(S) - (1)
.....
where
K is the plant's gain
controllers based upon the process reaction curve. The more commonly
step responses of the process and its approximate first order model with
allowed for by ensuring adequate gain and phase margins in the frequency
FF
- 371 -
closed loop design and is based upon the accuracy of the approximate
the software itself fits the process reaction curve with the simple
first order model with time delay described by equation 1.
inspection of its time variation (figure 1a), until some time T using
the formula:
Krnax
NT(E) = IE(O)I +ý IE(tk) - E(tk-1)
K=1
Kmax is the largest integer value such that K. tkmax < T; the
at the time T the step response has attained steady state conditions.
Use of this equation can cause considerable problems if the
as it sums the effects of the error over all time, therefore providing
Indeed, use of this information to predict the closed loop error bounds
373
E(t2
E(0), E(t.
time
- E(t2)I
E(tl
Magnit
t-requency
b. Open loop confidence bounds
norm and the infimum of all of their outputs used [o(s), figure 1b],
the radius of the confidence bands IGa(jw)1 ' . Noo(E), thus the magnitude
of the error Norm is used to impose limits upon the controller settings
to guarantee stability in the closed loop. In the design software
If this is not the case then the model contains insufficient accuracy to
Kl N«(E) <1
.
based upon the predicted critical gain of the process developed from the
first order lag with time delay the proportional and integral gain
Calculate the effect the controller K(s) has upon the real
where r(M) is the spectral radius of the matrix M, that is, the maximum
exercise and associated controller design upon the closed loop response
Yc(t) to a unit step input from zero initial conditions, within which
the real plant's closed loop response will lie. The bounds of the
-3/b-
K(s). (1 - H)
+ s. as
the closed loop error bounds allowing a trade off between mathematical
being
Ga(s). K(s)
H=+ass
Nt(Wa)
e(t) = flax IC(t)I (6)
1- r1t(wa) o<t<T .....
The technique outlined above was applied to two examples, the
Example 1
G1(s)
S(50) +U
and the corresponding approximate first order model as displayed in
figure 2(1). Using the infinity norm to produce the confidence bounds
0.105
K1(s) = 4.786 +
s
of this design when applied to the actual plant and its model. Not
since the first order system model obtained fitted the actual system
almost exactly.
Example 2
0.102
K2(s) = 0.477 +
s
Piagnitude
1.0
0.5
0 Time
seconds)
-0.5 system
Model
-"- Error
G1(5)* -+0.951
1 s(45.518)
format
K1 +S
providing
K1 < 22.277
point change
Magnitude
0 ' Time
0 20 40 60 80 (seconds)
Magnitude
0.5
0 Time
seconds)
-0.5 system
--- Model
-"-- Error
G2( 5) *_0.982
1 +s (4.MT
permitting the application of integral action within the controller
foniat
Kl +
point change
Magnitude
1 -----------------
0_-- -------------
".
:ý Model
Time
oI0 20 40 60 80 (seconds)
design procedure; using the method presented within this section the
uses first order models with time delay and proportional plus integral
the present controller, and reduce the closed loop confidence bounds.
these methods when the first order system models, upon which they are
the tuning parameters and predict their subsequent effect upon the
system's closed loop performance, some insight into the design of the
References (AIII. 1)
Nomenclature
K Plant gain
s Laplace operator
AIII. 2
TO CONTROL
A DIGITAL ALTERNATIVE SYSTEMDESIGN
386
plant description', but as vie shall see later the corresponding 'pulse
of the form
Xk+1 = AXk + buk
(1)
yk = SIXk . ....
time.
In pulse transfer function form, yk and uk are related by
Yk=
c'(zI - A)-'b
Uk
If necessary some of the initial bj, j = 1,2, 9 can take zero values
...
to accommodate the presence of a pure time delay.
- 387 -
System Identification
reveals that there are many sophisticated methods available, but all
essentially aim to provide the same kind of information, namely: (i) the
popular topic since the early 1960's. It is well known that, in theory,
is controllable (see chapter 5). The need either to measure all of the
use of an observer.
will consider a special case of this system where the state description
equation
mk = mk-1 + {Ykd - Yk} i4)
.....
present value of the system output as well as past values of both the
this state space model is obvious: the state has been extended from its
yk = h'Xk i5)
0....
uk =- v-'Xk (6)
.....
where
U(z) _ c[uk], Y(z) _ ý[yk] and M(z) _ F[mk] then in ý transform terms the
0 ....
where
1 [Yd(z) - Y(z)] (10)
M(z) = (1 .....
Z-1)
Using equations 9 and 10 we can now construct the block diagram
action and the standard, delay free integrator arising from the feedback
- 390 -
discrete-time filters which are the consequence of the SVF terms from
the remaining state variables.
Having justified the form of the basic PIP block diagram of"
form
bi 1 bi
b2-b1 b1 al-1 1 b2
-bq -ap
(12)
.....
which depends only on the coefficients of the plant model (i. e. equation 2)
while V is the SVF control gain vector defined in equation 7 and ß is the
- 391 -
vector
B' = Cßi, B2, ... ßp+q] (13)
.....
with Bi = di - (ai - ai_1); ao = 1; ai =0 for i>p
polynomial:
D(z'1) =1+ dlz-1 + d2Z-2 + ... + dp+qz-(P+q) (14)
.....
The complexity of choice available using equation 14 is reduced
specification is selected
design will result in a zero overshoot response whose speed and control
date [7] have shown the multiple pole closed loop specifications to
Exam le
Effectively a first order system with a time delay of two sample periods.
as
ai =-0.235736
(17)
.....
b3 = 0.625264
- 393 -
Output (x)
- Time
0246 (seconds)
Error
Time
(seconds)
0246
fo = 0.1184
(19)
.....
gl = 0.0357
g2 = 0.3484
Application of the PIP controller to the system resulted in
providing a powerful tool which requires only a limited knowledge from the
" Time
(seconds)
References
2. Young, P. C.
An instrumental variable method for real time identification
of a noisy process.
Automatica, Vol. 6, pp 271-287,1970.
3. Young, P. C.
Recursive estimation and time-series analysis.
Springer-Verlag, Berlin, 1984.