Reactor design, kinetics & conversion
Six self-contained experiments, each solved live in your browser with hand-rolled numerics — no libraries. The rate ODEs are integrated with RK4, the design equations are solved on the fly, and every plot is drawn on a canvas. Pick an experiment on the left, then move through Aim, Theory, Procedure, the live Simulation, a graded Self-assessment, and References.
1 · Batch reactor kinetics
In a well-mixed, constant-volume batch reactor there is no inflow or outflow. The mole balance on reactant A reduces to the rate of change of concentration equalling the reaction rate:
where k is the rate constant, n the reaction order and CA the concentration of A. The fractional conversion is defined relative to the initial charge:
Closed-form solutions exist for the integer orders, and the simulator's RK4 integrator must reproduce them exactly:
order 1: CA = CA0 e^(−k t), t½ = ln2 / k
order 2: 1/CA = 1/CA0 + k t, t½ = 1 / (k CA0)
Note that only the first-order half-life is independent of the starting concentration — a fingerprint used to identify reaction order experimentally.
- Open the Simulation tab.
- Choose a reaction order (0, 1 or 2) with the segmented control.
- Set the rate constant k and initial concentration CA0 with the sliders.
- Press Run and watch the stirred tank fade as A is consumed; the live readouts show CA, X and the instantaneous rate.
- For order 1, read the half-life and check that it equals ln2 / k and does not change when you raise CA0.
- Switch the curve toggle between concentration and conversion and compare the shapes.
Stirred batch reactor idle
Kinetics
The math
RK4 on dCA/dt = -k CA^n. Half-life: order 1 gives ln2/k (independent of CA0); order 2 gives 1/(k CA0). The error stat is the maximum gap between the numeric and analytic curve.- Fogler, H. S. — Elements of Chemical Reaction Engineering, Ch. 1-5 (Mole Balances, Batch). Pearson.
- Levenspiel, O. — Chemical Reaction Engineering, Ch. 3 (Interpretation of Batch Reactor Data). Wiley.
- Virtual Labs (IIT) — Chemical Engineering: Batch Reactor, vlabs.ac.in.
2 · CSTR steady-state design
A CSTR is assumed perfectly mixed, so the exit stream has exactly the contents' composition. A steady-state mole balance on A (in − out + generation = 0) gives the classic design equation:
where FA0 = CA0 · v0 is the molar feed rate and the rate is evaluated at the exit conditions CA = CA0(1−X). Defining the space time τ = V / v0, for an n-th order reaction:
For first order this rearranges to a clean closed form; for second order it is a quadratic in X. The simulator solves the implicit equation by bisection so any positive order works:
Unlike a batch or PFR, the whole CSTR operates at the (low) exit rate, so it generally needs the largest volume for positive-order kinetics.
- Open the Simulation tab.
- Pick the order, then set k, feed concentration CA0 and volumetric flow v0.
- Adjust the reactor volume V and watch the solver return the steady-state exit conversion.
- Confirm the first-order case against
X = kτ/(1+kτ)using the displayed space time τ. - Increase v0 (shorter τ) and note conversion falls; increase V and note it rises toward 1.
CSTR apparatus steady
Design inputs
The math
tau*k*CA0^(n-1)*(1-X)^n - X = 0 over X in [0,1). Da = k*tau*CA0^(n-1). The whole tank reacts at the slow exit rate — that is why CSTRs are volume-hungry.- Fogler, H. S. — Elements of Chemical Reaction Engineering, Ch. 2 & 5 (Conversion and Reactor Sizing, CSTR). Pearson.
- Levenspiel, O. — Chemical Reaction Engineering, Ch. 5 (Ideal Reactors for a Single Reaction). Wiley.
- Virtual Labs (IIT) — Chemical Engineering: Continuous Stirred Tank Reactor, vlabs.ac.in.
3 · PFR — plug-flow reactor
In an ideal PFR the fluid moves as discrete plugs with no axial mixing; composition varies continuously down the tube. A differential mole balance over a slice dV gives the design equation:
Because FA0 = CA0 v0, dividing through introduces the space time and the integral becomes purely a function of kτ. Integrating from the inlet (X = 0) to volume V:
order 2: X = kτ CA0 / (1 + kτ CA0)
The simulator marches X forward in V with RK4, so the curve is exact even for non-integer orders. Compare it to the CSTR result of the same τ: the PFR always converts more for positive order because it exploits the high inlet rate.
- Open the Simulation tab.
- Set order, k, CA0 and the volumetric flow v0.
- Drag the reactor volume slider; the marker sweeps down the tube and the conversion profile fills in.
- Note the tube colour gradient — dark feed at the inlet fading to converted product at the outlet.
- For order 1, verify the exit conversion equals
1 - exp(-k*tau)shown in the readout. - Switch the overlay to compare the PFR profile with the single-CSTR exit at the same τ.
Tubular plug-flow reactor flowing
Design inputs
The math
RK4 on dX/dV = k*CA0^(n-1)*(1-X)^n / v0. The result depends only on k*tau. For order 1 the exact exit conversion is 1 - exp(-k*tau).- Fogler, H. S. — Elements of Chemical Reaction Engineering, Ch. 2 & 5 (Tubular Reactors). Pearson.
- Levenspiel, O. — Chemical Reaction Engineering, Ch. 5 (Plug Flow Reactor). Wiley.
- Virtual Labs (IIT) — Chemical Engineering: Plug Flow Reactor, vlabs.ac.in.
4 · CSTR vs PFR — Levenspiel plot
Both ideal reactor volumes are integrals (or areas) on the same axes. Plotting the reciprocal rate 1/(−rA) against conversion X — the Levenspiel plot — turns sizing into reading an area:
V_CSTR = FA0 · X / (−rA)|X (rectangle to the exit point)
For positive-order kinetics the rate falls (so 1/(−rA) rises) as X grows. The PFR uses the small area under the rising curve; the CSTR is forced to use the full-height rectangle evaluated at the slow exit rate. Hence:
The ratio V_CSTR / V_PFR grows with target conversion and with reaction order. For autocatalytic or negative-order behaviour the inequality can reverse — the geometry tells you instantly.
- Open the Simulation tab.
- Choose order, k and feed CA0.
- Slide the target conversion X and watch both shaded regions grow: the area (PFR) and the rectangle (CSTR).
- Read the two required volumes and their ratio; confirm PFR < CSTR for orders 1 and 2.
- Push X toward 1 and observe both areas blow up — the last few percent of conversion are the most expensive.
Levenspiel plot PFR smaller
Kinetics and target
The math
1/(-rA) from 0 to X. CSTR: rectangle X / (-rA)|X. Ratio = V_CSTR / V_PFR. For positive order the curve rises, so the rectangle beats the area — PFR wins.- Levenspiel, O. — Chemical Reaction Engineering, Ch. 5-6 (Single & Multiple Reactor Systems). Wiley.
- Fogler, H. S. — Elements of Chemical Reaction Engineering, Ch. 2 (Reactor Sizing, Levenspiel plots). Pearson.
- Virtual Labs (IIT) — Chemical Engineering: Comparison of Reactors, vlabs.ac.in.
5 · Arrhenius temperature law
The Arrhenius equation captures the strong temperature sensitivity of most reaction rates:
where A is the pre-exponential (frequency) factor, Ea the activation energy, R = 8.314 J/mol·K and T the absolute temperature. Taking logarithms linearises it:
So a plot of ln k against 1/T is a straight line of slope −Ea/R and intercept ln A. Measuring k at two temperatures is enough:
A rough rule of thumb: a 10 K rise near room temperature roughly doubles many rates — the simulator lets you check this for any Ea you set.
- Open the Simulation tab.
- Set the activation energy Ea and pre-exponential factor A with the sliders.
- Drag the temperature marker along the curve; the dot moves along the Arrhenius and ln-plot lines together.
- Read the recovered slope (−Ea/R) and intercept (ln A) from the fitted line and confirm they match the inputs.
- Use the k(T2)/k(T1) readout to test the 10 K doubling rule for different Ea values.
Arrhenius plots linear in 1/T
Parameters
The math
(1/T, ln k) points; its slope m gives Ea = -m*R and intercept gives ln A. Recovered Ea should equal your input to within rounding.- Fogler, H. S. — Elements of Chemical Reaction Engineering, Ch. 3 (Rate Laws, Arrhenius). Pearson.
- Levenspiel, O. — Chemical Reaction Engineering, Ch. 2 (Kinetics of Homogeneous Reactions). Wiley.
- Atkins, P. & de Paula, J. — Physical Chemistry, Ch. on Reaction Kinetics. Oxford.
6 · Reaction order determination
The integral method assumes an order, integrates the batch rate law and checks whether the data fall on a straight line. Each order has its own linear coordinate:
order 1: ln CA vs t (slope = −k)
order 2: 1/CA vs t (slope = +k)
The correct order is the one whose transformed plot is straight — quantified by the coefficient of determination R² closest to 1. The rate constant follows from the slope of that best-fit line.
The simulator generates noisy data from a hidden true order and asks you to identify it — just as a real kinetic study would, where measurement scatter makes the wrong orders look almost-but-not-quite linear.
- Open the Simulation tab.
- Press New data set to generate noisy CA(t) measurements from a hidden true order.
- Toggle between the three linearisations and read each one's R².
- Pick the order whose plot is straightest (highest R²) and read off the recovered k.
- Press Reveal to check your call against the hidden true order, then add or remove noise and repeat.
Integral-method fit fit a line
Analysis
The math
R-squared. The order with the highest R-squared is the answer; its slope magnitude is the rate constant k.- Levenspiel, O. — Chemical Reaction Engineering, Ch. 3 (Interpretation of Batch Reactor Data, integral & differential methods). Wiley.
- Fogler, H. S. — Elements of Chemical Reaction Engineering, Ch. 7 (Collection and Analysis of Rate Data). Pearson.
- Virtual Labs (IIT) — Chemical Engineering: Determination of Order of Reaction, vlabs.ac.in.