blob: 4a99ac9fdbe1c82b0255b01b97efe94be36db795 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
clear;
clc;
// Example: 9.10
// Page: 354
printf("Example: 9.10 - Page: 354\n\n");
// Solution
//*****Data******//
x1 = 0.3;// [mole fraction of component 1 in the mixture]
x2 = 0.7;// [mole fraction of component 2 in the mixture]
phi1 = 0.7;// [fugacity coeffecient of component 1 in the mixture]
phi2 = 0.85;// [fugacity coeffecient of component 2 in the mixture]
P = 50;// [bar]
T = 273 + 100;// [K]
//*************//
phi = exp(x1*log(phi1) + x2*log(phi2));// [fugacity coeffecient of the mixture]
f = phi*P;// [bar]
printf("Fugacity of the gaseous mixture is %.3f bar",f);
|