← Module 8 · Modeling Assignment M8 (OpenHydroQual)

Particle size classes settling in a basin

An illustrated, step-by-step worked example · about 50 minutes · the latest OpenHydroQual · uses Module 8, Sections 2–4 (Stokes' law, the ideal basin, settling as a first-order sink) and the Module 1 guide

What you will build

A completely mixed settling basin with a plan area of 400 m², 3 m deep, receiving 2000 m³/day: an overflow rate of 5 m/day. You will settle one particle size class, then four (2, 5, 10 and 20 µm, with velocities from Stokes' law), then split the basin into five cells in series. Every stage is checked against the formulas of Module 8, and you will compare all of them with Hazen's ideal basin.

StageWhat changesWhat to look forSaved as
1one class (10 µm, \(v_s = 7.76\) m/day), completely mixed basin\(C = C_{\text{in}}/(1 + v_s/v_0) = 9.80\) g/m³M8_stage1_one_class.ohq
2+ three more classes: 2, 5 and 20 µmthe same formula class by class; overall removal 45.3 %M8_stage2_size_classes.ohq
3the basin split into 5 cells in series\(C = C_{\text{in}}(1 + x/5)^{-5}\); overall removal 52.4 %, ideal basin 61.3 %M8_stage3_cells_in_series.ohq

The system

ItemValue
Basinplan area \(A = 400\) m², depth \(H = 3\) m, volume \(V = 1200\) m³, completely mixed
Flow\(Q = 2000\) m³/day in and out: overflow rate \(v_0 = Q/A = 5\) m/day, residence time \(\tau = 0.6\) day (14.4 h)
Particlesquartz (2650 kg/m³) at 20 °C; 25 g/m³ of each class in the inflow. Stokes' law (Module 8, Section 2) gives
P2 (2 µm) 0.31 m/day · P5 (5 µm) 1.94 m/day · P10 (10 µm) 7.76 m/day · P20 (20 µm) 31.05 m/day
Sludge zonea large block below the basin that collects what settles
Simulation0 to 3 days (about 13 residence times of the slowest-responding class)

How OpenHydroQual represents settling: a Solid Particle constituent carries a settling velocity \(v_s\). A Settling element interface link between a block and a block with a lower bottom elevation moves particle mass downward at the rate \(v_s \times \text{(interface area)} \times C_{\text{upper block}}\). That is the settling flux \(v_sAC\) of Module 8, Section 4, so a well-mixed basin block loses particles as a first-order sink with \(k = v_s/H\).

1Start a model and load the Mass Transfer plugin

Start a new model and add the Mass Transfer plugin exactly as in the M1 guide, Step 1 (File → Preferences → Add plugin). It provides the Reactor block, the Fixed flow link and, new in this module, the Settling element interface link.

File menu: Preferences, Add plugin
1 File → 2 Preferences → 3 Add plugin.
Select Plugin: Mass Transfer
1 Mass Transfer, then 2 OK.

2Create a particle class: a Solid Particle

In M1 you created a dissolved Chemical constituent. Particles need a different type, because they also settle. Use Add Objects → Chemistry → Solid Particle.

Add Objects, Chemistry, Solid Particle
1 Add Objects → 2 Chemistry → 3 Solid Particle.
Solid Particle properties: name P10, settling velocity 7.76 m/day
Select the new particle under Constituents and set its properties. Double-click a value to edit it; the settling velocity then shows its unit box (here m/day).
PropertyValueMeaning
1NameP10the 10 µm class
2Settling velocity7.76 m/day\(v_s\) from Stokes' law: \(9.81(2650 - 998.2)(10^{-5})^2/(18\times1.002\times10^{-3}) = 8.98\times10^{-5}\) m/s
Check the unit first. The settling velocity box has a unit selector (m/s, m/day, ft/s, ft/day). Choose m/day before you type 7.76; 7.76 m/s would empty the basin in a fraction of a second. Leave the two turbidity coefficients at 0.

3The basin: a Reactor block

Add a Reactor (as in M1, Step 3) and name it Basin. It is the completely mixed basin of Module 8, Section 4. This time the Bottom elevation matters: it tells OpenHydroQual which way is down.

Blocks toolbar: Reactor icon
1 The Reactor icon.
Basin properties
Properties of the basin.
PropertyValueMeaning
1P10:Concentration0 g/m³initial concentration: the basin starts with clear water
2P10:Constant Inflow concentration25 g/m³\(C_{\text{in}}\) of the 10 µm class
3Initial Storage1200 m³\(V = A \times H = 400 \times 3\)
4Bottom elevation0 mthe basin floor; the sludge zone will be below it
5Constant Inflow2000 m³/day\(Q\)
6NameBasin

4The outlet and the sludge zone

Add an Outlet Reactor to the right of the basin exactly as in M1, Step 4 (Initial Storage 1e+06 m³, Bottom elevation 0). Then add a third Reactor below the basin for the settled particles:

Sludge zone properties
1 Initial Storage 1e+06 m³, 2 Bottom elevation −1 m (lower than the basin), 3 Name Sludge. Constant inflow 0.

The Sludge block is a bookkeeping device: its P10:Mass is the mass that has settled. Its large storage only keeps its "concentration" small; it plays no physical role. What matters is that its bottom elevation is lower than the basin's.

5Two links: outflow and settling

First draw a Fixed flow link from Basin to Outlet (as in M1, Step 5) with a flow rate of 2000 m³/day, equal to the inflow.

Links toolbar: Fixed flow icon
1 The Fixed flow link.

Then choose the Settling element interface icon in the Links toolbar and drag from Basin to Sludge.

Links toolbar: Settling element interface icon
1 The Settling element interface link (hover to see the name).
Basin, Outlet and Sludge on the canvas with two links
1 Basin, 2 the Fixed flow link to 3 Outlet, 4 the settling interface to 5 Sludge.
Settling element interface properties
Properties of the settling interface.
PropertyValueMeaning
1Interface area400 m²the plan area \(A\) of the basin floor
2Constant flow0 m³/dayno water crosses the interface; only particles fall through it
3Length1 m (default)used only for diffusion; no effect here

For every particle class, this link now carries \(v_s \times 400 \times C_{\text{Basin}}\) g/day from the basin to the sludge zone. A dissolved Chemical constituent would not settle across it.

Why does the bottom elevation decide the direction?
The particle's transfer expression multiplies the settling term by a switch that is 1 only when the "from" block has the higher bottom elevation. If both blocks are at the same elevation, nothing settles; if the sludge block were higher, particles would "settle" upward from it. Check the elevations whenever a settling model gives no removal.

6Simulation time and time step

General Settings: simulation end time 3
General Settings: 1 Simulation end time 3 (days).
Solver Settings
Solver Settings, as in M1: 1 initial time-step 0.01, 2 maximum time-step increase factor 5.

The basin responds quickly: its rate constant is \(Q/V + v_s/H = 1.67 + 2.59 = 4.25\) day⁻¹ for P10, so it is at steady state within a day. Three days also covers the slowest class (P2, 1.77 day⁻¹).

Stage 1One size class

Save as M8_stage1_one_class.ohq, then Run Model (as in M1).

Run Model button
1 Run Model.
Running Model window
Close the run window when it says Finished!

Before you look, predict the steady state with Module 8, Section 4 (a completely mixed basin, \(x = v_s/v_0\)):

\[ x = \frac{7.76}{5} = 1.552, \qquad C = \frac{C_{\text{in}}}{1 + x} = \frac{25}{2.552} = 9.80\ \text{g/m}^3, \qquad r = \frac{x}{1+x} = 60.8\ \%. \]
Right-click Basin, Results, P10:Concentration
Right-click Basin → 1 Results → 2 P10:Concentration.
Basin P10 concentration rising to 9.8
The basin fills to 9.80 g/m³, not to the inflow's 25: the settling sink removes 60.8 % of the 10 µm particles. The approach follows \(C = 9.80(1 - e^{-4.25t})\).
Sludge P10 mass growing linearly
Right-click Sludge → Results → P10:Mass. After the first few hours it grows in a straight line at \(v_sAC = 7.76 \times 400 \times 9.80 = 30{,}400\) g/day: 60.8 % of the 50,000 g/day that enters.
Where is the ideal basin in this picture?
Hazen's ideal basin would remove all of the 10 µm particles, because \(v_s = 7.76 > v_0 = 5\) m/day. A single well-mixed block cannot do that: mixing keeps lifting particles back up, and the outflow carries the basin-average concentration. Stage 3 shows how much of the gap is closed by reducing the mixing.

Stage 2Four size classes

Save a copy as M8_stage2_size_classes.ohq. Add three more Solid Particle constituents (Step 2) and set:

NameDiameterSettling velocity (m/day)Basin: Constant Inflow concentration
P22 µm0.3125 g/m³
P55 µm1.9425 g/m³
P1010 µm7.76 (already there)25 g/m³
P2020 µm31.0525 g/m³
Object Browser with four particle constituents and the Basin properties
1 The four particles under Constituents. In the Basin's properties, 2 each class now has its own Constant Inflow concentration (25 g/m³). The links do not change: one settling interface serves every particle class, each with its own \(v_s\).
Basin concentrations of the four classes on one plot
Basin concentrations of the four classes on one panel. Plot Basin → Results → P2:Concentration, then open each other class in its own plot window, right-click its chart → Copy curve, and right-click the P2 chart → Paste. The finer the class, the closer it stays to 25 g/m³: at 3 days P2 23.4 (still creeping up to its steady 23.5), P5 18.0, P10 9.80, P20 3.47 g/m³.

Compute the removal of each class and the overall removal, \(R = 1 - \sum C_i / (4 \times 25)\), and compare with Module 8, Example 4a. Then fill in the column for the ideal basin with \(r = \min(1, v_s/v_0)\): 6.2, 38.8, 100 and 100 %, overall 61.3 %.

Stage 3Five cells in series

Mixing hurt the removal in Stages 1–2. A long basin is closer to plug flow: split it into five completely mixed cells in series (Module 4, reactors in series), each with one fifth of the area and the volume.

What this represents. Stages 1–2 treated the basin as one completely mixed tank, like a small square pond stirred by wind. Real sedimentation tanks for water and wastewater (and many stormwater ponds) are long rectangular basins: water enters at one end and leaves at the other, and the water near the outlet has had more time to lose its particles than the water near the inlet. Cutting the basin into cells in series lets the concentration fall along its length. One cell is the mixed tank; many cells approach plug flow (Module 4); five is a reasonable picture of a real horizontal-flow basin with some mixing.

Sludge (settled particles collect on the floor) Cell1240 m³, 80 m²Cell2240 m³, 80 m²Cell3240 m³, 80 m²Cell4240 m³, 80 m²Cell5240 m³, 80 m² inflow effluent flow → 2000 m³/day along the basin (side view; depth 3 m, total area 400 m²) ↓ each cell loses particles to the sludge at the rate v_s × (its floor area) × C
Stage 3: the same 1200 m³ basin seen from the side, cut into five completely mixed cells along the flow. Water passes Cell1 → Cell5; in every cell the particles settle onto that cell's part of the floor.

Save a copy of Stage 2 as M8_stage3_cells_in_series.ohq and rebuild the middle of it:

  1. Rename Basin to Cell1 and change its Initial Storage to 240 m³ (it keeps the inflow of 2000 m³/day at 25 g/m³ per class).
  2. Add four more Reactors, Cell2–Cell5: Initial Storage 240 m³, Bottom elevation 0, no constant inflow and inflow concentrations 0 (they are fed by the links).
  3. Fixed flow links Cell1 → Cell2 → Cell3 → Cell4 → Cell5 → Outlet, each 2000 m³/day (delete the old Cell1 → Outlet link).
  4. A Settling element interface from each cell to Sludge, each with an area of 80 m² (400/5) and constant flow 0.
Five cells in series, each with a settling interface to Sludge
1 Cell1 … Cell5 joined by Fixed flow links, 2 five settling interfaces into 3 Sludge, 4 Outlet.
Cell1 properties
Cell1: 1 Initial Storage 240 m³, 2 Constant Inflow 2000 m³/day. Cells 2–5 have Constant Inflow 0.

Each cell has \(x/5\), so the effluent of Cell5 is predicted by

\[ C_5 = \frac{C_{\text{in}}}{(1 + x/5)^5}: \qquad \text{P10: } \frac{25}{(1 + 0.3104)^5} = 6.47\ \text{g/m}^3\ (74.1\ \%). \]
P10 concentration in Cell1 to Cell5 on one plot
P10:Concentration in Cell1 to Cell5 on one panel (Cell1 plotted, the other four pasted in with Copy curve / Paste, as in Stage 2): each cell removes the same fraction, 1 − 1/1.31 = 23.7 %, so the concentration steps down 19.1, 14.6, 11.1, 8.48, 6.47 g/m³. The overall removal of the four classes rises from 45.3 % (one cell) to 52.4 %; plug flow would give 54.2 % and the ideal basin 61.3 %.

Checkpoints

Read these from your own runs; small differences in the last digit are normal. Because of the time step the model lags the formula during the first day (about 3 % low at 0.5 day, under 1 % from 1 day on), so compare from 0.5 day on and expect the early values to differ by more than the last digit.

StageQuantityModelFormula
1Basin P10 at 0.5 / 1 / 3 days (g/m³)8.40 / 9.59 / 9.808.63 / 9.66 / 9.80
1Sludge P10 mass at 3 days (g)84,10084,100
2Basin P2 / P5 / P10 / P20 at 3 days (g/m³)23.40 / 17.99 / 9.80 / 3.4723.42 / 17.99 / 9.80 / 3.47
2Effluent TSS (sum) and overall removal54.65 g/m³, 45.4 %54.68 g/m³, 45.3 %
3Cell5 P2 / P5 / P10 / P20 at 3 days (g/m³)23.51 / 17.20 / 6.47 / 0.4423.51 / 17.20 / 6.47 / 0.44
3P10 in Cell1 … Cell5 (g/m³)19.08 / 14.56 / 11.11 / 8.48 / 6.4719.08 / 14.56 / 11.11 / 8.48 / 6.47
3Overall removal52.4 %52.4 % (ideal basin 61.3 %)

The Stage 1 sludge mass agrees with the formula to within 0.01 %, and the settling rate after the first day to within 0.1 %.

Explore

Save a copy with File → Save as and change one thing at a time.

Troubleshooting

No settling: the basin goes to 25 g/m³.The Sludge block's bottom elevation is not lower than the basin's, the interface area is 0, or the constituent is a Chemical constituent instead of a Solid Particle.
The basin empties, or the Sludge storage grows.The interface's Constant flow is not 0, so water drains through it. Plot Basin Storage: it must stay at 1200 m³.
Almost everything settles, even P2.The settling velocity unit is m/s instead of m/day (Step 2).
No Settling element interface icon.The Mass Transfer plugin is not loaded (Step 1).
Stage 3 cells do not match the formula.Check that only Cell1 has a constant inflow, every link carries 2000 m³/day, each cell is 240 m³ and each interface is 80 m².

What to submit