Methyl acetate can be obtained by reactive distillation. The reaction involved is an esterification reaction between methanol (MeOH) and acetic acid (HOAc) to produce methyl acetate (MeOAc) and water:
CH
3
COOH+
CH
3
OH⇌
CH
3
COOCH
3
+
H
2
O
.
​
The column has 37 trays, a total condenser and a partial reboiler (39 model stages, n = 1 to 39: n = 1 is the condenser, n = 39 the reboiler). The paper numbers the condenser as stage 0, so paper stage = n - 1, and the plot below uses n on the x-axis. Pure acetic acid (280 kmol/h) is fed at paper stage 3 (n = 4) and pure methanol (280 kmol/h) at paper stage 36 (n = 37). The reactive stages are paper stages 9 to 36 (n = 10 to 37); all other stages are non-reactive.
​
The model is the non-heat-effects model of Huss et al.: constant molar flows, constant molar holdup H on every stage, Wilson activity coefficients, vapor-phase dimerization of acetic acid, and the pseudo-homogeneous rate r = kf (aHOAc aMeOH - aMeOAc aH2O/Keq). Reflux ratio and reboil ratio are 1.7 and 2.7 (so D = B = 280 kmol/h). The transient material balances (a differential-algebraic system) are integrated to t = 2500 h, which is steady state.
​
The Damköhler number of the whole column is Da = (HRT/F) kf,ref = HRT kf,ref/F, with HRT the total holdup on the reactive stages, F = F1 + F2 = 560 kmol/h the total feed and kf,ref = 5.1937 1/h the rate constant at the normal boiling point of methyl acetate. With H = 385.1 kmol on each of the 28 reactive stages, Da = 100 (see the last cell). At this large Da, the column is close to reaction equilibrium and the products are nearly pure methyl acetate (distillate) and water (bottoms).
​
The resulting liquid composition profiles are overlaid on Fig. 6 of the reference: the dashed curves are the simulation at Da = 100 (distillate 98.50 mol% MeOAc, bottoms 98.34 mol% H2O) and the solid curves are the reaction-equilibrium design. Note that the column has multiple steady states near these operating conditions; the uniform initial guess in the initial-condition cell (x1 = 0.44, x3 = 0.54, T = 345 K) leads to the branch shown in Fig. 6.
​
For very large Da and H, one recovers the equilibrium case (as shown in the last sections of this notebook).
​
Reference:
[1] R. S. Huss, F. Chen, M. F. Malone, and M. F. Doherty, "Reactive Distillation for Methyl Acetate Production," Computers and Chemical Engineering, 27(12), 2003 pp. 1855–1866.
In[]:=
G1[i_,n_,t_]:=Exp1-Log
4
∑
j=1
x[j]A1[i,j,n,t]-
4
∑
k=1
x[k]A1[k,i,n,t]
4
∑
j=1
x[j]A1[k,j,n,t]
/.x[3]x3[n][t]/.x[4]x4[n][t]/.x[1]x1[n][t]/.x[2]x2[n][t];​​​​A1[i_,j_,n_,t_]:=Vm[j]/Vm[i]Exp[-a[i,j]/(RgT[n][t])];​​​​a[1,1]=0;​​a[1,2]=2535.2019;​​a[1,3]=1123.1444;​​a[1,4]=237.5248;​​a[2,1]=-547.5248;​​a[2,2]=0;​​a[2,3]=813.1843;​​a[2,4]=107.3832;​​a[3,1]=-696.5031;​​a[3,2]=-31.1932;​​a[3,3]=0;​​a[3,4]=645.7225;​​a[4,1]=658.0266;​​a[4,2]=469.5509;​​a[4,3]=1918.232;​​a[4,4]=0;​​​​Vm[1]=57.54;​​Vm[2]=44.44;​​Vm[3]=79.84;​​Vm[4]=18.07;​​​​Rg=1.987;P=1.0132510^5;​​​​Psat1[i_,n_,t_]:=Exp[(Aa1[i]+Ba1[i]/(T[n][t]+Ca1[i]))];​​​​Aa1[1]=22.1001;Aa1[2]=23.49989;​​Aa1[3]=21.1520;Aa1[4]=23.2256;​​Ba1[1]=-3654.62;Ba1[2]=-3643.31362;Ba1[3]=-2662.78;Ba1[4]=-3835.18;​​Ca1[1]=-45.392;Ca1[2]=-33.434;Ca1[3]=-53.460;Ca1[4]=-45.343;​​​​Keq[n_,t_]:=Exp[0.83983+782.98/T[n][t]];kf[n_,t_]:=9.73210^8Exp[-6287.7/T[n][t]];​​​​Ksym[n_][t_]:=10^(-12.5454+3166/(T[n][t]));​​​​rate[n_,t_]:=G1[1,n,t]x1[n][t]G1[2,n,t]x2[n][t]-G1[3,n,t]x3[n][t]G1[4,n,t]x4[n][t]/Keq[n,t];​​​​y2[n_][t_]:=Psat1[2,n,t]G1[2,n,t]x2[n][t]/((2(1-y1[n][t]+Sqrt[(1+4Ksym[n][t]Py1[n][t](2-y1[n][t]))]))/((2-y1[n][t])(1+Sqrt[(1+4Ksym[n][t]Py1[n][t](2-y1[n][t]))])))1/P;​​​​y3[n_][t_]:=Psat1[3,n,t]G1[3,n,t]x3[n][t]/((2(1-y1[n][t]+Sqrt[(1+4Ksym[n][t]Py1[n][t](2-y1[n][t]))]))/((2-y1[n][t])(1+Sqrt[(1+4Ksym[n][t]Py1[n][t](2-y1[n][t]))])))1/P;​​​​y4[n_][t_]:=Psat1[4,n,t]G1[4,n,t]x4[n][t]/((2(1-y1[n][t]+Sqrt[(1+4Ksym[n][t]Py1[n][t](2-y1[n][t]))]))/((2-y1[n][t])(1+Sqrt[(1+4Ksym[n][t]Py1[n][t](2-y1[n][t]))])))1/P;​​​​x4[n_][t_]:=1-x1[n][t]-x2[n][t]-x3[n][t];s=2.7;R=1.7;F1=280;F2=280;​​​​x1f1=1;x2f1=0;x3f1=0;x1f2=0;x2f2=1;x3f2=0;H1=0;​​
In[]:=
In[]:=
Length@SYS
Out[]=
402
In[]:=
init=Flatten[{Table[T[n][0]345.,{n,1,39}],Table[{x1[n][0]0.44,x2[n][0]0.0,x3[n][0]0.54,y1[n][0]0.44},{n,1,39}],{Dist[0]280.,B[0]280.,Lp[0]756.,L[0]476.,Lpp[0]1036.,V1[0]756.}}];
In[]:=
Length@init
Out[]=
201
In[]:=
UNK=Flatten[{Table[T[n][t],{n,1,39}],Table[{x1[n][t],x2[n][t],x3[n][t],y1[n][t]},{n,1,39}],{L[t],V1[t],Lp[t],Lpp[t],B[t],Dist[t]}}];
In[]:=
Length@UNK
Out[]=
201

Case 1: H = 385.1 kmol per reactive stage (Da = 100)

In[]:=
H=385.1;(*molarhold-upinkmol*)
In[]:=
sol=NDSolve[SYS,UNK,{t,0,2500},​​(*DAEsystem,withdifficultinitialconiditions*)​​Compiled{True,"CompilationOptions"None},​​AccuracyGoal6,PrecisionGoal6,​​StartingStepSize10^-6​​];
NDSolve
:For the method IDA​, only machine real code is available. Unable to continue with complex values or beyond floating-point exceptions.
NDSolve
:NDSolve has computed initial values that give a zero residual for the differential-algebraic system, but some components are different from those specified. If you need them to be satisfied, giving initial conditions for all dependent variables and their derivatives is recommended.
In[]:=
p=ListPlot[{Flatten[Table[x1[n][t]/.sol/.t2500,{n,1,39}]],Flatten[Table[x2[n][t]/.sol/.t2500,{n,1,39}]],Flatten[Table[x3[n][t]/.sol/.t2500,{n,1,39}]],Flatten[Table[x4[n][t]/.sol/.t2500,{n,1,39}]]},JoinedTrue,InterpolationOrder1,AspectRatio->1,ImageSize400{1,1},FrameTrue,PlotRange->{{1,41},{0,1}},FrameLabel{Style["stage number",14],Style["liquid composition",14]},PlotStyleThick,PlotRange{{1,39},{0,1}},GridLinesAutomatic,PlotMarkersAutomatic]
Out[]=
In[]:=
p=ListPlot[{Flatten[Table[x1[n][t]/.sol/.t2500,{n,1,39}]],Flatten[Table[x2[n][t]/.sol/.t2500,{n,1,39}]],Flatten[Table[x3[n][t]/.sol/.t2500,{n,1,39}]],Flatten[Table[x4[n][t]/.sol/.t2500,{n,1,39}]]},JoinedTrue,InterpolationOrder1,AspectRatio->1,ImageSize400{1,1},FrameTrue,PlotRange->{{1,41},{0,1}},FrameLabel{Style["stage number",14],Style["liquid composition",14]},PlotStyle{{Dashed,Thickness[0.0065],Darker@Cyan},{Dashed,Thickness[0.0065],Darker@Red},{Dashed,Thickness[0.0065],Darker@Yellow},{Dashed,Thickness[0.0065],Darker@Green}},PlotRange{{1,39},{0,1}},GridLinesAutomatic,PlotLegends->{"HOAc","MeOH","MeOAc","H20"}]
Out[]=
HOAc
MeOH
MeOAc
H20

Case 1: H = 20000 kmol per reactive stage (Da very large)
One Recovers the Equilibrium Case