Short Answer
When liquid flows into a tank faster than it leaves, the level rises; when the reverse is true, the level falls. The transient material balance — sometimes called an unsteady-state balance — turns that intuition into a precise relationship between inlet flow, outlet flow, and liquid level. For the common case of a constant-density liquid in a tank with vertical walls and constant cross-sectional area A, the relationship takes a compact form: Qin − Qout = A dh/dt, where the flows are in m³/s, h is the level in m, and A dh/dt is the rate at which stored volume changes. This article explains where that equation comes from, how the outlet flow must be modeled to make it solvable, what steady state and stability mean for a tank, and how to build and sanity-check such a model in practice.
The core balance: in minus out equals accumulation
Every material balance is a conservation statement applied to a control volume, the region of space chosen for the accounting — here, the liquid inside the tank. In its general form, for a fixed control volume, the time rate of change of mass inside equals the net mass flow in across the boundary. Written for discrete inlet and outlet streams, the integral conservation law reduces to dm/dt = Σṁin − Σṁout, where the sums collect the mass flows of all entering and leaving streams (CBE 140, Transient Tank).
The left side, dm/dt, is the accumulation term. It is positive when inflow exceeds outflow and the stored mass grows, negative when the contents shrink, and zero at steady state. The classic teaching statement — in minus out equals accumulation — is the same law in words. A worked simulation makes it concrete: with 5 kg/s entering and 3 kg/s leaving a tank whose initial mass is 100 kg, the accumulation is +2 kg/s and the stored mass grows linearly as m(t) = 100 + 2t (CBE 140, Transient Tank).
From mass flow to liquid level
Tank problems are usually posed in volumetric flows and levels rather than masses, and the conversion takes one assumption: constant density. With m = ρV and ṁ = ρQ, a constant density cancels from both sides of ρ dV/dt = ρQin − ρQout, leaving dV/dt = Qin − Qout.
Geometry does the rest. For a tank with vertical, parallel walls the cross-sectional area A is constant, so stored volume is simply V = A·h and a change in volume is A times a change in level. Substituting gives the level form of the transient balance used in classical tank-filling derivations (TU Dublin, Filling a Tank): Qin − Qout = A dh/dt. The units confirm the interpretation: m³/s divided by m² leaves m/s, so dh/dt is literally the speed of the liquid surface. The same derivation restates the qualitative picture — if Qin = Qout the level stays constant, if Qin > Qout it rises, if Qin < Qout it falls.
Two assumptions deserve attention. First, the density cancellation fails if the liquid is not uniform — strong temperature gradients, dissolved gases coming out of solution, or compressible fluids — in which case the mass form should be kept. Second, if the tank walls are not vertical (a conical or spherical vessel), the effective area depends on level, so the balance becomes A(h) dh/dt = Qin − Qout and the nonlinearity moves into the geometry.
Modeling the outlet flow: the decisive modeling choice
The equation Qin − Qout = A dh/dt cannot be solved on its own, because it contains the outlet flow as an unknown. Closing the model requires expressing Qout either as a fixed value set by external equipment or as a function of the level itself. These two choices produce fundamentally different dynamic behavior.
Fixed outlet flow: the non-self-regulating case
If discharge is set by a constant-speed pump, or effectively pinned by a fixed valve opening with negligible head sensitivity, Qout is a known constant. The level then integrates the flow imbalance at the rate (Qin − Qout)/A with no feedback from the level to the flows. This is what process control texts classify as a non-self-regulating process: the output shows no restoring response to its own accumulation, so an unattended tank either empties or overflows unless a level controller adjusts a valve (MIT OCW 10.450, Lesson 5).
Gravity-drained outlet: flow that depends on level
In a gravity-drained tank, discharge is driven by the head of liquid — the pressure ρgh at the outlet — and throttled by the resistance of the outlet valve and piping. Two standard models describe that throttle:
- Linear resistance. Outflow is taken as proportional to the level, Qout = h/R, where R is a flow resistance coefficient evaluated near the operating point. This is the approximation behind the classical first-order tank model and its Laplace transform (TU Dublin).
- Torricelli’s law. For near-free discharge through an outlet of area a, Bernoulli’s principle gives an exit velocity v = √(2gh), so Qout = a√(2gh). This is more physically grounded for open discharge but is explicitly nonlinear in h.
Torricelli’s law is an approximation: it neglects viscosity, the flow geometry near the exit, and other non-ideal effects, but it remains a useful first approximation for flow from a tank (Kantor, Gravity Drained Tank).
| Outlet model | Key assumption | Outflow relation | Dynamic character |
|---|---|---|---|
| Fixed flow (pump or rigidly set valve) | Outflow insensitive to level | Qout = constant | Non-self-regulating; level integrates the imbalance without limit |
| Linear resistance (throttled gravity discharge) | Flow proportional to head near the operating point | Qout = h/R | Self-regulating; exactly first-order |
| Torricelli orifice (free discharge) | Inviscid Bernoulli flow, negligible losses | Qout = a√(2gh) | Self-regulating but nonlinear; drain rate slows as level falls |
Steady state, self-regulation, and the first-order response
Steady state means zero accumulation: Qin = Qout and the level holds constant. Note what this does and does not imply — liquid keeps flowing through the tank; only the storage stops changing. With a gravity-drained outlet, steady state is reached naturally. If the inlet flow steps upward, the level at first rises, but the higher level increases the outflow, and the tank settles where outflow once again matches inflow. That built-in restoring behavior is why such tanks are called self-regulating.
Near an operating point, the linear-resistance model makes the dynamics explicit. Substituting Qout = h/R into the balance gives A dh/dt = Qin − h/R. Written in deviation variables (primed quantities measured from the steady state), the model becomes τ dh′/dt + h′ = R q′in, whose Laplace transform is the first-order transfer function h′(s)/q′in(s) = R/(τs + 1) with time constant τ = A·R. The transfer function has a single pole at −1/τ; if τ is positive — as it is for a tank, since both area and resistance are positive — the pole is negative and the response is stable, settling smoothly toward a new level after any input change (MIT OCW 10.450). The gain R also has a direct meaning: each additional m³/s of sustained inflow ultimately raises the steady level by R meters.
The contrast with the pumped-outlet case is instructive. There, the balance A dh/dt = Qin − Qout has no restoring term at all: it is a pure integrator, the level simply accumulates the imbalance, and holding a target level requires feedback control rather than waiting for the process to find its own balance.
A worked example (illustrative)
The following numbers are hypothetical but chosen to be realistic. Consider a vertical cylindrical tank with cross-sectional area A = 2 m² (a diameter of about 1.6 m), discharging by gravity through a linear-resistance valve. Initially the tank is at steady state: h₀ = 1.00 m with Qin = Qout = 0.004 m³/s, so the resistance is R = h₀/Qout = 250 s/m² and the time constant is τ = A·R = 500 s, roughly eight minutes.
Now suppose the inlet flow is stepped from 0.004 to 0.005 m³/s. The immediate imbalance is 0.001 m³/s, so the level initially rises at 0.001/2 = 0.0005 m/s — half a millimeter per second. The outflow, however, grows as the level climbs. The new steady state satisfies h/R = Qin, giving h = 250 × 0.005 = 1.25 m, a rise of 0.25 m. After one time constant (500 s) the level has covered about 63 percent of that change, reaching roughly 1.16 m; after about three to four time constants it is essentially at 1.25 m.
For comparison, hold the outlet fixed instead: with Qout pinned at 0.003 m³/s while Qin = 0.005 m³/s, the accumulation is 0.002 m³/s and the level simply climbs at 0.001 m/s indefinitely — about 6 cm per minute at this tank size — matching the mass-balance logic of the CBE 140 simulation, where 5 in minus 3 out gives +2 kg/s of accumulation with no self-correcting term (CBE 140).
Common misconceptions and modeling pitfalls
Building a tank balance model: a practical sequence
- Define the control volume (the liquid in the tank) and choose the level h as the state variable.
- Check the density assumption; keep the mass form if the liquid is non-uniform or compressible.
- Compute the area, A = πd²/4 for a vertical cylindrical tank; note A(h) if the walls converge.
- Write the accumulation, A dh/dt = Qin − Qout, checking units end to end.
- Model the outlet: fixed flow for a pump, Qout = h/R for a throttled gravity line, or a√(2gh) for free discharge.
- Find the steady state by setting accumulation to zero; if the outlet model is nonlinear, linearize it and report the gain R and time constant A·R along with the ranges over which they apply.
Taken together, the whole subject reduces to one accounting identity plus one modeling decision. The identity — inflow minus outflow equals accumulation, or Qin − Qout = A dh/dt in level form — connects the flows to the level. The decision — whether the outlet flow is fixed or level-dependent — determines whether the tank is an integrating, non-self-regulating process that must be controlled, or a stable, self-regulating first-order system that settles on its own. Getting both right, and stating the assumptions that support them, is what turns a filling tank from an observation into a predictive model.
FAQ
What equation relates inlet flow, outlet flow, and level in a transient tank balance?
For a constant-density liquid in a tank of constant cross-sectional area A, the balance is Qin − Qout = A dh/dt. It follows from dm/dt = Σṁin − Σṁout after writing m = ρV and V = A·h. The level rises when inflow exceeds outflow, falls when outflow exceeds inflow, and holds constant when the two flows are equal.
When is a tank self-regulating?
When the outlet flow depends on the level, as in a gravity-drained tank where discharge is driven by liquid head and throttled by a valve or orifice. A higher level increases outflow, so the tank settles where inflow equals outflow. If a pump fixes the outlet flow instead, the tank is non-self-regulating and will fill or empty until a controller intervenes.
How do I estimate the time constant of a tank?
For a linear-resistance outlet, τ = A·R, where A is the cross-sectional area and R = h/Qout evaluated at the steady operating point. In a step test, the level covers about 63 percent of its total change after one time constant, which offers a quick empirical check.
Is Torricelli's law exact for tank drainage?
No. It neglects viscosity, the flow geometry near the exit, and other non-idealities, so it serves as a useful first approximation rather than an exact prediction. The linear-resistance model Qout = h/R is likewise a local approximation valid near an operating point.
Leave a Reply