Skip to content

CLI commands ​

Every shore command and sub-command, grouped as in the sidebar. Each page lists the options exactly as shore <command> --help prints them, with their defaults. shore --version prints the installed version (shore 0.4.0); shore --help and shore <command> --help list the commands and options.

Grids ​

CommandPurposeExtras
shore meshFull pipeline: STL or CAD → k=0 wall → marched volume → .geo files, for the cubed_sphere, ogrid, cgrid, ch and oh topologies.cad for STEP/IGES/BREP
shore primitive boxCartesian box, one block.
shore primitive annulusAnnular cylinder, one block, optionally a j sector.
shore primitive flat-caps5-block cylinder without a central hole (Chimera background).
shore primitive h-grid-rectRectangular-duct H-grid, one block.
shore primitive h-grid-tubeCircular-bore H-grid, five blocks (O-H cross-section).
shore collarCollar block at the junction of two bodies; half-collar on a symmetry plane; split at sharp corners.cad for CAD bodies
shore cap-tipWing-tip cap blocks from a C-grid body .geo.
shore projectProject a lat-lon sphere grid onto a body: the k=0 layer only, as .npz.cad for CAD input
shore runReplay a journal; optionally save the project it builds.whatever the journal uses
shore guiThe desktop GUI over a project (also shore-gui).gui

Bodies ​

CommandPurposeExtras
shore profile nacaNACA 4- or 5-digit section as a Selig .dat.
shore body sphereIcosahedral sphere STL.
shore body cylinderClosed cylinder STL, axis z.
shore body torusTorus STL, axis z.
shore body boxBox STL.
shore body capsuleCapsule STL, axis z.
shore body extrudeWing STL extruded from a Selig section (taper, sweep, twist).

Xall and chimera ​

CommandPurposeExtras
shore xallThe Xall run of every component of a project: per-component files, merged .grd and cc.par, one proc.input.
shore grdPack .geo files into a binary .grd.
shore grd-mergeConcatenate .grd files of several components.
shore cc-par.adjacency.json sidecar → cc.par (BCs, connection patches, marker boxes).
shore cc-par-mergeConcatenate cc.par files, shifting block and patch indices.
shore proc-inputproc.input from a .grd, blocks balanced over MPI ranks.
shore proc-input-mergeConcatenate proc.input files.
shore boxes-from-stlHole-cutting marker boxes from a body STL, as JSON for cc-par --boxes.
shore boxes-exportMarker boxes → .vtm for ParaView.vis
shore splitSplit blocks along index planes, keeping the face graph.
shore balancePlan splits for MPI load balance (split.toml or bsplit.par).

Exports and inspection ​

CommandPurposeExtras
shore cgnsA project as one CGNS/HDF5 file.cgns
shore plot3dA project's blocks as one multi-block Plot3D grid.
shore export.geo / .npz → VTK (.vts, .vtm) for ParaView.vis
shore infoShape and extent of a .geo or .npz.
shore checkCell Jacobians of a .geo, layer by layer.
shore viewInteractive PyVista window on a .geo or .npz.vis

Files ​

CommandPurposeExtras
shore configtemplate: print a default mesh config; validate PATH: check one.
File formats.geo, .grd, cc.par, proc.input, .adjacency.json, .npz, project directory, CGNS, Plot3D.

Options shared by the grid commands ​

OptionCommandsDescription
--project DIRmesh, collar, primitive *Add the result to the project in DIR (created if missing) and save it (ADR 0018).
--component Cmesh, collar, primitive *The component of --project to build: default main (collar for shore collar).
--no-replaymesh, collar, primitive *, xall, cgns, plot3d, guiOpen the project from its saved grids instead of replaying its journal (ADR 0033).
--journal PATHmesh, primitive *, cap-tip, split, grd, cc-par, proc-inputAlso write the run as a replayable journal for shore run.
--adjacency-json PATHmesh, primitive *, collar, cap-tipAlso write the .adjacency.json face graph, the input of shore cc-par.
-c / --config PATHmesh, primitive box/annulus/flat-caps, splitRead parameters from a TOML file; explicit flags win (Config files).

Parameter precedence everywhere: explicit flag → --config file → built-in default. Errors print one line and exit with code 1.

Extras ​

pip install 'shore-mesh[extra]':

ExtraInstallsNeeded by
cadbuild123dSTEP/IGES/BREP input to mesh, collar, project, Project.load_geometry
guiPySide6-Essentials, pygfx, wgpu, rendercanvasshore gui, shore-gui
cgnsh5pyshore cgns, Project.write_cgns
vispyvistaexport, view, boxes-export

See also ​

Released under the MIT License.