summaryrefslogtreecommitdiff
path: root/2471/CH5/EX5.7/Ex5_7.sce
blob: a97fc2aa16d6f978e4fb2f5b951d64fffaa95b70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
clear ;
clc;
// Example 5.7
printf('Example 5.7\n\n');
printf('Page No. 121\n\n');

// given
x = 0.97;// dryness fraction
m = 4.0;// Mass flow rate in kg/s
v = 40;// velocity in m/s
P = 10;// pressure in bar

//from steam table
Sp_vol = 0.194;// specific volume at 10 bar dry steam in m^3/kg

Q = Sp_vol*x*m// Volumetric flow rate of steam in m^3/s
d = sqrt((Q*m)/(v*%pi));
printf('the required diameter of pipe is %.3f m',d)