Skip to content

C-grid topology ​

A C-grid wraps a body with a trailing edge (TE), such as an airfoil, hydrofoil or wing, and continues downstream in two wake branches. In a span section the grid lines form a C: the outer envelope opens behind the TE, and the two wake branches meet along the wake cut. In SHORE the k=0 layer comes from slicing the body at span stations (C-grid construction), and the blocks are marched like the other topologies. Built by shore mesh --topology cgrid.

A 3-block C-grid around a NACA 0012 wing: a span section of the volume over the wall.A 3-block C-grid around a NACA 0012 wing: a span section of the volume over the wall.
A 3-block C-grid around a NACA 0012 wing: a span section of the volume over the wall.

Block layouts ​

--cgrid-blocks selects the layout:

LayoutBlocksTENotes
3 (default)upper, body, lowersharpwake cut as a SHARED face between two blocks
4+ wake_baseblunta block filling the gap between the wake branches; its i_hi is the TE base wall
1 (legacy)one blocksharpthe wake cut is an overlap of the block with itself, on which Xall cannot apply BCs cleanly

Per block, j runs along the span (--n-stations nodes) and k away from the wall:

BlockShapei runs
upper(ni_wake, n_stations, nk)upper wake tip → upper TE
body(ni_body, n_stations, nk)upper TE → suction side → LE → pressure side → lower TE
lower(ni_wake, n_stations, nk)lower TE → lower wake tip
wake_base(ni_wake, n_stations, nk_w)wake tip → TE; k spans the TE thickness

Seams and boundary conditions ​

SeamFacesAxis map
upper TE columnupper.i_hi ↔ body.i_loidentity (shared by view)
lower TE columnbody.i_hi ↔ lower.i_loidentity
wake cut (3-block)upper.k_lo ↔ lower.k_loi flipped: upper runs toward the TE, lower away from it
wake base (4-block)wake_base.k_hi ↔ upper.k_lo, wake_base.k_lo ↔ lower.k_loidentity; i flipped
Blocki_loi_hij_lo, j_hik_lok_hi
upperFREESHAREDFREESHARED (wake cut)FREE
bodySHAREDSHAREDFREEWALLFREE
lowerSHAREDFREEFREESHARED (wake cut)FREE
wake_baseFREEWALL (TE base)FREESHAREDSHARED

In cc.par the FREE faces get the block's free_face_bc: 40 (chimera fringe) by default, or a positive natural BC such as 9 (extrapolation) for an outer boundary. The j faces are FREE because the wrap alone does not close the wing tips: see tip caps.

The wake_base block is not marched: it is interpolated in k between the two wake k=0 strips at build time, and the marcher skips it.

Marching ​

Mesh._march_cgrid_three marches upper, body and lower together with ghost rows across the two TE columns, so the TE seams keep one normal (Seam-aware normals). Both march_scheme values apply (Marching); the hyperbolic scheme's acceptance covers the 3-block sharp-TE C-grid, not the 4-block blunt one.

Parameters ​

FlagDefaultMeaning
--ni-bodyrequiredbody-wrap nodes per station
--ni-wakerequirednodes per wake branch, TE included
--n-stationsrequiredspan stations (the blocks' j count)
--wake-lengthrequiredwake branch length from the TE, body units
--wake-growth1.15geometric growth of the wake cells, starting from the TE cell
--span-axiszspan axis; the chord axis is the longer other extent
--te-dihedral-deg30dihedral above which an edge is a TE candidate
--cgrid-blocks3layout

The freestream, which sets the wake direction, defaults to the chord axis from the LE toward the TE. Mesh.from_stl does not accept the C-grid (its parameters do not fit the (ni, nj, nk) signature): in Python build the blocks with CGridTopology().build(...) and wrap them in a Mesh. The wing tutorial runs the whole chain from a NACA section.

Tip caps ​

The wrap leaves the span ends open. A cap closes a finite wing's tip (ADR 0059): an overset grid on the flat tip face, made of five blocks.

BlockCovers
corethe inside of the section, inset by core_frac (0.5) of the local half-thickness from both sides
upper, lowerfrom the core to the wall on each side (upper is the C-grid's i = 0 side), between the LE cuts and the TE
lefrom the core round the leading edge, between the two LE cuts (le_frac, default 0.05 chord)
tefrom the core across the TE base

Footprint and volume:

  • The footprint is an O-H layout. The ring's lines run straight from the core to the wall nodes, which are the C-grid's own tip-station nodes. The core's corners sit on 45° diagonals from the LE cuts and the TE corners, so where three blocks meet the angles are about 90 / 135 / 135°, and no corner is a straight angle.
  • The volume grows outwards. Every block's k_lo face is the wall; together the five cover the section exactly. k leaves the tip face along its normal at the wrap's layer distances. The ring's lines lean out by up to flare_deg (30°) at the section's edge, so the cap overhangs the side wall.
  • Faces: the blocks are right-handed. Faces between cap blocks are SHARED (16 per tip); the other outer faces are FREE fringes, so the cap is an overset component of the wrap.

Caps are built, not marched, and a cap with a folded cell or an empty block is refused (ADR 0058).

The cap's wall closing the wing section at the tip, inside the C-grid's end face.The cap's wall closing the wing section at the tip, inside the C-grid's end face.
The cap's wall closing the wing section at the tip, inside the C-grid's end face.

Why the TE is rounded. The te block spans the TE base, so a sharp TE gets one: its node is split in two, te_thickness apart across the airfoil (default 0.2 % of the chord, te_thickness_frac 0.002).

There are two ways to build a cap:

shore mesh --cap-tips jlo|jhi|bothshore cap-tip BODY_GEO
Body TErounded over the whole span; the C-grid is promoted to 4 blocksleft sharp; only the cap is rounded
Stationsthe first and last sit on the tipsas built: 2 % of the span inside the tips
Blocks4 C-grid + 5 cap blocks per tip5 cap blocks
The cap's edgethe body's tip-station wall nodes, bit for bitthose nodes moved out onto the tip face (--tip-inset)
Layersthe wrap's schedule (ds, growth)the body's k-lines at the tip station

The cap and the wrap meet along the tip edge, not across a face, so the face graph has no cap–body seam: the solver interpolates between them through the fringes. With shore cap-tip the strip of side wall between the tip station and the tip face has no grid of its own.

Limits ​

  • Each span station must cut one closed section; the TE must run within about 30° of the span axis (C-grid construction).
  • The span-wise stations are uniform between the body's span limits, 2 % inside each end.
  • A wing meeting a fuselage needs a collar or a blocking, not a C-grid.

See also ​

Released under the MIT License.