Viscosity

The layer that stops at a depth

Every other boundary layer grows. This one does not — rotation supplies a frequency, the balance against diffusion supplies a length, and the transport that comes out contains the stress on the surface and not the viscosity underneath it.

Worth reading first: The wall that shakes · The bath does not know the hemisphere.

A boundary layer on a plate grows without limit. Its thickness is νx/U\sqrt{\nu x/U}, which contains the distance travelled, and there is nothing in the problem to stop it: diffusion has all the time in the world and keeps reaching further out.

Two things on this site stop it. One is suction through the wall, which balances diffusion against a velocity somebody has to supply. The other needs no apparatus at all — the fluid merely has to be rotating, which on a planet it always is.

The current at the surface is 45° from the wind, and nothing sets that angle. The Ekman spiral drawn as a hodograph: each point is the velocity at one depth, and depth runs along the curve. At the surface the flow is at exactly 45 degrees to the wind that drives it — not approximately, exactly, and independently of the wind, the viscosity and the latitude. By one Ekman depth the flow has turned another radian and lost 1/e of its speed; by three it is a hundredth of the surface value and pointing back the way it came. The angle is a property of the equation having two terms in it, and nothing else.
Fig. 1 The Ekman spiral drawn as a hodograph: each point is the velocity at one depth, and depth runs along the curve. At the surface the flow is at exactly forty-five degrees to the wind that drives it — not approximately, exactly, and independently of the wind speed, the viscosity and the latitude.

Where the depth comes from

The Coriolis term contributes something no other term in the equations of motion has: a frequency, f=2Ωsinϕf = 2\Omega\sin\phi, with no length and no velocity in it. Set that against viscous diffusion, whose only parameter is ν\nu, and dimensional analysis has one length to offer:

δ=2νf.\delta = \sqrt{\frac{2\nu}{f}}.

There is no distance travelled in that, no free-stream speed, and no time. The layer does not grow; it exists. At forty-five degrees of latitude ff is 1.03×1041.03\times10^{-4} per second, so an ocean with an eddy viscosity of 102m2/s10^{-2}\,\mathrm{m^2/s} has an Ekman depth of fourteen metres, and an atmosphere with an eddy viscosity of ten has one of four hundred and forty. Both are the numbers those layers are observed to have.

The exact solution, and the two angles in it

The steady linear equations for a fluid driven by a stress at its surface are, in complex form,

ifW=νW,W=u+iv,i f W = \nu W'' ,\qquad W = u + iv,

which is solved by We(1+i)z/δW \propto e^{-(1+i)z/\delta} — an exponential decay multiplied by a rotation, in one expression. That is the spiral.

The sign of the exponent is not a convention. The other root, e(1i)z/δe^{-(1-i)z/\delta}, solves the equation with ff reversed, which is the southern hemisphere; both give a surface current at forty-five degrees and a transport at ninety, so the picture looks right either way and only the residual test tells them apart. This site’s version is put back into the equations it claims to solve by central differences on the tabulated values, which is the discipline every exact solution here is held to.

A depth with no distance and no speed in it. The two velocity components of the same spiral, against depth in units of δ = √(2ν/f). The across-wind component is not a small correction: it is comparable with the along-wind one everywhere, and it is the whole reason the transport ends up at right angles to the driving. The depth itself is 13.926 metres here and contains no distance travelled, no free-stream speed and no time — which is what makes this layer different in kind from every other one on this site, all of which grow.
Fig. 2 The two velocity components against depth, in units of δ. The across-wind component is not a small correction to the along-wind one: they are comparable everywhere, and that is why the total transport ends up at right angles to the thing driving it. By one depth the speed has fallen to 1/e1/e and the direction has turned another radian; by three the flow is a hundredth of the surface value and pointing back the way it came.

Forty-five degrees at the surface is the first exact angle. It comes from the (1+i)(1+i): the two parts of that complex number are equal, so the velocity at z=0z = 0 makes equal components along and across the driving stress. Nothing in the fluid, the forcing or the geometry can change it, because none of them appear.

The transport, which has no viscosity in it

Integrate the whole spiral over its own depth and the second exact angle appears, along with the result that made Ekman’s name.

M=τρf,at ninety degrees to τ.\mathbf{M} = \frac{\boldsymbol{\tau}}{\rho f}, \qquad \text{at ninety degrees to } \boldsymbol{\tau}.

The viscosity has cancelled. It decides how deep the layer is (δν\delta \propto \sqrt{\nu}) and how fast the water at the top moves (1/ν\propto 1/\sqrt{\nu}), and the product of a depth and a speed is a transport, so the two dependencies annihilate.

The depth is a guess and the transport is not. How the layer's depth and its total transport depend on the viscosity, over four decades. The depth goes as the square root, as it must — it is √(2ν/f) — so a factor of ten thousand in viscosity is a factor of a hundred in depth. The transport does not move at all: it is τ/ρf, it comes out as 1.000038 of that at every viscosity tried, and the spread across the whole range is 1.1e-14. This matters because the eddy viscosity of the upper ocean is not known to within an order of magnitude, and the quantity oceanography needs from this layer is the one that does not contain it.
Fig. 3 Depth and transport against viscosity, over four decades. The depth moves by a factor of a hundred, as ν\sqrt{\nu} demands. The transport does not move at all: it stays at τ/ρf\tau/\rho f to five decimal places, and the spread across the whole range is 101410^{-14}.

That is not a curiosity. The eddy viscosity of the upper ocean is not known to within an order of magnitude — it is a stand-in for turbulence that the model does not contain, and different estimates of it differ by a factor of thirty. Every quantity in this problem that depends on it is therefore uncertain by a factor of five or six.

And the quantity oceanography actually needs is the one that does not depend on it. Ekman transport is what drives coastal upwelling: a wind blowing along a coast drives water at right angles to itself, offshore or onshore depending on the sign, and the water that replaces it comes up from below carrying nutrients. The rate at which that happens is τ/ρf\tau/\rho f, computable from a wind measurement and a latitude, with no fluid property in it at all.

Why the boundary condition is the whole story

This is the phase’s thesis in its cleanest form, so it is worth stating flatly.

The equation contains ν\nu. The solution contains ν\nu. Every profile drawn above contains ν\nu. The integral of the solution contains only the boundary condition — the stress at the surface — and the equation’s own coefficient has dropped out of it.

The reason is a conservation statement rather than an accident. In steady state the Coriolis force on the whole layer must balance the stress applied to it, since there is nothing else acting: integrate fz^×M=τ/ρf\,\hat{z}\times\mathbf{M} = \boldsymbol{\tau}/\rho and the transport follows without solving anything. The spiral is how the fluid arranges itself to do that; the transport is that it must.

A wave that dies within one wavelength — 1 Hz in airThe velocity profile above an oscillating wall, at eight phases of one cycle, with depth in units of δ = √(2ν/ω). The motion is a wave travelling *into* the fluid, and its amplitude falls by 1/e in the same distance it turns by one radian — so it is dead within about one wavelength, and the fluid three δ up hardly knows the wall is moving at all. This is one of the very few exact solutions the Navier–Stokes equations have. The dashed line is one fixed distance above the wall in millimetres: in these units it climbs as the square root of the frequency, which is the whole of how far the motion reaches.-1-0.500.5101234velocity, in units of the wall'sdepth, in units of δδ = 0.5642 mmperiod 1000.00 msν = 0.000001 m²/seight phases of one cyclethe heavy line is t = 0the dashed line is 0.084 mmabove the wall — 0.15 δ hereresidual of ∂u/∂t = ν∂²u/∂y²3.5e-9Stokes' second problem — exact, with the diffusion equation differenced off itf = 1 Hz, ν = 0.000001 m²/s · laminar, no mean flow
Fig. 4 The nearest relative on this site: Stokes’ second problem, where a wall oscillates and the fluid a distance 2ν/ω\sqrt{2\nu/\omega} away barely notices. The frequency there is imposed by the wall; here it is imposed by the planet. Two exact solutions, the same depth formula, and a completely different source for the number in it.

There is one more place the cancellation shows itself, and it is a good test of whether the argument has been understood. Doubling the eddy viscosity doubles the depth’s square, so the layer becomes 2\sqrt{2} times deeper; the surface current becomes 2\sqrt{2} times slower, because the same stress is now shared over more fluid; and the transport, being the product, is unchanged. A measurement of the surface current alone therefore says nothing about the transport unless the depth is known, and a measurement of the transport says nothing about the viscosity at all.

The wall's condition, on its way to the middle. Five profiles across the half-channel, from just inside the entrance to fully developed, each drawn at the station where it occurs. The march starts from a slab of uniform flow and never assumes a shape: what arrives at the far end is a parabola, with a centre-line speed of 1.4979 times the mean against the exact 3/2 and a momentum flux of 1.1995 against 6/5. Notice what the middle does while the edges are being slowed: it speeds up, because the flow rate is held, and that acceleration is what the entrance's extra pressure drop pays for.
Fig. 5 The same layer on its way to that depth, drawn as five profiles at five stations. The march starts from a slab and is never told what shape to reach; what arrives is the spiral above, and the fact that it arrives at all is what makes the depth a property of the equations rather than of the initial condition.

The transport before it settles, which overshoots by a factor of two

Everything above is steady, and the steadiness is doing more work than it looks. The transport was obtained twice — once by integrating the spiral, and once by balancing the Coriolis force on the whole layer against the stress applied to it — and the second derivation used no viscosity and no profile. It is worth running that second argument without dropping the time derivative, because the answer is not a mild transient.

Integrate the momentum equation over the depth of the layer and nothing survives but three terms:

dMdt+fz^×M=τρ.\frac{d\mathbf{M}}{dt} + f\,\hat{z}\times\mathbf{M} = \frac{\boldsymbol{\tau}}{\rho}.

There is no viscosity in it, no depth, and no profile — the same cancellation as before, now with a clock. The particular solution is Ekman’s ME=τ/ρf\mathbf{M}_E = \boldsymbol{\tau}/\rho f at right angles to the wind. The homogeneous solution is a vector of constant length rotating at the rate ff, which is an inertial oscillation, and nothing in this equation damps it.

So start a wind blowing over an ocean at rest. The transport is the steady answer plus whatever rotating vector is needed to make the total vanish at t=0t = 0, which is ME-\mathbf{M}_E rotated:

M(t)=ME[(1cosft)e^1+sinft  e^2].\mathbf{M}(t) = \mathbf{M}_E\left[(1 - \cos ft)\,\hat{e}_1 + \sin ft\;\hat{e}_2\right].

The tip of that vector traces a circle of radius ME|\mathbf{M}_E| centred on ME\mathbf{M}_E and passing through the origin. Half an inertial period after the wind starts, the transport is 2ME2\mathbf{M}_E — exactly twice the steady answer — and half a period later it is zero again. It is never the Ekman transport except at two instants per cycle, and its average over a cycle is the Ekman transport exactly.

The period is 2π/f2\pi/f, which at forty-five degrees is 16.9 hours, so the overshoot happens about eight and a half hours after a front passes. That is not a laboratory number: it is why current meters in the upper ocean record a near-circular oscillation dominating everything else for several days after a storm, rotating clockwise in the northern hemisphere, and why the wind-driven signal has to be extracted by averaging over the inertial period rather than read off directly.

Two things are worth carrying out of this. The first is that the quantity with no fluid property in it is also the quantity that arrives last. The spiral needs viscosity and takes an Ekman spin-up time to form; the transport needs neither and is exact from the first instant, but it is exact as an oscillation about the steady value rather than as the steady value. A theory whose one robust result is an integral will describe a real ocean well only after the oscillation about that integral has been averaged out — and the averaging is over the planet’s rotation rather than over anything the fluid does.

The second is that the friction left out of this balance is what eventually kills the oscillation. The Ekman layer’s own dissipation drains it over a spin-down time H/νfH/\sqrt{\nu f} — the same time as the teacup’s, arrived at from the same layer — so the two results in this essay are not independent: the mechanism that lets the transport be computed without viscosity is the mechanism that requires viscosity to make the computation stop wobbling.

There is a third consequence, and it is the one that makes the inertial period a design number for anybody predicting an upwelling. The balance above is a linear oscillator driven by the wind stress, undamped except by the layer’s own friction, and its natural frequency is ff. A wind that varies on a timescale near the inertial period is therefore driving it at resonance, and the transport it produces is not the quasi-steady τ/ρf\tau/\rho f evaluated instant by instant — it is larger, by whatever the damping allows. Weather systems at mid-latitudes pass in one to three days against an inertial period of seventeen hours, which is close enough that the ocean’s response to a moving storm is dominated by what side of the track it is on: a wind that rotates with the current’s own sense pumps it and one that rotates against it does not.

The bottom layer, and the spin-down it causes

The same solution run at a floor rather than a surface gives the other Ekman layer: a geostrophic current above, brought to rest at the bottom, with the spiral turning the other way.

Its consequence is out of proportion to its size. The layer is thin, but it carries a transport across the geostrophic flow, and where that flow is a vortex the transport is radial — inward at the bottom of a cyclone, and it has to go somewhere. What it does is rise, filling the interior with fluid from the boundary layer, and the whole vortex spins down in a time

tHνft \sim \frac{H}{\sqrt{\nu f}}

rather than the diffusive H2/νH^2/\nu. Ekman pumping is faster than diffusion by a factor of the square root of the Ekman number, which for a stirred teacup is a factor of several hundred: the tea stops in tens of seconds rather than in hours, which is diffusion beaten, and the leaves gather in the middle because the bottom layer swept them there.

The bath is ten thousand times too small. The Rossby number — the ratio of the inertial term to the Coriolis term in the momentum equation — for eight flows at 45 degrees, on a logarithmic axis. Above one, rotation is a correction; below one, it is the physics. A draining bath sits at 3.2e+3 and a mid-latitude depression at 1.9e-1. The Coriolis term is not absent from the bath: it is present, computable, and four orders of magnitude smaller than the terms that decide what happens. Saying so is not the same as saying it is zero.
Fig. 6 The number that says whether any of this applies. Rotation matters when the Rossby number is small — when the fluid takes long enough to cross the region that the planet turns appreciably meanwhile — and this site has already measured how badly that fails in a bathtub. An Ekman layer needs the same condition, which is why the tea leaves are a rotation experiment and the bath is not.
Arriving at three halves, from a march that was never told it. The centre-line speed along the duct, in units of the mean, against distance in units of the development length. It starts at one — a uniform slab — and climbs, because the flow rate is fixed and the walls are taking their share out of the edges. The approach to 3/2 is asymptotic, so the development length is a convention: this one is where the centre line reaches 99 per cent of its final value, which puts it at 35.7 half-widths at Re = 200, or 4.458 hydraulic diameters per unit of the diameter Reynolds number. The handbooks say 0.011 and they mean this number.
Fig. 7 And the approach to the settled state, read along the march. It is asymptotic, so the depth this essay quotes is a convention with a tolerance behind it in exactly the way a threshold usually is — the layer never quite stops, and a number has to be chosen for where it has.

The number that says whether the layer is thin

Rotation supplies a frequency and the geometry supplies a depth, so there is a dimensionless group, and it decides everything about whether any of this is a boundary layer at all:

E=νfH2,E = \frac{\nu}{f H^2},

the Ekman number, which is the square of the ratio of the layer’s own depth to the depth of the fluid, divided by two. A small Ekman number means the layer is thin compared with the ocean, the interior is geostrophic and knows nothing about the bottom, and the whole two-region picture holds. A large one means the layer fills the container and there is no interior left to speak of.

For the ocean, with HH a few kilometres, EE is around 10510^{-5} or smaller and the picture is excellent. For a teacup, with HH a few centimetres and molecular viscosity, it is around 10310^{-3} — still small, which is why the tea leaves work. For a bathtub it is not the Ekman number that fails but the Rossby number, and that failure is a factor of nearly four hundred.

The entrance costs 0.679 of a dynamic pressure, once and for all. Pressure drop along the duct, scaled by what the developed gradient alone would have produced. The straight line is that developed gradient extended back to the inlet; the curve is what actually happens. The gap between them stops growing once the flow is developed, because from there on the two gradients are the same — so the entrance's extra cost is a fixed number of dynamic pressures, not a longer pipe. It comes to 0.6794 here, against the 0.674 in the handbooks for a parallel-plate channel. Two things are in it: the profile's momentum flux rising from 1 to 6/5, and the extra shear of a layer that is thinner than the developed one.
Fig. 8 What the entrance costs, once and for all. The straight line is the settled gradient extended back to the inlet and the curve is what happens; the gap between them stops growing once the layer has settled, because from there the two gradients are the same. A layer that stops at a depth has a one-off price attached to stopping there.

What the picture cannot show

Four limits, and the first is the size of the whole edifice.

The eddy viscosity is not a fluid property. It is a stand-in for turbulent momentum transport, constant here because the exact solution requires it, and the real upper ocean’s is neither constant nor isotropic. What survives that substitution is the transport, which is the reason this solution is still used; what does not survive is the spiral’s shape. Measured spirals are flatter than this one, the surface angle is nearer twenty or thirty degrees than forty-five in most observations, and the discrepancy has been argued about for a century.

The layer is linear. The nonlinear terms have been dropped, which requires a small Rossby number, and the surface layer of an ocean under a strong wind is not always in that regime, and a stratified one mixes differently again.

The surface is flat and the stress is steady. A real wind-driven ocean has waves in it, and the momentum flux from wind to water goes partly through wave growth rather than directly into the mean flow — the Stokes drift and the wave-driven circulation are not in this solution at all.

And the two exact angles are properties of the model, not measurements. Forty-five degrees is what a constant-viscosity layer does. It is quoted here as an exact consequence of an assumption, which is a different kind of statement from a fact about the sea.

The pumping that follows, and why it matters more than the layer

The layer is thin and its consequence is not, and the reason is that its transport can diverge.

Ekman transport is τ/ρf\tau/\rho f at right angles to the wind. Where the wind varies from place to place — as it does across any ocean basin — that transport varies too, and where it converges, water has to go somewhere. It goes down. Where it diverges, water comes up.

The vertical velocity that results is tiny, of order metres per year, and it drives the ocean’s interior circulation. The whole of the classical theory of wind-driven gyres is that statement plus the conservation of potential vorticity: the interior of the ocean moves because the surface layer’s divergence squeezes it, not because the wind reaches down.

The coastal case is more visible. A wind blowing along a coast — a flow with one number deciding its regime — with the land on its left in the northern hemisphere drives water offshore; water rises to replace it, bringing nutrients from below; and the world’s most productive fisheries — Peru, California, Namibia, north-west Africa — are the four coastlines where the prevailing wind does that reliably. The number that predicts the strength of an upwelling is the one with no fluid property in it, computable from a wind measurement and a latitude, which is why it was usable long before anybody could measure an eddy viscosity.

Who found it, and why

Fridtjof Nansen noticed, during the Fram expedition of 1893–96, that sea ice does not drift downwind: it drifts twenty to forty degrees to the right of the wind, consistently, in the Arctic. He put the question to Vilhelm Bjerknes, who gave it to a student, and Vagn Walfrid Ekman’s answer — published in 1905, in the first volume of a journal Bjerknes founded — is the solution above.

The surprising part of the history is what Ekman got right by being wrong. His constant eddy viscosity is a poor model of the ocean’s turbulence and gives a spiral that is not quite the observed one. But the transport does not depend on it, so the one result that mattered was insensitive to the one assumption that was weakest, and the theory survived a century of measurements that disagreed with its profile while agreeing with its integral.

The connection worth keeping is with the rest of this collection. An exact solution is usually valued for the field it gives. This one is valued for an integral of that field, and the integral is fixed by the boundary condition alone — the same shape of argument as the vorticity flux at a wall, whose rate is set by the pressure gradient and contains no viscosity either. When a quantity turns out not to depend on the coefficient in the equation, it is usually because a conservation law has been hiding in the boundary condition.

Where the ladder goes next

The rung above is the pumping rather than the layer: the vertical velocity that a horizontal divergence of Ekman transport forces on the interior, which is what drives the ocean’s gyres and which turns a wind field into a circulation without any of the fluid in between being stirred.

The one beside it is the same balance in a duct rather than a half-space, where the layer stops for a completely different reason — because it meets the one growing from the opposite wall. That is how far a duct takes to forget its inlet, and the length comes out proportional to the Reynolds number, which is the opposite of what a first reading suggests.

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.

Boundary conditionBoundary layerCoriolisEddy viscosityEkman layerExact solutionMomentumRossby numberRotating frameSimilarity solutionTransportViscosityWall shear