summaryrefslogtreecommitdiff
path: root/1913/CH2/EX2.4/ex4.sce
blob: c278c8d431bc9765f67cd228a988fd55eb2b0a41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clc
clear
//Input data
h1=35;//Enthalpy of water entering the boiler in kJ/kg
h2=705;//Enthalpy of steam leaving the boiler in kJ/kg
C=0;//Change in kinetic energy is neglected
Z=0;//Change in potential energy is neglected

//Calculations
q=h2-h1;//The heat transfer per kg of steam in kJ/kg

//Output
printf('The heat transfer per kg of steam q = %3.0f kJ/kg ',q)