No Title |POLVER05_3 |2
# Isothermal flash of binary mixture
# Assume ideal solution
# University of Colorado Boulder, Department of Chemical and Biological Engineering
#Basis 1 mol feed
f(x1) = z1 - x1*L - y1*V #mass balance on methanol
f(y1) = x1*P1sat - y1*P # Raoult's law methanol
f(L) = x1*P1sat - y1*P # Raoult's law ethanol
# guess values at outlet
x1(0)= 0.5
y1(0) = 0.5
L(0) = 0.7
#Explicit equations
z2 = 1 - z1 # feed mole fractions add to one
P1sat = EXP(A1-B1/(T + C1)) # kPa Saturation pressure component 1- Antoine eqn
P2sat = EXP(A2-B2/(T + C2)) # kPa Saturation pressure component 2 - Antoine eqn
x2 = 1-x1
y2 = 1-y1
V = 1- L
#Antoine constants
A1 = 15
B1 = 3000
C1 = 250
A2 = 14
B2 = 2700
C2 = 200
# parameters to be inputted
z1 = 0.60 # mole fraction component 1 in feed
T = 150 # degrees C outlet temperature
P = 1200 #kPa outlet pressure