blob: 6f804c93d9386de9f123ab1cf946c9989d36aba9 (
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
|
clc;clear;
//Example 3.11
//given values
P=1;
T=50+273;//converting into Kelvin
vgiv=0.021796;//specific vol. given
//from Table A-1
R=0.0815;
Pcr=4.059;
Tcr=374.2;
//calculation
//Part A
v1=R*T/(P*1000);
disp(v1,'specific volume of refrigerant-134a under the ideal-gas assumption in m^3/kg');
e=(v1-vgiv)/vgiv;
disp(e,'an error of');
//Part B
//determine Z from the compressibility chart, we will calculate the reduced pressure and temperature
Pr=P/Pcr;
Tr=T/Tcr;
//from chart
Z=0.84;
v=Z*v1;
disp(v,'specific volume of refrigerant-134a under the generalized compressibility chart in m^3/kg');
e=(v-vgiv)/vgiv;
disp(e,'an error of');
|