summaryrefslogtreecommitdiff
path: root/2735/CH12/EX12.4/Ex12_4.sce
blob: 3adff26c3eed367901c10e40a686e4a1433d161a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
clc
clear
//Initialization of variables
r=2.5 //in
mf=160 //cfm
rho=1/14
mu=0.0000121
v=14 //ft^3/lbm
g=32.2 //ft/s^2
z=100 //ft
//calculations
A=3.14*(r/12)^2
V=mf/A /60
Re=(2*r/12)*V*rho/mu
disp("From fig 12.4,")
f=0.0225/4
dp=4*f*(rho)*(V/v)^2 /(2*g*(2*r/12)) *z
//dp=2.32
//results
printf("Pressure drop = %.2f lbf/ft^2 100 ft",dp)
disp("The answer in the textbook is wrong. Please use a calculator to verify it.")