Viscosity

The price of a gradient

Viscosity does not charge for motion. It charges for the rate at which a parcel is being deformed, and a fluid in solid-body rotation at any speed whatever destroys nothing at all. What is charged for is a sum of squares, which is why the bill can be computed twice.

Worth reading first: What a parcel does in the first instant · Everything happens in a layer you cannot see.

A fluid in solid-body rotation — a bucket of water spun up and left alone — has a velocity that varies from place to place, a velocity gradient everywhere in it, and a viscosity that is not zero. It destroys no energy at all. Not a little; none.

That is the fact this essay is built on, and it is not an edge case. It is the definition of what viscosity charges for, and every number about drag, lubrication, heating and loss in the rest of this collection is a consequence of it.

The motions that cost nothing. Four velocity fields and what each of them costs. A uniform translation and a solid-body rotation deform nothing, so their rate of strain is exactly zero and so is their dissipation, at any speed and any spin rate. The last two cost exactly the same as one another — a simple shear of rate γ and a pure strain of rate γ/2 have the same rate of strain — even though the shear's velocity gradient is √2 larger. All of that difference is rotation, and rotation is free.
Fig. 1 Four motions and their bills. The first two are rigid — a whole region of fluid moving as one object — and cost nothing whatever, however fast. The last two cost the same as one another, and the reason is the point: a simple shear at rate γ contains a strain at γ/2 and a rotation at γ/2, so it has the same rate of strain as a pure strain at half its rate, and √2 more velocity gradient. The extra is rotation, and rotation is free.

What the stress actually does work against

Take a small parcel of fluid and ask what its neighbours are doing to it. They pull on its faces with a stress, and the rate at which they do work on it is the stress contracted with the velocity gradient. That is the starting point, and it looks as though the whole velocity gradient ought to appear in the answer.

It does not, and the reason is one line of algebra. The viscous stress tensor is symmetric. The velocity gradient is not: it splits into a symmetric part, the rate of strain, and an antisymmetric part, which is the local rotation and is the vorticity in disguise. Contracting a symmetric tensor with an antisymmetric one gives zero, identically. So the antisymmetric half of the velocity gradient does no work against a viscous stress, ever, and what is left is

Φ=2μeijeij,eij=12(uixj+ujxi).\Phi = 2\mu\,e_{ij}e_{ij}, \qquad e_{ij} = \tfrac12\left(\frac{\partial u_i}{\partial x_j} + \frac{\partial u_j}{\partial x_i}\right).

This is the dissipation function: the rate at which mechanical energy is being destroyed, per unit volume, at a point.

Two properties fall straight out of the form. It is a sum of squares, so it is never negative — a viscous fluid cannot give energy back, which is the only place an arrow of time enters the equations of motion at all. And it is zero exactly when every component of the rate of strain is zero, which happens exactly on the rigid motions: a translation, a rotation, and any sum of the two. The decomposition a parcel undergoes in its first instant is therefore also a decomposition of the bill.

Why a picture of it proves nothing

Every other field on this site can be checked by looking at it, at least a little. A streamline that runs through a solid body is wrong and looks wrong. A pressure field with a maximum where the flow is fastest is wrong and looks wrong.

A dissipation map has no such property. It is a scalar field, drawn as bands, and any smooth velocity field produces a plausible one — bright where the picture looks sheared, dark where it looks calm. There is nothing in the drawing to be wrong about. The site’s standing worry that a wrong flow field is beautiful is at its sharpest here.

So the dissipation function needs a test that is not a picture, and it has one that is better than most: the same number can be computed a completely different way.

The second route

Integrate the mechanical-energy equation over a fixed region V with surface S. For a steady incompressible flow the result is

VΦdV  =  Su(σn)dS    Sρ12u2(un)dS.\int_V \Phi\,dV \;=\; \oint_S \mathbf{u}\cdot(\boldsymbol{\sigma}\cdot\mathbf{n})\,dS \;-\; \oint_S \rho\tfrac12|\mathbf{u}|^2\,(\mathbf{u}\cdot\mathbf{n})\,dS.

The first term on the right is the work the surface tractions do on the boundary; the second is the kinetic energy carried out through the same surface by the flow itself. Neither integral knows anything about the other. One is a volume integral of a squared derivative in the interior; the other is a pair of surface integrals of a stress and a flux. A field that is not a solution of the equations of motion will not make them agree, and a drawing of that field would not show which of them was wrong.

The same number, by two integrals that share no arithmetic. Three flows whose dissipation is in closed form both ways. The volume route integrates the dissipation function over the fluid; the boundary route multiplies a force or a torque by the speed of whatever is applying it. Neither calculation contains the other, and the residual column is what is left when they are subtracted.
Fig. 2 Three flows for which both integrals are in closed form. The residual column is what is left after subtracting, and it is zero to the precision a double carries — not because anything was arranged, but because these are solutions. The second term above is absent from all three: none of them has inertia, so nothing is carrying kinetic energy anywhere.

Where a pipe’s heat is actually made

The first flow in that table is worth stopping on, because it contains a result that contradicts almost everybody’s first guess.

Plane Poiseuille flow between stationary walls has velocity u=umax(1y2/h2)u = u_{\max}(1 - y^2/h^2). The walls do no work, because they do not move. So every joule the flow destroys is paid for at the ends, by whatever is maintaining the pressure gradient, and the boundary route is simply (dp/dx)Q(-dp/dx)\,Q — the pressure drop times the flow rate, which is what a pump reads.

The volume route is μ(du/dy)2dy\int \mu (du/dy)^2\,dy. And du/dydu/dy is zero on the centreline and largest at the wall.

Where a pipe's heat is made. Plane Poiseuille flow: the velocity profile on the left, the dissipation function on the right, at the same scale of height. The fluid in the middle is moving fastest and is dissipating nothing at all, because it is not being sheared; every joule is made at the walls, where the fluid is barely moving. Half of the total is made in the outer 29 per cent of the gap.
Fig. 3 The velocity on the left and the dissipation on the right, at the same scale of height. The fluid in the middle is the fastest thing in the pipe and is destroying nothing at all. Every joule is made at the walls, in fluid that is barely moving — and half of the total is made in the outer 29 per cent of the gap.

The reason this matters beyond the arithmetic is that it is the same statement as the boundary-layer one. The claim that everything happens in a thin layer is usually presented as a fact about where the vorticity is. It is equally a fact about where the bill is, and the second version is the one that explains why a body’s drag is so insensitive to what the outer flow is doing.

The case that does not close, and why that is the good one

Three flows agreeing to machine precision is reassuring and is not, on its own, evidence of much: they are all flows in which the fluid is bounded and the accounting is easy. The interesting test is a body moving through unbounded fluid, and there the balance appears to fail.

Take Stokes’ solution for a sphere translating at speed UU through fluid at rest. The power needed to tow it is the drag times the speed, 6πμaU26\pi\mu a U^2. Integrate Φ\Phi over the fluid out to a radius RR and the answer is less than that — at every finite RR, by a fraction that does not go away as the resolution is improved.

The heat a sphere makes is not all near the sphere. The dissipation inside a sphere of radius R around a body creeping through fluid, as a fraction of the power it takes to tow it. It is short of one at every finite radius, and the shortfall is exactly three halves of a radius over R — not a numerical error but the work still being done by the viscous stress across that surface. At ten radii, a seventh of the heat is still further out than that.
Fig. 4 The dissipation inside a sphere of radius R, as a fraction of the towing power. The shortfall is exactly three halves of a body radius over R: at ten radii a seventh of the heat is still further out than that, and at a hundred it is a sixty-seventh. It converges to one only in the limit, and the approach is as 1/R rather than anything faster.

That shortfall is not error. It is the second term in the balance — the work still being done by the viscous stress across the surface at RR — and the closed form for it is exactly 3a/2R3a/2R of the total. A calculation that treats it as a numerical failure will conclude that Stokes’ solution does not conserve energy, which is a strong claim to arrive at by dropping a term.

The physical statement is the surprising one. A body creeping through a fluid heats a region far larger than itself, and the heating falls off so slowly that no finite region contains most of it. That is the energetic face of the same long-range disturbance that makes creeping flow past a cylinder have no solution at all: the 1/r decay of a Stokeslet is too slow for anything to be local.

The thing it is not: enstrophy

There is a second quantity that looks like the dissipation and is quoted as though it were one, and the difference between them is worth being precise about because it is the commonest slip in the literature on vortices.

In two dimensions, with the fluid extending to infinity and everything decaying there, the total dissipation equals μ\mu times the integral of the squared vorticity — the enstrophy. That identity is exact and it is genuinely useful, because vorticity is often the thing a calculation carries.

It is also only true over the whole plane. Over a finite region the two differ by a boundary term, and the boundary term is not small. A decaying vortex is the clean case: outside its core the fluid is irrotational, so it contributes nothing whatever to the enstrophy — and it is being sheared, so it contributes plenty to the dissipation. Inside a circle of radius RR the two differ by exactly μΓ2/πR2\mu\Gamma^2/\pi R^2, which is measured in the essay on what a vortex loses.

The books, inside a circle. The energy account of a Lamb–Oseen vortex inside a circle of sixty core widths. The energy inside is falling; the dissipation inside accounts for nearly all of that, and the rest is the work the viscous stress of the fluid outside is doing on the fluid inside. The two do not have to be equal and are not — a circle drawn in a moving fluid is not a closed system, and the third term is what makes the first two agree.
Fig. 5 The books for a decaying vortex inside a circle. The energy inside is falling, the dissipation inside accounts for nearly all of that, and the remainder is the work the fluid outside is doing on the fluid inside across the circle. A circle drawn in a moving fluid is not a closed system, and the third bar is what makes the first two agree.

The general rule is the one this whole essay is about: a region’s books do not balance until every way a joule can cross its boundary has been counted, and there are three of them — work by the tractions, kinetic energy carried by the flow, and, if the region is not fixed, the energy the moving boundary sweeps. Naming the dissipation without naming the region is naming half of a subtraction.

The term that is the Reynolds number’s fingerprint

In all four cases above the kinetic-energy flux term is zero, and it is zero for a reason: creeping flows have no inertia, so nothing is carrying energy anywhere. The instant a flow has a Reynolds number worth naming, that term is not zero, and its size is a direct measure of how much of the power delivered to a region is leaving it as motion rather than as heat.

Where the heat is made at Reynolds number 40. The dissipation function around a cylinder at Reynolds number 40, as contour bands, with streamlines over it. The bright regions are where mechanical energy is being destroyed: a thin sheet along the front of the body where the boundary layer is, and a pair of shear layers running downstream from the shoulders. The fluid inside the recirculating wake is moving and is destroying almost nothing, because it is being carried rather than sheared.
Fig. 6 The dissipation around a cylinder at Reynolds number 40, as contour bands, with streamlines over it. The bright regions are where energy is being destroyed: a thin sheet along the front of the body, and two shear layers running downstream from the shoulders. The fluid inside the recirculating wake is moving and destroying almost nothing — it is being carried rather than sheared, which is the distinction the whole function is built on.

The map makes a second point that the profile figure only hinted at. The dissipation is not where the body is. It is on a surface round the body and in two lines behind it, and at higher Reynolds number the second of those dominates — which is taken up in the next essay, where the fraction still being made five diameters downstream is measured.

What a joule of dissipation is actually worth

The function says how much mechanical energy is destroyed. It does not say how much is lost, and the two are different quantities as soon as the fluid has a temperature.

Dissipation does not annihilate energy — it converts it to heat, at the place where the straining happens. What has gone is the energy’s availability, and the measure of that is entropy. The entropy produced per unit volume by the straining is

s˙Φ=ΦT,\dot{s}_\Phi = \frac{\Phi}{T},

with TT the local absolute temperature. So the same Φ\Phi, deposited in a compressor inlet at 250 K and in a turbine passage at 1,500 K, produces six times as much entropy in the first as in the second — and the work that could have been recovered and was not is proportional to the entropy, not to the heat. A joule dissipated cold is worth six of a joule dissipated hot, which is why a loss audit for a gas turbine is done in entropy and not in pressure drop, and why the same aerodynamic inefficiency is a different-sized problem at different stations of the same machine.

There is a second entropy source in any flow that carries heat, and it competes with the first. Conducting heat across a finite temperature difference is irreversible on its own, at a rate

s˙q=kT2T2,\dot{s}_q = \frac{k\,|\nabla T|^2}{T^2},

and the two together are the whole of the entropy a flow produces. What makes them worth writing side by side is that they respond to a design change in opposite directions.

Consider a heated duct carrying a fixed heat load. Speed the flow up and the heat-transfer coefficient rises, so the temperature differences needed to move the heat fall, so s˙q\dot{s}_q falls — and the velocity gradients rise, so Φ\Phi and s˙Φ\dot{s}_\Phi rise with them, roughly as the cube of the speed in turbulent flow. Slow it down and the trade reverses. One term falls as the other climbs, so their sum has a minimum, and the minimum is at a definite Reynolds number.

That is entropy-generation minimisation, and it is a genuinely different design criterion from either of the two it replaces. Minimising pressure drop alone says go slowly, which is wrong. Maximising heat transfer alone says go fast, which is also wrong. Minimising the total lost work says there is a speed, and the speed depends on the heat load, the fluid, the tube and the temperature level — because TT appears in the denominators and the two denominators are different powers of it.

The general lesson belongs beside the rest of this essay. Φ\Phi is a local, positive, exactly computable quantity, and it is not by itself an answer to any question a designer has. What a gradient costs is Φ\Phi; what it is worth is Φ/T\Phi/T; and what should be done about it depends on what else in the system is producing entropy for the same reason. The dissipation function supplies the first of those exactly and the other two only once a temperature field has been put beside it.

What this makes computable

Three things become straightforward once the function is written down, and each is the subject of one of the essays this one is the base of.

A minimum. Because Φ is a positive-definite quadratic in the rate of strain, the total dissipation of a flow is a quadratic functional of its velocity field — and quadratic functionals have minima. The parabola in a pipe is not the shape the equations produce; it is the cheapest shape the walls allow, and the equations produce it for that reason.

A cost that is a product. In a bearing, in a coating film and in a heated seal, the dissipation is not a loss to be minimised — it is the mechanism. A film that carries a steel shaft on oil does so entirely by dissipating, and the load it supports is proportional to how much it destroys.

An arrow. Φ ≥ 0 is the only inequality in the equations of motion, and it is what makes a viscous flow irreversible while the shock that a compressible flow makes is forbidden in one direction by a completely separate argument about entropy. The two turn out to be the same statement, and the essay that connects them is the one about the coefficient this site had never used.

How far downstream the heat is still being made. The dissipation accumulated from a station ahead of a cylinder to a station behind it, as a fraction of the whole of what is made inside the frame, at five Reynolds numbers. At Reynolds number 1 the fluid has finished paying by about a diameter behind the body. At 100 it has not finished at five, and the curve is still climbing at the edge of the picture — the drag is a force on the body, and the heat it stands for is somewhere else.
Fig. 7 Where the heat is still being made, five Reynolds numbers at once. The vertical axis is the share of the frame’s total dissipation accumulated from a station ahead of the body to a station behind it. At Reynolds number 1 the account is nearly settled a diameter behind; at 100 the curve is still climbing at the edge of the picture.

What the picture cannot show

The grid solve is coarse, and its dissipation is the coarsest thing on it. Φ is a squared derivative of a bilinearly interpolated field, so it is one order less accurate than the velocity and two less than the streamfunction. The maps above are honest about where the dissipation is and are not a measurement of how much; the numbers quoted in this essay all come from closed forms.

Nothing here is compressible. The form Φ = 2μ e:e assumes the divergence of the velocity is zero. A gas whose density is changing has a second, independent coefficient multiplying the square of that divergence, and every figure on this site has quietly set it to zero. That is a separate essay and it is not a small correction.

And the fluid’s properties are constant. Real oils thin as they warm, and the warming is caused by the dissipation being computed. Where that feedback matters the calculation above is the first step of an iteration rather than an answer, and there is a value of the driving beyond which the iteration does not converge at all.

Reynolds number: one number, four different flows. Reynolds number is inertia ÷ viscosity. It is not a property of the fluid or of the shape but of the combination, and crossing a threshold changes the physics rather than the magnitude.
Fig. 8 The axis this collection is organised on. Everything in this essay holds at every value on it — the dissipation function is not an approximation and has no regime of validity — but what fraction of a flow’s power ends up in it varies across the whole range, which is what the next essay measures.

Who found it, and when

Stokes wrote the function down in 1845, in the same paper in which he set the second viscosity to zero and said he had no argument for doing so. Rayleigh gave it the name it now has and used it to argue, in 1873, that a slow viscous flow arranges itself to dissipate as little as it can — which was the first appearance of the variational idea this collection’s next essay is about.

The surprising connection is with a result that has nothing to do with fluids. The condition Φ = 0 picks out exactly the velocity fields whose rate of strain vanishes, and those are exactly the rigid motions of three-dimensional space: three translations and three rotations, six parameters, no more. So the null space of the dissipation function is the Lie algebra of the Euclidean group — a statement about what a fluid cannot be charged for, which turns out to be a statement about what it means for a body not to deform at all.

Where the ladder goes next

Above this rung is the accounting for a flow that has inertia, where the kinetic-energy flux is not zero and the question becomes where the heat of a drag is actually made. Beside it is the variational result — the cheapest shape a set of walls allows — which is what turns Φ from a bookkeeping device into a way of predicting a flow without solving for it.

Below it are the two facts it was built from: what a parcel does in its first instant, which supplies the rate of strain, and the thin layer, which is where almost all of it happens.

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.

ConservationControl volumeDissipationDissipation functionIrreversibilityMechanical energyRate of strainStokes flowViscosityVorticity