summaryrefslogtreecommitdiff
path: root/858/CH6/EX6.15/example_15.sce
blob: fd6210ab8f624375f55f364406317b0f0eacfd7b (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
clc
clear 
printf("example 6.15 page number 249\n\n")

//to find the top and bottom product composition

//part 1
x=0.4;
y=0.8;
x_D=y;
x_W=0.135;   //bottom concentration
D=(100*x-100*x_W)/(y-x_W);     //distillate amount
printf("amount of distillate =%f moles/h",D)

//part 2
alpha=6;   //relative volatility
x_R=y/(y+(alpha*(1-y)));    //liquid leaving partial condensor
printf("\n\nliquid leaving partial condenser = %f",x_R)

y1=(1/3)*y+(2/3)*x;
x1=y1/(y1+(alpha*(1-y1)));
y_W = (1/3)*x_D+(2/3)*x1;
x_W=y_W/(y_W+(alpha*(1-y_W)));
D=(100*(x-x_W))/(y-x_W);

printf("\n\namount of distillate = %f moles/h",D)