Flows and fields

A draining tank's slosh outgrows its water only if the drain outruns the walls

Open a hole in the back of a water tank on a cart and the water starts to slosh. As the tank drains, the slosh's frequency falls with the depth, and an oscillator retuned slowly keeps its action — so the wave shrinks only as the fourth root of the depth while the water under it shrinks in proportion, and the wave grows against what is left. The walls' damping grows too as the water shallows, and which of the two wins is decided by how fast the tank drains: a ten-square-centimetre hole in a metre-square tank sits almost exactly on the line, a hole four times larger ends with the wave twenty-six times taller against its depth, and one four times smaller leaves no slosh at all.

Worth reading first: A leaking cart leaps ahead of its own water · A sloshing tank is damped by its walls, not its water.

A leaking cart leaps ahead of its own water. Open a hole in the back of a tank on a frictionless cart and the jet pushes the cart forward, but at the first instant part of the water has not yet started to move with the tank — it is in the sloshing mode, a mass on a spring, and until the spring has stretched the thrust has less mass to push. The cart’s first acceleration is larger than the mean by the share of the water that sloshes, and the acceleration then rings at the slosh period about its mean. All of that happens in the first seconds, while the depth has hardly changed.

The tank keeps draining. Over the next several minutes the depth falls from a metre to nothing, and with it everything the slosh’s frequency and mass depend on. The essay that computed the leap left the question that follows: does the ringing that the opening started grow or die as the tank empties? Does the last of the water leave a cart that is pitching harder than when it started, or a calm one?

The answer is that it depends on one comparison, and the comparison is close. This essay makes it.

The slosh is an oscillator whose tuning changes

The lowest sloshing mode of a rectangular tank of length LL and depth hh has frequency ω2=(πg/L)tanh⁡(πh/L)\omega^2=(\pi g/L)\tanh(\pi h/L) and carries a fraction (8/π3)(L/h)tanh⁡(πh/L)(8/\pi^3)(L/h)\tanh(\pi h/L) of the water as its effective mass — Graham and Rodriguez’s model of 1952, the one structural engineers use for liquid tanks. In deep water the frequency hardly depends on the depth and the sloshing share is small. In shallow water, h≪Lh\ll L, the frequency falls as h\sqrt h and the sloshing share rises to 8/π28/\pi^2, four-fifths of the water.

A Torricelli drain lowers the depth at a rate proportional to h\sqrt h, so the tank’s frequency falls slowly at first and faster near the end. But “fast” here is relative to the slosh’s own period, and for the hole sizes that matter it is slow: the fractional change in frequency during one period stays below a per cent until the last few millimetres. That is the condition under which an oscillator’s tuning can be changed without changing what it carries, and what it carries is its action.

As the tank drains, its slosh grows against the water left unless the walls take it firstThe slosh wave's height at the end walls over the depth of water left, relative to its value when the hole opened, against the depth, for a 10 cm² hole in a one-metre tank on a 100 kg cart, draining in 7.53 minutes: with no damping, and with the laminar damping of the walls' Stokes layers. Undamped the ratio grows 76.9-fold by 5 mm; damped it ends at 0.83 of its start.10⁻²10⁻¹10⁰10⁻²10⁻¹10⁰10¹10²depth of water left, mwave height over depth, over its startno damping10 cm², walls dampingGraham–Rodriguez slosh mode in Lagrangian form on a free cart, Torricelli drain, laminar Stokes-layer wall dampinglinear slosh; 100 kg cart, 1 m × 1 m tank, 1 m of water, water's viscosity unless stated
Fig. 1 The slosh wave’s height at the end walls over the depth of water left, relative to its value when a 10 square-centimetre hole opened, against the depth, for a one-metre tank on a 100 kg cart, undamped and with the walls’ laminar damping. Undamped the ratio grows 77-fold by 5 mm; damped it ends at 0.83 of its start. Dialled to a 2.5 square-centimetre hole the damped wave dies to a hundredth; to a 40 square-centimetre hole it ends 26 times larger.

The action, kept

An oscillator whose frequency changes slowly compared with its period keeps the ratio of its energy to its frequency, E/ωE/\omega. That is the adiabatic invariant of a pendulum whose string is drawn in through a ring, and it applies here with one condition: the slosh mode must be written in its Lagrangian form, with the rate of change of its momentum including the change of its mass. The cart-and-slosh equations used for the first seconds left that term out, harmlessly; over the whole drain it is the term that decides what is kept.

The slosh keeps its action through the drain, less exactly what the walls take. The slosh's energy over its frequency, relative to its start, against the depth, for a tank held still with its wave already ringing: with no damping it stays within 1.9 per cent of its start while the depth falls fifty-fold; with the walls' damping it follows exp(−2∫γ dt) — the dashed curve — to 0.33 per cent.
Fig. 2 The slosh’s energy over its frequency, relative to its start, against the depth, for a tank held still with its wave already ringing: undamped it stays within 1.9 per cent of its start while the depth falls fifty-fold; with the walls’ damping it follows exp⁡(−2∫γ dt)\exp(-2\int\gamma\,dt), dashed, to 0.33 per cent.

The march confirms it before it is used. With the tank held still, so that only the draining acts on the slosh, the action of an undamped wave stays within two per cent of its start while the depth falls from a metre to two centimetres, the two per cent being the drain’s last centimetres, where it is no longer slow. With the walls’ damping switched on, the action falls by exactly the exponential of the damping integrated along the drain, to a third of a per cent. Nothing else is taking energy out of the slosh or putting it in.

What a kept action means for the wave is a short calculation. The mode’s energy is 12m1ω2Q2\tfrac12m_1\omega^2Q^2, with QQ the slosh coordinate’s amplitude, so Q∝(m1ω)−1/2Q\propto(m_1\omega)^{-1/2}; the wave’s height at the end walls is proportional to h (m1/mw) Qh\,(m_1/m_w)\,Q. In shallow water, with m1/mwm_1/m_w fixed and m1∝hm_1\propto h, ω∝h\omega\propto\sqrt h, the wave’s height goes as h1/4h^{1/4}. The wave shrinks, but only as the fourth root of the depth. The water under it shrinks in proportion to the depth, so the wave’s height over the depth grows as h−3/4h^{-3/4}.

The wave itself shrinks as the fourth root of the depth — slower than the water under it. The slosh wave's height at the end walls over its height when the hole opened, against the depth, for the 10 cm² hole: with no damping, against the shallow-water law (h/h₀)¹ᐟ⁴ that a kept action gives, and with the walls' damping. The water falls two-hundred-fold; the undamped wave only 2.59-fold.
Fig. 3 The slosh wave’s height over its height when the hole opened, against the depth, for the 10 square-centimetre hole: undamped, against the h1/4h^{1/4} a kept action gives in shallow water, and with the walls’ damping; the depth itself is dashed. The water falls two hundred-fold and the undamped wave only 2.6-fold.

The undamped wave in a metre-square tank falls from its starting height to only 0.39 of it while the water falls from a metre to five millimetres, two hundred-fold: in shallow water its curve runs parallel to the fourth-root line, and the depth’s own line falls away below it. The ratio of the two — the wave against the water — grows 77-fold over the drain, and in the march’s shallow end its exponent is −0.77-0.77, close to the −3/4-3/4 the argument gives. This is the same arithmetic as a wave approaching a beach, where Green’s law makes the height grow as h−1/4h^{-1/4} because the energy flux is conserved; here the conserved quantity is the action and the depth changes in time rather than in space, and the height falls as h1/4h^{1/4} instead of rising. Either way it is the height relative to the depth that runs away.

Nothing happens in the deep half

The figures share a feature that the shallow-water argument hides: for the first half of the drain, almost nothing changes. Between a metre and half a metre of water the wave’s ratio to the depth moves by a few per cent in every case, damped or not. The reason is the hyperbolic tangent in the frequency. While the depth is more than about a third of the tank’s length, the lowest mode is a deep-water wave whose frequency depends on the length alone, ω2≈πg/L\omega^2\approx\pi g/L; the drain lowers the water under a wave that does not notice, and the action has nothing to do.

It is only when the depth falls below a third of the length that the frequency starts to follow h\sqrt h and the mode’s mass fraction climbs towards four-fifths, and from there to the end the whole of the effect happens. For the metre tank that is the last third of a metre, and in time it is the last two-thirds of the drain, because a Torricelli drain spends longest where the water is shallow: the jet’s speed 2gh\sqrt{2gh} falls with the depth, as the hole that halves the flow computed for its vena contracta, and the level creeps down at the end. The physics that decides whether the drain ends calm is compressed into the shallow third of the tank and the longer half of the time.

The same reasoning sizes the effect for other tanks without another march, because everything depends on the depth relative to the length and on the drain time relative to the damping. A two-metre compartment in a road tanker, emptied of diesel through a five-centimetre pipe in a few minutes, sits close to the 40 square-centimetre case: the drain outruns the walls, and the last of the fuel sloshes against its depth as it goes — which is why tank compartments carry baffles, and why a baffle’s job at the end of a discharge is a different job from the one it does on the road. A water tower emptying over hours through a valve is the slow hole: its walls win long before the end.

What the transport theorem adds

One thing in this essay belongs to the cart rather than the tank, and it is easy to lose. The slosh mode’s mass shrinks as the water leaves, and how the mode’s momentum behaves when mass leaves it is the transport theorem’s question: mass leaving a region pushes nothing unless it leaves with a speed of its own, and the speed that matters is the leaving mass’s speed relative to the region’s. The hole is at the foot of the back wall, and at an end wall the lowest mode’s horizontal velocity is zero — the wall is a node of the sloshing motion. The water that drains therefore leaves with none of the mode’s velocity, takes none of the mode’s momentum, and leaves its share of that momentum behind in the water that stays. That is the Lagrangian form, d(m1q˙)/dtd(m_1\dot q)/dt, and it is what keeps the action.

Had the hole been where the mode moves fastest — in the middle of the floor, under the wave’s node, where the horizontal velocity peaks — the drained water would have left with the mode’s velocity and taken its share of the momentum with it. The mode would then have kept its amplitude per unit mass instead of its action, its wave would have shrunk as h3/4h^{3/4} rather than h1/4h^{1/4}, and the wave’s height over the depth would have grown only as h−1/4h^{-1/4}: a third as fast, on the logarithmic scale, as the drain at the end wall gives. Where the hole is decides how much of the slosh the draining water takes with it.

The walls take it back

The slosh is not undamped. A sloshing tank is damped by its walls, not its water: the Stokes layers on the bottom, the ends and the sides take far more than the bulk does, and the bottom’s share in shallow water is νω/2/2h\sqrt{\nu\omega/2}/2h. That rate grows as the water shallows — as h−3/4h^{-3/4} per unit time once the frequency is falling as h\sqrt h — and the drain dwells longer at small depths, since it slows as h\sqrt h. Per unit of logarithmic depth, then, the damping is a number that climbs as the tank empties, and the growth from the kept action is a fixed three-quarters.

The wave grows where the walls take less than three-quarters per unit of log depth. The walls' damping per unit of logarithmic depth, γ h/|dh/dt|, against the depth, for holes of 2.5, 10 and 40 cm², against the 3/4 by which a kept action raises the wave's height over the depth in shallow water. Where a curve lies below three-quarters the wave is gaining on the water; where above, losing. The damping per unit time rises as the water shallows, and the drain slows as the square root of the depth, so every curve climbs; the smaller the hole, the longer the walls have and the higher its curve.
Fig. 4 The walls’ damping per unit of logarithmic depth, γh/∣dh/dt∣\gamma h/|dh/dt|, against the depth, for holes of 2.5, 10 and 40 square centimetres, with the kept action’s three-quarters dashed. Below the line the wave gains on the water; above it, it loses.

That turns the question into a comparison of two curves. Where the damping per unit of log depth lies below three-quarters, the wave’s height over the depth grows; where above, it falls. A larger hole drains faster, gives the walls less time at each depth, and lowers its curve in proportion to the drain time; a smaller hole raises it.

The three holes on the figure sit on three sides of the line. The 2.5 square-centimetre hole, which empties the tank in half an hour, has two to three units of damping per unit of log depth throughout: its wave dies to a hundredth of its starting ratio, and what is left at the end is the slosh that the drain’s own slow changes keep re-exciting. The 40 square-centimetre hole, emptying in under two minutes, has a tenth to a fifth: its wave grows against the water almost as if undamped, 26-fold by five millimetres, when it is 7.7 per cent of the depth. And the 10 square-centimetre hole of the cart in the leaping-cart essay, which empties in seven and a half minutes, has between a half and four-fifths — on the line for the whole drain. Its wave’s height over the depth never departs from its start by more than seventeen per cent, gaining in the shallow end what it lost in the deep. The walls take back almost exactly what the action gives.

In the shallow-water limit the comparison has a closed form. Integrating the bottom’s damping along a Torricelli drain gives an exponent proportional to h−1/4h^{-1/4}, so the wave’s ratio to the depth goes as h−3/4exp⁡(−4Ch−1/4)h^{-3/4}\exp(-4C h^{-1/4}) with C=(LW/a)νk/2 g1/4/22gC=(LW/a)\sqrt{\nu k/2}\,g^{1/4}/2\sqrt{2g}, which peaks at h=(4C/3)4h=(4C/3)^4. For the 10 square-centimetre hole CC is a quarter and the peak is at about a centimetre; for the 40 square-centimetre hole it is five hundredths of a millimetre, below anything the model describes, so the wave grows to the end. The march keeps the deep-water frequency and the side walls that the estimate drops, but the structure is the estimate’s: a power that grows against an exponential of a weaker power that eventually wins, and a drain rate that decides where.

So does the last water leave a pitching cart?

The force the slosh puts on the cart is m1ω2Qm_1\omega^2Q, which falls as h⋅h⋅h−3/4=h5/4h\cdot h\cdot h^{-3/4}=h^{5/4} even undamped: the cart is pitched less and less hard as the tank empties, whatever the wave is doing relative to the water. What grows is the wave against the depth, and that is what matters at the end of a drain. A slosh that is 8 per cent of the depth at five millimetres is uncovering the bottom of the tank at one end in each cycle a few millimetres later, and the jet leaving the hole at the back wall stutters with it — the depth at the hole is what drives the thrust, and the wave rocks it.

A tank’s walls slow its swing by exactly what they damp, and here they decide whether a drain ends calm. For the cart of the leaping-cart essay the answer is that it ends as it started, with a slosh about as large against its water as at the opening. A larger hole ends with the water sloshing visibly and the jet spluttering; a smaller one ends still.

Where the model stops

The model is a single linear sloshing mode, the lowest, with Graham and Rodriguez’s mass and frequency, laminar Stokes-layer damping from a clean surface and smooth walls, and a hole small enough that its jet obeys Torricelli at the instantaneous depth. Two of those fail in the last centimetres, and the second figure on that subject shows where.

The last centimetres are where the model stops: the Stokes layer fills the water and the wave stops being small. Two ratios against the depth, for the 40 cm² hole: the Stokes layer's thickness √(2ν/ω) over the depth, which passes a third at 0.0048 m, below which the walls' layers fill the water and the damping law no longer holds; and the slosh wave's height over the depth, which reaches 0.077 at 5 mm.
Fig. 5 Two ratios against the depth for the 40 square-centimetre hole: the Stokes layer’s thickness over the depth, which passes a third near five millimetres, and the wave’s height over the depth, which reaches 0.077 there.

The Stokes layer’s thickness, 2ν/ω\sqrt{2\nu/\omega}, grows as the frequency falls, and near five millimetres of water it is a third of the depth: the boundary layers fill the water and the damping law that assumes them thin no longer holds. And the wave’s height is no longer small: at 8 per cent of the depth the slosh is nonlinear, steepening towards a bore that runs from end to end, which dissipates in a way no linear damping describes. The figures stop at five millimetres for those reasons, and the closed-form peak for the 10 square-centimetre hole, near a centimetre, sits just inside them.

What the picture cannot show is any of the higher modes, which a real opening excites too and which damp faster, or the surface’s own contamination, which can multiply the damping several-fold through a surface film — the effect that let a film calm a wave most at a stiffness short of rigid. A dirty tank’s walls win sooner. Nor does it include the cart’s own friction, or a hole whose jet sees the slosh’s pressure rather than just its depth.

The numbers and their conventions

The tank is a metre long and a metre wide with a metre of water at the start, on a 100 kg frictionless cart; the hole is in the back wall at the floor. The wave’s height is the amplitude at the end walls of the lowest sloshing mode, measured about the static tilt the thrust holds; its ratio to the depth is normalised by its value just after the hole opens. The damping rate γ\gamma is the sum of the bottom’s, the end walls’, the side walls’ and the bulk’s, from the Stokes-layer formulae at the current depth, and the action is the mode’s energy over its frequency, its mass including the cart’s share. Water’s kinematic viscosity is 10−610^{-6} square metres a second.

A slosh through the whole drain: the checks. The undamped action kept through a tenfold fall in depth, the damped action against exp(−2∫γ dt), the shallow-water exponent of the wave's height over the depth, and the damped gain for a held tank half a metre deep.
Fig. 6 The undamped action held through a tenfold fall in depth, the damped action against the exponential of its integrated damping, the shallow-water exponent of the wave’s height over the depth, and the damped gain for a tank held still, half a metre deep.

Adiabatic invariants, and tanks

The adiabatic invariant is older than its name: Rayleigh and Lorentz discussed the pendulum whose length is changed slowly, and Einstein answered Lorentz at the Solvay conference of 1911 with the ratio of energy to frequency, which became the foundation of the old quantum theory. In water waves it is Whitham’s wave action of 1965, conserved by waves in a medium that changes slowly in space or time; Green’s law of 1838 for a wave shoaling onto a beach is its steady-flux version. The sloshing mass and frequency are Graham and Rodriguez’s of 1952 and Housner’s of 1957, and the wall damping is Keulegan’s of 1959. That a draining tank’s slosh is retuned by its own drain is the situation of every emptying fuel tank in a vehicle and every water tower in an earthquake, and the transport theorem — the cart’s momentum including the slosh’s — is what makes the rate of change of anything inside a moving region depend on how the region is drawn.

Still open: the bore at the end

The model stops where the wave stops being small, and that is exactly where the fast-draining tank ends up. A linear wave at 8 per cent of the depth steepens over a few periods into a bore running back and forth between the end walls, and a bore dissipates at a rate set by its own height — the shock in a river, in a box — not by the walls. The next calculation would carry the slosh through the last centimetres with the shallow-water equations in the tank, a moving bed of zero and a draining hole, and ask whether the bore’s own dissipation caps the wave’s ratio to the depth at a fixed value, as a breaking wave on a beach is capped at a fixed fraction of its depth, and whether that cap is reached before the water runs out — which would make the last of a fast drain a bore bouncing in a film, at a height set by the depth alone and not by how the slosh started.

What links here

Computed from the collection rather than written here: the essays that point at this one.

Reads more easily once this is understood

Essays that name this one as worth reading first.

Shares its objects with

Essays naming at least two of the same things, that neither author linked.

Named objects

A dashed tag is an object no other essay names yet.

Control volumeDampingFree surfaceModel limitResonanceThe Stokes layer