summaryrefslogtreecommitdiff
path: root/1358/CH2/EX2.17/Example217.sce
blob: c59b84db89d4682adcae2186907744c25e803789 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Display mode
mode(0);
// Display warning for floating point exception
ieee(1);
clear;
clc;
disp("Turbomachinery Design and Theory,Rama S. R. Gorla and Aijaz A. Khan, Chapter 2, Example 17")
disp("Head generated by the pump H")
//H is directly proportionl to D^2
D = 0.32;
H = 21.5;
Hred = 20;
disp("Diameter to be reduced is Dred in cm")
Dred = D*(Hred/H)^(1/2) * 100