Question: Project Assignment: Tank System Simulation Objective Simulate the dynamics of an interconnected tank system using Simulink and MATLAB ODE code. This project aims to provide

Project Assignment: Tank System Simulation
Objective
Simulate the dynamics of an interconnected tank system using Simulink and
MATLAB ODE code. This project aims to provide hands-on experience in
modeling and simulating a system with two interconnected tanks.
Equations
The dynamics of the tank levels and {:h2) can be described by the following
differential equations:
A1d2h1dt2+B1(dh1dt)2+C1dh1dt=Fin1(h1,dh1dt,h2,dh2dt)-Faut1(h1,dh1dt,h2,dh2dt)+D1sin(2f1t)
A2d2h2dt2+B2(dh2dt)2+C2dh2dt=Fin2(h1,dh1dt,h2,dh2dt)-Faut2(h1,dh1dt,h2,dh2dt)+D2sin(2f2t)
where:
Ai: Coefficient for the second-order term in Tank i
Bi : Coefficient for the non-linear term in Tank i
Ci: Coefficient for the finst-order term in Tank i
Di : Amplitude of the disturbance term in Tank i
fi : Frequency of the disturbance term in Tank i
hi= Tank level in Tank i
The inflow and outflow functions are modified as follows:
Fin(h1,dh1dt,h2,dh2dt)=0.1h1+0.2(dh1dt)+0.1h12+0.05h2+0.1(dh2dt)+0.2h22
Fout(h1,dh1dt,h2,dh2dt)=0.05h1+0.1(dh1dt)+0.2h12+0.1h2+0.2(dh2dt)+0.15h22
Fin(h1,dh1dt,h2,dh2dt)=0.15h2+0.3(dh2dt)+0.05h22+0.1h1+0.2(dh1dt)+0.1h12
Feut(h1,dh1dt,h2,dh2dt)=0.2h2+0.1(dh2dt)+0.15h22+0.05h1+0.1(dh1dt)+0.2h12
Initial Conditions
Initial tank levels: h1(0)=1m,h2(0)=2m
Initial velocities: dh1dt(0)=0.2ms,dh2dt(0)=0.1ms
Constants
Croes-sectional area of Tank 1(A1):2m2
Cross-sectional area of Tank 2(A2):3m2
Coefficient for the second-order term in Tank 1(B1):1.5
Coefficient for the second-order term in Tank 2({:B2):2.0
Coefficient for the non-linear term in Tank 1(C1):0.2
Coefficient for the non-linear term in Tank 2(C2):0.1
Amplitude of the disturbance term in Tank 1(D1):0.05
Amplitude of the disturbance term in Tank 2(D2):0.03
Frequency of the disturbance term in Tank 1(f1):0.2Hz
Frequency of the disturbance term in Tank 2(f2):0.15Hz
 Project Assignment: Tank System Simulation Objective Simulate the dynamics of an

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!