What you will build
The same job done by three different reactors: 200 m³/day of water carrying 50 g/m³ of a substance that decays by a first-order reaction (\(k = 0.2\) d⁻¹), always with a total reactor volume of 1000 m³ (\(\tau = 5\) days, \(k\tau = 1\)). You will see the removal improve from one CSTR to three in series to a plug-flow reactor, and then use a tracer to see why.
| Stage | Reactor | What to look for | Saved as |
|---|---|---|---|
| 1 | one CSTR, 1000 m³ | \(C = 50/(1 + 1) = 25\) g/m³; start-up along \(e^{-(1/\tau + k)t}\) | M4_stage1_cstr.ohq |
| 2 | three CSTRs of 333.3 m³ in series | \(50/(1 + 1/3)^3 = 21.09\) g/m³ | M4_stage2_three_cstrs.ohq |
| 3 | plug-flow reactor: ten cells of 100 m³ | \(50/1.1^{10} = 19.28\) g/m³ (ideal PFR: \(50e^{-1} = 18.39\)) | M4_stage3_pfr.ohq |
| 4 | tracer step through the CSTR and the plug-flow reactor | \(F = 1 - e^{-t/\tau}\) against the ten-tank \(F(t)\) | M4_stage4_tracer.ohq |
The system
| Item | Value |
|---|---|
| Flow and feed | \(Q = 200\) m³/day; Reactant 50 g/m³ (Stage 4 also Tracer 1 g/m³) |
| Reaction | first order, rate k*Reactant, \(k = 0.2\) d⁻¹, Reactant −1 (as in M2) |
| Total reactor volume | 1000 m³ in every stage: \(\tau = 5\) days, \(k\tau = 1\) |
| Outlet | a large Reactor (10⁶ m³), as in M1 |
| Simulation | 0–30 days (Stages 1–3), 0–20 days (Stage 4) |
Build: 1 Reaction 2 The CSTR 3 Settings
Stages: 1 CSTR 2 Three in series 3 Plug flow 4 Tracer test Checkpoints Explore Troubleshooting What to submit
1Constituent and reaction
Start a new model, load the Mass Transfer plugin, create a constituent Reactant, a Reaction Parameter k = 0.2 and a reaction decay with rate expression k*Reactant and Reactant:Stoichiometric Constant −1 (M2, Steps 1, 3 and 4).
k*Reactant (shown in parentheses once saved).2The CSTR
Build the tank of M1, Steps 3–5: a Reactor named CSTR with its own constant inflow, a large Reactor named Outlet, and a Fixed flow link from CSTR to Outlet.


This is Module 1's tank with Module 2's reaction added, which is exactly the CSTR of Module 4, Section 2.
3Simulation time and time step
General Settings: end time 30 days. Solver Settings: initial time-step 0.01 and maximum time-step increase factor 5.

Stage 1One CSTR
Save as M4_stage1_cstr.ohq and run. Plot CSTR → Reactant:Concentration.
Predict first: \(\tau = 1000/200 = 5\) days, \(k\tau = 1\), so the steady state is \(C = 50/(1 + 1) = 25\) g/m³: half is removed. The tank starts clean and approaches 25 g/m³ with the rate \(1/\tau + k = 0.4\) d⁻¹ (Module 4, Section 2): \(C(t) = 25(1 - e^{-0.4t})\).
Stage 2Three CSTRs in series
Save a copy as M4_stage2_three_cstrs.ohq. Replace the single tank by three: rename CSTR to Tank1 and set its Initial Storage to 333.33 m³ (it keeps the inflow of 200 m³/day at 50 g/m³). Add Tank2 and Tank3, each 333.33 m³ with no inflow, and connect Tank1 → Tank2 → Tank3 → Outlet with Fixed flow links of 200 m³/day. The total volume is still 1000 m³.


Predict with Module 4, Section 4: each tank has \(\tau/3 = 1.667\) days and multiplies the concentration by \(1/(1 + 1/3) = 0.75\):
\[ C_1 = 37.5, \qquad C_2 = 28.13, \qquad C_3 = 50 \times 0.75^3 = 21.09\ \text{g/m}^3 . \]Put the three tanks on one plot. Right-click Tank1 → Results → Reactant:Concentration and keep that plot window open. Open Tank2's Reactant:Concentration in a second window, right-click its chart → Copy curve, then right-click the chart of the Tank1 window → Paste. Close the second window and do the same for Tank3.
Stage 3A plug-flow reactor (ten cells)
Save a copy as M4_stage3_pfr.ohq and delete the three tanks and their links. A plug-flow reactor is modeled as many small CSTRs in series. With ten cells the result is \(50/(1 + 0.1)^{10} = 19.28\) g/m³, close to the ideal PFR's \(50e^{-1} = 18.39\) g/m³.
3a · The Plug flow reactor block
The Mass Transfer plugin has a Plug flow reactor block in the Blocks toolbar: ten equal Reactors (R01 … R10) already joined by Fixed flow links. Click it: it appears on the canvas as a single block, and its ten cells and nine links are listed under it in the Object Browser (named after the block, e.g. PFR__R01 … PFR__R10 for a block named PFR). Set its properties:


M4_stage3_pfr.ohq is built this way, so its results are identical.3b · Feeding the plug-flow reactor
The Plug flow reactor block has no "Constant Inflow" property, so the feed must enter through a link. Add a small Reactor named Feed: Initial Storage 1 m³, Constant Inflow 200 m³/day, Reactant:Constant Inflow concentration 50. Link Feed → plug-flow reactor (200 m³/day) and plug-flow reactor → Outlet (200 m³/day).


Why a tiny Feed tank, and not a large reservoir like M1's River?
Set the end time to 30 days, save and run. Plot the last cell: right-click the plug-flow reactor → Results → R10 → Reactant:Concentration (if you built the chain by hand, right-click R10 → Results → Reactant:Concentration). Then look along the reactor: plot R01 first, and paste R03, R05, R07 and R10 into the same plot window (open each in its own window, right-click its chart → Copy curve, right-click the R01 chart → Paste).
Each curve is one position along the reactor. (a) How does the steady concentration change from one cell to the next, and by what factor per cell? (b) Why does each cell further downstream start to rise later, and why have all of them levelled off by about 10 days? (c) Each cell is a small CSTR with \(\tau/10 = 0.5\) day. Explain why ten such cells come close to the ideal profile \(50e^{-0.2t'}\), where \(t'\) is the travel time to that point, and what would change with 100 cells.
Stage 4A tracer step test
Save a copy as M4_stage4_tracer.ohq. Add:
- a second constituent, Tracer (no reaction: leave it out of the decay reaction, stoichiometric constant 0);
- in Feed, Tracer:Constant Inflow concentration = 1: from time zero the feed carries tracer, a step input;
- a Reactor Mixed (Initial Storage 1000 m³, Constant Inflow 200 m³/day, Reactant 50 and Tracer 1 in its inflow), with a Fixed flow link Mixed → Outlet of 200 m³/day. It is the CSTR of Stage 1, running side by side.
Set the end time to 20 days, save and run. Plot Mixed → Tracer:Concentration and R10 → Tracer:Concentration (with the Plug flow reactor block: right-click it → Results → R10 → Tracer:Concentration), and put them on one panel: right-click the R10 chart → Copy curve, right-click the Mixed chart → Paste.


The mean residence time is 5 days in both, but the spread is very different: variance \(\tau^2\) for the CSTR and \(\tau^2/10\) for ten cells (Module 4, Section 6). That spread is why the CSTR removes less: some of its water leaves almost at once, before it has had time to react.
Checkpoints
Read these from your own runs; small differences in the last digit are normal. Steady-state values agree with the formulas exactly; transient values lag the formula slightly in the first days because of the time step, as in M1.
| Stage | Quantity | Model | Formula |
|---|---|---|---|
| 1 | CSTR at 2 / 5 / 10 / 30 days (g/m³) | 13.68 / 21.55 / 24.52 / 25.00 | 13.77 / 21.62 / 24.54 / 25.00 |
| 1 | CSTR storage (m³) | 1000 | 1000 |
| 2 | Tank1 / Tank2 / Tank3 at 30 days (g/m³) | 37.50 / 28.13 / 21.09 | 37.50 / 28.13 / 21.09 |
| 3 | Feed / R01 / R05 / R10 at 30 days (g/m³) | 49.95 / 45.41 / 31.02 / 19.26 | 49.95 / 45.41 / 31.02 / 19.26 (ideal PFR 18.39) |
| 4 | CSTR tracer F at 2.5 / 5 / 7.5 / 10 days | 0.392 / 0.630 / 0.775 / 0.863 | 0.394 / 0.632 / 0.777 / 0.865 |
| 4 | Ten-cell tracer F at 2.5 / 5 / 7.5 / 10 days | 0.038 / 0.535 / 0.920 / 0.993 | 0.032 / 0.542 / 0.930 / 0.995 |
The ten-cell front in the model is a little more spread out than the formula (0.038 against 0.032 at 2.5 days). That is numerical dispersion from the 0.05-day time step, which is a tenth of each cell's residence time. With the maximum time-step increase factor set to 1 (a 0.01-day step; the run takes about half a minute) the model gives 0.033 / 0.540 / 0.928 / 0.995. Module 5 returns to numerical dispersion.
Explore
Save a copy with File → Save as and change one thing at a time.
- Higher removal. In Stages 1 and 3, set k = 0.6 (\(k\tau = 3\)). Predict both effluents first (12.5 and \(50/1.3^{10} = 3.6\) g/m³). Why does the gap between CSTR and plug flow widen as the removal increases?
- Parallel instead of series. In Stage 2, connect the three 333.33 m³ tanks in parallel, each with its own inflow of 66.67 m³/day at 50 g/m³ and its own link to the Outlet. Check that each settles at 25 g/m³, the same as Stage 1 (Module 4, Section 4).
- A sharper front. In Stage 4, set the maximum time-step increase factor to 1 and compare the ten-cell tracer curve with the checkpoint table.
- Dead space. In Stage 4, raise Mixed's Initial Storage to 1500 m³ but imagine its true active volume is 1000 m³. How would a tracer test reveal the difference? (Module 4, Section 6: \(\bar t\) versus \(V/Q\).)
Troubleshooting
| A tank empties or overflows. | A link's flow does not match the inflow (200 m³/day everywhere in series). In the Plug flow reactor block, its own Flow property must also be 200. |
| The effluent stays at 50 g/m³. | The decay reaction is missing, its Reactant constant is 0, or the rate expression misspells k. |
| In Stage 3 the effluent slowly falls below 19.3 g/m³. | The feed comes from a large reservoir that is itself decaying. Use the 1 m³ Feed tank of Step 3b. |
| The tracer decays. | Tracer has a non-zero stoichiometric constant in the decay reaction; set it to 0. |
| The Plug flow reactor block cannot be found or gives an error. | Build the ten-cell chain by hand (Stage 3 note) or open M4_stage3_pfr.ohq, which contains it. |
What to submit
- Your four
.ohqfiles. - Stage 1: a plot of the CSTR with the formula \(25(1 - e^{-0.4t})\) marked at four or more times.
- Stages 1–3: a table of the steady-state effluent of the three designs (model and formula) and their percent removal, plus the ideal PFR value.
- Stage 4: one plot with both tracer curves and the two formulas; read \(F\) at \(t = \tau\) for each.
- Short answers (2–4 sentences each): (a) Using the Stage 4 tracer curves, explain why the CSTR removes less than the plug-flow reactor with the same volume. (b) Why does the CSTR reach its steady state faster than a tracer would in the same tank? (c) Your result for one Explore item, with a sentence explaining it.
Submit everything in one PDF plus the .ohq files in Brightspace → Assignments → Modeling Assignment M4.