summaryrefslogtreecommitdiff
path: root/2132/CH7/EX7.19.a/Example7_19_page_265.sce
blob: 5fe2c0cfc1c8d1bbbeda14c8f903e004034efd1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
////Example 7.19 at page no. 265
clc;
clear;
close;
format('v',9);
//Given data :
g=9.81;//gravity constant
l=10000;//meter(length of pipe line)
D=0.2;//meter(Diameter of pipe)
p=60*10^5;//N/m^2
f=0.007;//coefficient of friction
w=g*1000;//N/m^3
H=p/w;//meter
hf=H/3;//meter(friction head loss is 1/3rd)
v=sqrt(hf*2*g*D/4/f/l);//m/s
P=w*%pi*D^2/4*v*(H-hf)/1000;//kW
disp(P,"Maximum power(kW)");