summaryrefslogtreecommitdiff
path: root/2969/CH4/EX4.18/Ex4_18.sce
blob: 683a454b482dd8f75c6ec95e8b3ff8a009454b79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
clc
clear
//DATA GIVEN
m=1;                           //mass of steam in kg
p=20;                          //pressure of steam in bar
Tsup=400+273;                  //temp. of steam in K
x=0.9;                         //dryness fraction
Cps=2.3;                       //specific heat of steam in kJ/kgK

//At 20 bar, from steam tables
Ts=212.4+273;                        //in K
hf=908.6;                            //kJ/kg
hfg=1888.6;                          //kJ/kg
vg=0.0995;                           //m^3/kg
hsup=hf+hfg+Cps*(Tsup-Ts);           //kJ/kg

//Assume superheated steam to behave as a perfect gas from the commencement of superheating and thus obey Charle's Law
//By vg/Ts=vsup/Tsup
vsup=vg*Tsup/Ts;
usup=hsup-p*10^5*vsup*10^-3;         //internal energy of 1 kg of superheated steam in kJ/kg

h=hf+x*hfg;
u=h-p*10^5*x*vg*10^-3;               //internal energy of 1 kg of wet steam in kJ/kg

printf('(i) The Internal energy of 1 kg of superheated steam at 400 deg celsius is: %4.2f kJ/kg. \n',usup);
printf('(ii) The Internal energy of 1 kg of wet steam with dryness fraction 0.9 is: %4.2f kJ/kg. \n',u);