Question: Can you please answer this question fast % liqlevel is a program to determine the liquid level in Tank 1 % hi = initial liquid

% liqlevel is a program to determine the liquid level in Tank 1 % hi = initial liquid level, ho = previous liquid level, A = cross-sectional area of the tank % R =valve resistance, delta_t=time interval, deltaF = change in inlet flow, F % delta h = change of liquid level, t=time in minutes hi = ; delta_t - delta = h = ho Il delta_h while h t h = delta_h = ho - end fprintft Figure 4.2 The MATLAB script A continuous process of liquid flow through Tank 1 is shown in Figure 4.1(a). The liquid in Tank 1 is at constant level if no change in the inlet flow, F. If there is a change in F, the liquid level will change gradually to a new constant level as illustrate in Figure 4.1(b). The level of liquid for a specific time interval can be calculated by the following equation: F h h = hold+ AR At where how is the previous liquid level. A is the cross-sectional area of the tank, R is the valve resistance, Ar is the time interval, AF is the change in inlet flow, F. and Ah is the change of liquid level to its initial level, h (Ah = h-). h, m R Tank 5.0 t. min 1.500 Fouth R (b) Figure 4.1 A continuous process of liquid flow through Tank 1 Given, the height of the cylindrical tank is 4.5 meter, he is 1.5 meter, A is 15 m, R is 0.2 min/m' and A is 0.1 minute. If suddenly the inlet flow, Frise 30 m/min at time, t = 5 min, complete the MATLAB script in Figure 4.2 to determine the time of the liquid will overflow. The example of expected program output is shown in Figure 4.3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
