Overview
Module 1 gave you the well-mixed tank with flow but no reaction; Module 2 gave you reactions in a closed batch with no flow. Real treatment units and natural systems have both: water flows through while substances react. How much is removed depends not only on the rate law and the residence time but also on how the water moves through the reactor: completely mixed, in plug flow, or somewhere in between. This module develops the two ideal flow reactors, the CSTR and the PFR, combines them in series, in parallel and with recycle, and shows how a tracer test tells you how a real reactor behaves.
- Describe the batch reactor, the CSTR and the PFR, and write the mass balance for each with a reaction.
- Find the steady-state effluent of a CSTR and a PFR for zero-, first- and second-order reactions, and the volume needed for a given removal.
- Describe the transient (start-up) response of a CSTR with a first-order reaction.
- Analyze reactors in series and in parallel, including N equal CSTRs in series and their approach to plug flow.
- Analyze a PFR with recycle.
- Interpret pulse and step tracer tests: compute the mean residence time, the variance and the equivalent number of tanks, and detect dead space.
- Build CSTR, tanks-in-series and plug-flow models in OpenHydroQual and check them against the formulas.
Notation. \(V\) volume (m³), \(Q\) flow (m³/day), \(\tau = V/Q\) the hydraulic residence time, \(C_{\text{in}}\) and \(C\) (or \(C_e\)) the influent and effluent concentrations, \(k\) a rate constant (Module 2), \(N\) the number of tanks in series, \(R\) the recycle ratio, \(E(t)\) and \(F(t)\) the pulse and step responses of a tracer, \(\bar t\) the mean residence time and \(\sigma^2\) the variance of a tracer curve.
Reading (optional): Benjamin & Lawler, Water Quality Engineering, ch. 1 (Reactors and reactions) and ch. 4 (Residence time distributions) ☐; Mihelcic & Zimmerman, Environmental Engineering 3rd ed., §4.5 (Reactor analysis) ☐; MWH Water Treatment ch. 6 ☐. Section numbers not checked.
1Ideal reactors and the residence time
Three idealized reactors bracket the behavior of real tanks, basins, channels, lakes and rivers:
- Batch (Module 2): closed, completely mixed, no flow; the concentration changes with time.
- Continuous-flow stirred-tank reactor (CSTR), or completely mixed flow reactor: the contents are so well mixed that the concentration is the same everywhere and equal to the effluent's (the tank of Module 1). Examples: a mixed aeration basin, a small well-mixed pond, a flash mixer.
- Plug-flow reactor (PFR): water moves through as a series of slugs that do not mix with each other along the flow; the concentration falls with distance. Examples: a long, narrow channel or pipe, a packed column, a reach of river (approximately).
In both continuous-flow reactors the hydraulic residence time \(\tau = V/Q\) (Module 1) is the key time scale. In a PFR every parcel stays exactly \(\tau\); in a CSTR parcels stay anywhere from zero to a very long time, with an average of \(\tau\). That difference in the distribution of residence times, not the average, is what makes them perform differently (Section 6).
A 2,000 m³ basin receives 500 m³/day: \(\tau = 2000/500 = 4\) days, whether it is mixed or plug flow.
2The CSTR
Steady state
The mass balance of Module 1 with the reaction term of Module 2, on a CSTR of volume \(V\) with \(C_{\text{out}} = C\):
At steady state \(dC/dt = 0\), so \(Q(C_{\text{in}} - C) = -rV\): what the flow carries in and does not carry out is destroyed by reaction, at the rate evaluated at the effluent concentration, because that is the concentration everywhere in the tank. Dividing by \(Q\):
| Rate law | CSTR effluent | Residence time for a target C |
|---|---|---|
| zero order, \(r = -k\) | \(C = C_{\text{in}} - k\tau\) (≥ 0) | \(\tau = (C_{\text{in}} - C)/k\) |
| first order, \(r = -kC\) | \(C = \dfrac{C_{\text{in}}}{1 + k\tau}\) | \(\tau = \dfrac{C_{\text{in}}/C - 1}{k}\) |
| second order, \(r = -kC^2\) | \(C = \dfrac{-1 + \sqrt{1 + 4k\tau C_{\text{in}}}}{2k\tau}\) | \(\tau = \dfrac{C_{\text{in}} - C}{kC^2}\) |
The dimensionless group \(k\tau\) (the Damköhler number for a first-order reaction) compares how fast the reaction is with how long the water stays. For first order, removal is \(k\tau/(1 + k\tau)\): 50 % at \(k\tau = 1\), 90 % at \(k\tau = 9\), 99 % at \(k\tau = 99\). High removal in a single CSTR is expensive.
A CSTR with \(V = 5{,}000\) m³ receives \(Q = 1{,}000\) m³/day at 100 mg/L of a substance with first-order \(k = 0.3\) d⁻¹. \(\tau = 5\) days, \(k\tau = 1.5\), and \(C = 100/2.5 = 40.0\) mg/L (60 % removal). For 95 % removal it would need \(\tau = (20 - 1)/0.3 = 63.3\) days, a 63,300 m³ tank.
Same tank (\(\tau = 5\) d, \(C_{\text{in}} = 100\) mg/L). Second order with \(k = 0.01\) L/(mg·d): \(C = [-1 + \sqrt{1 + 4(0.01)(5)(100)}]/(2 \times 0.01 \times 5) = 35.8\) mg/L. Zero order with \(k = 10\) mg/(L·d): \(C = 100 - 50 = 50.0\) mg/L.
Start-up: the transient CSTR
For a first-order reaction, \(dC/dt = (C_{\text{in}} - C)/\tau - kC\). It has exactly the form of Module 1's tank, with the rate constant \(1/\tau + k\) instead of \(1/\tau\):
Because both the outflow and the reaction remove mass, a reactive substance reaches steady state faster than a tracer would.
The tank of Example 2a starts clean. It approaches 40 mg/L with the rate \(1/5 + 0.3 = 0.5\) d⁻¹: after 2 days it is at \(40(1 - e^{-1}) = 25.3\) mg/L, and it reaches 95 % of steady state after \(\ln 20/0.5 = 6.0\) days, against 15.0 days (3τ) for a conservative tracer.
3The plug-flow reactor
Derivation
Take a thin slice of a PFR of cross-section \(A\) between \(x\) and \(x + \Delta x\). At steady state, the balance on the slice is in − out + reaction = 0:
where \(\tau' = Ax/Q = x/u\) is the time a parcel has spent in the reactor (\(u = Q/A\) the velocity). This is the batch equation of Module 2, with the travel time in place of the batch time. So the effluent of a PFR with residence time \(\tau\) is simply the batch result after time \(\tau\):
| Rate law | PFR effluent | Residence time for a target C |
|---|---|---|
| zero order | \(C = C_{\text{in}} - k\tau\) | \(\tau = (C_{\text{in}} - C)/k\) |
| first order | \(C = C_{\text{in}}\,e^{-k\tau}\) | \(\tau = \ln(C_{\text{in}}/C)/k\) |
| second order | \(C = \dfrac{C_{\text{in}}}{1 + kC_{\text{in}}\tau}\) | \(\tau = (1/C - 1/C_{\text{in}})/k\) |
The reactor of Example 2a built as a PFR (\(\tau = 5\) d, \(k = 0.3\) d⁻¹): \(C = 100e^{-1.5} = 22.3\) mg/L (77.7 % removal, against 60 % in the CSTR). For 95 % removal, \(\tau = \ln 20/0.3 = 9.99\) days, a 9,990 m³ reactor instead of 63,300 m³.
Why plug flow wins (for orders above zero)
In a CSTR the whole volume sits at the low effluent concentration, so a rate that grows with concentration runs at its slowest everywhere. In a PFR each parcel starts at the inlet concentration and only reaches the effluent concentration at the end. For a first-order reaction, the volume ratio for a removal fraction \(f\) is
1.44 for 50 % removal, 3.91 for 90 %, 6.34 for 95 % and 21.5 for 99 %. For a second-order reaction the penalty is larger still; for a zero-order reaction there is none (the rate does not depend on concentration).
Reactor comparison
Fraction remaining against kτ
4Reactors in series and in parallel
CSTRs in series
The effluent of one tank is the influent of the next. With a first-order reaction each tank multiplies the concentration by \(1/(1 + k\tau_i)\). For \(N\) equal tanks sharing a total residence time \(\tau\) (each \(\tau/N\)):
A chain of CSTRs approaches a PFR as \(N\) grows. This is how baffles improve a basin, and how OpenHydroQual (and most numerical models) represent plug flow: as many small mixed cells in series.
Total \(\tau = 5\) days, \(k = 0.3\) d⁻¹, \(C_{\text{in}} = 100\) mg/L. One tank: 40.0 mg/L; two: 32.7; three: 29.6; five: 26.9; ten: 24.7; twenty: 23.5; the PFR: 22.3 mg/L. Most of the benefit comes from the first few compartments.
Reactors in parallel
When the flow is split between parallel reactors, each sees its own share. Two equal CSTRs with the flow split equally each have \(\tau = 2V/Q\): they behave like one tank of twice the volume. An unequal split is always worse, because the overloaded unit loses more than the underloaded unit gains.
Two 5,000 m³ CSTRs, \(Q = 1{,}000\) m³/day, \(k = 0.3\) d⁻¹, 100 mg/L. In series: \(100/(1 + 1.5)^2 = 16.0\) mg/L. In parallel (500 m³/day each, \(\tau = 10\) d): \(100/(1 + 3) = 25.0\) mg/L, the same as one 10,000 m³ tank. With a 700/300 split, the two effluents are 31.8 and 16.7 mg/L and the mix is 27.3 mg/L, worse than an even split.
Does the order of a CSTR and a PFR in series matter?
Profile through tanks in series
Concentration in each tank (steps) against the PFR profile
5Recycle
Part of the effluent, \(RQ\), is returned to the inlet of a PFR. The reactor then carries \((1 + R)Q\), and its inlet is a mix of fresh feed and effluent. Mass balance at the mixing point, then the PFR equation with residence time \(V/[(1+R)Q] = \tau/(1+R)\):
As \(R\) grows, the reactor is mixed by its own recycle and its performance moves from the PFR toward the CSTR. For a first-order reaction recycle therefore reduces removal; it is used for other reasons, such as diluting a concentrated or toxic feed, evening out loads, or keeping velocities up. (Recycling biomass is a different matter and is the heart of activated sludge, Module 11.)
A PFR with \(k\tau = 1.5\): without recycle \(C_e/C_{\text{in}} = 0.223\); with \(R = 1\), 0.309; \(R = 4\), 0.364; \(R = 20\), 0.391; and the CSTR limit is \(1/2.5 = 0.400\).
6Tracer tests: pulse and step responses
optional LearnChemE: Residence Time Distribution Introduction (6 min) · optional LearnChemE: Modeling Non-Ideal Reactors with CSTRs in Series (5 min).
No real reactor is perfectly mixed or in perfect plug flow. To find out how one behaves, add a conservative tracer (a dye, salt, lithium or fluoride) at the inlet and measure it at the outlet.
- Pulse input: a mass \(M\) is added all at once. The outlet curve, normalized by its area, is the residence time distribution \(E(t) = C(t)/\int_0^\infty C\,dt\): the fraction of the water leaving at time \(t\) per unit time. Mass recovery: \(Q\int_0^\infty C\,dt\) should equal \(M\).
- Step input: the inlet concentration jumps from 0 to \(C_0\) and stays. The outlet, \(F(t) = C(t)/C_0\), is the fraction of the water that has been in the reactor less than \(t\). \(F\) is the integral of \(E\).
| Reactor | Pulse response \(E(t)\) | Step response \(F(t)\) | Variance \(\sigma^2\) |
|---|---|---|---|
| ideal PFR | a spike at \(t = \tau\) | a jump from 0 to 1 at \(t = \tau\) | 0 |
| ideal CSTR | \(\dfrac{1}{\tau}e^{-t/\tau}\) | \(1 - e^{-t/\tau}\) (Module 1) | \(\tau^2\) |
| N equal tanks in series | \(\dfrac{(N/\tau)^N\,t^{N-1}e^{-Nt/\tau}}{(N-1)!}\) | \(1 - e^{-Nt/\tau}\displaystyle\sum_{i=0}^{N-1}\frac{(Nt/\tau)^i}{i!}\) | \(\tau^2/N\) |
What to compute from a tracer curve
With measurements at equal intervals \(\Delta t\):
- \(\bar t\) should equal \(V/Q\). If \(\bar t < V/Q\) with full tracer recovery, part of the volume is dead space that the flow bypasses; the effective volume is \(\bar tQ\).
- \(N\) measures how close the reactor is to plug flow: 1 for a CSTR, large for a PFR. A real basin is then modeled as \(N\) tanks in series with residence time \(\bar t\), and its first-order removal predicted as \((1 + k\bar t/N)^{-N}\).
- An early, sharp peak followed by a long tail signals short-circuiting: part of the flow takes a fast path from inlet to outlet.
A 100 g pulse is added to a basin with \(Q = 10\) m³/h. Hourly outlet samples (g/m³) from \(t\) = 0 to 12 h are 0, 0.379, 0.920, 1.255, 1.353, 1.283, 1.120, 0.925, 0.733, 0.562, 0.421, 0.309, 0.223, and they continue to fall to 0.002 at 24 h. Summing all 25 values: \(\sum C\Delta t = 9.99\) g·h/m³, so the recovered mass is \(10 \times 9.99 = 99.9\) g (complete). \(\bar t = 5.99\) h, \(\sigma^2 = 11.8\) h², and \(N = 5.99^2/11.8 = 3.0\): the basin behaves like three tanks in series. If its volume were 80 m³ (\(V/Q = 8\) h), a quarter of it would be dead space.
Tracer-response explorer
Pulse response E(t)
7Modeling with OpenHydroQual
Everything in this module can be built from the pieces you already know: Reactor blocks (CSTRs), Fixed flow links, and a reaction. A CSTR is one Reactor with an inflow and an outflow link; tanks in series are Reactors joined by links; and a PFR is approximated by many small Reactors in series, exactly the tanks-in-series idea of Section 4. The Mass Transfer plugin also offers a ready-made Plug flow reactor block that contains ten equal Reactors joined by links. Because ten tanks have a variance of τ²/10, it carries a little mixing (numerical dispersion), which you will see in the tracer stage and meet again in Module 5.
Modeling Assignment M4 (OpenHydroQual). One CSTR, three in series, and a plug-flow reactor: removal and tracer response: an illustrated step-by-step guide. With the same total volume (1000 m³), flow and first-order rate throughout, you build a single CSTR, then three CSTRs in series, then a ten-cell plug-flow reactor, and finally send a tracer step through the single CSTR and the plug-flow reactor side by side. Every stage is checked against the formulas of Sections 2, 4 and 6.
8Practice (ungraded)
New numbers every time. Aim for two correct attempts in a row on each type before taking the quiz. Keep \(k\) and \(\tau\) in the same time units, and use the effluent concentration in a CSTR's rate.
A · CSTR at steady state
B · PFR and the volume ratio
C · Tanks in series and in parallel
D · CSTR start-up
E · From a tracer test to a removal prediction
Concept checks
1. A CSTR and a PFR have the same volume and flow. For a zero-order reaction (that does not consume everything), which removes more?
2. In a CSTR with a first-order reaction, at which concentration is the reaction rate evaluated?
3. A tracer test on a basin gives N = 12. What is the best simple model for it?
4. Adding recycle (R = 3) around a PFR with a first-order reaction will:
5. A clean CSTR is started up. Which reaches its steady state faster: a conservative tracer or a reactive substance (first order)?
9Graded quiz, modeling assignment and Problem Set 4
When you can do every practice problem without opening the solution, go to Brightspace → Quizzes → Module 4: Continuous-Flow Reactors.
- CSTR and PFR performance, volume comparisons, series and parallel reactors, recycle, start-up, and tracer tests; numerical questions use different numbers for every student and attempt.
- 2 attempts, highest score counts. Calculator and notes allowed.
Then complete Problem Set 4 (PDF) and the OpenHydroQual Modeling Assignment M4 (guide), and submit both in Brightspace. Build your own spreadsheet or calculations; no starter files are provided. CEE 566 students also complete the graduate problem.
Key equations
\(\tau = V/Q\). CSTR: \(C_{\text{in}} - C = -r(C)\tau\); first order \(C = C_{\text{in}}/(1 + k\tau)\); second order \(C = [-1 + \sqrt{1 + 4k\tau C_{\text{in}}}]/(2k\tau)\); zero order \(C = C_{\text{in}} - k\tau\).
CSTR start-up: \(C = C_{\text{ss}} + (C_0 - C_{\text{ss}})e^{-(1/\tau + k)t}\).
PFR: \(dC/d\tau' = r\) (a batch in travel time); first order \(C = C_{\text{in}}e^{-k\tau}\); second order \(C = C_{\text{in}}/(1 + kC_{\text{in}}\tau)\). \(V_{\text{CSTR}}/V_{\text{PFR}} = [1/(1-f) - 1]/\ln[1/(1-f)]\).
N tanks in series: \(C_N/C_{\text{in}} = (1 + k\tau/N)^{-N} \to e^{-k\tau}\). Parallel, equal split: same as one tank of the total volume.
PFR with recycle: \(C_e/C_{\text{in}} = e^{-k\tau/(1+R)}/[1 + R - Re^{-k\tau/(1+R)}]\).
Tracers: \(\bar t = \sum tC/\sum C\), \(\sigma^2 = \sum(t - \bar t)^2C/\sum C\), \(N = \bar t^2/\sigma^2\); CSTR \(F = 1 - e^{-t/\tau}\), \(E = e^{-t/\tau}/\tau\); effective volume \(\bar tQ\).