Skip to content

CH hybrid topology (C-grid wrap + H-channel) ​

The CH hybrid extends a C-grid wrap (3 blocks for a sharp TE, 4 for a blunt one) with channel blocks out to a rectangular frame in the chord/normal plane, extruded across the span. The result is one grid of 12 (sharp TE) or 14 (blunt TE) blocks from the wing wall to the frame, with point-matched seams throughout and no chimera fringe between the near-body grid and the far field. It is the wing counterpart of the OH hybrid. Built by shore mesh --topology ch.

CH hybrid in a span section: the C-grid wrap, the five channel blocks to the top, front and bottom of the frame, and the outflow blocks behind the wake.CH hybrid in a span section: the C-grid wrap, the five channel blocks to the top, front and bottom of the frame, and the outflow blocks behind the wake.
CH hybrid in a span section: the C-grid wrap, the five channel blocks to the top, front and bottom of the frame, and the outflow blocks behind the wake.

Block decomposition ​

12 (sharp TE) or 14 (blunt TE) structured blocks in canonical order:

IndexBlockShapeRole
0upper(ni_wake, n_stations, nk_wrap, 3)Wrap — upper wake (i sweeps upper-far-tip → upper-TE)
1body(ni_body, n_stations, nk_wrap, 3)Wrap — body (i sweeps upper-TE → LE → lower-TE)
2lower(ni_wake, n_stations, nk_wrap, 3)Wrap — lower wake (i sweeps lower-TE → lower-far-tip)
3wake_base (blunt only)(ni_wake, n_stations, nk_w, 3)Wrap — wake-base block bridging the TE thickness gap; i_hi is the bluff-base wall
3/4chan_upper(ni_wake, n_stations, nk_channel, 3)k_hi-side channel — bridges upper.k_hi to the top frame edge
4/5chan_body_top(i_split_upper+1, n_stations, nk_channel, 3)k_hi-side channel — bridges body's i=0..i_split_upper segment to the top frame edge
5/6chan_body_front(i_split_lower-i_split_upper+1, n_stations, nk_channel, 3)k_hi-side channel — bridges body's middle segment around the LE to the front frame edge
6/7chan_body_bot(ni_body-i_split_lower, n_stations, nk_channel, 3)k_hi-side channel — bridges body's i_split_lower..ni_body-1 segment to the bottom frame edge
7/8chan_lower(ni_wake, n_stations, nk_channel, 3)k_hi-side channel — bridges lower.k_hi to the bottom frame edge
8/9chan_outflow_top_upper(ni_outflow, n_stations, nk_channel, 3)Outflow — top half on the upper side (conformal SHARED to chan_upper.i_lo)
9/10chan_outflow_wake_upper(ni_outflow, n_stations, nk_wrap, 3)Outflow — wake half on the upper side (conformal SHARED to upper.i_lo)
10/11chan_outflow_wake_lower(ni_outflow, n_stations, nk_wrap, 3)Outflow — wake half on the lower side (conformal SHARED to lower.i_hi)
11/12chan_outflow_top_lower(ni_outflow, n_stations, nk_channel, 3)Outflow — top half on the lower side (conformal SHARED to chan_lower.i_hi)
13 (blunt only)chan_outflow_wake_base(ni_outflow, n_stations, nk_w, 3)Outflow — bridge between wake_lower and wake_upper across the TE-thickness gap (conformal SHARED to wake_base.i_lo)

i_split_upper / i_split_lower are body-block i-indices at which body.k_hi is partitioned into 3 sub-channels; defaults are ni_body // 3 and 2 * ni_body // 3 respectively. ni_outflow sets the chord-direction node count of the four (or five) outflow sub-blocks; default 8.

Far-field frame ​

CH's frame is rectangular in the chord/normal plane, extruded across span. It is defined by four world-coord extents (chord_min, chord_max, normal_min, normal_max) plus a span direction inherited from the C-grid wrap (span_axis) and a freestream direction (freestream_world) used to pick the chord axis:

  • chord_axis = the non-span world axis with the largest absolute freestream component (with freestream_world=None: the first non-span axis, x unless the span is x, positive direction).
  • normal_axis = the remaining non-span axis.
  • span_axis_idx = "xyz".index(span_axis).

Each channel's outer face is a planar quad on the frame. The two body splits (i_split_body_upper, i_split_body_lower) are mapped to the frame's top-front and bottom-front corners, so chan_body_top, chan_body_front and chan_body_bot end on the top, front and bottom edges of the frame, and adjacent quads share their corners. The outflow blocks close the region behind the wrap up to the rear edge (chord_max).

Memory layout (SHARED-by-view) ​

The wrap and the 5 k_hi-side channels share a single contiguous numpy buffer per wrap segment, of depth nk_wrap + nk_channel - 1. Each k_hi-side channel is a numpy view onto the buffer's deeper slots:

  • nodes_all[:, :, :nk_wrap, :] — wrap views (upper / body / lower)
  • nodes_all[:, :, nk_wrap-1:, :] — corresponding channel views

wrap.k_hi (the marched outer envelope) and channel.k_lo are therefore the same buffer slot — bit-identical with no copy. The outflow sub-blocks use a similar two-stack layout: wake_X + top_X per side (k=0 of top_X aliased to k=last of wake_X at the marched envelope normal). Wake-cut SHARED between the two sides is enforced by data copy in fill_channel_blocks, with the face-graph correctly stamped.

Conformal SHARED to the wrap ​

The layout avoids any non-conformal interface between the wrap and the outflow channels:

Outflow sub-blockConformal SHARED partnernk constraint
chan_outflow_top_upper.i_lochan_upper.i_lonk_channel
chan_outflow_top_lower.i_lochan_lower.i_hink_channel
chan_outflow_wake_upper.i_loupper.i_lonk_wrap
chan_outflow_wake_lower.i_lolower.i_hink_wrap
chan_outflow_wake_base.i_lo (blunt)wake_base.i_lonk_w

Same-axis i↔i seams. The blocks above the wake cut (top_upper, wake_upper) and the blunt wake_base would be left-handed with their channel k pointing up, so their j runs against their partners' and those seams map j with a flip; the lower-side seams are identity (ADR 0057). Every CH block is right-handed. The outflow's i_lo face data is copied bit-exact from the wrap face (j-reversed where flipped) in fill_channel_blocks, so the geometric coincidence at the seam is exact (not a tolerance-based match).

Channel construction (deferred fill) ​

Channel block interiors are not built at topology.build() time. The wrap's k_hi envelope is unknown until marching completes. The fill proceeds as follows in CHTopology.fill_channel_blocks:

k_hi-side channels (5): same algorithm as OH hybrid — bilinear sweep of an outer-frame quad, plus optional per-(i, j) C1 first-step pin to the wrap's last marching step.

Outflow sub-blocks (4 or 5):

  1. Copy the inner face (channel i_lo) bit-exact from the conformal-SHARED partner (chan_X.i_lo / wrap.X.i_lo / wake_base.i_lo).
  2. Construct the outer face (channel i_hi) by replacing the chord coordinate with chord_max (rear frame edge); span and normal match the inner face.
  3. Sweep the interior i = 1..ni_outflow-2 columns by linear interpolation in chord under k_law_channel.

Mesh.march() runs this fill automatically when the topology is CHTopology; users who drive marching manually must call CHTopology.fill_channel_blocks(blocks) after marching.

C1 seam continuity (k_hi-side channels only) ​

By default (c1_seam=True), each k_hi-side channel's first cell at every (i, j) is pinned to the wrap's last marching step at the same (i, j) — same algorithm as the OH hybrid. The remaining nk_channel - 1 cells grow geometrically out to the frame edge, filling the gap exactly with smooth growth.

Outflow sub-blocks do not use C1 pinning: their channel-i runs along chord (not normal), so there is no wrap k-axis to inherit from. The chord distribution shape is set directly by k_law_channel / k_beta_channel.

Boundary conditions ​

Wrap blocks (same as standalone C-grid):

BlockFaceBCPartner
bodyk_loWALL— (body STL)
upper / lowerk_loSHAREDwake-cut partner (or wake_base for blunt)
bodyi_loSHAREDupper.i_hi (upper-TE column)
bodyi_hiSHAREDlower.i_lo (lower-TE column)
upperi_loSHAREDchan_outflow_wake_upper.i_lo
loweri_hiSHAREDchan_outflow_wake_lower.i_lo
wake_basei_lo (blunt)SHAREDchan_outflow_wake_base.i_lo
wake_basei_hi (blunt)WALL— (TE-base bluff wall)
Any wrapj_lo, j_hiFREE— (wing tips)

k_hi-side channels (5):

BlockFaceBCPartner
chan_upper / chan_body_* / chan_lowerk_loSHAREDWrap's k_hi (view-aliased)
Samek_hiFREETop / bottom / front frame edge
Samei_lo / i_hiSHAREDAdjacent channel (lateral seam) or outflow sub-block
Samej_lo, j_hiFREEWing tips

Outflow sub-blocks:

BlockFaceBCPartner
chan_outflow_top_*k_loSHAREDAdjacent chan_outflow_wake_* (envelope seam, view-aliased)
chan_outflow_top_upperk_hiFREETop frame edge
chan_outflow_top_lowerk_hiFREEBottom frame edge
chan_outflow_wake_*k_loSHAREDWake-cut partner (sharp: across; blunt: via wake_base)
chan_outflow_wake_*k_hiSHAREDAdjacent chan_outflow_top_*
Any outflowi_loSHAREDConformal partner (see above)
Any outflowi_hiFREERear frame edge
Any outflowj_lo, j_hiFREEWing tips

Parameters ​

shore mesh flagCHTopology argumentDefaultMeaning
--ch-chord-min, --ch-chord-max, --ch-normal-min, --ch-normal-maxchord_min, ...requiredframe extents, world coordinates; must contain the marched wrap
--ch-freestream-{x,y,z}freestream_worldNone (first non-span axis)picks the chord axis
--span-axisspan_axiszspan axis
--nk-channelnk_channel5channel layers, the shared seam included (≥ 2)
--k-law-channel, --k-beta-channelk_law_channel, k_beta_channeluniform, 3.0channel law (k_hi-side channels with the C1 pin off, and the outflow chord sweep)
--c1-seam-channel / --no-c1-seam-channelc1_seamonpin each channel's first cell to the wrap's last step
--ch-i-split-body-upper, --ch-i-split-body-loweri_split_body_upper, i_split_body_lowerni_body // 3, 2 * ni_body // 3where body.k_hi is split into three channels
--ch-ni-outflowni_outflow8chord-direction nodes of each outflow block

The wrap takes the C-grid flags (--ni-body, --ni-wake, --n-stations, --wake-length, --wake-growth, --te-dihedral-deg) and the marching flags. As for the C-grid, Mesh.from_stl does not accept CHTopology: in Python, build the blocks with CHTopology(...).build(...) and wrap them in a Mesh. The wing tutorial and shore mesh have runnable commands.

Limits ​

  • The frame must contain the marched wrap envelope.
  • The channel blocks do not march: their quality depends on how far the frame is from the envelope relative to nk_channel.
  • The hyperbolic scheme's acceptance spec does not cover the channel blocks or blunt-TE wraps (ADR 0005).

See also ​

  • C-grid topology — the wrap standalone (without far-field channel).
  • OH hybrid topology — the cubed-sphere analogue (closed envelope wrap + 6-face H-channel).
  • CHTopology — Python API reference.
  • Marching — the wrap uses the same marcher as the standalone C-grid.

Released under the MIT License.