0 0 -1 -1 -1 0 0 0 0 0 0 0 0 }
{PSTYLE "R3 Font 6" -1 261 1 {CSTYLE "" -1 -1 "New century schoolbook
" 0 24 0 0 107 0 2 2 2 0 0 0 0 0 0 }0 0 0 -1 -1 -1 0 0 0 0 0 0 0 0 }
{PSTYLE "R3 Font 7" -1 262 1 {CSTYLE "" -1 -1 "New century schoolbook
" 0 24 0 0 0 0 2 2 2 0 0 0 0 0 0 }0 0 0 -1 -1 -1 0 0 0 0 0 0 0 0 }}
{SECT 0 {EXCHG {PARA 0 "" 0 "" {TEXT -1 58 "Example 3: Dehydrogenation
 of Benzene in a Tubular Reactor" }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}
{PARA 0 "" 0 "" {TEXT -1 138 "In this example we consider the dehydrog
enation of benzene in a tubular reactor.  The example is adapted from \+
Example 4-7 in Smith (1981)." }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 78 "res
tart; interface(labelling=false):\nwith(share):\nreadshare(TDTools,eng
ineer):" }}{PARA 6 "" 1 "" {TEXT -1 70 "See ?share and ?share,contents
 for information about the share library" }}}{EXCHG {PARA 0 "" 0 "" 
{TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 164 "\" Hougen and Watson, in
 an analysis of Kassell's data for the homogeneous, vapor-phase dehydr
ogenation of benzene in a tubular-flow reactor considered two reaction
s" }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 28 "    \+
1.  2 C6H6 = C12H10 + H2" }}{PARA 0 "" 0 "" {TEXT -1 35 "    2.  C6H6 \+
+ C12H10 = C18H14 + H2" }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 
0 "" {TEXT -1 77 "...design a tubular reactor which will operate at 1 \+
atm pressure and 1400 F.\"" }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 
"" 0 "" {TEXT -1 150 "We begin by creating a list of component identit
ies.  Here we use abbreviations to denote each component.   The number
 of components also is computed." }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}
{PARA 0 "> " 0 "" {MPLTEXT 1 0 47 "components:=[B,DP,TP,H2]; nc:=nops(
components);" }}{PARA 11 "" 1 "" {XPPMATH 20 "6#>%+componentsG7&%\"BG%
#DPG%#TPG%#H2G" }}{PARA 11 "" 1 "" {XPPMATH 20 "6#>%#ncG\"\"%" }}}
{EXCHG {PARA 0 "" 0 "" {TEXT -1 85 "where the letters refer, respectiv
ely, to Benzene, DiPhenyl, TriPhenyl, and Hydrogen." }}{PARA 0 "" 0 "
" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 37 "Next, we identify a set
 of reactions:" }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 19 "Reactions:=[R1,R2
];" }}{PARA 11 "" 1 "" {XPPMATH 20 "6#>%*ReactionsG7$%#R1G%#R2G" }}}
{EXCHG {PARA 0 "" 0 "" {TEXT -1 50 "The reactions may be expressed as \+
Maple equations:" }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 24 "Reaction[R1]:=2
*B=DP+H2;" }}{PARA 11 "" 1 "" {XPPMATH 20 "6#>&%)ReactionG6#%#R1G/,$%
\"BG\"\"#,&%#DPG\"\"\"%#H2GF." }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 
0 25 "Reaction[R2]:=B+DP=TP+H2;" }}{PARA 11 "" 1 "" {XPPMATH 20 "6#>&%
)ReactionG6#%#R2G/,&%\"BG\"\"\"%#DPGF+,&%#TPGF+%#H2GF+" }}}{EXCHG 
{PARA 0 "" 0 "" {TEXT -1 83 "The stoichiometric cofficients can be ded
uced from the set of reactions as follows:" }}{PARA 0 "> " 0 "" 
{MPLTEXT 1 0 22 "for r in Reactions do " }}{PARA 0 "> " 0 "" {MPLTEXT 
1 0 26 "   for i in components do " }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 
58 "     nu[i,r]:=coeff(lhs(Reaction[r])-rhs(Reaction[r]),i); " }}
{PARA 0 "> " 0 "" {MPLTEXT 1 0 7 "od; od;" }}}{EXCHG {PARA 0 "" 0 "" 
{TEXT -1 76 "The material balances for a tubular flow reactor may be e
xpressed as follows" }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 83 "for i in com
ponents do \n  CMB[i] := Diff(F*x[i],z)=-R[i]*A;  \n  print(CMB[i]); \+
\nod:" }}{PARA 11 "" 1 "" {XPPMATH 20 "6#/-%%DiffG6$*&%\"FG\"\"\"&%\"x
G6#%\"BGF)%\"zG,$*&&%\"RGF,F)%\"AGF)!\"\"" }}{PARA 11 "" 1 "" 
{XPPMATH 20 "6#/-%%DiffG6$*&%\"FG\"\"\"&%\"xG6#%#DPGF)%\"zG,$*&&%\"RGF
,F)%\"AGF)!\"\"" }}{PARA 11 "" 1 "" {XPPMATH 20 "6#/-%%DiffG6$*&%\"FG
\"\"\"&%\"xG6#%#TPGF)%\"zG,$*&&%\"RGF,F)%\"AGF)!\"\"" }}{PARA 11 "" 1 
"" {XPPMATH 20 "6#/-%%DiffG6$*&%\"FG\"\"\"&%\"xG6#%#H2GF)%\"zG,$*&&%\"
RGF,F)%\"AGF)!\"\"" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 105 "The rate o
f reaction of each component may be expressed in terms of the rate of \+
each reaction as follows:" }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 22 "for i \+
in components do" }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 59 "R[i]:=convert([
seq(nu[i,r]/nu[B,r]*R[r],r=Reactions)],`+`);" }}{PARA 0 "> " 0 "" 
{MPLTEXT 1 0 4 "od; " }}{PARA 11 "" 1 "" {XPPMATH 20 "6#>&%\"RG6#%\"BG
,&&F%6#%#R1G\"\"\"&F%6#%#R2GF," }}{PARA 11 "" 1 "" {XPPMATH 20 "6#>&%
\"RG6#%#DPG,&&F%6#%#R1G#!\"\"\"\"#&F%6#%#R2G\"\"\"" }}{PARA 11 "" 1 "
" {XPPMATH 20 "6#>&%\"RG6#%#TPG,$&F%6#%#R2G!\"\"" }}{PARA 11 "" 1 "" 
{XPPMATH 20 "6#>&%\"RG6#%#H2G,&&F%6#%#R1G#!\"\"\"\"#&F%6#%#R2GF-" }}}
{EXCHG {PARA 0 "" 0 "" {TEXT -1 95 "where R[R1] and R[R2] are the rate
s of reaction of benzene in reactions R1 and R2 respectively." }}
{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 85 "The total
 material balance may be obtained by summing the component material ba
lances" }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 86 "TMB:=Diff(F,z)=convert([s
eq(rhs(CMB[i]),i=components)],`+`): TMB:=collect(TMB,A): TMB;" }}
{PARA 11 "" 1 "" {XPPMATH 20 "6#/-%%DiffG6$%\"FG%\"zG\"\"!" }}}{EXCHG 
{PARA 0 "" 0 "" {TEXT -1 134 "showing that the total molar flow is con
stant (as it should be since numbers of moles are conserved by the rea
ctions in this example)." }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "
" 0 "" {TEXT -1 514 "The next step is to express the component materia
l balances in terms of the mole fraction derivatives rather than the c
omponent flow derivatives.  The following Maple construction does this
 for us by applying the chain rule for thedifferentiation of a product
.  The derivative of the total molar flow is eliminated using the tota
l material balance.  In this example the resulting expressions are qui
te simple because the total flow is constant; however, the constructio
n given here works when that is not the case." }}{PARA 0 "> " 0 "" 
{MPLTEXT 1 0 22 "for i in components do" }}{PARA 0 "> " 0 "" {MPLTEXT 
1 0 36 "  t2:=eval(subs(Diff=TDiff,CMB[i])):" }}{PARA 0 "> " 0 "" 
{MPLTEXT 1 0 42 "  t3:=solveqn(subs(TMB,t2),Diff(x[i],z)); " }}{PARA 
0 "> " 0 "" {MPLTEXT 1 0 52 "  CMB[i]:=collect(t3,[A,P,F,seq(k[r],r=Re
actions)]);" }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 17 "  print (CMB[i]);" }
}{PARA 0 "> " 0 "" {MPLTEXT 1 0 3 "od:" }}{PARA 11 "" 0 "" {TEXT -1 0 
"" }}{PARA 11 "" 1 "" {XPPMATH 20 "6#/-%%DiffG6$&%\"xG6#%\"BG%\"zG*(,&
&%\"RG6#%#R1G!\"\"&F/6#%#R2GF2\"\"\"%\"FGF2%\"AGF6" }}{PARA 11 "" 1 "
" {XPPMATH 20 "6#/-%%DiffG6$&%\"xG6#%#DPG%\"zG*(,&&%\"RG6#%#R1G#\"\"\"
\"\"#&F/6#%#R2G!\"\"F3%\"FGF8%\"AGF3" }}{PARA 11 "" 1 "" {XPPMATH 20 "
6#/-%%DiffG6$&%\"xG6#%#TPG%\"zG*(%\"AG\"\"\"&%\"RG6#%#R2GF.%\"FG!\"\"
" }}{PARA 11 "" 1 "" {XPPMATH 20 "6#/-%%DiffG6$&%\"xG6#%#H2G%\"zG*(,&&
%\"RG6#%#R1G#\"\"\"\"\"#&F/6#%#R2GF3F3%\"FG!\"\"%\"AGF3" }}}{EXCHG 
{PARA 0 "" 0 "" {TEXT -1 242 "To design a tubular reactor at constant \+
temperature and pressure we must integrate these equations as a functi
on of tube length.  The rates of reaction are given in terms of the pa
rtial pressures of the reactants and products by (Smith, 1981)" }}
{PARA 0 "> " 0 "" {MPLTEXT 1 0 40 "R[R1]:=k[R1]*(p[B]^2-p[DP]*p[H2]/K[
R1]);" }}{PARA 11 "" 1 "" {XPPMATH 20 "6#>&%\"RG6#%#R1G*&&%\"kGF&\"\"
\",&*$&%\"pG6#%\"BG\"\"#F+*(&F/6#%#DPGF+&F/6#%#H2GF+&%\"KGF&!\"\"F<F+
" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 44 "R[R2]:=k[R2]*(p[B]*p[DP
]-p[TP]*p[H2]/K[R2]);" }}{PARA 11 "" 1 "" {XPPMATH 20 "6#>&%\"RG6#%#R2
G*&&%\"kGF&\"\"\",&*&&%\"pG6#%\"BGF+&F/6#%#DPGF+F+*(&F/6#%#TPGF+&F/6#%
#H2GF+&%\"KGF&!\"\"F>F+" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 79 "The ne
xt step is to replace the partial pressures by mole fractions as follo
ws:" }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 22 "for r in Reactions do " }}
{PARA 0 "> " 0 "" {MPLTEXT 1 0 24 "  for i in components do" }}{PARA 
0 "> " 0 "" {MPLTEXT 1 0 32 "   R[r]:=subs(p[i]=P*x[i],R[r]);" }}
{PARA 0 "> " 0 "" {MPLTEXT 1 0 4 "od; " }}{PARA 0 "> " 0 "" {MPLTEXT 
1 0 12 "print(R[r]);" }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 3 "od:" }}
{PARA 11 "" 1 "" {XPPMATH 20 "6#*&&%\"kG6#%#R1G\"\"\",&*&%\"PG\"\"#&%
\"xG6#%\"BGF,F(**F+F,&F.6#%#DPGF(&F.6#%#H2GF(&%\"KGF&!\"\"F:F(" }}
{PARA 11 "" 1 "" {XPPMATH 20 "6#*&&%\"kG6#%#R2G\"\"\",&*(%\"PG\"\"#&%
\"xG6#%\"BGF(&F.6#%#DPGF(F(**F+F,&F.6#%#TPGF(&F.6#%#H2GF(&%\"KGF&!\"\"
F=F(" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 67 "The forward reaction rate
 coefficients are as follows (Smith, 1981)" }}{PARA 0 "> " 0 "" 
{MPLTEXT 1 0 29 "k[R1]:=14.96e6*exp(-15200/T);" }}{PARA 11 "" 1 "" 
{XPPMATH 20 "6#>&%\"kG6#%#R1G,$-%$expG6#,$*$%\"TG!\"\"!&+_\"$\"%'\\\"
\"\"%" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 28 "k[R2]:=8.67e6*exp(
-15200/T);" }}{PARA 11 "" 1 "" {XPPMATH 20 "6#>&%\"kG6#%#R2G,$-%$expG6
#,$*$%\"TG!\"\"!&+_\"$\"$n)\"\"%" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 
42 "The equilibrium coefficients at 1400 F are" }}{PARA 0 "> " 0 "" 
{MPLTEXT 1 0 26 "K[R1]:=0.312; K[R2]:=0.48;" }}{PARA 11 "" 1 "" 
{XPPMATH 20 "6#>&%\"KG6#%#R1G$\"$7$!\"$" }}{PARA 11 "" 1 "" {XPPMATH 
20 "6#>&%\"KG6#%#R2G$\"#[!\"#" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 208 
"These expressions give the reaction rates in lb moles benzene reacted
 per hour per cubic foot with T in Kelvin and P in atmospheres.  The d
esired reactor temperature and pressure are specified in these units \+
" }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 27 "T:=(1400+459.69)/1.8; P:=1;" }}
{PARA 11 "" 1 "" {XPPMATH 20 "6#>%\"TG$\"+66;L5!\"'" }}{PARA 11 "" 1 "
" {XPPMATH 20 "6#>%\"PG\"\"\"" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 84 "
The cross sectional area of a tube may be expressed in terms of the tu
be diameter as" }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 12 "A:=Pi*d^2/4;" }}
{PARA 11 "" 1 "" {XPPMATH 20 "6#>%\"AG,$*&%#PiG\"\"\"%\"dG\"\"##F(\"\"
%" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 116 "We will carry out the integ
ration of the material balance equations for a tube diameter of 1 inch
es and length 8 ft." }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 18 "d:=1.0/12; L
:=8.0;" }}{PARA 11 "" 1 "" {XPPMATH 20 "6#>%\"dG$\"+LLLL$)!#6" }}
{PARA 11 "" 1 "" {XPPMATH 20 "6#>%\"LG$\"#!)!\"\"" }}}{EXCHG {PARA 0 "
" 0 "" {TEXT -1 205 "We shall use the 4th order Runge Kutta method fro
m the Maple Share Library to integrate the differential material balan
ce equations.  The package can be accessed only after reading in the a
ppropriate file:" }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 21 "readshare(ODE,p
lots);" }}{PARA 11 "" 1 "" {XPPMATH 20 "6#%aoSee~?directionfield,~?pha
seplot,~?impeuler,~?rungekutta,~?rungekuttahfG" }}}{EXCHG {PARA 0 "" 
0 "" {TEXT -1 176 "The procedure rungekutta in this library package re
quires the differential equations to be passed as a list of Maple func
tions which are created here using the unapply command." }}{PARA 0 "> \+
" 0 "" {MPLTEXT 1 0 22 "for i in components do" }}{PARA 0 "> " 0 "" 
{MPLTEXT 1 0 57 "   de.i:=unapply(rhs(CMB[i]),z,seq(x[i],i=components)
,F);" }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 3 "od;" }}{PARA 12 "" 1 "" 
{XPPMATH 20 "6#>%$deBG:6(%#y1G%#y2G%#y3G%#y4G%#y5G%#y6G6\"6$%)operator
G%&arrowGF-,$*(,**$9%\"\"#$!+H=)G5'!\"**&9&\"\"\"9(F<$\"+o=0c>!\")*&F5
F<F;F<$!+Bu*o`$F9*&9'F<F=F<$\"+(HO&otF9F<9)!\"\"%#PiGF<$\"+666O<!#7F-F
-" }}{PARA 12 "" 1 "" {XPPMATH 20 "6#>%%deDPG:6(%#y1G%#y2G%#y3G%#y4G%#
y5G%#y6G6\"6$%)operatorG%&arrowGF-,$*(,**$9%\"\"#$\"+:4W^I!\"**&9&\"\"
\"9(F<$!+S$f-y*F9*&F5F<F;F<$!+Bu*o`$F9*&9'F<F=F<$\"+(HO&otF9F<9)!\"\"%
#PiGF<$\"+666O<!#7F-F-" }}{PARA 12 "" 1 "" {XPPMATH 20 "6#>%%deTPG:6(%
#y1G%#y2G%#y3G%#y4G%#y5G%#y6G6\"6$%)operatorG%&arrowGF-,$*(%#PiG\"\"\"
,&*&9%F49&F4$\"+Bu*o`$!\"**&9'F49(F4$!+(HO&otF;F49)!\"\"$\"+666O<!#7F-
F-" }}{PARA 12 "" 1 "" {XPPMATH 20 "6#>%%deH2G:6(%#y1G%#y2G%#y3G%#y4G%
#y5G%#y6G6\"6$%)operatorG%&arrowGF-,$*(,**$9%\"\"#$\"+:4W^I!\"**&9&\"
\"\"9(F<$!+S$f-y*F9*&F5F<F;F<$\"+Bu*o`$F9*&9'F<F=F<$!+(HO&otF9F<9)!\"
\"%#PiGF<$\"+666O<!#7F-F-" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 
51 "de.F:=unapply(rhs(TMB),z,seq(x[i],i=components),F);" }}{PARA 11 "
" 1 "" {XPPMATH 20 "6#>%$deFG\"\"!" }}}{EXCHG {PARA 0 "" 0 "" {TEXT 
-1 84 "The feed to the reactor is pure benzene at a flow rate of 0.05 \+
lb moles/hr per tube." }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 48 "Feedflow :
= 0.05; FeedComp:= 1.0, 0.0, 0.0, 0.0;" }}{PARA 11 "" 1 "" {XPPMATH 
20 "6#>%)FeedflowG$\"\"&!\"#" }}{PARA 11 "" 1 "" {XPPMATH 20 "6#>%)Fee
dCompG6&$\"#5!\"\"\"\"!F)F)" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 170 "W
e create a list of  initial conditions containing the length at the st
art of the reactor (z=0), the mole fractions of each component and the
 molar flow rate in the feed." }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 34 "St
artPoint:=[0,FeedComp,Feedflow];" }}{PARA 11 "" 1 "" {XPPMATH 20 "6#>%
+StartPointG7(\"\"!$\"#5!\"\"F&F&F&$\"\"&!\"#" }}}{EXCHG {PARA 0 "" 0 
"" {TEXT -1 59 "We will use 100 points to integrate over the reactor l
ength" }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 32 "numpts:=100; stepsize:=L/n
umpts;" }}{PARA 11 "" 1 "" {XPPMATH 20 "6#>%'numptsG\"$+\"" }}{PARA 
11 "" 1 "" {XPPMATH 20 "6#>%)stepsizeG$\"+++++!)!#6" }}}{EXCHG {PARA 
0 "" 0 "" {TEXT -1 94 "We now call the integrator (but suppress the ou
tput which is a large array of numerical data)." }}{PARA 0 "> " 0 "" 
{MPLTEXT 1 0 76 "rkpts:=rungekutta([seq(de.i,i=components),de.F],Start
Point,stepsize,numpts):" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 93 "The ou
tput is stored as an array of lists, the first and last lines of which
 are shown below." }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 9 "rkpts[1];" }}
{PARA 11 "" 1 "" {XPPMATH 20 "6#7($\"+++++!)!#6$\"+4J0\"\\*!#5$\"+ds&y
[#F&$\"+6J\"=z$!#8$\"+@NpjDF&$\"\"&!\"#" }}}{EXCHG {PARA 0 "> " 0 "" 
{MPLTEXT 1 0 14 "rkpts[numpts];" }}{PARA 11 "" 1 "" {XPPMATH 20 "6#7($
\"+++++!)!\"*$\"+kJFOT!#5$\"+(3M3e\"F)$\"+)>io+*!#6$\"+Hl?#Q$F)$\"\"&!
\"#" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 183 "Each list contains, in or
der, the distance from the entrance of the reactor, the mole fractions
 of benzene, diphenyl, triphenyl, and hydrogen, and the total molar fl
ow of the mixture." }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" 
{TEXT -1 284 "The results are more easily understood by plotting the c
omposition profiles. To do this we make use of the procedure makelist \+
which is part of the package read in above.  Makelist creates a set of
 points from the output from the integrator that can be plotted by Map
le's plot command." }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 55 "plot(\{seq(ma
kelist(rkpts,1,i),i=[2,3,4,5])\},color=RED);" }}{PARA 13 "" 1 "" 
{TEXT -1 0 "" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "
" {TEXT -1 257 "It is clear from this graph that the mole fractions ha
ve reached their equilibrium values.  The final equilibrium compositio
n is given in the last line of data in the results array (here reprint
ed so that we can identify the components in the above figure)." }}
{PARA 0 "> " 0 "" {MPLTEXT 1 0 65 "for i from 1 to nc do x[components[
i],eq]=rkpts[numpts][1+i]; od;" }}{PARA 11 "" 1 "" {XPPMATH 20 "6#/&%
\"xG6$%\"BG%#eqG$\"+kJFOT!#5" }}{PARA 11 "" 1 "" {XPPMATH 20 "6#/&%\"x
G6$%#DPG%#eqG$\"+(3M3e\"!#5" }}{PARA 11 "" 1 "" {XPPMATH 20 "6#/&%\"xG
6$%#TPG%#eqG$\"+)>io+*!#6" }}{PARA 11 "" 1 "" {XPPMATH 20 "6#/&%\"xG6$
%#H2G%#eqG$\"+Hl?#Q$!#5" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 101 "and i
t is pleasant to note that these numbers are in agreement with those c
alculated by Smith (1981)." }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 
"" 0 "" {TEXT -1 139 "Finally, we wish to see how the rate of reaction
 changed along the length of the reactor.  We make functions of the re
action rate equations" }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 43 "fr1:=unapp
ly(R[R1],seq(x[i],i=components));" }}{PARA 11 "" 1 "" {XPPMATH 20 "6#>
%$fr1G:6&%#y1G%#y2G%#y3G%#y4G6\"6$%)operatorG%&arrowGF+,&*$9$\"\"#$\"+
H=)G5'!\"**&9%\"\"\"9'F8$!+o=0c>!\")F+F+" }}}{EXCHG {PARA 0 "> " 0 "" 
{MPLTEXT 1 0 43 "fr2:=unapply(R[R2],seq(x[i],i=components));" }}{PARA 
11 "" 1 "" {XPPMATH 20 "6#>%$fr2G:6&%#y1G%#y2G%#y3G%#y4G6\"6$%)operato
rG%&arrowGF+,&*&9$\"\"\"9%F2$\"+Bu*o`$!\"**&9&F29'F2$!+(HO&otF6F+F+" }
}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 104 "and create a set of points for \+
each reaction rate evaluated at each incremental position in the react
or." }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 26 "for i from 1 to numpts do " 
}}{PARA 0 "> " 0 "" {MPLTEXT 1 0 58 "  R1pts[i] := [rkpts[i][1],fr1(se
q(rkpts[i][j],j=2..5))]; " }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 58 "  R2pt
s[i] := [rkpts[i][1],fr2(seq(rkpts[i][j],j=2..5))]; " }}{PARA 0 "> " 
0 "" {MPLTEXT 1 0 3 "od:" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 31 
"plot([seq(R1pts[i],i=1..100)]);" }}{PARA 13 "" 1 "" {TEXT -1 0 "" }}}
{EXCHG {PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 
31 "plot([seq(R2pts[i],i=1..100)]);" }}{PARA 13 "" 1 "" {TEXT -1 0 "" 
}}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 0 "" }}}{EXCHG {PARA 0 "" 0 "
" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 196 "Here we see that the r
ate of reaction 1 falls continuously to its equilibrium value whereas \+
the rate of reaction 2 rises at first, passes through a maximum before
 falling to its equilibrium value." }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}
{PARA 0 "" 0 "" {TEXT -1 181 "It would now be a simple matter to inves
tigate the effects of alternative reactor designs (tube length and dia
meter) or operating conditions (feed flow rate, temperature, pressure)
." }}}}{MARK "29 3 0" 0 }{VIEWOPTS 1 1 0 1 1 1802 }

