summaryrefslogtreecommitdiff
path: root/647/CH9/EX9.3/Example9_3.sce
blob: 9174b03b4f500a1140432d62337ab0a0f00490de (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
clear;
clc;

// Example: 9.3
// Page: 339

printf("Example: 9.3 - Page: 339\n\n");

// Solution

//*****Data******//
Vol = 2000;// [cubic cm]
y1_1 = 0.96;// [mass fraction of ethanol in laboratory alcohol]
y2_1 = 0.04;// [mass fraction of water in laboratory alcohol]
y1_2 = 0.56;// [mass fracion of ethanol in vodka]
y2_2 = 0.44;// [mass fraction of water in vodka]
Vbar_water1 = 0.816;// [cubic cm/g]
Vbar_ethanol1 = 1.273;// [cubic cm/g]
Vbar_water2 = 0.953;// [cubic cm/g]
Vbar_ethanol2 = 1.243;// [cubic cm/g]
Density_water = 0.997;// [cubic cm/g]
//***************//

// Solution (i)
// From Eqn 9.9
Va = y1_1*Vbar_ethanol1 + y2_1*Vbar_water1;// [Volume of laboratory alcohol, cubic cm/g]
mass = Vol/Va;// [g]
// Let Mw be the mass of water added in laboratory alcohol.
// Material balance on ethanol:
Mw = mass*y1_1/y1_2 - mass;// [g]
Vw = Mw/Density_water;// [Volume of water added, cubic cm]
printf("Mass of water added is %d g\n",Mw);

// Solution (ii)
Mv = mass + Mw;// [Mass of vodka, g]
Vv = y1_2*Vbar_ethanol2 + y2_2*Vbar_water2;// [Volume of ethanol, cubic cm/g]
V_vodka = Vv*Mv;// [Volume of vodka obtained after conversion, cubic cm]
printf("The volume of vodka obtained after conversion is %.d cubic cm\n",V_vodka);