summaryrefslogtreecommitdiff
path: root/2969/CH4/EX4.6/Ex4_6.sce
blob: 8f92512704beda710c2d240ce10e946c8e6dbc72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
clc
clear
//DATA GIVEN
V=0.15;                        //volume of wet steam in m^3
p=4;                           //pressure of wet steam in bar
x=0.8;                         //dryness fraction

//At 4 bar, from steam tables
vg=0.462;                      //m^3/kg
hf=604.7;                      //kJ/kg
hfg=2133;                      //kJ/kg

rho=1/(x*vg);                  //density in kg/m^3
m=rho*V;                       //mass of 0.15 m^3 of steam

Htotal=(rho*1)*(hf+x*hfg);     //total heat of 1 m^3 of steam which has a mass of rho(2.7056) kg

printf('(i)The Mass of 0.15 m^3 of steam is: %1.4f kg. \n',m);
printf('(ii)The Total heat of 1 m^3 of steam which has a mass of 2.7056 kg is: %4.2f kJ. \n',Htotal);