summaryrefslogtreecommitdiff
path: root/2006/CH11/EX11.8/ex11_8.sce
blob: ed7f9ec40d8fed8f9eef920e13e5ae9f78bd8ef1 (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
clc;
p1=10; // Initial pressure in MPa
T1=263; // Initial temperature in Kelvin
p2=1.5; //  Final pressure in MPa
R_1=8.3143; // Universal gas constant  in kJ/kmol K
M=28; // Molecular mass
// The crictical properties for nitrogen gas 
Tc=126.2; // Temperature in kelvin
Pc=3.39; // Pressure in MPa
// Reduced properties are
Pr1=p1/Pc; Pr2=p2/Pc;
Tr1=T1/Tc;
// From the generalized chart for enthalpy departure at Pr1 & Tr1
h_11=8.7*Tc/M;
// The solution involves iteration procedure. Assume T2 and check if h2_h1=0
// First approximation T2=200 K
T2=200; // In K
Tr2=T2/Tc;
Cpr=1.046;
h_21=Cpr*(T2-T1);
// From the generalized chart for enthalpy departure at Pr1 & Tr1
h_22=1*Tc/M;
h2_h1=h_11-T2+T1-h_22;
// Second approximation 
T2=190; // In K
Tr2=T2/Tc;
Cpr=1.046;
h_21=Cpr*(T2-T1);
// From the generalized chart for enthalpy departure at Pr1 & Tr1
h_22=1.5*Tc/M;
h2_h1=h_11-T2+T1-h_22;
disp ("Here also h2-h1 != 0. Therefore the temperature is dropping.Thus Joule-Thomson coefficient is positive.There is cooling in this process");