summaryrefslogtreecommitdiff
path: root/2870/CH4/EX4.7/Ex4_7.sce
blob: be93dddf13a23c5e78672170892b9bc6b08a10ae (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
27
28
29
30
31
32
33
34
clc;clear;
//Example 4.7

//given data
T1=300;
P=200;
T2=600;
M=28.97;
Ru=8.314;

//Part - a
//from Table A–17
u1=214.07;
u2=434.78;
du=u2-u1;//change in internal energy
disp(du,'change in internal energy from data from the air table in kJ/kg');

//Part - b
//from Table A–2c
a=28.11;
b=0.1967*10^-2;
c=0.4802*10^-5;
d=-1.966*10^-9;
//  by equation Cp(T)=a+bT+cT^2+dT^3
dubar=integrate('(a-Ru)+b*T+c*T^2+d*T^3','T',T1,T2);//integrant
du=dubar/M;
disp(du,'change in internal energy the functional form of the specific heat in kJ/kg'); 

//Part - c
//from Table A–2b
Cavg=0.733;
du=Cavg*(T2-T1);
du=ceil(du);
disp(du,'change in internal energy the functional form the average specific heat value in kJ/kg');