Question

EGM 312: System Dynamics 5. Recall that the height deviation in the tanks of following system can be modeled as a second orde
0 0
Add a comment Improve this question Transcribed image text
Answer #1

R1400: R2700; A12; rho = 1000; g = 9.81; A = [ (-g/ (R1 *A1) ) (g/ (R1 *A1) ) ; (g/ (R1 A2)) (g/ (R1 A2)g/ (R2 A2))1: B-[1/(r

Time Required for Tank 2 to reach steady state -2928.143 ms Step Response of Tank 2 0.4 0.35 0.3 0.25 0.2 0.15 0.1 0.05 0 0 5

Text :-

R1 = 400;   R2 = 700;
A1 = 2;     A2 = 8;
rho = 1000; g = 9.81;

A = [(-g/(R1*A1))   (g/(R1*A1));
     (g/(R1*A2))    (-g/(R1*A2) - g/(R2*A2))];
B = [1/(rho*A1);0];
C = [1 0;0 1];
D = [0;0];

sys = ss(A,B,C,D);

% Converting State Space to Transfer Functions
[NUM,DEN] = ss2tf(A,B,C,D,1);   % NUM will contain two rows(2 TF) as there are
                                % 2 outputs

H2 = tf(NUM(2,:),DEN);          % Creating Transfer function(2nd) H2(S)/Qmi(s) from 2nd NUM
dominant_root = max(pole(H2));  % dominant pole is pole close to imaginary axis (close to 0)
fprintf("\n Dominant Root :%.4f ",dominant_root);

S = stepinfo(H2);   % Obtaining Step Info on H2(s)/Qmi(s)
ts = S.SettlingTime;    % Getting Settling Time
fprintf("\n Time Required for Tank 2 to reach steady state = %.3f ms",ts);

% Simulating Step Response of H2(S)/Qmi(S)
opt = stepDataOptions('StepAmplitude',5);   % Creating Step of amplitude 5
[H2,t] = step(H2,opt);
plot(t,H2)
xlabel("Time [ms]");    ylabel("Height [m]"); title("Step Response of Tank 2");
grid on
Add a comment
Know the answer?
Add Answer to:
EGM 312: System Dynamics 5. Recall that the height deviation in the tanks of following system...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT