Skip to content

Volume marching ​

Marching extrudes the k=0 wall grid outward one layer at a time until the block has nk layers. SHORE has two schemes, selected by march_scheme (ADR 0005):

SchemeWhat it solvesDefault
algebraicnormal extrusion followed by Laplacian smoothingyes
hyperbolicthe Steger–Chaussee system: k-lines orthogonal to each layer, prescribed cell volumeno

The algebraic scheme is what older SHORE documentation called "hyperbolic marching". It does not solve a hyperbolic system; ADR 0005 renamed it and added the real one. Both schemes share the step schedule, the seam machinery and the Jacobian guard.

Select the scheme with --march-scheme on shore mesh, [march] march_scheme in a config, or march_scheme= on Mesh.march / Project.march.

A marched cubed-sphere volume with a quarter cut away: k-layers coloured by depth from the wall.A marched cubed-sphere volume with a quarter cut away: k-layers coloured by depth from the wall.
A marched cubed-sphere volume with a quarter cut away: k-layers coloured by depth from the wall.

Step schedule ​

The marching distances Δsk, k=0…nk−2, come from the wall-normal spacing law:

LawΔskKnobs
geometric (default)Δs0rk, outer distance free--ds (0.001), --growth (1.15)
tanhone-sided Roberts, clustered at the wall, total thickness fixed--volume-k-thickness, --volume-k-beta (3.0)
tanh2two-sided Roberts, clustered at wall and outer layer--volume-k-thickness, --volume-k-beta (3.0)

All blocks of a mesh march with one schedule, because blocks coupled through k-seams must stay coincident layer by layer. A k-edge override (a Spacing1D on the k-edges, detected by identity) on block 0 wins; other blocks that disagree get a UserWarning.

Algebraic scheme ​

Each layer is

Pi,jk+1=Pi,jk+Δskn^i,jk,n^=ti×tj‖ti×tj‖,

with the tangents ti, tj centred differences of the layer. On a block edge with a partner block the tangent is a centred difference against a ghost row from the partner (Seam-aware normals); a periodic direction wraps; only an unconnected edge falls back to a one-sided difference.

The new layer is then relaxed by smooth_iters sweeps (--smooth-iters, default 2) of

Pi,j←Pi,j+α(P¯i,j−Pi,j),

P¯ the 4-neighbour average and α the strength (--smooth, default 0.2). The wall and the non-periodic boundary rows are clamped.

Smoothing limiter (smooth_mode) ​

Smoothing node positions on a curved layer also pulls the layer toward its centre of curvature, by about αh2κ (h the cell size, κ the curvature), independently of the step. When that exceeds the step, the new layer falls behind the old one and the cells fold: on a coarse sphere a first step of 1e-3 folded at k = 1 (ADR 0005, "Finding").

smooth_mode='limited' (default; --smooth-mode, [march] smooth_mode) splits each node's smoothing motion into its normal and tangential parts and limits them:

  • the pull-back along the marching normal is at most 0.25Δsk, so every layer advances at least 0.75Δsk;
  • the sideways motion is at most 0.25Δsk.

Nodes inside both limits keep the plain Laplacian result bit for bit. (0.25, 0.25) is the tightest pair that leaves the 60×60×10 cubed-sphere regression grid unchanged. smooth_mode='legacy' switches the limiter off to reproduce grids made before it; it folds thin first layers.

Layer sequence on the cubed sphere ​

Mesh._march_caps advances the six blocks together:

  1. Snapshot layer k of all six blocks; ghost rows are taken from the snapshot, so no block reads a neighbour that has already moved.
  2. Advance the four sub-blocks (normals with ghost rows, step, smoothing).
  3. Average each shared sub–sub column, to remove round-off differences left by smoothing.
  4. Check the Jacobian of the sub-blocks.
  5. Advance the two caps, then overwrite their four edges with the new pole rows of the sub-blocks (DIRICHLET), and check their Jacobian.
  6. Commit layer k+1.

The O-grid, C-grid and hybrid wraps follow the same pattern with their own ghost rows (_march_ogrid, _march_cgrid_three).

Hyperbolic scheme ​

The new layer rk+1=rk+Δr satisfies, at every node,

rξ⋅rζ=0,rη⋅rζ=0,det[rξ,rη,rζ]=ΔV,

k-lines orthogonal to the layer and a prescribed cell volume (Steger & Chaussee 1980; Chan & Steger 1992). Linearised about the local solution rζ0=ΔVn/‖n‖2, n=rξ×rη, it becomes one sparse linear system per block layer,

(I+C−1Aδξ+C−1Bδη−εi∇2)Δr=rζ0+εeT(∇2rk),

with central differences δ, the 5-point Laplacian, and T the projection onto the layer's tangent plane. It is solved with SuperLU (deterministic). The coupling C−1A, C−1B scales with step over cell size: thin near-wall layers march almost exactly along the local normal; thick layers feel their neighbours, which spreads converging fronts at concave corners.

Stabilisation, all ramped by ρ=min(1,Δsk/h):

TermDefault (HyperbolicParams)
implicit dissipation εi0.5
explicit tangential dissipation εe (not applied across seams)0.25
cell-volume smoothing toward the neighbour mean0.2, 2 iterations
front-convergence sensor gain16
marching distance kept in [Δs/2, 2Δs]clip 2
outer-face volume correction, at most this fraction of ΔV0.04

The defaults were chosen once over all spec cases, not per case. The smooth_* arguments are not used by this scheme. Edges with a partner block take ghost rows as unknowns; unconnected edges and the pinned cap edges are Dirichlet.

What the acceptance spec measured ​

From the frozen spec of ADR 0005 (13 passed, 0 skipped, 0 xfailed):

CaseAlgebraic (limited)Hyperbolic
60×60×10 cubed sphere: wall-angle mean / max2.05 / 4.6 deg0.96 / 2.33 deg
same: min scaled Jacobian0.740
plus-shaped prism, four concave 90° edges, nk = 15folds at k = 13completes, no folded cell

Unverified, as the spec states: blunt-TE C-grids, CH/OH channels, non-star-shaped CAD bodies, finer grids and run time.

Jacobian guard ​

After every layer each block's cell Jacobians between layers k and k+1 are checked,

J=(ei×ej)⋅ek,

on the open-block field (_jacobian_field_open) or the j-periodic one. This check takes one corner per cell with a tolerance of −10−6, and on the cubed sphere it leaves out the four corner cells of each block (the 3-block junctions); a second check (ADR 0052) then takes every cell, corner cells included, by its minimum corner scaled Jacobian (shore.quality.scaled_jacobian) and refuses any cell at or below 0. It is scale-free, so thin wall cells count like thick ones. A failing layer raises MarchingError at once, with the folded cell and the remedies in the message. The O-grid (cells across the j wrap included) and the C-grid marches, CH's wrap among them, run the same second check since ADR 0056.

Removed: normal blending ​

Earlier releases could blend body normals into the first K marching directions (blend_normals_k). It showed no benefit over the seam-aware grid normals and folded C-grids at the wake cut (ADR 0019); it is removed (ADR 0034). An explicit 0 is accepted with a DeprecationWarning; any other value raises ParameterError.

Failure modes ​

SymptomLikely causeRemedy
MarchingError at k = 1smoothing pulls a thin layer behind the wallkeep smooth_mode='limited', or lower --smooth
MarchingError at larger k near concave edgesconverging fronts--march-scheme hyperbolic, or a smaller nk / growth
kink along a block seamnot expected: seam-aware normals are always onreport it
first cell thinner than dssmoothing pull-back (algebraic)--march-scheme hyperbolic keeps the first cell within a few per cent of ds

Choosing a scheme ​

The algebraic scheme is the default because its grids are bit-identical to earlier releases and it is fast. Use the hyperbolic scheme when wall orthogonality matters, for concave walls, or when the first cell must match ds closely. Both are single sweeps outward: the far-field smoothness of an elliptic generator is not their goal, and in an overset assembly the background grid takes over there.

References ​

  • Steger, J. L. & Chaussee, D. S. (1980). Generation of body-fitted coordinates using hyperbolic partial differential equations. SIAM J. Sci. Stat. Comput., 1(4), 431–437.
  • Chan, W. M. & Steger, J. L. (1992). Enhancements of a three-dimensional hyperbolic grid generation scheme. Appl. Math. Comput., 51(2–3), 181–205.

See also ​

Released under the MIT License.