summaryrefslogtreecommitdiff
path: root/647/CH10/EX10.15/Example10_15.sce
blob: 361763b84c9c4f2c5a5d8ee1945913c0a2898171 (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
35
36
37
38
39
40
clear;
clc;

// Example: 10.15
// Page: 428

printf("Example: 10.15 - Page: 428\n\n");

// Solution

//*****Data******//
y1 = 0.20;// [mole fraction of methane in vapour phase]
y2 = 0.30;// [mole fraction of ethane in vapour phase]
y3 = 0.50;// [mole fraction of propane in vapour phase]
T = 30;// [OC]
//*************//

// Assume P = 2.0 MPa
P = 2.0;// [MPa]
// From Fig. 10.14 (Pg 426):
K1 = 8.5;
K2 = 2.0;
K3 = 0.68;
// From Eqn. 10.83:
x1 = y1/K1;
x2 = y2/K2;
x3 = y3/K3;
// Since x1 + x2 +x3 < 1, so we assume another value of P = 2.15 MPa at 30 OC.
P = 2.15;// [MPa]
// From Fig. 10.14 (Pg 426):
K1 = 8.1;
K2 = 1.82;
K3 = 0.62;
// From Eqn. 10.83:
x1 = y1/K1;
x2 = y2/K2;
x3 = y3/K3;
// Since x1 + x2 +x3 = 1. Therefore:
printf("Dew Pressure is %.2f MPa\n",P);
printf("Composition of the liquid drop:\n x1 = %.4f\n x2 = %.4f\n x3 = %.4f",x1,x2,x3);