Must Use Matlab!! If water is drained from a vertical cylindrical tank by openin
ID: 1862880 • Letter: M
Question
Must Use Matlab!!
If water is drained from a vertical cylindrical tank by opening a valve at the base, the water will flow fast when the tank is full and slow down as it continues to drain. As it turns out, the rate at which the water level drops is; where k is a constant depending on the shape of the hole and the cross-sectional area of the tank and drain hole. The depth of the water y is measured in meters and the time t in minutes. If k = 0.06, determine how long it takes the tank to drain if the fluid level is initially 3 m. Solve by applying Euler's equation and writing a computer program or using Excel. Use a step of 0.5 minutes.Explanation / Answer
close all
clear all
clc
%%
%forward euler
y = 3;
t=0;
while (y>0 )
y = y + (-1*.06*sqrt(y))*0.5;
t= t+0.5;
end
display('time in min.')
display(t-0.5);
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.