summaryrefslogtreecommitdiff
path: root/2507/CH9/EX9.3/Ex9_3.sce
blob: d8f11dd1c3ac77d02bf8f37cf455763606116070 (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
clc
clear
printf("Example 9.3 | Page number 255 \n\n");
//Part(a) Find internal energy
//Part(b) Find enthalpy and internal energy at (i)10bar,50°C and,(ii)0.085 m^3/kg and 50°C

//Given Data
p = 1 //bar //pressure
T = 50+273 //°C //temperature
h = 324.6 //kJ/kg //enthalpy
R = 8.3143 //kJ/kmolK
M = 28.97 //kg/kmol
//Part (a)
printf("Part (a)\n");
u = h - (R/M)*T //kJ/kg //internal energy
printf("Internal energy = %.1f kJ/kg\n",u)
//Part (b)
printf("\nPart (b):(i)\n");
u = h - (R/M)*T //kJ/kg //internal energy
printf("Enthalpy = %.1f kJ/kg\n",h)
printf("Internal energy = %.1f kJ/kg\n",u)
printf("Part (b):(ii)\n");
u = h - (R/M)*T //kJ/kg //internal energy
printf("Enthalpy = %.1f kJ/kg\n",h)
printf("Internal energy = %.1f kJ/kg",u)