Reduction, and what a model is for

The inner product the mesh already computed

A Galerkin reduced model is certified stable when the operator's numerical range sits in the left half plane, and the certificate belongs to the coordinates. The coordinates that broke it before were a constructed rescaling. Grade a convection–diffusion mesh towards its outflow boundary layer — the grading anyone resolving the layer would choose — and nodal values break it too: the range's edge is past zero at a ratio of ten and reaches +8.9 at a thousand, and at Péclet 100 seven reduced models come back unstable. Weight the projection by the cell sizes the discretisation already computed and every model at every grading is stable, with the range's edge back at −0.098.

Worth reading first: Half the conditions and a certificate · A model that cannot be run.

A certificate written in coordinates took a stability guarantee that costs nothing — every pole of a Galerkin reduced model lies inside the numerical range of the operator, so a range in the left half plane certifies every model — and showed that it belongs to the coordinates the state is written in. Rescale the state by a diagonal matrix and the system is the same system, with the same eigenvalues and the same transfer function, but its numerical range moves; at Péclet 40 a rescaling with condition number 260 pushed the range’s edge to +6.6 and ten placements of nineteen returned unstable reduced models.

Its repair for a code that meets this was the energy inner product. “For a discretised physical operator those are usually the coordinates of its energy norm, which a code knows before it builds anything. The failure measured here is what happens when the state is stored in some other coordinates and the projection is done in them anyway.” And it noted why its own original coordinates had been safe: “On a uniform grid that norm is the Euclidean one scaled by the mesh width.”

That leaves a gap between the two sentences, and it is the gap every real code sits in. The rescalings that broke the certificate were constructed, powers of a ratio chosen to skew the operator. Nobody stores a state that way. What codes store is nodal values, and on a mesh that is not uniform the nodal vector is not the energy norm’s coordinates either.

A mesh graded towards the layer

The operator is the same centred-difference discretisation of εuu\varepsilon u'' - u' on the unit interval, thirty interior nodes, with ε\varepsilon the reciprocal of the Péclet number. At high Péclet number its solutions have a boundary layer of width about ε\varepsilon at the outflow end, and resolving that layer is the whole reason to grade a mesh: small cells at the outflow, large ones upstream, the cells growing geometrically so that the largest is a stated multiple of the smallest.

Four meshes of thirty-one cells on the unit interval, graded towards the outflow, beside the boundary layer's width at Péclet 100Each cell's width against the position of its centre, on a logarithmic vertical axis, for grading ratios 1, 10, 100, 1000. The uniform mesh's cells are all 0.0323; at a ratio of 1,000 the smallest, at the outflow, is 2.06·10⁻⁴ and the largest, at the inflow, 0.206. The dashed vertical line marks one layer width, one over the Péclet number, from the outflow boundary: the uniform mesh puts 0 cell centres inside it and the mesh graded 100 to one puts 5.00.10.20.30.40.50.60.70.80.9110⁻⁴10⁻³10⁻²10⁻¹1position of the cell, inflow at 0cell widthone layer width, 1/100uniformgraded 10 to 1graded 100 to 1graded 1000 to 1the layer sits at the outflowand so do the small cells a code puts there to resolve it
Fig. 1 Every cell’s width against its position for four grading ratios, beside one boundary-layer width from the outflow at Péclet 100.

A uniform mesh of thirty-one cells has no node inside a layer one hundredth wide. Graded a hundred to one it has seven, which is the point. On a nonuniform grid the centred stencils change shape: the second difference at node i divides by both neighbouring cell widths and their sum, and the first difference divides by the sum. Neither is symmetric or skew as a matrix any more, and the input and output vectors are left as the uniform system had them, from the same seed, so that nothing about the comparison moves except the mesh.

The nodal range crosses at a ratio of ten

The right edge of the numerical range of a convection–diffusion operator on a graded mesh, Péclet 100, in two inner productsThirty interior nodes on (0, 1), cells growing geometrically so the largest is a given multiple of the smallest, from 1 to 1,000. The largest eigenvalue of the symmetric part of the operator in nodal coordinates, with the small cells at the outflow boundary and at the inflow, and in the inner product weighted by cell size, which is the same for both directions. At Péclet 100 the nodal edge with the small cells at the outflow crosses zero at a ratio of 3 and reaches 8.94 at 1,000; with them at the inflow it stays between -0.85 and -0.10; weighted it stays between -0.099 and -0.097. Nodal one-sided models first come back unstable at a ratio of 30.Péclet 100, orders 1, 2, 3, 6nodal edge at 1,000, outflow8.9weighted edge at 1,000-0.097unstable nodal models7110¹10²10³-20246810largest cell over smallestright edge of the numerical rangenodal, small cells at the outflownodal, small cells at the inflowcell-size weightedabove the dashed line the certificate is goneit is a sufficient condition, not a failure
Fig. 2 The right edge of the numerical range against the grading ratio: nodal coordinates with the small cells at the outflow and at the inflow, and the inner product weighted by cell size. The dial moves the Péclet number.

In nodal coordinates the range’s edge is −0.10 on the uniform mesh at Péclet 100, the diffusion term’s own margin. Grade the cells three to one towards the outflow and it is +0.48; ten to one, +1.38; a thousand to one, +8.94. At Péclet 40 it crosses at a ratio of three and reaches +4.18; at Péclet 10 it crosses at ten and reaches +1.19. The certificate is gone on every mesh anyone would use to resolve the layer.

Grade the cells the other way, small at the inflow where nothing happens, and the edge moves the other way: at Péclet 100 it falls to between −0.84 and −0.59, further left than on the uniform mesh. The grading is not harmful as such. It is harmful in the direction the physics asks for.

The third line is the projection in a different inner product, and it is the reason this is worth measuring. It sits at −0.098 at every grading at Péclet 100, −0.24 at Péclet 40 and −0.97 to −0.99 at Péclet 10, which are the diffusion term’s own eigenvalues on the uniform mesh to two figures. Weighted by cell size, a graded mesh has the numerical range of the continuous problem.

Why a diagonal restores it

Multiply row i of each stencil by the width of the dual cell around node i, half the sum of its two neighbours. The second difference becomes the stiffness stencil — one over the left width, minus the sum of the two reciprocals, one over the right width — which is symmetric and negative definite whatever the widths are. The first difference becomes (ui+1ui1)/2(u_{i+1} - u_{i-1})/2, which is exactly skew-symmetric. So with MM the diagonal of dual-cell widths, MAMA is a symmetric negative definite matrix plus a skew one, and in the inner product x,y=xTMy\langle x, y\rangle = x^{\mathsf T}My the operator is dissipative on every mesh: the convection conserves energy and the diffusion removes it, as in the continuous equation.

That diagonal is not an extra computation. It is the lumped mass matrix of a linear finite-element discretisation on the same nodes, and a finite-difference code on a nonuniform grid computes the same widths to form its stencils. A Galerkin projection in that inner product replaces VTAVV^{\mathsf T}AV by (VTMV)1VTMAV(V^{\mathsf T}MV)^{-1}V^{\mathsf T}MAV on the same basis VV: the same rational Krylov space, built from the same shifted solves, projected differently. It costs a diagonal scaling of the basis and an r-by-r solve.

Where nodal models actually fail

A range in the right half plane removes the certificate. It does not make a model fail, and a certificate written in coordinates found a whole direction of rescaling where the edge reached +6.6 and no model failed. So the count of unstable models has to be measured separately.

Unstable one-sided reduced models in nodal coordinates, against the grading towards the outflow, at three Péclet numbersThe number of shift placements, of nineteen at each of orders 1, 2, 3 and 6, at which a Galerkin projection in nodal coordinates returns a model with a pole in the right half plane. At Péclet 10: 0, 0, 0, 0, 0, 0, 0 for ratios 1, 3, 10, 30, 100, 300, 1000. At Péclet 40: 0, 0, 0, 0, 0, 2, 4 for ratios 1, 3, 10, 30, 100, 300, 1000. At Péclet 100: 0, 0, 0, 4, 5, 7, 7 for ratios 1, 3, 10, 30, 100, 300, 1000. By order at Péclet 100 and a ratio of 1,000: 0 at order 1, 6 at order 2, 0 at order 3, 1 at order 6. The projection weighted by cell size returns no unstable model in any of these cells.four orders, nineteen placementsunstable, Pe 100, ratio 1,0007of them at order two6weighted, anywhere0110¹10²10³012345678largest cell over smallestunstable nodal modelsPéclet 10Péclet 40Péclet 100the weighted projection's line would be zero throughoutand is not drawn
Fig. 3 How many of nineteen shift placements, at each of four orders, return a nodal reduced model with a pole in the right half plane, against the grading ratio, at three Péclet numbers.

At Péclet 10 none do, at any grading, although the edge is past +1 from a ratio of three hundred. At Péclet 40 two models fail at a ratio of three hundred and four at a thousand. At Péclet 100 four fail at a ratio of thirty, five at a hundred and seven at three hundred and a thousand. Nearly all the failures are at order two — six of the seven at the worst mesh — with one at order six and none at orders one or three. The weighted projection returns no unstable model on any of the forty-two meshes of the sweep, at any order.

So the certificate is lost well before any model fails: at Péclet 100 the edge is past zero from a ratio of three, and the first failure is at thirty, a factor of ten further along the grading. That gap is also why a code can run for a long time on a graded mesh without meeting the problem. Coarse grading at moderate Péclet number removes the guarantee and leaves the models stable, and the guarantee is not something a code checks.

One basis, three projections

The rightmost pole of an order-2 reduced model at every shift placement, Péclet 100, mesh graded 1,000 to 1 towards the outflowShifts placed geometrically from s to 4s, with s from 0.1 to 100 on a logarithmic axis; the real part of the rightmost pole of the one-sided model in nodal coordinates, of the one-sided model on the same basis projected in the cell-size inner product, and of the two-sided model. The nodal models are unstable at 6 placements, from s = 0.10 to 0.68, with rightmost pole up to 1.23; the weighted models' rightmost pole is at most -1.04. The two-sided models are unstable at 4 placements, all at the high end.the same basis, three projectionsnodal, worst pole1.2weighted, worst pole-1two-sided, worst pole4.710⁻¹110¹10²-16-14-12-10-8-6-4-20246shift placement srightmost pole, real partone-sided, nodalone-sided, cell-size weightedtwo-sidedthe two one-sided lines use the same basisonly the inner product of the projection differs
Fig. 4 The real part of the rightmost pole of an order-two reduced model at every shift placement, Péclet 100, mesh graded 1,000 to 1: one-sided in nodal coordinates, one-sided in the cell-size inner product on the same basis, and two-sided.

At the worst mesh measured, the nodal order-two model is unstable at the six lowest placements, from s = 0.10 to 0.68, with its rightmost pole climbing to +1.23. On exactly the same basis, projected with the cell-size weight, the rightmost pole never rises above −1.04. The two-sided model, which matches slopes as well as values and has no certificate of any kind, is unstable at the four highest placements, from s = 31.6 up, reaching +4.7 — the failure a model that cannot be run found on the uniform mesh, still there, at the other end of the axis.

That figure is the argument in one picture. The rational Krylov space is a property of the shifts and the operator, and the nodal and weighted lines were computed from the same one. Everything that differs between them is a choice of inner product in the last step, a choice a code makes whether or not it knows it has.

What the weight costs in accuracy

A certificate bought with worse models would be a poor trade, and half the conditions and a certificate had already found the one-sided construction giving up the slope conditions for its guarantee. The weighted projection does not change which conditions are matched — a Galerkin projection onto a rational Krylov space interpolates at its shifts in any inner product — so the question is only whether the error away from the shifts moves.

The H∞ error of order-6 one-sided reduced models in two inner products, Péclet 100, mesh graded 100 to 1 towards the outflowThe H∞ norm of the difference between the full and reduced transfer functions, divided by the full system's own H∞ norm of 1.288, at seven shift placements from 0.1 to 100, for the one-sided model on six shifts projected in nodal coordinates and in the cell-size inner product. At s = 0.10: 0.45 nodal, 0.19 weighted; At s = 0.32: 0.41 nodal, 0.17 weighted; At s = 1.00: 0.29 nodal, 0.14 weighted; At s = 3.16: 0.33 nodal, 0.26 weighted; At s = 10.00: 0.70 nodal, 0.70 weighted; At s = 31.62: 0.79 nodal, 0.84 weighted; At s = 100.00: 0.78 nodal, 0.72 weighted. The weighted model is the more accurate at 5 of 7.error over the system's normnodal, at s = 0.10.45weighted, at s = 0.10.1910⁻¹110¹10²10⁻¹1shift placement srelative H∞ errornodalcell-size weightedthe certificate does not cost accuracyat the low placements it buys some
Fig. 5 The H∞ error of the order-six one-sided model, relative to the full system’s H∞ norm, at seven placements, projected in nodal coordinates and weighted by cell size. Péclet 100, mesh graded 100 to 1.

It moves in the weight’s favour. At Péclet 100 on a mesh graded a hundred to one, the order-six weighted model’s relative H∞ error is 0.19 at s = 0.1 against the nodal model’s 0.45, and 0.18 against 0.37 at s = 1. At the high placements, from s = 10, the two are within a few per cent of each other and both near one: order six on shifts that high does not capture this system’s low-frequency behaviour in either inner product. At no placement is the weighted model worse by more than the width of the rounding in an H∞ estimate.

That these errors are large at all is a fact about this system and this order, not about the weight: a transfer function dominated by a sharp layer at the outflow needs more than six directions. What the figure settles is that the certificate is not bought with accuracy. On the placements where the reduced model is worth having, the inner product the physics supplies is also the one that approximates better.

What the nodal edge is measuring

A numerical range in the right half plane for a stable operator is a statement about transient growth, and that is what makes it more than a technicality. In the coordinates where the edge is positive, some initial states grow before they decay: the fastest rate at which the Euclidean norm of a state can grow at an instant is the edge times the norm. A spectral radius that grows first measured the discrete version of the same thing, powers of a matrix whose spectral radius was below one rising by a factor of twenty thousand before they turned over, and the eigenvalues that are not there drew the resolvent regions such a matrix carries around its spectrum.

On the graded mesh that growth is not physical. The continuous equation’s energy never grows, and in the weighted inner product the discrete one’s does not either. What grows is the Euclidean norm of the nodal vector, which on a graded mesh weighs the many small cells at the outflow as heavily as the few large ones upstream, so that a state concentrated in the layer counts for more than its energy. The nodal range’s edge is the rate at which the solution can move mass from large cells into small ones, measured in a norm that counts nodes rather than mass. A Galerkin projection that uses that norm is projecting a question about nodes, and its models inherit the transient growth of the question.

That also explains the direction. With the small cells at the inflow, convection carries mass from small cells into large ones, the nodal norm shrinks faster than the energy, and the edge moves left. With them at the outflow it carries mass the other way. The grading the physics asks for is the grading under which counting nodes overstates the solution most.

Against the other two weights

The rescaling essay measured two other ways to restore the certificate. The symmetrising scaling exists only for an operator similar to a symmetric one by a diagonal, and its conditioning grows geometrically with the grid and the Péclet number, so that on a fine grid at high convection it cannot be represented in the arithmetic it is meant to certify. The Lyapunov solution is a dense matrix equation, the cost that interpolatory reduction was adopted to avoid, and the solver there declined to produce it above about Péclet 50.

The cell-size weight has neither limit. It is diagonal, its entries are cell widths, which differ by the grading ratio and not by anything geometric in the grid size, and it certified every model measured at Péclet 100, where the Lyapunov weight was not available at all. Its limitation is the one the others do not have: it certifies because this operator is a symmetric diffusion plus a skew convection in the energy inner product, and it would not certify an operator whose dissipative structure lives in some other norm.

What a code that reduces a discretised model should do

Project in the inner product the discretisation defines, not in the Euclidean inner product of whatever vector the state is stored as. For a finite-element model that is the mass matrix, which is what a Galerkin reduction of such a model usually uses anyway. For a finite-difference or finite-volume model on a nonuniform grid it is the diagonal of dual-cell widths or cell volumes, which were computed to form the stencils and which it is easy to forget in the reduction.

And where the physics’ inner product is not known, compute the numerical range’s edge in the inner product actually used — a symmetric eigenvalue problem of the full size, cheap next to the reduction itself — before trusting the certificate. On the nodal graded meshes here that check would have said “no certificate” at a ratio of three, long before a model failed, which is exactly the warning a code needs.

The two remedies are not alternatives. The check tells a code whether its present inner product certifies anything; the weight gives it one that does. A code that applies the weight and then checks the weighted edge is checking a quantity it knows in advance to be the diffusion term’s eigenvalue, which is a useful test of its own implementation and nothing more. A code that checks without weighting learns, on these meshes, that it has no guarantee — and has to decide what to do about models that are, most of the time, stable anyway. Of the forty-two meshes measured — seven gradings, two directions, three Péclet numbers — the nodal projection returned an unstable model on six and stable models with no certificate on eleven more. The weight turns all seventeen into certified ones, at no cost in accuracy that the H∞ estimates can see.

What this does not settle

One dimension, one discretisation, thirty nodes, one grading law. A two- or three-dimensional mesh graded towards a wall has a dual-cell weight that is still diagonal and a stiffness matrix that is still symmetric under it, so the argument carries; the size of the nodal edge’s excursion, which depends on how the stencils’ asymmetry adds up over neighbours, is not measured.

The failure count is a count at nineteen placements and four orders, and why order two fails so much more often than orders one, three and six is not explained. It matches the rescaling experiment, where failures also concentrated at particular orders, and it is a reminder that a lost certificate permits failure without predicting where.

The account of the nodal edge as mass counted by nodes — convection carrying the solution from large cells into small ones, which the nodal norm overweights — is an interpretation that fits the direction and the growth with Péclet number. It is not a measurement: the transient growth itself, the peak of the nodal norm over time for the worst initial state, is not computed here, and it is the quantity that would test the reading.

The H∞ errors are estimates from a frequency grid of 80 points refined around the maximum, and differences of a few per cent between the two projections at the high placements are inside that estimate’s accuracy.

Still open: upwinding, and a certificate for the two-sided model

An upwind discretisation. Every operator here is centred, and centred differences at a cell Péclet number above two oscillate. A different equation on every grid showed that upwinding is the exact discretisation of the same equation with diffusion ε + h/2, and a parameter that is also a price measured what the fitted fraction of that extra diffusion costs on a problem with no layer. A code that grades its mesh to resolve the layer usually also upwinds the convection, which adds artificial diffusion. Upwinding changes the skew part into a skew part plus a dissipative one in the weighted inner product, and whether that makes the nodal range safe again — or merely moves where it crosses — is the next measurement on the same meshes.

The two-sided model at high placements. The one-sided construction now has a certificate in the right inner product on any grading. The two-sided one never had one and still fails at the high placements, from s = 31.6 at Péclet 100 on the graded mesh. Whether a two-sided projection whose left space is chosen in the weighted inner product — a Petrov–Galerkin projection that treats MM as the natural pairing — inherits any of the certificate is a question the same measurement can answer.

Shares its objects with

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

Named objects

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

Convection diffusionGalerkin projectionLyapunov equationMass matrixNon-normalityNumerical rangePetrov–GalerkinRational krylovReduced stabilityTransfer function