Fluids at work

A magnetic meter cannot see a skewed pipe

Every flowmeter is a bet on the velocity profile, and most of them lose it after a bend. Send a conducting liquid through a magnetic field, and it generates a voltage between two electrodes on the pipe wall that reads the mean velocity for any axisymmetric profile at all. It does not ask if the flow is laminar or turbulent. A profile that is pushed off-centre does not change the reading. A pipe half blocked reads true. The reason is a one-line fact about analytic functions: Shercliff's weight function is harmonic, so its mean round any circle is its value at the centre, and it has only even harmonics. What the meter does see is a second harmonic, which is what the same theorem also says exactly.

Worth reading first: The profile a meter cannot see · The price of knowing the flow rate.

The profile a meter cannot see worked through the unfortunate fact behind every pressure-difference flowmeter. Such a meter reads the kinetic energy of the stream, and what’s wanted is the mass flow. These are different integrals of the velocity profile, and their ratio depends on the profile. So every such meter has a discharge coefficient, and it’s calibrated for a developed profile, and it needs a long straight pipe upstream to make that assumption true. An ultrasonic meter reading along a diameter has a similar problem, as a diameter’s mean isn’t the area mean. All of these have one thing in common: they don’t read the integral ∫u dA\int u\,dA. They read another integral, and they hope the two are in a fixed ratio.

There’s one meter that gets close to reading the right integral outright, and the reason is one of the neatest applications of harmonic function theory in engineering. Faraday tried it on the Thames from Waterloo Bridge in 1832, using two copper plates and the Earth’s field, as the Thames is a conductor flowing through a magnetic field, and he reasoned that this should drive a current. It’s a sound idea. He was defeated by electrochemical potentials on his plates. Kolin got it to work a century later on blood in the 1930s, and it’s now a standard device in the water, chemical and food industries. A conducting liquid passes through a field across the pipe, and there’s a voltage between two electrodes on the wall, which is proportional to flow.

It’s an instrument with no moving parts and no obstruction, and it has a remarkable mathematical property.

Where the flow counts: strongly near the electrodes and weakly beside the magnet's poles. Shercliff's weight along the diameter through the electrodes, and along the diameter square to it. It is 1 at the centre, 2.78 towards an electrode at 0.8 of the radius, and 0.61 at the same radius towards a pole, where it never goes below a half. Averaged round any circle, it comes to exactly 1.
Fig. 1 Shercliff’s weight along the diameter through the electrodes, and along the diameter through the poles. It’s 1 at the centre, 2.78 towards an electrode at 0.8 of the radius and 0.61 at the same radius towards a pole. Averaged round any circle it comes to exactly 1.

Which part of the flow is being weighed

A conducting liquid moving at vv across a uniform field BB has an electromotive field v×Bv\times B in it. Different parts of the pipe have different velocities, so each generates its own EMF. Currents circulate in the liquid, with the wall insulating, and an electrode pair picks up a voltage that’s a certain weighted average of velocities across the section. Finding the weight is a matter of solving the Laplace equation for the potential in the pipe, which Shercliff did in 1954 and put in his 1962 book. With electrodes on the yy axis at ±a\pm a and the field on the xx axis,

U=2Bπa∬W(x,y) v(x,y) dA,W=a2(a2+x2−y2)a4+2a2(x2−y2)+(x2+y2)2.U=\frac{2B}{\pi a}\iint W(x,y)\,v(x,y)\,dA,\qquad W=\frac{a^2(a^2+x^2-y^2)}{a^4+2a^2(x^2-y^2)+(x^2+y^2)^2}.

This WW is a remarkably uneven weight. It’s 1 at the centre, a half at the pole, and it rises without limit at an electrode. Flow close to an electrode counts for far more than flow close to a pole. A meter with such an uneven weight might be expected to misread anything other than a uniform flow, and it might seem surprising that it works at all.

Yet its average around a circle is exact, and a little algebra shows why. Writing z=x+iyz=x+iy,

W=a2 Re 1a2+z2.W=a^2\,{\rm Re}\,\frac{1}{a^2+z^2}.

WW is the real part of an analytic function. So it’s harmonic: it satisfies Laplace’s equation, within the pipe, away from the electrodes at z=±iaz=\pm ia. And for a harmonic function, the mean over any circle equals its value at the centre. That’s Gauss’s theorem of the mean, and it’s the same one that says the lowest pressure is on the body in potential flow. So round any circle, WW has the mean value 1, whatever the radius.

An axisymmetric velocity profile therefore reads exactly its true mean. If vv depends only on rr,

U=2Bπa∫0av(r)(∮W r dθ)dr=2Bπa∫0av(r) 2πr dr=2aB vˉ.U=\frac{2B}{\pi a}\int_0^a v(r)\left(\oint W\,r\,d\theta\right)dr=\frac{2B}{\pi a}\int_0^av(r)\,2\pi r\,dr=2aB\,\bar v .

The profile’s shape has gone out of the formula. A laminar parabola, a turbulent profile, an annular flow in a ring near the wall, or something exotic: it doesn’t matter.

Change the velocity profile and an ultrasonic path and a pressure meter drift, and this meter has no reason to. Each meter's reading over the true mean against the power-law exponent's n, for u = (1 − r/a) to the power 1/n. The magnetic reads 0.998 at n = 7. A diameter-path ultrasonic reads 1.07 there and 1.5 at n = 1. A pressure-drop meter reads 1.01 and 1.22.
Fig. 2 Each meter’s reading over the true mean against the power-law nn, for u=(1−r/a)1/nu=(1-r/a)^{1/n}. The magnetic reads 0.998 at n=7n=7, with the small difference from one being the quadrature near the wall. A diameter-path ultrasonic reads 1.07 there and 1.5 at n=1n=1. A pressure-drop meter reads 1.01 and 1.22.

Ultrasonic and pressure-drop meters drift as nn changes, and they have to be calibrated for the profile or for the Reynolds number, or both. A laminar flow reads 50 per cent high by an ultrasonic path along a diameter. In water at a low flow rate, where the flow’s laminar, or in passing through transition, any such meter’s reading can be seriously in error, and it’s a familiar problem. Nothing similar affects the magnetic one, which is therefore the meter of choice for slurries, for sewage, and for food. It’s unaffected by viscosity, or by density, or by what’s in the liquid, as long as it’s conducting.

A ring is the proof

A sharper test of the argument is a very narrow ring of flow.

A ring of flow at any radius reads its true flow, though the weight varies by a factor of many round that ring. The reading over the true flow for a narrow ring of velocity, against its radius, together with the largest and least of the weight on that ring. The ring at 0.8 has a weight from 0.61 to 2.78 and reads 1.
Fig. 3 The reading over the true flow for a narrow ring of velocity, against its radius, with the largest and least of the weight on that ring. The ring at 0.8 has a weight from 0.61 to 2.78, and it reads 1.

So the weight varies by more than a factor of four around the ring, and still the reading comes out exact. That’s what makes this such an appealing result. The meter isn’t uniformly sensitive to anything. It looks at each point with a very different weight. What’s special isn’t its uniformity but the fact that a circle’s a very particular shape, for a harmonic function.

Skewing doesn’t count either

A meter that’s only reliable for axisymmetric profiles would still be vulnerable to the real problem, since real pipes have bends, and a profile after a bend isn’t axisymmetric: it’s pushed to the outside, with a swirling secondary flow. How does the weight respond to asymmetry? The series form tells it directly. Expanding 1/(1+z2/a2)1/(1+z^2/a^2) with r<ar<a,

W=1−r2a2cos⁡2θ+r4a4cos⁡4θ−r6a6cos⁡6θ+⋯W=1-\frac{r^2}{a^2}\cos2\theta+\frac{r^4}{a^4}\cos4\theta-\frac{r^6}{a^6}\cos6\theta+\cdots

Here’s the second key point. Only even harmonics appear. So write a velocity profile as a Fourier series around the pipe. Every odd harmonic in the profile is orthogonal to every term in the weight. A first harmonic is a skew, the leading effect of a shift towards one side. It’s invisible. It has no mean flow in it, either. So a profile pushed bodily to one side, in the first harmonic, leaves the reading exactly right.

Skew the profile any way and the reading does not move; a second harmonic is what it can seeThe reading over the true mean of a paraboloid with a harmonic on it, (1 − r²)(1 + e rᵐ cos m(θ − φ)), against the harmonic's amplitude. A first harmonic, which is a skew, reads 1 at e = 0.5, to the accuracy of the sum. A second harmonic with its lobes on the electrodes reads 1.04, and with its lobes on the poles 0.958, equally far on the other side.e = 0.500.20.40.60.810.80.911.11.2harmonic's amplitudereading over true meansecond harmonic, towards electrodessecond harmonic, towards polesfirst harmonic, a skewShercliff's weight function for a uniform field and point electrodes, in a pipe of a conducting liquidturbulent or laminar pipe flow, Re any, a thin insulating wall, a small magnetic Reynolds number
Fig. 4 The reading over the true mean of a paraboloid with a harmonic on it, (1−r2)(1+ermcos⁡m(θ−ϕ))(1-r^2)(1+er^m\cos m(\theta-\phi)), against its amplitude. A first harmonic, which is a skew, reads 1 at e=0.5e=0.5. A second harmonic with its lobes on the electrodes reads 1.04, and with its lobes on the poles 0.958. Dialled through 0.25, 0.5 and 1, the first harmonic doesn’t move and the second grows in proportion.

The result is easy to spoil, and that’s worth knowing. Represent a skewed profile as a shifted paraboloid clipped at zero, and it seems to change the reading by a few per cent, the opposite way in the two directions. The clip is what’s doing it, since a clipped profile isn’t a pure first harmonic and it contains even harmonics. A true skew, with the odd part alone, doesn’t move the reading at all.

The second harmonic’s different. It’s the leading term in the weight, with its coefficient −r2cos⁡2θ-r^2\cos2\theta, and its effect on the reading can be written down. For this profile, a second harmonic of amplitude ee aligned with the electrodes,

UUtrue=1+∫01(1−r2) er4⋅12 r dr∫01(1−r2) r dr=1+e12.\frac{U}{U_{\rm true}}=1+\frac{\int_0^1(1-r^2)\,er^4\cdot\tfrac12\,r\,dr}{\int_0^1(1-r^2)\,r\,dr}=1+\frac{e}{12}.

So that e=0.5e=0.5 reads 1.042, as the calculation found. It’s a nice closed form. Those second-harmonic components are what a bend or a double elbow can produce. A secondary flow with its pair of counter-rotating cells tends to bring fast fluid to the walls in a two-lobed pattern, and that’s the part of the distortion the meter responds to. So its practical installation rules are milder than for other meters: five diameters of straight pipe upstream, often quoted, against the several tens needed for an orifice. Still, an orientation rule does matter, since it’s possible to put the second harmonic on the electrode axis or at right angles. Standard practice is to align the electrodes to be perpendicular to the plane of the nearest bend. That’s a rule of thumb arrived at empirically, and the result here indicates the reason, given that the two orientations give opposite signs.

It also explains how a meter designer gets rid of the remaining error. Put a second pair of electrodes at right angles, or use a wider field or an arrangement that changes the weight, and the second harmonic cancels in the average. Some large meters have just that. A pair at 90° has its readings differ by 2e/122e/12 and has its mean exact, as the first term of the weight vanishes in the sum, and only the fourth harmonic remains. Each further pair kills another. So Bevir’s “virtual current” formulation of 1970 gave a general way of designing a meter’s field, so as to have a uniform weight. Baker’s book gives the practical versions.

The half-pipe, which ought to be a disaster

The most striking test’s a pipe that’s half empty, or half blocked.

A half-blocked pipe reads true, either way round, and two opposite lobes do not. The reading over the true mean of a parabolic flow confined to part of the pipe. Half the pipe reads 1 on the electrode side and 1 on the pole side, since the weight's symmetry makes each half a copy of the other. Two opposite quarter sectors read 1.2 about the electrodes and 0.805 about the poles. The whole pipe reads 1.
Fig. 5 The reading over the true mean of a parabolic flow confined to part of the pipe. Half the pipe reads 1 on either side, because the weight’s symmetry makes each half a copy of the other. Two opposite quarter sectors read 1.20 about the electrodes and 0.805 about the poles.

A half-pipe flow is a wild distortion. It has a first harmonic as its largest term, and a third, a fifth. All those are odd. The even part of the half-pipe flow is just half the axisymmetric flow, in the same reading. So half-pipe reads true. Turn the dividing line to any angle and a step in θ\theta still has only a constant and odd harmonics in its Fourier series, so the half-pipe reads true whichever way round it lies: it’s 1.000 at every angle tried. It’s a good demonstration of why a mental picture of a “sensitivity map” misleads. Looking at the weight’s map in the first figure, it might seem that flow on one side would give a greater voltage than flow on the other. But that’s not the question. It’s the flow that crosses the electrodes on the two sides that counts.

Two opposite sectors are something else, as that’s almost pure second harmonic. Flow in two sectors around the electrodes reads 20 per cent high and flow around the poles reads 20 per cent low. Those are about the worst cases that are achievable, and they aren’t often found in practice: a pipe having two diametrically opposed jets is unusual, though a butterfly valve just upstream can generate something similar. A valve in this condition’s a serious source of error, and it’s why an installation guide warns against it.

A pulse, a tide and an ocean

The axisymmetric result says that the shape doesn’t count at each instant separately. So if a shape’s changing in time, the meter’s still reading the mean. That’s what made Kolin’s blood-flow measurement possible. A pulsatile flow has a profile that changes through the cycle, with reversal near the wall and forward flow in the core, as the parabola goes away at a high Womersley number. A pressure-drop meter would need a different calibration for each phase of the cycle. A magnetic one doesn’t. It follows the flow’s waveform exactly through systole and diastole, on a vessel exposed in surgery, and cuff-type electromagnetic flow probes on arteries have been standard in physiology for decades. Each moment’s axisymmetric profile is read at its true mean, without the calibration needing any information about the phase.

Faraday’s original intention wasn’t foolish either, as it turned out. Wollaston detected a tidal voltage in the English Channel in 1851 between electrodes at each end of a submarine telegraph cable. In 1982, a submarine cable between Florida and the Bahamas began to be used for a very long-running measurement of the Florida Current. Using the Earth’s vertical field, the voltage on the cable can be compared with the transport of the current through the strait, by a calibration that has been carried out with ship-based measurements. It’s among the longest time series in physical oceanography, and it’s the same physical principle. An ocean strait isn’t a circular pipe, and its weight function is a very different shape, with a conducting seabed. Nobody could call the measurement simple, but what’s being measured is a flow’s integral, or something close to it.

There’s a practical matter the theory explains. A meter of this kind gets more accurate for larger pipes. Reading depends on 2aBvˉ2aB\bar v, so that for a fixed mean velocity, a larger diameter gives a larger signal. Meanwhile an obstruction meter’s loss doesn’t change, in the same way that a meter’s price is paid at any scale. It has no intrusion, and it doesn’t lose any pressure at all. There isn’t a permanent loss, and it costs nothing to run, except electrically. On a large water main running for fifty years, that accumulated pressure loss saving dominates the entire cost of the meter. A city’s water utility will often install a magnetic meter for that reason alone.

The same harmonic function shows up as a theory for other devices. A weight function that’s a Green’s function is a general idea, and it isn’t special to the field’s being magnetic: Laplace’s equation is what connects them. The sensitivity of an electrical impedance probe has one, the voltage on a wire probe in a conducting flow has another, and Bevir’s formulation in 1970 writes the voltage as ∫v⋅(B×j) dV\int v\cdot(B\times j)\,dV, with jj a virtual current, that which would flow if the electrodes were driven. A “perfect” meter’s the one with B×jB\times j uniform. It’s an instance of reciprocity: the sensitivity of an electrode’s voltage to a source at a point equals the current that the same electrode would send through that point, and a useful quantity shows up in terms of a problem that doesn’t physically occur.

That’s also the difference between a good installation and a meter’s mathematics. The theorem is exact for the mathematical problem, and it’s the uniformity of the field, the insulation of the wall and the point-like electrodes that bring the actual reading close to it. Real meters are calibrated in a flow rig, and they reach a typical accuracy of a few tenths of a per cent of reading. The harmonic argument explains why the calibration, once done, travels from one profile to another, which isn’t true of a differential-pressure meter’s own coefficient.

Where a harmonic argument stops

A partly filled pipe. Reading true for half-pipe flow, as above, assumes that the conducting liquid fills the pipe. If it’s half full of air, the geometry of the Laplace problem changes. The electrodes may be out of the liquid. So it’s a different problem altogether, and a magmeter requires a full pipe, which is why installers avoid the top of a horizontal line.

A wall that isn’t insulating. The weight’s derived for a wall that doesn’t conduct. A conducting wall short-circuits the EMF. So real meters line a metal pipe with an insulator, typically PTFE or rubber. Fouling on the wall by a conducting deposit brings the error back.

A field that isn’t uniform. The whole argument takes BB uniform across the section. A real coil’s field is non-uniform in practice, and the weight has to be recomputed with it. Real meters use this deliberately. Short coils save weight and cost, and they spoil the mean-value property a little. A “short” meter has a stronger upstream sensitivity to distortion.

Induced fields. The currents generate their own magnetic field. The ratio is the magnetic Reynolds number, and it’s tiny in water or any liquid short of a liquid metal. Sodium flow meters in fast reactors do have to consider it.

Conductivity. Below a few microsiemens per centimetre, like ultrapure water or hydrocarbons, there’s no usable signal. Air bubbles and solids change the local conductivity and alter the weight, with a known but complex effect.

The Hall effect and electrochemistry. A DC field gives Faraday’s own problem, in which electrochemical potentials on the electrodes dwarf the signal. So modern meters switch the field’s polarity slowly, and take the difference of the signals, which is why it took so long to build a useful one. Kolin’s breakthrough was an AC field.

What the figures don’t show. There’s no picture here of the EMF, or of the currents that flow in the section, or of the virtual current. The calculation has a weight function, an integral and a theorem. All of the physics of the electrolyte’s currents is packed into that.

The convention

Electrodes are on the yy axis at ±a\pm a, the field along xx, and the flow’s along the pipe, with a=1a=1 in the figures. A reading of one means U=2aBvˉU=2aB\bar v. Power-law profiles have u=(1−r/a)1/nu=(1-r/a)^{1/n}. A harmonic of order mm and amplitude ee is written as (1−r2)(1+ermcos⁡m(θ−ϕ))(1-r^2)(1+er^m\cos m(\theta-\phi)); with ϕ=90∘\phi=90^\circ for a second harmonic, the lobes lie on the electrodes. Pressure-drop meter means an ideal venturi, inferring speed from dynamic head alone, with the ratio ⟨u2⟩/uˉ\sqrt{\langle u^2\rangle}/\bar u. Ultrasonic meter means a single transit-time path along a diameter.

The check that found an error

The meter's numbers, and the checks on them. The weight at the centre and near a pole; its mean round a circle at 0.6 of the radius; a one-seventh power law and a narrow ring, each read through a full integration; a first harmonic, which reads 1, and a second, which does not.
Fig. 6 The weight at the centre, 1; its mean round a circle at 0.6, 1; a one-seventh power law read through a full integration, 0.998; a narrow ring at 0.7, 1; a first harmonic at e=0.5e=0.5, 1; and a second harmonic on the electrodes, which reads 1.04 and not 1.

The ring test’s a stronger check on the integration than the power law, which has steep gradients at the wall. The even-harmonic statement tests that the reading depends on a part of the profile only: a first harmonic must read 1 and a second can’t. Asked to evaluate the weight at an electrode, the model refuses, as it does a circle outside the pipe and a power law of no order.

Faraday, Kolin and Shercliff

Faraday’s experiment on the Thames was in 1832. Wollaston measured the tidal voltage in the English Channel in 1851. Williams measured a laboratory flow with a magnetic field in 1930, and Kolin’s use for blood flow began in 1936. Thürlemann’s theorem on the axisymmetric case dates from 1941. Shercliff’s weight function appeared in the 1950s and his book in 1962, and Bevir’s virtual-current theory in 1970. Standards for installation grew out of those.

Still open: what a real bend’s harmonics add to

The figures use single harmonics. A real flow after a bend has a measured mixture of several, and it decays along the pipe at different rates for each. The next calculation would take a developed turbulent flow through a 90° bend, using measured or computed cross-section velocities at stations from one to twenty diameters on, take the Fourier harmonics at each station, and find the meter’s reading in each electrode orientation. It would ask how far downstream a single electrode pair’s error falls under a stated limit, and whether the rule of aligning electrodes against the plane of the bend turns out to be a matter of the second harmonic alone.

What links here

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

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.

AveragingFlow meteringMeasurementModel limitPipe flowSuperposition