Overview
In activated sludge (Module 11) the bacteria float in the water and a clarifier keeps them in the system. Most bacteria in nature do something simpler: they stick to a surface and build a slimy film, a biofilm, that stays put while the water flows past. Biofilms coat streambeds, sediments, aquifer grains, pipe walls, filter sand and the rocks or plastic of a trickling filter. Because the biomass is attached, the SRT is long without any clarifier. The price is that the substrate must diffuse into the film before it can be used, so the rate of a biofilm process is set by diffusion and reaction together. This module puts Fick's law (Module 5) and Monod kinetics (Modules 2 and 10) in the same equation and solves it.
- Describe biofilm structure (cells, EPS, density, thickness, boundary layer) and where biofilms matter in natural and engineered systems.
- Compute the substrate flux across a diffusion boundary layer.
- Write the diffusion–reaction equation for a biofilm and use its first-order solution: the concentration profile, the flux and the effectiveness factor.
- Distinguish deep and fully penetrated biofilms and use the limiting flux expressions for first- and zero-order kinetics.
- Use the biomass balance of a steady-state biofilm to find its thickness and the minimum substrate concentration Smin.
- Model a trickling filter as a biofilm reactor with a flux-based (first-order) rate, with and without recirculation, and build the model in OpenHydroQual.
Notation. \(S\) substrate (mg/L = g/m³): \(S_b\) in the bulk liquid, \(S_s\) at the biofilm surface; \(z\) depth into the biofilm (m, often µm = 10⁻⁶ m); \(L\) boundary-layer thickness, \(L_f\) biofilm thickness; \(D\) diffusion coefficient in water, \(D_f\) in the biofilm (m²/d; 1 cm²/d = 10⁻⁴ m²/d); \(k_L = D/L\) mass-transfer coefficient (m/d); \(X_f\) biofilm density (mg VSS/L of biofilm); \(\hat q, K_s, Y, b\) as in Modules 10–11; \(b_{det}\) detachment rate, \(b' = b + b_{det}\); \(k_1 = \hat qX_f/K_s\) first-order rate coefficient (d⁻¹); \(\tau = \sqrt{D_f/k_1}\) depth scale; \(\varphi = L_f/\tau\); \(J\) flux into the biofilm (g/(m²·d)); \(a\) specific surface of the media (m²/m³); \(q = Q/A\) hydraulic loading (m/d).
Reading (optional): Rittmann & McCarty, Environmental Biotechnology, ch. 4 (Biofilm Kinetics) and the aerobic biofilm processes chapter ☐; Mihelcic & Zimmerman 3rd ed., ch. 11, attached-growth processes ☐; Benjamin & Lawler, diffusion with reaction ☐ (sections not checked).
1Biofilms
A biofilm is a layer of microorganisms held together and to a surface (the substratum) by extracellular polymeric substances (EPS): polysaccharides, proteins and DNA that the cells excrete. EPS can make up most of the film's dry mass. Biofilms form in stages: cells attach to a surface, grow into microcolonies, build a mature film with channels and clusters, and shed cells and fragments back into the water.
- Thickness \(L_f\): from a few micrometres (a sparse film on a drinking-water filter) to millimetres (the top of a trickling filter).
- Density \(X_f\): typically 10–60 mg VSS per cm³ of film, i.e. 10,000–60,000 mg/L, ten to twenty times the MLVSS of activated sludge. We use 40,000 mg/L.
- Diffusion: water fills the film, so small molecules diffuse through it, somewhat more slowly than in water: \(D_f \approx 0.5\)–\(0.9\,D\). Water does not flow through the film; inside it, transport is by diffusion only.
- Boundary layer: between the moving bulk water and the film there is a thin layer of slow-moving water, the diffusion boundary layer (tens to hundreds of µm), across which substrate must also diffuse. Faster flow makes it thinner.
- Detachment: shear from the flowing water erodes the film continuously, and thick films can slough off in large pieces. Detachment, with decay, balances growth.
Where biofilms matter: trickling filters, rotating biological contactors and moving-bed reactors (wastewater); biologically active sand and carbon filters (drinking water); pipe walls in distribution systems; streambeds, where the biofilm on rocks removes much of the nutrient and organic load of a stream; sediments and aquifer grains, where attached bacteria degrade contaminants (Module 13 builds on this).
2Diffusion and reaction in a biofilm
Step 1: across the boundary layer
The boundary layer is stagnant water with no reaction, so at steady state the flux through it is constant and the profile is linear (Fick's first law, Module 5):
\(J\) is the mass delivered per unit biofilm area per time. Mind the units: with \(D\) in m²/d, \(L\) in m and \(S\) in g/m³, \(J\) is in g/(m²·d).
A small organic molecule has \(D = 1.0\) cm²/d \(= 1.0\times10^{-4}\) m²/d in water (\(1.16\times10^{-5}\) cm²/s). Across a 100 µm boundary layer, \(k_L = 10^{-4}/10^{-4} = 1.0\) m/d. If \(S_b = 2.0\) mg/L and \(S_s = 0.8\) mg/L, \(J = 1.0(2.0 - 0.8) = 1.2\) g/(m²·d).
Step 2: inside the biofilm
Take a thin slice of biofilm between depths \(z\) and \(z + dz\), with area \(A\). Substrate diffuses in from the surface side and out toward the substratum, and the bacteria in the slice consume it at the Monod rate. At steady state:
The balance on a slice, step by step
1. Diffusive flux at depth \(z\): \(J(z) = -D_f\,dS/dz\) (Fick).
2. Steady state in the slice: in − out − consumption = 0: \(A\,J(z) - A\,J(z + dz) - \dfrac{\hat q S}{K_s + S}X_f\,A\,dz = 0\).
3. Divide by \(A\,dz\) and let \(dz \to 0\): \(-dJ/dz = \hat qX_fS/(K_s + S)\), and with step 1:
\[ D_f\,\frac{d^2S}{dz^2} = \frac{\hat q\,X_f\,S}{K_s + S} \]
4. Boundary conditions: \(S = S_s\) at the surface (\(z = 0\)); no flux into the solid substratum, \(dS/dz = 0\) at \(z = L_f\).
This is the same diffusion equation as in Module 5, with a sink. It has no simple closed-form solution for Monod kinetics, but it does for the two limits of the Monod rate law (Module 2): first order when \(S \ll K_s\), rate \(= k_1S\) with \(k_1 = \hat qX_f/K_s\), and zero order when \(S \gg K_s\), rate \(= \hat qX_f\).
The first-order solution
Solving \(D_f S'' = k_1 S\)
1. Divide by \(D_f\): \(S'' = S/\tau^2\), with the depth scale \(\tau = \sqrt{D_f/k_1}\) (a length).
2. The general solution is a combination of \(\cosh\) and \(\sinh\) of \(z/\tau\). Writing it around the substratum, \(S = C_1\cosh\big((L_f - z)/\tau\big) + C_2\sinh\big((L_f - z)/\tau\big)\), the no-flux condition at \(z = L_f\) gives \(C_2 = 0\).
3. \(S = S_s\) at \(z = 0\) gives \(C_1 = S_s/\cosh(L_f/\tau)\):
\[ S(z) = S_s\,\frac{\cosh\big((L_f - z)/\tau\big)}{\cosh(L_f/\tau)} \]
4. The flux into the film is the diffusive flux at the surface: \(J = -D_f\,S'(0) = \dfrac{D_fS_s}{\tau}\tanh(L_f/\tau) = \sqrt{k_1D_f}\,\tanh\varphi\;S_s\), with \(\varphi = L_f/\tau\).
\(\varphi\) compares the film thickness with the depth the substrate can reach before it is used up (it is often called the Thiele modulus). The effectiveness factor \(\eta\) is the actual flux divided by the flux the film would have if every cell saw the surface concentration: it is near 1 for thin films and \(1/\varphi\) for thick ones.
Putting the two steps together
The boundary layer and the biofilm are two resistances in series: the same flux passes through both. Writing \(k_b = \sqrt{k_1D_f}\tanh\varphi\) for the biofilm, \(J = k_L(S_b - S_s) = k_bS_s\). Eliminating \(S_s\):
Aerobic heterotrophs: \(\hat q = 10\) mg/(mg·d), \(K_s = 10\) mg/L, \(X_f = 40{,}000\) mg/L, so \(k_1 = 10(40{,}000)/10 = 40{,}000\) d⁻¹; with \(D_f = 0.8\times10^{-4}\) m²/d, \(\tau = \sqrt{0.8\times10^{-4}/40{,}000} = 4.47\times10^{-5}\) m = 44.7 µm, and \(\sqrt{k_1D_f} = 1.789\) m/d. For a 200 µm film, \(\varphi = 4.47\), \(\tanh\varphi = 0.9997\), \(\eta = 0.224\): at \(S_s = 1\) mg/L, \(J = 1.788\) g/(m²·d). Only the outer quarter of the film is really working. For a 20 µm film, \(\varphi = 0.447\), \(\tanh\varphi = 0.420\), \(\eta = 0.938\), and \(J = 0.751\) g/(m²·d).
The 200 µm film of Example 12b sits under a 100 µm boundary layer (\(k_L = 1.0\) m/d) in water at \(S_b = 1.0\) mg/L. Then \(J = 1.0/(1/1.0 + 1/1.788) = 1.0/(1.000 + 0.559) = 0.641\) g/(m²·d) and \(S_s = 1.0 - 0.641/1.0 = 0.359\) mg/L. The boundary layer holds 64 % of the total resistance: faster flow past the film (a thinner boundary layer) would help more than a thicker film. Stage 2 of the OpenHydroQual assignment computes this case.
Biofilm profile and flux explorer (first-order kinetics)
\(D = 1.0\) cm²/d in the boundary layer.
Concentration profile through the boundary layer and the biofilm (shaded)
Flux against biofilm thickness, with the thin and deep limits
3Deep and fully penetrated biofilms
The flux expression has two simple limits, and real biofilms are often close to one of them.
- Fully penetrated (thin) biofilm, \(\varphi \lesssim 0.3\): \(\tanh\varphi \approx \varphi\), so \(J \approx k_1L_fS_s = \dfrac{\hat q}{K_s}\,(X_fL_f)\,S_s\). The substrate reaches the substratum almost undiminished and every cell works at the surface concentration. The film behaves like suspended biomass with \(X_fL_f\) g of cells per m²: doubling the biomass doubles the flux.
- Deep biofilm, \(\varphi \gtrsim 3\): \(\tanh\varphi \approx 1\), so \(J \approx \sqrt{k_1D_f}\,S_s\). The substrate is used up before it reaches the bottom of the film; the deeper cells starve. Making the film thicker does not change the flux, and doubling \(X_f\) raises it only by \(\sqrt 2\).
The flux explorer above shows both: the flux rises in proportion to \(L_f\) for thin films and levels off at the deep-film value beyond \(L_f \approx 3\tau\).
Zero-order kinetics (\(S \gg K_s\))
When the substrate is abundant the bacteria work at their maximum rate \(\hat qX_f\) wherever substrate is present. A fully penetrated film then has \(J = \hat qX_fL_f\). In a deep film the substrate penetrates only to a depth \(z^*\), beyond which \(S = 0\):
Deriving the zero-order deep flux
1. In the active layer \(D_fS'' = \hat qX_f\), constant. Integrate twice with \(S = 0\) and \(S' = 0\) at \(z = z^*\): \(S = \dfrac{\hat qX_f}{2D_f}(z^* - z)^2\).
2. At the surface \(S = S_s\): \(z^* = \sqrt{2D_fS_s/(\hat qX_f)}\).
3. All the substrate entering is used in the active layer: \(J = \hat qX_fz^* = \sqrt{2D_f\hat qX_fS_s}\).
In a deep film the flux grows with the square root of the concentration (zero order) or in proportion to it (first order): a deep biofilm is not a zero-order reactor even when its bacteria are saturated.
With the kinetics of Example 12b and \(S_s = 20\) mg/L (only twice \(K_s\), so the zero-order formula is an upper estimate): \(J = \sqrt{2(0.8\times10^{-4})(10)(40{,}000)(20)} = 35.8\) g/(m²·d), and the substrate penetrates \(z^* = \sqrt{2(0.8\times10^{-4})(20)/(4\times10^5)} = 89\) µm. A 200 µm film would be fully active only if it got \(\hat qX_fL_f = 80\) g/(m²·d), which diffusion cannot deliver.
Which substrate limits: the organic or the oxygen?
4The steady-state biofilm and Smin
Biomass balance per unit area
A biofilm grows from the substrate it consumes, \(YJ\) g VSS/(m²·d), and loses biomass by decay and detachment, \(b'X_fL_f\) with \(b' = b + b_{det}\). At steady state the two balance:
A biofilm is not a fixed amount of biomass: it grows or shrinks until its biomass matches its flux. A larger substrate supply gives a thicker film.
The minimum substrate concentration
In a fully penetrated film every cell sees \(S_s\). Steady state then requires the net growth rate to be zero, \(Y\hat qS/(K_s + S) = b'\), which happens at only one concentration:
Below \(S_{min}\) the bacteria lose biomass faster than they make it, and no steady-state biofilm can exist; above it, a film grows until it brings the concentration down (or until diffusion limits it). \(S_{min}\) is the same quantity as the \(S\) of an activated sludge plant at infinite SRT (Module 11), with \(b'\) in place of \(b\). It explains why biofilm processes cannot polish water to zero and why very dilute contaminants (for example in groundwater) can persist even where degrading bacteria are present.
A completely mixed biofilm reactor
Put media with attached biofilm in a completely mixed reactor (volume \(V\), flow \(Q\), influent \(S_0\)), and let \(B\) be the biofilm biomass per m³ of reactor. If the film is thin, so that diffusion does not limit it, the balances look like Module 11's with no washout:
The attached biomass cannot be washed out, however large the flow, so the effluent goes to \(S_{min}\) and the biomass adjusts to the load. The detached biomass (\(b_{det}BV\) g/d) leaves with the effluent as suspended solids, at \(X_d = b_{det}BV/Q\).
With \(Y = 0.5\), \(\hat q = 10\) d⁻¹, \(K_s = 10\) mg/L, \(b = 0.10\) and \(b_{det} = 0.04\) d⁻¹: \(b' = 0.14\) d⁻¹ and \(S_{min} = 10(0.14)/(5 - 0.14) = 0.288\) mg/L. The film of Example 12c carries \(J = 0.641\) g/(m²·d); at steady state it would hold \(X_fL_f = 0.5(0.641)/0.14 = 2.29\) g/m², i.e. \(L_f = 2.29/40{,}000 = 57\) µm, not the 200 µm we assumed. A real film would thin out until its biomass matched its flux.
A 100 m³ reactor packed with media (\(a = 500\) m²/m³) treats 500 m³/d of water with \(S_0 = 10\) mg/L. With the kinetics of Example 12e, \(S = S_{min} = 0.288\) mg/L and \(B = 0.5(500)(10 - 0.288)/(0.14 \times 100) = 173\) g/m³ of reactor, or \(173/500 = 0.347\) g/m² of media: \(L_f = 8.7\) µm and \(\varphi = 0.19\). The film is indeed thin, so the no-diffusion assumption holds. The effluent carries \(X_d = 0.04(173)(100)/500 = 1.39\) mg/L of detached biomass. This is Stage 1 of the OpenHydroQual assignment.
Steady-state biofilm calculator
Smin and the steady thickness against the detachment rate
5Trickling filters as biofilm reactors
optional Brunswick Sewer District: Trickling Filters (2 min, a real plant) · Karl-Uwe Schmitz: Trickling filter process, compared with activated sludge (3 min).
A trickling filter is a bed of rock or plastic media, 1–12 m deep, over which settled wastewater is sprayed by a rotating distributor. The water trickles down over the biofilm that covers the media in a thin film, never filling the pores; air moves through the open pores (natural draft from the temperature difference between the air and the water, or fans) and supplies oxygen. Detached biofilm ("humus") is carried out with the effluent and removed in a clarifier. Part of the effluent is often recirculated to the top to keep the media wet. Because the biomass is attached, there is no return sludge and no SRT to control.
A flux-based model
Follow the water down the filter. A slice of depth \(dz\) and plan area \(A\) holds \(aA\,dz\) m² of biofilm, which removes \(J\,aA\,dz\) g/d. The water carries \(QS\) g/d. With the water moving in plug flow (Module 4) and no change in time, the mass balance on the slice is
The biofilm in a trickling filter is thick: it is a deep biofilm (Section 3), whose flux depends on \(S\) and not on how much biomass there is. If the flux is first order in \(S\), \(J = k_fS\) with an overall coefficient \(k_f\) (m/d) that lumps the boundary layer and the film, as in Section 2, the equation integrates directly:
Performance depends on the depth \(H\), the media surface \(a\), and the hydraulic loading \(q\) (m³ of water per m² of filter per day). The observed \(k_f\) of full-scale filters (≈ 0.05–0.2 m/d ☐) is much smaller than the ideal \(1/(1/k_L + 1/\sqrt{k_1D_f})\) of Example 12c, because the media are only partly wetted and because oxygen, not the organic substrate, often limits the flux.
The biofilm follows the substrate. At steady state each part of the film has \(X_fL_f = YJ/b' = Yk_fS/b'\), so the film is thickest at the top and thins with depth. The detached biomass leaving the filter is \(b_{det}\) times all the biofilm biomass.
Recirculation
If a flow \(RQ\) of effluent is returned to the top, the filter receives \((1 + R)Q\) at the mixed concentration \(S_{mix} = (S_0 + RS_e)/(1 + R)\), and \(S_e = S_{mix}\exp[-k_faH/((1 + R)q)]\). Solving the two equations together:
A filter 6 m deep, 50 m² in plan, with plastic media of \(a = 100\) m²/m³, receives 1500 m³/d (\(q = 30\) m/d) at \(S_0 = 150\) mg/L soluble bCOD. With \(k_f = 0.10\) m/d: \(k_faH/q = 0.1(100)(6)/30 = 2.0\), so \(S_e = 150e^{-2} = 20.3\) mg/L (86.5 % removal). Ninety percent removal would need \(H = (30/10)\ln 10 = 6.9\) m. At steady state the film at the top holds \(X_fL_f = 0.5(0.1)(150)/0.14 = 53.6\) g/m² (1.3 mm thick) and at the bottom 0.18 mm: both are deep films (\(\tau = 45\) µm), as the model assumes. With recirculation \(R = 1\): \(f = e^{-1} = 0.368\) and \(S_e = 0.368(150)/(2 - 0.368) = 33.8\) mg/L.
Recirculation made the effluent worse. Why do plants use it?
The same plug-flow balance can be solved as a chain of completely mixed segments, which is how you build it in OpenHydroQual: with \(N\) segments, \(S_e/S_0 = (1 + k_faH/(Nq))^{-N}\), which approaches the exponential as \(N\) grows (Module 4). For Example 12g, 10 segments give 24.2 mg/L instead of 20.3.
Trickling filter explorer
Plug flow, first-order flux; biofilm thickness from \(L_f = Yk_fS/(b'X_f)\) with \(Y = 0.5\), \(b' = 0.14\) d⁻¹, \(X_f = 40{,}000\) mg/L.
Substrate and steady biofilm thickness down the filter
6Modeling with OpenHydroQual
In OpenHydroQual the biofilm biomass is an Immobile constituent: it stays in the block where you put it while the water and the substrate flow through, and it grows by a reaction with the mobile substrate and dissolved oxygen. Three stages follow the page: a completely mixed biofilm reactor (Section 4), the inside of a biofilm resolved into ten layers that exchange substrate by diffusion only (Sections 2–3), and a trickling filter as ten biofilm segments in series (Section 5).
Modeling Assignment M12 (OpenHydroQual). Biofilms in OpenHydroQual: a biofilm reactor, the inside of a biofilm, and a trickling filter: an illustrated step-by-step guide. You watch a biofilm grow until the water reaches Smin, reproduce the cosh profile and the flux of Example 12c, and build a 6 m trickling filter whose effluent matches the tanks-in-series formula. Every stage is checked against the formulas of this page.
7Practice (ungraded)
New numbers every time. Aim for two correct attempts in a row on each type before taking the quiz. Most errors here are unit errors: convert µm to m and cm²/d to m²/d before you compute, and remember that mg/L = g/m³ so a flux comes out in g/(m²·d).
A · Flux across a boundary layer
B · A first-order biofilm
C · Deep biofilms: first and zero order
D · Smin and the steady-state biofilm
E · Trickling filter
Concept checks
1. A biofilm is "deep" (φ ≫ 1). The operator lets it grow from 500 to 1000 µm thick. The substrate flux into it:
2. In Example 12c, 64 % of the resistance to substrate transfer is in the boundary layer. Which change raises the flux the most?
3. What is Smin?
4. Why does a biofilm reactor not need a clarifier and return line to keep a long SRT?
5. In the flux-based trickling filter model, doubling the hydraulic loading q (same depth, media and kf) changes ln(S0/Se) by a factor of:
8Graded quiz, modeling assignment and Problem Set 12
When you can do every practice problem without opening the solution, go to Brightspace → Quizzes → Module 12: Biofilms and Trickling Filters.
- Boundary-layer flux, the first-order biofilm solution, deep and fully penetrated limits, Smin and the steady-state biofilm, the trickling filter model; numerical questions use different numbers for every student and attempt.
- 2 attempts, highest score counts. Calculator and notes allowed.
Then complete Problem Set 12 (PDF) and the OpenHydroQual Modeling Assignment M12 (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
Boundary layer: \(J = k_L(S_b - S_s)\), \(k_L = D/L\).
Biofilm: \(D_f\,S'' = \hat qX_fS/(K_s + S)\); first order (\(k_1 = \hat qX_f/K_s\), \(\tau = \sqrt{D_f/k_1}\), \(\varphi = L_f/\tau\)): \(S = S_s\dfrac{\cosh((L_f - z)/\tau)}{\cosh\varphi}\), \(J = \sqrt{k_1D_f}\tanh(\varphi)S_s\), \(\eta = \tanh\varphi/\varphi\).
In series: \(J = S_b/(1/k_L + 1/k_b)\), \(k_b = \sqrt{k_1D_f}\tanh\varphi\).
Limits: thin \(J = k_1L_fS_s\) (first order), \(\hat qX_fL_f\) (zero order); deep \(J = \sqrt{k_1D_f}S_s\), \(\sqrt{2D_f\hat qX_fS_s}\), \(z^* = \sqrt{2D_fS_s/(\hat qX_f)}\).
Steady biofilm: \(X_fL_f = YJ/b'\), \(b' = b + b_{det}\); \(S_{min} = K_sb'/(Y\hat q - b')\); mixed reactor with thin film: \(S = S_{min}\), \(B = YQ(S_0 - S)/(b'V)\).
Trickling filter: \(S_e/S_0 = \exp(-k_faH/q)\), \(q = Q/A\); with recirculation \(S_e = fS_0/(1 + R - Rf)\), \(f = \exp[-k_faH/((1 + R)q)]\); \(N\) segments: \((1 + k_faH/(Nq))^{-N}\).