What a network of zones should achieve

An ideally mixed model uses one concentration for the entire vessel. A compartment model divides it into a few regions, each with its own balance, connected by through-flows or exchange flows. This can distinguish a well-supplied region, a feed-adjacent zone and a slowly exchanged region without resolving every turbulent motion.

Choose the number of zones from the question and available information. More zones create more parameters, not automatically more knowledge. Twenty freely adjustable exchange flows may reproduce one trace closely yet fail at a new operating state. A simpler model with clear limits may better support the decision.

First select the target: local substrate peaks, recovery following a pulse, oxygen-supply distribution or feed-position effects. Then decide which spatial distinctions are required. Zones with equivalent dynamics for that target may be combined. Visually convenient geometric boundaries are insufficient justification.

Keep network provenance explicit: process diagram, tracer measurements, local sensors or reduced CFD results. These sources provide different information. An exchange volume derived from flow simulation is initially a model output and also needs appropriate assessment.

Applying consistent balances to every zone

For a dissolved component in zone i with volume Vᵢ and concentration Cᵢ, the inventory balance is d(VᵢCᵢ)/dt = ΣQⱼᵢCⱼ − ΣQᵢⱼCᵢ + inputᵢ − consumptionᵢ. Use consistent time and volume bases for all flows. If volume changes, differentiate the product; VᵢdCᵢ/dt alone is insufficient.

Every internal flow is an outlet from one zone and an inlet to another. Summing all zone balances must cancel these internal contributions exactly, leaving only external flows and reactions. This simple total-balance check efficiently detects sign, index and unit errors.

Exchange differs from external throughput. A closed batch vessel can have large internal circulation despite zero external throughput. In a continuous system, return flows can greatly exceed feed. Substituting feed rate as exchange between every zone imposes an additional physical assumption.

Link reactions to consistent inventory quantities. A volumetric consumption in mg/(L·s) is multiplied by zone volume in a mass balance. A biomass-specific rate needs the corresponding local biomass concentration. Do not silently normalise local growth or uptake rates by total vessel volume.

A closed two-zone case with an exact solution

The synthetic case has two ideal mixed zones: A with 100 L and B with 20 L. Exchange is 2 L/s in each direction, with no external inlet, outlet or reaction. Initially A contains 1 mg/L of a conservative marker and B contains none. Total mass is therefore 100 mg; their eventual common concentration must be 100/120 = 0.833333 mg/L.

The equations are dCA/dt = (2/100)(CB − CA) and dCB/dt = (2/20)(CA − CB). Difference Δ = CA − CB obeys dΔ/dt = −0.12Δ. Hence Δ(t) = exp(−0.12t) mg/L, with difference time constant 8.3333 s.

It follows that CA = 5/6 + exp(−0.12t)/6 and CB = 5/6 − 5exp(−0.12t)/6 in mg/L. After approximately 24.9644 s, the initial difference falls to 5%. This criterion concerns the difference between two ideal zones, not automatically a mixing time measured anywhere in actual equipment.

The CSV contains both concentrations and total mass every second to 60 s. Calculated total mass remains 100 mg. That additional column makes an erroneous later numerical implementation easier to detect.

Closed teaching-model assumptions
QuantityValueMeaning
Volume A / B100 / 20 LConstant ideal zones
Exchange each way2 L/sNo external throughput
Total marker100 mgNo reaction or loss
Final concentration0.833333 mg/LFrom total inventory
Difference time constant8.3333 s1/[Q(1/V_A + 1/V_B)]

Zone trajectories · Exact solution · Data dictionary

Which parameters can actually be identified?

In the simple case, decay of concentration difference directly identifies only Q(1/VA + 1/VB). If both volumes are unknown, one observed time constant cannot uniquely estimate Q and both volumes. Known total mass, endpoints, geometry or independent local measurements add information.

Multiple sensors help only if they provide new independent information. Two sensors in the same ideal mixed zone mainly repeat one state variable under the same assumptions. A sensor in an unobserved zone or a different injection location can instead resolve ambiguity.

Include sensor dynamics. When marker transport is faster than the measurement chain, a slow probe may be misinterpreted as low exchange. Separately characterising response prevents the model converting instrument lag into apparently spatial parameters.

Report more than one best number: show plausible ranges, strong dependencies and predictions that differ despite similar outlet fits. Place an additional experiment where competing models predict different results. This is information-led experimental design, rather than arbitrary addition of zones.

Adding local reaction while preserving inventories

After successful tracer assessment, add reaction. For linear consumption kᵢCᵢ, mass loss in zone i is VᵢkᵢCᵢ, preserving clear units and signs. Before complex biological kinetics, test simple limiting cases: with no reaction, mass must be conserved; with no exchange, zones react independently.

For concentration-dependent uptake, reaction cannot generally be calculated from mean concentration alone. With a nonlinear function, mean local rate is not the rate evaluated at the mean. Zone resolution can therefore add genuine information even when a one-zone model correctly describes total mass.

Local parameters still need justification. A different rate in zone B may reflect different supply, or merely be a freely adjustable parameter. Without matching observations or a defensible kinetic model, the assignment remains a hypothesis. Interpretation should say so.

Check numerical solutions for non-negativity, mass balance and time-step stability. An excessively large explicit step can generate negative concentrations from a physically sensible continuous model. Do not simply clip them to zero without assessing the altered balance. The exact tracer example is a useful reference for checking numerical implementation.

Assessing network structure and CFD reduction

A network requires an unambiguous list of nodes, volumes and directed flows. At constant zone volumes, inlet and outlet totals including external flows must agree. Do not accidentally count a return flow as additional net feed. A tabulated flow list often supports this check better than a diagram alone.

Grouping CFD cells into larger zones selects which internal differences are neglected. Boundaries may follow transport, concentration or a biologically relevant variable. Resulting exchange flows must preserve a conservative balance. A reduction that changes material inventory is not useful.

Assess the model against its target. A network may predict mean concentrations well yet miss brief local peaks. It may suit a feed mass balance while being inadequate for very short starvation episodes. Model quality is always task- and range-specific.

Another operating state tests transfer: changed speed, volume or rheology. If actual flow topology changes, the previous network may fail even after adjusting individual flows. Do not describe a model beyond its tested range as a universal digital representation.

Separating calibration from prediction

Calibration selects parameters to explain particular observations. Independent predictive assessment uses suitable data not employed for that adjustment. Both matter, but they are not interchangeable. A close fit to the same tracer curve is initially a calibration result.

For the two-zone case, switching the injection zone while retaining the setup is a useful additional test. The model predicts concentration amplitudes in both zones as well as a time constant. A new experiment can therefore add more information than another identical repetition, provided initial conditions are controlled sufficiently.

The MIT coupled-tank material provides a teaching foundation for linear balances. Biological extensions need additional evidence. The original Nieß et al. (2017) study connects transport history and cellular response in a defined scale-down arrangement. Its specific response parameters are not transferred here.

A review should identify discrepancies and possible origins: flow simplification, incorrect input, sensor lag, kinetics or biological variation. Adding free parameters is acceptable only when it represents a justified hypothesis that can be tested with new data.

Exercises and the next modelling decision

Halve Q in the teaching case. The difference time constant doubles, but the final concentration remains unchanged because total mass and volume are unchanged. Instead double both volumes and Q at the same initial concentrations: normalised concentration trajectories stay the same despite doubled absolute mass. This demonstrates that curve shape does not determine absolute equipment size.

Next set Q = 0: both concentrations must remain at their initial levels. Alternatively initialise both zones equally; without reaction, both remain constant. Such simple limiting cases often expose more coding errors than one complex fit.

Third, propose two networks that could approximately reproduce the same observed outlet trace. Select a local measurement or injection change for which their predictions differ. This produces a concrete plan to reduce model uncertainty.

The extension to cell lifelines moves individual cell representatives through the network. Exchange flows must be translated into suitable transition rules, with growth or retention treated separately where necessary. A liquid model is the starting point, not automatically the completed cell model.

Writing the balance as a checkable flow list

Track inventory Mi = ViCi for each zone i. The balance is dMi/dt = ΣjQjiCj − ΣjQijCi + external inputs − external outputs + reaction. Every internal stream appears once as a loss from its source and once as a gain to its destination. Summing all zones cancels those internal contributions.

This provides a powerful implementation check. Using L/s for a stream on one side and m³/s on the other may still yield superficially plausible traces while violating total conservation. A flow list containing source, destination, unit and value exposes such errors before biological kinetics are added.

Constant volumes additionally require each zone’s volume balance to close. Two entering streams and one equal-sized exit do not produce constant volume without further explanation. Dividing an inventory balance by Vi alone then omits the concentration effect of changing volume. For variable Vi, dCi/dt = (dMi/dt − Ci·dVi/dt)/Vi.

A closed conservative concentration matrix has nonnegative off-diagonal exchange contributions and matching negative outflow terms on its diagonal. Exact row- or column-sum rules depend on whether states represent inventories, concentrations or weighted quantities. Do not apply one matrix rule blindly across every formulation.

A robust numerical test starts with uniform concentration. Without reaction or differing external inlet concentration, this state should persist when volume balances are consistent. A second test injects known mass into one zone and follows the total. These limiting cases expose errors an optimiser might otherwise conceal through adjusted exchange parameters.

Nonlinear uptake: mean concentration is insufficient

Consider two equal-volume zones with equal biomass concentration and hypothetical uptake q(S) = qmax·S/(K+S). Let S = 0 in A and S = 2K in B. Mean substrate concentration is K, but local uptake is zero and 2qmax/3, giving average uptake qmax/3.

A one-zone model evaluated at mean concentration K instead predicts q(K) = qmax/2. It overestimates mean uptake in this selected two-zone example by 50% relative to qmax/3. The difference exists even with exactly known mean substrate and identical biomass. It follows from nonlinearity rather than measurement error.

The example is deliberately simple. Concentrations are prescribed rather than derived from a complete stationary feed balance. It demonstrates a mathematical relationship, not actual process values. Equipment application needs local concentration and biomass histories from measurements or a justified transport model.

Uneven biomass introduces additional weighting by local cell inventory. A biomass-specific rate cannot then be averaged only by liquid volume. To calculate total uptake, multiply each local specific rate by local biomass and sum. This maintains clear units and prevents missing or duplicated volume weighting.

The comparison informs model selection. An approximately linear outcome with small gradients may need only a simple model. Strongly nonlinear operating regions may require additional spatial resolution. Justify that choice through outcome sensitivity rather than available computing capacity.

A time step can distort a physical model

In the closed two-zone example, concentration difference obeys dΔ/dt = −0.12Δ. Explicit Euler integration gives Δnew = (1 − 0.12Δt)Δold. At Δt = 1 s, the factor is 0.88, whereas the exact solution uses exp(−0.12) ≈ 0.88692. Both are positive but decay at different rates.

At Δt = 10 s, the Euler factor becomes −0.2. Difference therefore changes sign artificially although the continuous solution approaches zero monotonically. Larger steps can even cause growth. This is an integration error, not evidence of physical oscillating backflow.

Stability for this scalar Euler example requires |1 − 0.12Δt| < 1, or 0 < Δt < 16.6667 s. Monotonic nonnegative decay needs the stricter condition Δt ≤ 8.3333 s. Numerically stable output therefore need not preserve every physical property. The full zone system can impose further requirements.

Halving the time step assesses convergence of relevant outcomes. Compare not just plots but maxima, exposure duration, total mass and final state. A nearly unchanged total inventory can coexist with inadequately resolved brief concentration minima.

An exact reference solution is available for the linear teaching example. Retain this simple limiting case as a calculation regression test when developing more complex models. A successfully fitted biological dataset cannot replace it because free parameters may partly compensate for numerical errors.

Checking observability for two measurement arrangements

State observability asks whether a model's initial state can be uniquely reconstructed from known input and output histories. The model, including its parameters, is taken as given. This differs from identifying unknown parameters and from diagnosing the cause of a fault. The formal definition and linear-system rank test are provided in MIT Chapter 24 on observability, particularly Definition 24.1 and Theorem 24.2.

The closed two-zone teaching system gives an original illustration. Its states are CA and CB, with dCA/dt = −0.02CA + 0.02CB and dCB/dt = 0.10CA − 0.10CB. Coefficients have units of s⁻¹. If the only measurement is the volume-weighted mean y = (5CA + CB)/6, y stays constant in this closed conservative system. Different initial distributions sharing the same total inventory consequently produce identical outputs.

For example, CA(0) = 1 and CB(0) = 0 have the same initial mean, 5/6, as CA(0) = CB(0) = 5/6. Internal equilibration occurs in the first case but not the second. The measured mean remains 5/6 at every time in both cases. This measurement arrangement cannot distinguish those states under the stated model, even with a perfectly noise-free record of unlimited duration.

If CA alone is measured instead, its time variation contains information about CB. For the two-dimensional linear rank test, the first two rows are [1, 0] and [−0.02, 0.02]. Their determinant is 0.02, which is non-zero: both states are formally observable under this model. That result does not guarantee robust reconstruction from noisy measurements; numerical differentiation of a measured signal is particularly sensitive to noise.

The experimental implication is concrete. A measurement can describe total inventory extremely well while revealing nothing about internal distribution. Additional measurement locations should therefore be justified using the intended state model. Whether their accuracy and dynamics support a practically useful estimate is a separate subsequent question. Formal matrix rank, practical measurement information and biological meaning of an estimated state are related but distinct assessments.

An additional zone should answer a new question

Adding compartments increases the number of internal states and usually the number of unknown exchange quantities. A model can therefore look more detailed without gaining independent information to support that detail. Splitting a zone is useful when variation inside the original zone matters for the intended prediction and the new structure can be supported by data or justified flow information. A more elaborate diagram alone does not improve prediction.

Consider a zone that appears approximately homogeneous for a conservative-tracer measurement. If the aim is only to describe total discharge, that representation may be adequate. If the aim changes to a brief local oxygen excursion near an inlet, the same zone may be too coarse. Suitable detail therefore depends on the predicted quantity. A model can be useful for mean outlet concentration while remaining unsuitable for rare local events.

Before dividing a zone, list the additional quantities: volumes, directed exchange flows, injection points, exits and any local reactions. Changing a volume and its exchange flow together can preserve their ratio and hence an observed time constant. A single response curve may then fail to distinguish those changes. Independent volume information or a second measurement arrangement can be more useful than simply adding further adjustable parameters.

The test should use a prediction specified in advance. For example, predict a second injection location or another time history whose measurements were not used for parameter fitting. If several networks fit the original experiment similarly but diverge for the new case, that case is informative. If their predictions remain indistinguishable there, choosing between those networks may not be necessary for the question being examined.

A successful test still has a limited scope. A network that works at constant fill volume and a particular rheology is not automatically suitable for changing fill levels. Changing volumes can alter exchange routes and residence durations. Applicability should therefore be described by the boundary conditions actually investigated, rather than by the widest conceivable application. The connection to representative cell pathways is especially relevant: a spatially averaged network can lose rare-exposure distributions while preserving total inventory exactly.

Supplementary teaching calculations: Python calculation and results as CSV. The data description records assumptions, units and execution.

Terms in this chapter

24 terms explained in the glossary