import numpy as np
from scipy.integrate import solve_ivp
import matplotlib.pyplot as plt
def batch_reactor(t, y, *args):
= y
ca, cb, cc = args
k1, k2
= k1 * ca
r1a = k2 * cb
r2b
= - r1a
dcadt = r1a - r2b
dcbdt = r2b
dccdt
return [dcadt, dcbdt, dccdt]
= 0.5
k1 = 0.2
k2
= 2
ca0
# initial conditions
= [ca0, 0, 0]
y0 = (k1, k2)
args = 6
t_final
= solve_ivp(batch_reactor, [0, t_final], y0, args=args, dense_output=True)
sol
= np.linspace(0,t_final, 1000)
t = sol.sol(t) ca, cb, cc
In class activity: Multiple reactions
Lecture notes for chemical reaction engineering
Reactor selection and operating conditions
For each of the following sets of reactions, describe your reactor system and conditions to maximize the selectivity to D. Make sketches where necessary to support your choices. The rates are in (mol/dm^3 \cdot s), and concentrations are in (mol/dm^3).
\ce{ A + B -> D } \qquad -r_{1A} = 10 \exp(-8000 K/T) C_A C_B
\ce{ A + B -> U } \qquad -r_{2A} = 100 \exp(-1000 K/T) C_A^{1/2} C_B^{3/2}
\ce{ A + B -> D } \qquad -r_{1A} = 100 \exp(-1000 K/T) C_A C_B
\ce{ A + B -> U } \qquad -r_{2A} = 10^6 \exp(-8000 K/T) C_A C_B
\ce{ A + B -> D } \qquad -r_{1A} = 10 \exp(-1000 K/T) C_A C_B
\ce{ B + D -> U } \qquad -r_{2B} = 10^9 \exp(-10000 K/T) C_B C_D
\ce{ A -> D } \qquad -r_{1A} = 4280 \exp(-12000 K/T) C_A
\ce{ D -> U1 } \qquad -r_{2D} = 10100 \exp(-15000 K/T) C_D
\ce{ A -> U2 } \qquad -r_{3A} = 26 \exp(-18800 K/T) C_A
\ce{ A + B -> D } \qquad -r_{1A} = 10^9 \exp(-10000 K/T) C_A C_B
\ce{ D -> A + B } \qquad -r_{2D} = 20 \exp(-2000 K/T) C_D
\ce{ A + B -> U } \qquad -r_{3A} = 10^3 \exp(-3000 K/T) C_A C_B
\ce{ A + B -> D } \qquad -r_{1A} = 800 \exp(-8000 K/T) C_A^{0.5} C_B
\ce{ A + B -> U1 } \qquad -r_{2B} = 10 \exp(-300 K/T) C_A C_B
\ce{ D + B -> U2 } \qquad -r_{3D} = 10^6 \exp(-8000 K/T) C_D C_B
\ce{ A + B -> D } \qquad -r_{1A} = 10 \exp(-8000 K/T) C_A C_B
\ce{ A + B -> U } \qquad -r_{2A} = 100 \exp(-1000 K/T) C_A^{1/2} C_B^{3/2}
(a) \ce{ A + B -> D }; \ce{ A + B -> U }
r_D = -r_{1A} = 10 \exp(-8000 K/T) C_A C_B
r_U = -r_{2A} = 100 \exp(-1000 K/T) C_A^{1/2} C_B^{3/2}
S_{D/U} = \frac{r_D}{r_U} = \frac{ 10 \exp(-8000 K/T) C_A C_B }{ 100 \exp(-1000 K/T) C_A^{1/2} C_B^{3/2} }
S_{D/U} = \frac{r_D}{r_U} = \frac{ \exp(-8000 K/T) C_A^{1/2} }{ 10 \exp(-1000 K/T) C_B^{1/2} }
To maximize S_{D/U} operate at:
High concentration of A
Low concentration of B
Reactors:
- Semibatch: B is fed slowly into large amt of A
- Tubular: Sidestream of B
- Series of small CSTRs: A is fed to the first reactor, B is fed into all reactors
At 300 K: k_1 = 2.623e-11; k_2 = 3.567e+00; k_1/k_2 = 7.353e-12
At 1000 K: k_1 = 3.355e-03; k_2 = 3.679e+01 k_1/k_2 = 9.119e-05
E_D > E_U: specific rate for D increases much more rapidly than U with temperature
S_{D/U} is very low (E_D > E_U): Operate at highest possible T
Need to keep (C_A/C_B)^{1/2} > 10^{6}: Drop by drop addition of B
\ce{ A + B -> D } \qquad -r_{1A} = 100 \exp(-1000 K/T) C_A C_B
\ce{ A + B -> U } \qquad -r_{2A} = 10^6 \exp(-8000 K/T) C_A C_B
(b) \ce{ A + B -> D }; \ce{ A + B -> U }
-r_{1A} = 100 \exp(-1000 K/T) C_A C_B
-r_{2A} = 10^6 \exp(-8000 K/T) C_A C_B
S_{D/U} = \frac{r_D}{r_U} = \frac{ 100 \exp(-1000 K/T) C_A C_B }{ 10^6 \exp(-8000 K/T) C_A C_B }
S_{D/U} = \frac{r_D}{r_U} = \frac{ \exp(-1000 K/T) }{ 10^4 \exp(-8000 K/T) }
S_{D/U} does not depend on concentration.
At 300 K: k_1 = 3.567e+00; k_2 = 2.623e-06; S_{D/U} = k_1/k_2 = 1.360e+06
At 1000 K: k_1 = 3.679e+01; k_2 = 3.355e+02 S_{D/U} = k_1/k_2 = 1.097e-01
E_D < E_U: specific rate for U increases much more rapidly than D with temperature
Operate at as low temperature as possible
\ce{ A + B -> D } \qquad -r_{1A} = 10 \exp(-1000 K/T) C_A C_B
\ce{ B + D -> U } \qquad -r_{2B} = 10^9 \exp(-10000 K/T) C_B C_D
(c) \ce{ A + B -> D }; \ce{ B + D -> U }
-r_{1A} = 10 \exp(-1000 K/T) C_A C_B
-r_{2B} = 10^9 \exp(-10000 K/T) C_B C_D
S_{D/U} = \frac{r_D}{r_U} = \frac{ 10 \exp(-1000 K/T) C_A C_B }{ 10^9 \exp(-10000 K/T) C_B C_D }
S_{D/U} = \frac{r_D}{r_U} = \frac{ \exp(-1000 K/T) C_A }{ 10^8 \exp(-10000 K/T) C_D }
S_{D/U} \propto \frac{C_A}{C_D}
To maximize S_{D/U} operate at:
High concentration of A
Low concentration of D
Reactors:
- Membrane reactor: D is removed as it is formed
- Reactive distillation.
At 300 K: k_1 = 3.567e-01; k_2 = 3.338e-06; k_1/k_2 = 1.069e+05
At 1000 K: k_1 = 3.679e+00; k_2 = 4.540e+04 k_1/k_2 = 8.103e-05
E_D < E_U: specific rate for U increases much more rapidly than D with temperature
Operate at as low temperature as possible
\ce{ A -> D } \qquad -r_{1A} = 4280 \exp(-12000 K/T) C_A
\ce{ D -> U1 } \qquad -r_{2D} = 10100 \exp(-15000 K/T) C_D
\ce{ A -> U2 } \qquad -r_{3A} = 26 \exp(-18800 K/T) C_A
(d) \ce{ A -> D }; \ce{ D -> U1 }; \ce{ A -> U2 }
-r_{1A} = 4280 \exp(-12000 K/T) C_A
-r_{2D} = 10100 \exp(-15000 K/T) C_D
-r_{3A} = 26 \exp(-18800 K/T) C_A
S_{D/U} = \frac{r_D}{r_{U_1} + r_{U_2}} = \frac{ 4280 \exp(-12000 K/T) C_A - 10100 \exp(-15000 K/T) C_D }{ 10100 \exp(-15000 K/T) C_D + 26 \exp(-18800 K/T) C_A }
At 300 K: k_1 = 1.818e-14; k_2 = 1.948e-18; k_3 = 1.582e-26.
C_A \gg C_D: S_{D/U} = k_1/k_3 = 1.149e+12
C_A \sim C_D: S_{D/U} = (k_1 - k_2)/(k2 + k_3) = 9.333e+03
At 1000 K: k_1 = 2.630e-02; k_2 = 3.090e-03; k_3 = 1.779e-07.
C_A \gg C_D: S_{D/U} = k_1/k_3 = 1.478e+05
C_A \sim C_D: S_{D/U} = (k_1 - k_2)/(k2 + k_3) = 7.511e+00
High selectivity is achieved at low temperature and C_A \gg C_D
Operate at as low as possible temperature
Reactors:
- Membrane : Remove D as it is formed
- Reactive distillation
\ce{ A + B -> D } \qquad -r_{1A} = 10^9 \exp(-10000 K/T) C_A C_B
\ce{ D -> A + B } \qquad -r_{2D} = 20 \exp(-2000 K/T) C_D
\ce{ A + B -> U } \qquad -r_{3A} = 10^3 \exp(-3000 K/T) C_A C_B
(e) \ce{ A + B -> D }; \ce{ D -> A + B }; \ce{ A + B -> U}
-r_{1A} = 10^9 \exp(-10000 K/T) C_A C_B
-r_{2D} = 20 \exp(-2000 K/T) C_D
-r_{3A} = 10^3 \exp(-3000 K/T) C_A C_B
S_{D/U} = \frac{r_D}{r_{U}} = \frac{ 10^9 \exp(-10000 K/T) C_A C_B - 20 \exp(-2000 K/T) C_D }{ 10^3 \exp(-3000 K/T) C_A C_B }
At 300 K: k_1 = 3.338e-06; k_2 = 2.545e-02; k_3 = 4.540e-02.
C_A C_B \gg C_D: S_{D/U} = k_1/k_3 = 7.353e-05
C_A C_B \sim C_D: S_{D/U} = (k_1 - k_2)/(k_3) = -5.606e-01
At 1000 K: k_1 = 4.540e+04; k_2 = 2.707e+00; k_3 = 4.979e+01.
C_A C_B \gg C_D: S_{D/U} = k_1/k_3 = 9.119e+02
C_A C_B \sim C_D: S_{D/U} = (k_1 - k_2)/(k_3) = 9.118e+02
High selectivity is achieved at high temperature and C_A C_B \gg C_D
Operate at as high as possible temperature
Reactors:
- Membrane : Remove D as it is formed
- Reactive distillation
\ce{ A + B -> D } \qquad -r_{1A} = 800 \exp(-8000 K/T) C_A^{0.5} C_B
\ce{ A + B -> U1 } \qquad -r_{2B} = 10 \exp(-300 K/T) C_A C_B
\ce{ D + B -> U2 } \qquad -r_{3D} = 10^6 \exp(-8000 K/T) C_D C_B
(f) \ce{ A + B -> D }; \ce{ A + B -> U1 }; \ce{ D + B -> U2 }
-r_{1A} = 800 \exp(-8000 K/T) C_A^{0.5} C_B
-r_{2B} = 10 \exp(-300 K/T) C_A C_B
-r_{3D} = 10^6 \exp(-8000 K/T) C_D C_B
S_{D/U} = \frac{r_D}{r_{U_1} + r_{U_2}} = \frac{ 800 \exp(-8000 K/T) C_A^{0.5} C_B - 10^6 \exp(-8000 K/T) C_D C_B }{ 10 \exp(-300 K/T) C_A C_B + 10^6 \exp(-8000 K/T) C_D C_B }
S_{D/U} = \frac{r_D}{r_{U_1} + r_{U_2}} = \frac{ 800 \exp(-8000 K/T) C_A^{0.5} - 10^6 \exp(-8000 K/T) C_D }{ 10 \exp(-300 K/T) C_A + 10^6 \exp(-8000 K/T) C_D }
- Selectivity is independent of concentration of B.
At 300 K: k_1 = 2.098e-09; k_2 = 3.679e+00; k_3 = 2.623e-06.
C_A^{0.5} \gg C_D: S_{D/U} = k_1/k_2 = 5.704e-10
C_A^{0.5} \sim C_D: S_{D/U} = (k_1 - k_3)/(k2 + k_3) = -7.125e-07
\rightarrow Negative selectivity: C_A^{0.5}/ C_D must be maintained above 1.250e+03
At 1000 K: k_1 = 2.684e-01; k_2 = 7.408e+00; k_3 = 3.355e+02.
C_A^{0.5} \gg C_D: S_{D/U} = k_1/k_2 = 3.623e-02
C_A^{0.5} \sim C_D: S_{D/U} = (k_1 - k_3)/(k2 + k_3) = -9.776e-01
\rightarrow Negative selectivity: C_A^{0.5}/ C_D must be maintained above 1.250e+03
At any condition, selectivity is very low.
Desired product can be obtained at high temperature and C_A \gg C_D, C_A^{0.5}/ C_D > 1.250e+03
Reactors:
- Membrane : Remove D as it is formed
- Reactive distillation
Series Reactions in a Batch Reactor
The elementary liquid-phase series reaction
\ce{A ->[k_1] B ->[k_2] C}
is carried out in a batch reactor. The reaction is heated very rapidly to the reaction temperature, where it is held at this temperature until the time it is quenched.
Plot and analyze the concentrations of species A, B, and C as a function of time.
Calculate the time to quench the reaction when the concentration of B will be a maximum.
What are the overall selectivity and yields at this quench time?
Additional Information:
C_{A0} = 2M, k_1 = 0.5 \ h^{-1}, k_2 = 0.2 \ h^{-1}
- Mole balance- constant volume batch reactor
\begin{aligned} \text{Component A:} \qquad & \frac{dC_A}{dt} = r_A \\ \text{Component B:} \qquad & \frac{dC_B}{dt} = r_B \\ \text{Component C:} \qquad & \frac{dC_C}{dt} = r_C \\ \end{aligned} \tag{1}
- Rate law
\begin{aligned} \ce{ A ->[k_1] B} \qquad & -r_{1A} = k_1 C_A \\ \ce{ B ->[k_2] C} \qquad & -r_{2B} = k_2 C_B \\ \end{aligned}
\begin{aligned} r_A & = & r_{1A} & = & - k_1 C_A \\ r_B & = & r_{1B} + r_{2B} & = & k_1 C_A - k_2 C_B \\ r_C & = & r_{2B} & = & k_2 C_B \\ \end{aligned} \tag{2}
- combine
Solve system of equations comprising of Equation 1, and Equation 2.
='$C_A$')
plt.plot(t, ca, label='$C_B$')
plt.plot(t, cb, label='$C_C$')
plt.plot(t, cc, label
'time (h)')
plt.xlabel('Concentration (M)')
plt.ylabel(
# Setting x and y axis limits
0, t_final)
plt.xlim(0, ca0)
plt.ylim(
plt.legend() plt.show()
= np.argmax(cb)
cbmax_idx = t[cbmax_idx]
tmax
# selectivity and yield at quench time
# S = CB/CC
# Y = CB/(CA0 - CA)
= ca[cbmax_idx]
caq = cb[cbmax_idx]
cbmax = cc[cbmax_idx]
ccq
= cbmax/ccq
sel = cbmax/(ca0 - caq) yld
- Quench time, t_{max} = 3.05 h
- Overall selectivity at t_{max}, S = 2.27
- Overall yield at t_{max}, Y = 0.69
Citation
@online{utikar2024,
author = {Utikar, Ranjeet},
title = {In Class Activity: {Multiple} Reactions},
date = {2024-03-23},
url = {https://cre.smilelab.dev//content/notes/06-multiple-reactions/in-class-activities.html},
langid = {en}
}