summaryrefslogtreecommitdiff
path: root/1955/CH7/EX7.8/example8.sce
blob: 3fbe2c36c8ea32ef3c46a35df4da1e7e8591a2b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clc
clear
//input data
N1=1000//The running speed of the pump-1 in rpm
D1=0.3//The impeller diameter of pump-1 in m
Q1=0.02//The discharge of pump-1 in m^3/s
H1=15//The head developed by the pump-1 in m
N2=1000//The running speed of the pump-2 in rpm
Q2=0.01//The discharge of pump-2 in m^3/s

//calculations
D2=(((Q2/Q1)*(N1/N2))^(1/3))*(D1)//Impeller diameter of the pump-2 in m
H2=(((D2/D1)*(N2/N1))^(2))*(H1)//Head developed by the pump-2 in m

//output
printf('(a)Impeller diameter of the pump-2 is %3.3f m\n(b)Head developed by the pump-2 is %3.2f m',D2,H2)