You are on page 1of 6

Laboratory

Report
Simulation of the fluid system

Alikhan Shambul
ID 201103219

Purpose
This laboratory session was focused on simulating the fluid
system of a water tank using Simulink.
The water tank with the
input flow rate wi(t) and the following parameters is to be
considered.

Figure 1. Schematic view of the fluid system.


Procedure
The lab itself consisted of two main parts. In the first part the
block diagram of the required fluid system was built. The testing of
the system was conducted at 3 various conditions afterwards.
(t=5000s, t=3600s, t=2400s)

Figure 2. Simulation block diagram.

As it can be observed from the following graphs the upper


subplot gives us the relation between flow rate and time. The one in
the middle gives us the change of pressure in a certain period of
time. Lastly, the third plot represents the variation of height over
time. (Codes for the graphs are presented in the appendix)
1st case (t=5000s)

Figure 3. Sketches for t=5000s


2nd case (t=2400s)

Figure 4. Sketches for t=2400s


3rd case (t=3600s)

Figure 5. Sketches for t=3600s


Looking at the graphs above similar pattern of the sketches is
observed. The way that curve behaves is same for all three cases.
But some changes in terms of maximum values (i.e. peak values)
are seen among three conditions.
1st case (5000s)
The blue colored dashed line represents inlet flow whereas
green line stands for outlet flow. At the very beginning the both
values were the same and equal to 610-3 m3/s. As 1000s time
passes flow rates start to increase but the way they increase is very
distinct. Inlet flow immediately reaches its maximum value of about
6.6510-3 m3/s and remains constant before it falls back to its
primary value. Turning our attention to the outlet flow, as it was

mentioned before the way it reaches the peak value differs from the
inlet flow, the outflow value grows quite slowly. After it reaches its
peak value at 5000s it starts to decrease in the same manner in
order to return to initial level.
The second plot represents the dependence of pressure on the
inlet flow rate. Pressure starts at initial value of 1.157105 N/m2 and
starts its increase at 1000s following similar pattern as flow rate. As
the inlet value of flow rate reaches its minimum value pressure will
start to decrease until it falls back to its initial value.
Due to linear proportionality between pressure and height,
third graphs pattern resembles previous one. In addition all the
peak values and other important points are reached at the same
time instance.
2nd case (2400s)
In this part the value of the inflow was set to 2400s. All plots
represent the same pattern as in the first case but the only
differences that are observed are changes in peak values. In three
plots the peak values have decreased in comparison with the first
condition. For instance, in the first subplot it can clearly be seen that
the outflow havent reached its expected maximum value due to
short amount of time. Furthermore, as the other variables depend
on the flow rate their maximum values were decreased.
3rd case (3600s)
In the last part of the lab session the time value for the inlet
flow was increased to 3600s. In this case once more all three
subplots follow the same pattern as in the previous conditions.
However, the peak values still differ. In fact, the maximum values
are slightly higher comparing to the previous one, nevertheless the
peak values in the very beginning are at the highest level.
Conclusion
During this laboratory session the behavior of the fluid system
was tested at a variety of conditions using Simulink. By observing
the nonlinear fluid system the dependence between peak values
and time of inlet flow was found. Also, the understanding of simple
principles fluid mechanics was enhanced.
Appendix
A=2;
rho=1000;
K=0.00005;
g=9.807;
u=14400;
C=0.0002039;
subplot (3,1,1)
plot(tt, Wi,tt, Wo,); grid
xlabel ('Time (s)')
ylabel ('Flow(m^3/s)')

text(1520,0.00633, Wo)
text(1810,0.00670, Wi)
subplot (3,1,2)
plot(tt, P1, 'black'); grid
xlabel('Time (s)')
ylabel ('Presure(N/m^2)')
text(2055, 118200, P1)
subplot (3,1,3)
plot(tt, H, 'black'); grid
xlabel('Time (s)')
ylabel ('Height(m)'
text(1510, 1.7 H)

You might also like