Skip to content

Near-body pipeline ​

The near-body pipeline turns a closed body surface (STL, or STEP/IGES/BREP through shore[cad]) into a structured, body-fitted volume grid by ray-casting a structured surface grid onto the body and extruding it layer by layer. It is the path behind shore mesh and Project.build_topology / Project.march. The pages of this section describe each stage independently of the block layout; the Topologies section describes how the stages are arranged into blocks.

Stages ​

StageOutputPage
1. Surface projectionk=0 nodes on the body, one per raySurface projection
2. k=0 constructionthe body-conforming surface grid of every blockk=0 construction (cubed sphere), C-grid construction (wings)
3. Marching(ni, nj, nk, 3) node array per blockMarching
4. Seam-aware normalscontinuous spacing across block seams at every layerSeam-aware normals

Stages 1 and 2 produce the k=0 layer, the wall grid from which the volume is extruded. Stage 4 is part of stage 3: it changes how normals are computed on block edges that have a partner block. The spacing laws set the node distribution along every direction, and the wall-normal step schedule in particular.

The C-grid family does not ray-cast from an anchor: its k=0 layer comes from slicing the body at span stations (C-grid construction). Marching and seam handling are shared.

Inputs ​

InputMeaning
BodyA closed surface. STL is loaded with trimesh; CAD files are tessellated for ray casting and the hits are snapped to the exact surface (ADR 0002). The ray-cast topologies need a body star-shaped from the anchor (limits).
Resolutionni, nj, nk node counts. Under cubed_sphere, nj is the equator-ring node count and each sub-block gets nj // 4 cells (shore mesh).
Cap angletheta_cap: the colatitude of the cap corners (cubed sphere, default π/6 = 30°, ADR 0054) or of the first and last rows (O-grid, default 0.05π = 9°). OH pins it to π/4.
Spacingsurface i/j laws, wall-normal k law (Spacing laws).
Marchingmarch_scheme (algebraic default, hyperbolic), smooth_mode (limited default, legacy) (Marching).

Outputs ​

Every topology produces a list of HexBlocks with typed faces (WALL, FREE, SHARED, DIRICHLET, ...) and the axis maps of every seam (see Block model). From there SHORE writes one ASCII .geo per block (<stem>_<label>.geo; the single-block O-grid writes <stem>.geo), the .adjacency.json face graph, and the Xall files (.grd, cc.par, proc.input), or CGNS and Plot3D (ADR 0035). The commands are in the reference; a worked run is the sphere tutorial.

Reading order ​

The stage pages are written to be read in the order of the table: each assumes the previous ones. Pipeline limits lists what the pipeline cannot do and where the other tools of SHORE (collars, blocking) take over.

See also ​

Released under the MIT License.