Professional Documents
Culture Documents
Tut[3]
Question 2 :
Degree of freedom:
Stream 1 2 3 4 5 6 TOTAL
No. 2 0 5 2 1 2 12+2
selection A.O - A,O,P,C,H H,C P A.O
Material balance:
MB= 12
Relations=2
MB for mixer:
A1+A6-75=0 (1)
O1+O6-25=0 (2)
MB for reactor:
75-A3-2*r1-r2=0 (3)
25-O3-r1-3*r2=0 (4)
2*r2-H3=0 (7)
MB for separator:
A3-A6=0 (8)
O3-O6=0 (8)
O3-O6=0 (9)
P3-P5=0 (10)
C3-C4=0 (11)
H3-H4=0 (12)
(P3/75)-(90/100)=0 (13)
75-A3-0.2*75=0( 14)
Computer Code
Function file:
function f = peter(x)
f(3)=75-A3-2*r1-r2; %O2
balance :
f(4)=25-O3-r1-3*r2; %C2H4O
f(12)=H3-H4; %Given
relations: f(13)=(P3/75) –
(90/100); f(14)=((75-A3)/75)-
(20/100); end
Script file:
Command window:
R1= 33.75
R2=-52.50
Total conversion=1.00