Professional Documents
Culture Documents
1. Explain what happens when y1<gate level and briefly suggest a possible way to deal with
this situation.
Ans: There will be a pronounced increase in output discharge when we have a water level lower than
the gate opening. This will in turn result in an open channel flow the hydraulics of which can be
explained well with the Manning equation.
We can prevent this situation by optimising our gate opening to always be lower than the water level
which in this case could be increasing our gates limitation to extend beyond 2m < gate height < 4m.
We can assume the slope of the channel to be 0.001 and concrete finished channel (n=0.013)
2. Graph 1: y1 (water levels) vs t, for each controller (P, PI and PID)
6.00
Comparison of Water Level in P, PI & PID Controllers
5.00
Water Level (m)
4.00
3.00
2.00
1.00
0.00
78
162
0
6
12
18
24
30
36
42
48
54
60
66
72
84
90
96
102
108
114
120
126
132
138
144
150
156
4.00
Gate Level
3.00
2.00
1.00
0.00
102
156
0
6
12
18
24
30
36
42
48
54
60
66
72
78
84
90
96
108
114
120
126
132
138
144
150
162
168
150
100
50
0
36
85
1
8
15
22
29
43
50
57
64
71
78
92
99
106
113
120
127
134
141
148
155
162
169
Time Step (s)
Qin Qout
The approach is to optimise the value of the proportional gain (K) in such a way that response of
the control system is maximised whereas instability (oscillation) is minimised.
It can be seen in the figures below, as we keep on increasing the value of K, the gate height values
start oscillating and the system becomes instable. Therefore using the SOLVER tool in excel, I
have chosen the value of K to be 0.22. [Objective function in solver is the Root Mean Square
Error of the difference between water level and set point level, Decision variable is K].
4 4 4
2 2 2
0 0 0
0
18
36
54
72
90
108
126
144
162
54
144
0
18
36
72
90
108
126
162
0
18
36
54
72
90
108
126
144
162
PI Control
Using the Ziegler-Nichols method, we compute starting values for K and Ti which are around
0.22 and 120,000s respectively. However using this values will result in a sudden opening of the
gate around time step 33. Increasing the values of K and T i to 0.8 and 131,000 resulted in a
smooth operation of the gate up until the water level reaches the limit, 4.5m. Therefore, K and T i
values of 0.8 and 131,564.5 are found to be suitable values for this controller.
4.00 4.00
3.00 3.00
2.00 2.00
1.00 1.00
0.00 0.00
66
0
0
11
22
33
44
55
77
88
99
110
121
132
143
154
165
11
22
33
44
55
66
77
88
99
110
121
132
143
154
165
Time Step Time Step
PID Control
The derivative component (Td) of the control output is less sensitive compared to the
proportional gain (K) and the integral time (Td).
We can observe from above that the control output is formulated in such a way that if we keep
on increasing the values of Ti, a control system which is more or less identical to a P controller
would result, therefore our Ti values should not be significantly high and by manipulating the
values of K and Ti and Td within a range that ensures stability a final result of K = 1.7, T i =
131,705 and Td = 74,224 are computed.
7. Can you recommend further changes in the system to improve its performance?
It can be observed from graph 1 that we cant prevent the flood no matter how small or big our
values of K, Ti, and Td. Therefore, it is recommended to:
o Increase the width of our gate; an increase by one meter and half almost prevents
flooding totally.
o We can also extend the minimum height of the gate which will cut the number of
instances when water level will be lower than the drought level.