Example Problems and Solutions 141A–4–2. Consider the liquid-level system shown in Figure 4–28. In the system, and are steady-state
inflow rates and and are steady-state heads. The quantities qi1,qi2,h 1 ,h 2 ,q 1 , and qoare con-
sidered small. Obtain a state-space representation for the system when h 1 andh 2 are the outputs
andqi1andqi2are the inputs.
Solution.The equations for the system are
(4–32)(4–33)(4–34)
(4–35)
Elimination of q 1 from Equation (4–32) using Equation (4–33) results in(4–36)
Eliminatingq 1 andqofrom Equation (4–34) by using Equations (4–33) and (4–35) gives(4–37)
Define state variables x 1 andx 2 by
x 1 =h 1
x 2 =h 2
the input variables u 1 andu 2 by
u 1 =qi1
u 2 =qi2
and the output variables y 1 andy 2 by
y 1 =h 1 =x 1
y 2 =h 2 =x 2Then Equations (4–36) and (4–37) can be written asx# 2 =1
R 1 C 2
x 1 - a1
R 1 C 2
+
1
R 2 C 2
bx 2 +1
C 2
u 2x# 1 =-1
R 1 C 1
x 1 +1
R 1 C 1
x 2 +1
C 1
u 1dh 2
dt=
1
C 2
ah 1 - h 2
R 1+qi2-h 2
R 2bdh 1
dt=
1
C 1
aqi1-h 1 - h 2
R 1bh 2
R 2=qoC 2 dh 2 =Aq 1 +qi 2 - qoBdth 1 - h 2
R 1=q 1C 1 dh 1 =Aqi 1 - q 1 BdtH– 1 H– 2
Q– 1 Q– 2
C 1 C 2R 1 R 2Q 1 +q 1Q 1 +qi 1 Q 2 +qi 2Q 1 +Q 2 +qoH 1 +h 1 H 2 +h 2Figure 4–28
Liquid-level system.