Assignment 6 - 2014
Due date(s): | 31 March 2014, in class (no late hand-ins) |
(PDF) | Assignment questions |
(PDF) | Assignment solutions |
This assignment gives you practice with cascade control and feedforward control.
Question 1 [10 = 6 + 4]
The outlet temperature from the tank is being controlled in a cascade control system, as shown below.
- What is the primary variable in the cascade loop?
- What is the secondary variable in the cascade loop?
- What is the manipulated variable in the inner loop?
- Explain whether a disturbance in the cooling water feed temperature will be removed rapidly with the cascade loop?
- Explain whether a disturbance in the cooling water feed pressure will be removed rapidly with the cascade loop?
- Explain whether a disturbance in the main feed temperature will be removed rapidly with the cascade loop?
- Draw a complete block diagram of the system indicating all the inner and outer level controllers, process blocks and disturbance blocks.
The primary variable is
T1
, the temperature inside the tank.The secondary variable is
T2
, the temperature in the jacket.The manipulated variable is the cooling water valve position.
Yes, the cooling water feed temperature affects the
T2
reading, so this disturbance will be removed quickly.Yes, the cooling water feed pressure affects the
T2
reading (which leads to increased or decreased heat transfer in the jacket due to longer or shorter residence times of the heating ), so this disturbance will be removed quickly, before it impactsT1
.No, there is no faster response when the feed temperature disturbance enters, because it will affect
T2
at the same time, or even afterT1
.As shown below.
Question 2 [12 = 3 + 9]
Consider the cascade system shown in the figure below:
- Show that the cascade loop, as drawn, is appropriate. (Don't simply write "Y" or "N" next to the criteria; explain your answers). You may assume the first criterion is met, i.e. the performance without cascade control is not suitable.
- Determine, use clear, logical reasoning, and all your prior engineering knowledge of heat transfer and fluid flow whether the cascade loop would provide performance that is "better", "worse" or "no different" to direct control of
TC
using the valve position.- the disturbance is change in the composition of the fuel (i.e. the heating value changes)
- the feed temperature increases
- the pressure of the fuel decreases
- There are 5 criteria we check,
- We assume the first is met, i.e. that the single loop performance is not acceptable.
- The secondary variable is measured. Yes, in this case the secondary variable is the flow, which is measured with a sensor, as shown.
- The secondary variable indicates a key disturbance. Yes, a change in fuel oil pressure and a change in density will be indicated by the flow sensor (depending on the technology used to measure flow).
- The secondary variable is causally affected by the valve. Yes, in this case, the valve opening and closed will vary the flow.
- Secondary dynamics are faster than the primary dynamics, Yes, flow is very rapidly controlled with the valve position, much faster than the response due to flow changes on the temperature.
- We take each disturbance in turn:
- The composition of the fuel will affect the density of the liquid, and depending on the flow sensor technology it might or might not be detected by the sensor. The change could be negligible, in which case the cascade loop performance is no different to direct control.
- The feed temperature, as before, may affect the liquid density. As shown in the above hyperlink, the equations for an orifice plate are calibrated with a specific density. However, the fuel oil temperature is unlikely to affect the heated feed temperature, indicated by
TC
, to a great extent, given the large range of temperature during combustion. So the net result is that regular loop or cascade loop performance will be no different. - The feed pressure drop will cause a reduced flow of fuel, which will be sensed and corrected by the inner cascade loop almost immediately. The
TC
temperature will barely be affected by this disturbance, so cascade control will be successful in this instance.
Question 3 [10]
A block diagram for a cascade loop is shown below.
- Derive a single transfer function from input \(Y_\text{sp2}\) to output \(Y_2\), assuming \(D_2=0\).
- Redraw the block diagram, replacing it now with your single block transfer function at the suitable place, but still incorporate the disturbance effect from \(D2\).
- What is the characteristic equation for the inner loop?
- If the inner loop has proportional-only controller for \(G_{c2}\), and \(G_v = 3\), and \(G_{p2}(s) = \dfrac{6}{2s + 1}\), derive a constraint (inequality) for the value of \(K_c\) so that the inner loop still has stable behaviour.
- Explain whether this answer matches what we have learned earlier in the course?
The single transfer function is:
\[\dfrac{Y_2}{Y_\text{sp2}} = \dfrac{G_{p2}G_vG_{c2}}{1+G_{p2}G_vG_{c2} }\]Using this single transfer function now, we can reduce the entire inner loop to a single block. This reduction helps with analyzing the stability and properties of the outer loop, because now we don't have the complexity of an inner loop any more.
The characteristic equation is: \(1+G_{p2}G_vG_{c2}\)
Stable behaviour requires the characteristic equation has roots in the left half plane:
\[\begin{split}1+G_{p2}G_vG_{c2} &= 0 \\ 1 + \dfrac{6}{2s + 1} \cdot 3 \cdot K_c &= 0 \\ 2s + 1 + 18 K_c &= 0\\ s &= -9K_c - 0.5\end{split}\]For this to be a negative root, we require:
\[\begin{split}-9K_c - 0.5 &< 0 \\ 9K_c + 0.5 &> 0 \\ K_c &> -\dfrac{1}{18}\end{split}\]We learned that the sign of controller gain, \(K_c\) should match the sign of the process gain, \(K_p\). This bound sets a minimum on the controller gain, in practice we would almost certainly tune it to be larger, and increase it above zero, in which case it matches our expectation. The number \(-\dfrac{1}{18}+\epsilon\) however does lead to a stable controller and you should check this in Simulink with the three gains of:
- \(K_c = -\dfrac{1}{18} - \epsilon\)
- \(K_c = -\dfrac{1}{18}\)
- \(K_c = -\dfrac{1}{18} + \epsilon\)
to verify your answer.
Question 4 [20 = 2 + 10 + 5 + 2 + 1]
From a previous final exam
The question considers a tank that is electrically heated. The goal is to maintain the temperature T6
as steady as possible.
We know that
- \(F\) is constant
- A 4 to 20 mA change in input to the heater causes a change in power output from 0 to 1600 kW.
- The span of the transmitter is 64°C, with corresponding outputs of 4 to 20 mA.
- If the energy input is suddenly increased by 320 kW, it results in an eventual rise of 8°C in the tank, stabilizing after 500 seconds.
- A step change in the inlet temperature, \(T_i\) also gives rise to a complete response in about 500 seconds.
- Which controller is the feedback controller, and which is the feedforward controller?
- Draw a block diagram for the system, adding all elements, variables and their units to the diagram.
- Design the feedforward controller.
- No calculations are required: is the feedback control loop stable?
- What is the purpose of having feedback control, in addition to feedforward control?
The feedback controller is
TC6
and the feedforward controller isTC3
.A diagram should include these elements:
where
- The gain \(K_m = \dfrac{20-4}{64} = 0.25\,\dfrac{\text{mA}}{\text{°C}}\)
- The gain \(G_v = \dfrac{1600-0}{20 - 4} = 100\dfrac{\text{kW}}{\text{mA}}\)
The other transfer functions require a derivation:
\[\begin{split}\rho V C_p \dfrac{dT}{dt} &= \rho F C_p(T_i - T) + Q\\ \text{At steady state}\qquad\qquad 0 &= \rho F C_p(T_{i,S} - T_s) + Q_s \\ \text{Subtract} \qquad\qquad \rho V C_p \dfrac{dT'}{dt} &= \rho F C_p(T_i' - T') + Q'\\ \text{Laplace transform} \qquad\qquad V s T'(s) &= FT_i'(s) - F T'(s) + \dfrac{Q'(s)}{\rho C_p}\\ T'(s)\left[ Vs + F\right] &= F T_i(s)+ \dfrac{Q'(s)}{\rho C_p}\\ T'(s) &= \dfrac{F}{Vs + F}T_i(s)+ \dfrac{\frac{1}{\rho C_p}}{Vs + F}Q'(s) \\ \text{Simplify} \qquad\qquad T'(s) &= \dfrac{1}{\frac{V}{F}s + 1}T_i(s)+ \dfrac{\frac{1}{\rho C_pF}}{\frac{V}{F}s + 1}Q'(s) \\\end{split}\]- The process \(G_p(s)= \dfrac{T(s)}{Q(s)} = \dfrac{K_p}{\tau s + 1}\) can be taken from the above derivation
- \(K_p = \dfrac{1}{\rho C_pF} = \dfrac{8}{320} = 0.025 \dfrac{\text{°C}}{\text{kW}}\)
- \(\tau = \dfrac{V}{F} = \dfrac{500}{5} = 100\) seconds, using the \(5\tau\) rule for first order systems
- There is no time delay, because electrical heat added will almost certainly show an immediate rise in temperature
- \(G_d(s) = \dfrac{T(s)}{T_i(s)} = \dfrac{1}{\frac{V}{F}s + 1} = \dfrac{1}{100s + 1}\), using the same reasoning as for the process transfer function
- \(G_{ff}(s)\) is derived below
The feedforward controller, \(G_{ff}(s)\) is derived so that \(T(s)\) shows no change when \(T_i\) changes. This requires:
\[\begin{split}T(s) = G_d(s)T_i(s) + K_m G_{ff}(s) G_v(s) G_p(s)T_i(s) &= 0\\ T_i(s)\left[G_d(s) + K_m G_{ff}(s) G_v(s) G_p(s)\right] &= 0\\ G_d(s) + K_m G_{ff}(s) G_v(s) G_p(s) &= 0 \\ G_{ff}(s) &= -\dfrac{G_d(s)}{K_m G_v(s) G_p(s)} \\ G_{ff}(s) &= -\dfrac{\dfrac{1}{100s + 1}}{0.25 \cdot 100 \cdot \dfrac{0.025}{100 s + 1}} \\ G_{ff}(s) &= -1.6\end{split}\]which is a simple proportional-only controller.
Yes the loop is stable; a feedforward controller does not affect the stability of the feedback loop (we proved this in the tutorial).
The feedback control loop maintains the desired set point of
TC6
when other disturbances (measured or unmeasured) affect the temperature, such as the inlet flow rate.