Threq2

Name: Threeq2 - Two phase flash of a nonideal binary mixture (isobutanol-water)
Source: Henley, E. J. and Rosen, E. M., Material and Energy Balance
  Computations, Wiley: New York, 1969
Reference/s Cutlip, M. B. and Shacham, M, Problem Solving in Chemical
  Engineering with Numerical Methods (2nd Ed.), Prentice Hall Inc.,
Model: 3 implicit equations, indep. variables alpha, x1 and x2
  Higher difficulty level
  Constraints: 0<=alpha<=1, 0<=x1<=1, 0<=x2<=1
  Discontinuities: Undefined for (x1+B*x2/A)=0 and (A*x1/B+x2)=0
  Initial estimates: 1. alpha=0.5, x1=0, x2=1, 2.alpha=0.9, x1=0.5, x2=0.5;
  3. alpha=0.9, x1=0.4, x2=0.6 4.alpha=0.5, x1=0.1, x2=0.9
       
Solved by Shacham, M., POLYMATH 5.1, build 19, April 4, 2001
       
Model Eqs. Two phase flash of a nonideal binary mixture (isobutanol-water)|POLVER05_0

EXCEL FILE 

f(x1)=x1-z1/(1+alpha*(k1-1)) #

TEXT FILE 

f(x2)=x2-z2/(1+alpha*(k2-1)) #

POLYMATH FILE

f(alpha)=x1+x2-(y1+y2) #
  p1=10^(7.62231-1417.9/(191.15+t)) #
  p2=10^(8.10765-1750.29/(235+t)) #
  gamma2=10^(B*x1*x1/((x1+B*x2/A)^2)) #
  gamma1=10^(A*x2*x2/((A*x1/B+x2)^2)) #
  k1=gamma1*p1/760 #
  k2=gamma2*p2/760 #
  y1=k1*x1 #
  y2=k2*x2 #
  t=88.538 #
  B=0.7 #
  A=1.7 #
  z1=0.2 #
  z2=0.8 #
  x1(0)=0
  x2(0)=1
  alpha(0)=0.5
       
Variable/function values Variable Value f(x)
  x1 0 -1.6296E-02
  x2 1 3.3895E-02
  alpha 0.5 3.4387E-01
  t 88.538  
  p1 357.053  
  B 0.70  
  A 1.70  
  gamma2 1.000  
  p2 498.662  
  gamma1 50.119  
  k2 0.656  
  y2 0.656  
  k1 23.546  
  y1 0.00  
  z1 0.20  
  z2 0.80  
       
Solution Variable Value f(x)
  x1 0.0226974766367 -3.4694E-18
  x2 0.9773025233633 0.0000E+00
  alpha 0.5322677863643 0.00E+00
  t 88.538  
  p1 357.05282269240  
  B 0.7  
  A 1.7  
  gamma2 1.0046052345120  
  p2 498.66206831320  
  gamma1 33.36690033259  
  k2 0.6591559527368  
  y2 0.6441947758996  
  k1 15.67598151085  
  y1 0.3558052241004  
  z1 0.2  
  z2 0.8  
       
Infeasible Solution Variable Value f(x)
  x1 0.6867568052506 -1.3212E-14
  x2 0.3132431762583 -1.1102E-16
  alpha 1.4708209249600 -5.55E-16
  t 88.538  
  p1 357.05282269240  
  B 0.7  
  A 1.7  
  gamma2 3.1342710428540  
  p2 498.66206831320  
  gamma1 1.10281288233  
  k2 2.0565027380050  
  y2 0.6441854496365  
  k1 0.51810849018  
  y1 0.3558145314887  
  z1 0.2  
  z2 0.8  
       
False solution Variable Value f(x)
  x1 -7.97906491100E-13 1.1309E-13
  x2 2.54516136300E-10 3.8950E-14
  alpha -9.14388809400E+09 1.07E-10
  t 88.538  
  p1 357.05282269240  
  B 0.7  
  A 1.7  
  gamma2 1.0000948741280  
  p2 498.66206831320  
  gamma1 53.23346661201  
  k2 0.6561965505819  
  y2 1.67012610700E-10  
  k1 25.00942041516  
  y1 -1.99551788900E-11  
  z1 0.2  
  z2 0.8  
       
Additional information Most programs do not converge, converge to an infeasible
  solution or to a false solution from initial guesses 2,3, and 4.
  Using a constrained method which keeps alpha,x1 and x2
  positive throughout the iterations enables convergence
  from initial guesses 3 and 4.