summaryrefslogtreecommitdiff
path: root/629/CH5/EX5.5/example5_5.sce
blob: ea79e81fb28f73fd2e8ac1583e3759d7af5a253d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clear
clc
//Example 5.5 RATE OF WATER RISE IN RESERVOIR
A=40; //area[mi^2]
Q1=400000; //discharge rate into the reservoir[ft^3/s]
Q2=250000; //outflow rate[cfs]
//mcv=mi-mo
//(rho*Q2)+(rho*Qrise)=rho*Q1
Qrise=Q1-Q2 //[cfs]
//1mi=5280ft, 1hr=3600sec
Vrise=Qrise*3600/(A*(5280)^2) //rise rate[ft/hr]
printf("\nThe rate of rise of water in the reservoir is %.3f ft/hr.\n",Vrise)