summaryrefslogtreecommitdiff
path: root/797/CH5/EX5.2.s/5_02_solution.sce
blob: 48f6699d61dbda3851fb09eae7b9202385478aa3 (plain)
1
2
3
4
5
6
7
8
9
//Solution 5-02
WD=get_absolute_file_path('5_02_solution.sce');
datafile=WD+filesep()+'5_02_example.sci';
clc;
exec(datafile)
D_jet = D_jet * 10^(-3); //converting jet dia from [mm] to [m]
t = (sqrt(h_0)-sqrt(h_2)) / sqrt(g / 2) * (D_tank / D_jet)^2;
t = t / 60; //converitng time from [s] to [min]
printf("Time required for water level to drop from %1.2f m to %1.2f m is %1.1f min", h_0, h_2, t);