Skip to content

Python API ​

Generated from the docstrings by docs/scripts/api_docs.py; do not edit these pages by hand. The command-line interface is documented under CLI commands, the project journal under Project scripts.

Package ​

ModuleSummary
shoreSHORE — Structured Hyperbolic Overlapping Remeshing Engine
shore.configTOML-driven configuration for the shore mesh pipeline
shore.exceptionsSHORE-specific exception hierarchy
shore.pipelineMeshing pipeline steps shared by the CLI and the command layer
shore.qualityStructured-grid quality metrics (roadmap phase 4)

Geometry ​

ModuleSummary
shore.geometryGeometry backends behind one protocol
shore.geometry.baseGeometry protocol
shore.geometry.keysPersistent entity identity
shore.geometry.occtOCCT backend of the Geometry protocol
shore.geometry.stlSTL backend of the Geometry protocol
shore.profiles2D airfoil profile generators (NACA 4-digit, 5-digit)
shore.profiles.ioSelig .dat reader and writer for 2D airfoil sections
shore.shapes3D body STL builders backed by trimesh

Block model ​

ModuleSummary
shore.meshOOP mesh layer for SHORE
shore.mesh.associationBlock-to-geometry association
shore.mesh.blockBlock ABC and HexBlock
shore.mesh.blockingBlocking
shore.mesh.bodyBody
shore.mesh.edgeEdge
shore.mesh.faceFace and FaceBC
shore.mesh.inspectFile-based inspection utilities
shore.mesh.meshMesh
shore.mesh.orthogonalGrid lines leaving the walls along their normal and wall layers
shore.mesh.redistributeRedistributing the nodes of a block edge
shore.mesh.seamsPoint-matched seams between block faces
shore.mesh.spacingSpacing1D
shore.mesh.topologyTopology ABC and concrete topologies (cubed-sphere, O-grid, C-grid, OH-/CH-hybrid)
shore.mesh.vertexVertex

Surface ​

ModuleSummary
shore.surfaceSurface I/O and unstructured-to-structured remeshing
shore.surface.anchorAnchor-point resolution strategies for ray-cast projections
shore.surface.capPolar cap k=0 seed face via gnomonic projection of a flat tangent square
shore.surface.cgridC-grid surface construction
shore.surface.equatorEquator band construction from cap seam boundaries
shore.surface.intersectIntersection loop of two bodies, the start curve of a collar grid
shore.surface.ioSTL reader
shore.surface.marchHyperbolic surface marching
shore.surface.projectorRay-mesh projector with cached BVH and per-ray status tracking
shore.surface.remeshUnstructured STL surface → structured (ni, nj) quad grid via sphere projection
shore.surface.tfiSurface grids on one parametric face

Volume and topologies ​

ModuleSummary
shore.primitiveParametric structured-grid primitives for Chimera/overset assembly
shore.primitive.annulusAnnular cylinder primitive — a single block with optional theta-periodicity
shore.primitive.basePrimitive mesh base class and shared utilities
shore.primitive.boxCartesian box primitive — a single axis-aligned hexahedral block
shore.primitive.flat_capsFlat-caps cylinder primitive — 5-block conforming alternative to a hollow Chimera background
shore.primitive.h_grid_rectRectangular-duct H-grid primitive
shore.primitive.h_grid_tubeCircular-bore H-grid primitive
shore.topologyTopology decomposition utilities for multi-block structured grids
shore.topology.cgrid_capWing-tip caps of the C-grid
shore.topology.ch_channelOuter-quad helpers for the CH (C-grid + H-channel) topology
shore.topology.oh_channelChannel-block frustum builder for the OH (cubed-sphere + H-channel) topology
shore.topology.sphere_capPolar cap block generation for sphere O-grids
shore.volumeHyperbolic normal-extrusion
shore.volume.hyperbolicHyperbolic marching primitives
shore.volume.hyperbolic_schemeHyperbolic volume marching
shore.volume.jacobianJacobian field computation for structured volume grids
shore.volume.spacing1D grid spacing laws for surface angle redistribution and wall-normal extrusion

Collars ​

ModuleSummary
shore.collarThe collar block of two intersecting bodies

Projects ​

ModuleSummary
shore.projectCommand layer
shore.project.commandsCommands
shore.project.projectProject

Chimera and Xall ​

ModuleSummary
shore.balanceMulti-way equal-partition split planner for Xall MPI load balancing
shore.boxesGenerate :class:shore.io.boxes.Box instances from an STL surface
shore.ioI/O
shore.io.adjacencyAdjacency JSON sidecar for split block lists
shore.io.boxesHexahedral marker boxes for Xall cc.par
shore.io.cc_parXall cc.par writer
shore.io.cgnsCGNS export of structured block lists
shore.io.geoXall geo format writer/reader
shore.io.grdXall binary .grd writer
shore.io.plot3dPlot3D export of structured block lists
shore.io.proc_inputXall proc.input writer + merger
shore.io.vtkVTK export for ParaView
shore.splitSplit structured blocks along ijk vertex indices, preserving adjacency

GUI and visualisation ​

ModuleSummary
shore.guiSHORE's desktop GUI
shore.gui.cli_formsGUI forms generated from the CLI
shore.gui.formsCommand forms of the GUI
shore.gui.sessionThe GUI's owner of a project
shore.gui.viewportThe GUI's renderer interface
shore.gui.viewport.pygfx_backendpygfx/wgpu implementation of the GUI viewport
shore.gui.windowSHORE's main window
shore.visVisualisation helpers for SHORE grids

Released under the MIT License.