12/09/26 Sat 10:40am
Question 1:
A two tank system has the following parameters
L15-2026-09-10-08.11.34.excalidraw
A1 = 1m2
A2 = 1m2
R2=R1=2 s/m2
qin=0.5m3/s
model equation:
q12=R1h1−h2,qout=R2h2
A1δtδh1=qin−q12
A2δtδh2=q12−qout
Compute:
- State equation
- steady state values
- eigenvalues
- stability of the system
- h1& h2 after two euler steps with ΔT=0.5s
Answer:
Substitue known values into the model equation
δtδh1=0.5−2h1−h2
δtδh2=2h1−h2−2h2
- Now model it into the state equation:
[h1˙h2˙]=[A]2×2[h1h2]+[B]2×1[qin]
h˙=[−0.50.50.5−1][h][10][0.5]
- The steady state values of h1, h2
can be found by equating qin=q12=qout=0.5
we know from qout=R2h2
0.5=2h2⟹h2=1
and from q12=R1h1−h2
we get
0.5=2h1−1⟹h1=2
h1=2,h2=1
3.Next for eigenvalues
∣[λI−A]∣=0
∣λ[1001]−[−0.50.50.5−1]∣=0
simplifying that we get
∣[λ+0.5−0.5−0.5λ+1]∣=0
and the determinant simplifies to
(λ+0.5)(λ+1)−(−0.5)(−0.5)=0
⟹λ2+23λ+21−41=0
⟹λ2+23λ+41=0
λ=2−23±49−1
⟹2−23±45=−3±5
λ=−1.31,−0.19
-
Since both the values are on the left half plane, the system is stable.
-
Euler Simulation (ΔT=0.5s) xnew=xold+Δt.δtδx
| Step | h1 | h2 | δtδh1=0.5−2h1−h2 | δtδh2=2h1−h2−2h2 | new values of h1,h2 |
|---|
| 1 | 0 | 0 | δtδh1 = 0.5 | δtδh2 = 0 | h1=0.25,h2=0 |
| 2 | 0.25 | 0 | δtδh1 = 0.375 | δtδh2 = 0.125 | h1=0.4375,h2=0.0625 |
| 3 | 0.4375 | 0.0625 | δtδh1 = 0.3125 | δtδh2 = 0.156 | h1=0.75,h2=0.219 |