summaryrefslogtreecommitdiff
path: root/2513/CH2/EX2.5/2_5.sce
blob: e32e6a511510168daee52b5a83c529c47529d4ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
clc
//initialisation of variables
r=10000//ft
l=400000//people
q=1000000//mgd
w=100//gpcd
w1=150//gpcd
m=50//percent
g=1.5//ft
h1=2.32//cfs
h2=139//cfs
d=12//ft
c=100//ft
l=10.8//ft
l2=0.85//ft
l1=1000//ft
//CALCULATIONS
a=r*w/q//mgd
b=l*w1/q//mgd
a1=a*g//mgd
b1=b*g//mgd
D=d*sqrt(h1/%pi)//in
D1=d*sqrt(h2/%pi)//in
L=l/l1//ft
L1=l2/l1//ft
//RESULTS
printf('the higher loss of head in small conduits at equal velocity=% f ft',L1)