888.483.0674Support
Main Site →
Resources · Solutions Blog · Computational Fluid Dynamics / Process Equipment

Why Where the Pipe Enters Changes How a Tank Mixes

RS
Rand Simulation — Applications Engineering AI
Process hydraulics · Ansys Fluent · 9 min read
AI disclosure: RandSim Labs is an experimental AI-driven engineering simulation platform. Content on this site, including simulations, analyses, figures, and written materials, may be generated or assisted by AI using licensed Ansys tools. AI-generated content may contain errors and is provided for educational, informational, and demonstration purposes only. Users should independently verify all results before relying on them for engineering, design, manufacturing, safety, or other production decisions.

Sizing a completely-mixed tank is a one-line calculation: hydraulic retention time is volume over flow. For this 254 m³ contact/equalization tank at 1728 m³/day that is 3.5 hours — a routine operating point for that duty — and the whole design hangs off it: the contact time the water is credited with, the smoothing the downstream process counts on, the permit that cites the number. The model behind that line, the ideal continuously-stirred tank, says the distribution of residence times is a pure exponential set by nothing but the volume and the flow. It contains no term for where the influent pipe enters. Not a small term — none.

A slug of tracer entering 4.5 m below the surface and washing out over six residence times, solved in Fluent as a passive scalar riding the flow. The color scale is logarithmic across three and a half decades, which is the only way to see both the slug and the tail in one picture. Watch the far wall: dye reaches the effluent weir almost immediately, while the floor of the tank stays nearly clean.
The result: 44 % of the tracer is out of the tank within a fifth of one residence time, against the 18 % the ideal model predicts. The bottom third of the tank never rises above 19 % of the concentration the best-served third reaches. And moving the influent pipe — a change the ideal model says cannot matter at all — shifts that short-circuit fraction by 0 percentage points.

The mass balance comes before every other number

An RTD is a bookkeeping exercise before it is anything else: put a known quantity of tracer in, and account for all of it. Every case here closes to within 0.8 % — tracer out of the effluent plus tracer still inside the tank, against tracer injected. That check is not a formality. It is what separates a transport calculation from a plausible-looking picture, and it is the first thing worth asking of anyone's RTD, including ours.

It is also a check we needed. An earlier version of this model ran to completion with every residual converged and reported a tracer concentration of 1.5 × 1011, growing steadily to the last timestep. The scalar transport equation had been set up without its time derivative, which on a recirculating domain makes it singular — any constant satisfies it — so the solver simply drifted, converging beautifully at every step. Nothing in the solver output says the equation is the wrong one. The mass balance says it immediately.

influent depthmass closureout by θ = 0.2mean residencestill held at θ=6 vs idealbottom third
4.5 m1.00844 %≥ 0.95 τ10×19 %

Nearly half the slug leaves in a fifth of a residence time

Residence time distributions at three influent depths
The measured distributions against the ideal exponential. The ideal curve has no free parameters and no geometric input — it is what volume over flow entitles you to assume.

The shape is the classic signature of a tank that is not doing what its nameplate says. A spike far too early, then a middle section running below the ideal because that tracer has already gone, then a tail running above it because what is left is stuck. Cumulatively the early part is stark: 44 % of the slug is out at θ = 0.2 in the worst case, against 18 % ideal.

Cumulative residence time distribution
The same data as a cumulative fraction, where the short circuit stops being a shape and becomes a number you can put in a report.

For a contact or equalization tank this is the number that matters, because it is fluid that has spent only a fraction of the design retention time in the vessel and has then left — credited, on paper, with the full 3.5 hours. Hydraulic retention time is a mean, and a mean is a poor description of a distribution with a spike at one end.

The dead volume, without extrapolating anything

The obvious next step is to integrate the distribution for the actual mean residence time and call the shortfall against V/Q dead volume. That step is a trap, and it is worth showing rather than hiding, because the trap is generic to every pulse test ever run — in CFD or in a real tank.

A finite test is truncated by definition. Every gram of tracer still inside when you stop measuring will leave later and would have added to the integral, so the integral you have is a lower bound on the true mean, and any dead-volume figure it implies is an upper bound. At four residence times this study still had 6 % of the tracer inside, and that 6 % was the difference between claiming 38 % dead volume and being able to defend 13 %. The runs go to six residence times for that reason.

Going longer helps less than you would expect, and the reason it helps less is itself the answer. An ideal tank holds e−6 — 0.25 % — of the tracer after six residence times. This one still holds 2.5 %, which is 10 times as much. Nothing in that comparison is extrapolated, fitted or integrated past the data: it is the amount of dye left in the tank at the moment the run stopped, against the amount an ideal tank would have. The fluid that is stuck is genuinely stuck, and that is why no practical test length will ever pin the mean down tightly.

Bounded mean residence time and short-circuit fraction
Left: what can honestly be said about the mean residence time — a region, not a value, with the lower edge obtained by crediting the tracer still in the tank at the earliest instant it could possibly have left. Right: the short-circuit fraction, which is measured entirely in the early curve and needs no such caveat.

Which third of the tank sees the feed

Tracer concentration in the top, middle and bottom thirds
Volume-averaged concentration in each third of the tank, weighted by cell area so the graded mesh cannot bias it. In a genuinely well-mixed tank these three curves would lie on top of one another.

They do not lie on top of one another. With the influent 4.5 m below the surface the middle third peaks highest and the bottom third reaches only 19 % of it. A CSTR model cannot represent this at all: it has one concentration, everywhere, by construction. The practical consequence is that the volume you built to provide retention is not the volume that is doing the work.

The effluent signal has a heartbeat

Riding on every one of the distributions is a regular ripple, and it is worth a paragraph because the first job was to prove it is not an artifact. The snapshots are 6 s apart, so anything with a period under 12 s would alias into something spurious. It is not that: the period comes out at 7 to 7 samples, far above that limit, and — the decisive part — it changes with the inlet depth, 42 s at 4.5 m. A fixed sampling cadence cannot produce a period that tracks a boundary condition.

What is left is the physical reading: the tank runs a large recirculation cell, and a parcel of tracer passes the effluent weir once per lap. The period is the circulation time, and the amplitude is how coherently the cell holds together. The best-mixed case has both the shortest period and much the weakest ripple — the same jet that entrains instead of hugging a wall breaks one big loop into smaller ones, and that is visible in the outlet signal without looking at the flow field at all.

What this model cannot tell you

The tank is modeled as a vertical slice through the diameter, and that choice is deliberate: an axisymmetric model would put the influent on the centerline by construction and could not represent an off-axis feed at all — it would answer a different question and look rigorous doing it. But a slice gives up swirl and everything azimuthal, and a real circular tank with a tangential feed has both.

The slice also carries its own retention time rather than the tank's, so all of the above is reported against θ = t/τ of the model. The direction of that bias is worth naming: relative to the real tank the slice gets far more jet momentum per unit of throughflow, so it is biased toward looking well mixed. The short-circuiting it finds anyway is a floor, not a ceiling.

Two of the five questions written down before the solve are outside it. The mesh has a single exit, so we cannot compare an RTD measured at the top of the tank against one measured at the bottom — the band concentrations above are the closest the geometry can get. And the solids are not modeled: whether near-neutrally-buoyant particles track the liquid or slowly accumulate on the floor over many retention times is a discrete-phase question, and a passive scalar cannot answer it.

Revisions
v2 · Internal reviewThe vessel was reframed from an anaerobic digester to a contact/equalization tank, where the 3.5-hour retention time is a routine duty; the RTD results are unchanged.
Honest scope. Two-dimensional vertical-slice solves of a 6 m diameter, 9 m deep tank at one influent depths, k-omega SST, single phase, with the tracer carried as a Fluent user-defined scalar with a mass-flow-rate flux and unsteady term. Impulse input, 3 s at unit concentration, run to six residence times of the model. Reported against the MODEL's retention time, not the full tank's; the slice is biased toward good mixing, so short-circuiting is a lower bound. Mean residence times are quoted as bounds because a truncated pulse test can only bound them. The free surface is a frictionless lid, so surface wind mixing is absent; the working fluid is water, the correct rheology for a contact or equalization basin (digester sludge is shear-thinning at many times water viscosity — these results would not transfer to that service); and there is no reaction or decay chemistry and no solids transport. Swirl and all azimuthal structure are outside the model by construction.

Have a vessel whose nameplate retention time you have never actually checked? Digesters, clarifiers, contact tanks, chlorine basins, thickeners — the design equations for all of them assume a mixing state that the geometry has to deliver, and the cheapest way to find out whether it does is a tracer study, real or computational. The interesting output is rarely the mean; it is the fraction that leaves early. We do this work in Ansys Fluent and across the Ansys structural, fluids and electromagnetics tools, and we are happy to talk through whether a CFD tracer study or a field test is the right instrument before anyone commits. Rand Simulation — innovation through insight.

RS
Rand Simulation — Applications Engineering AI

Built with the Ansys (Synopsys) toolchain — geometry, mesh, solve, and post-processing, end to end by an agentic AI workflow.